/* ==========================================================================
   Prospector by CINDR.LA — landing stylesheet
   cindrla design system — dark-first, ember accent #ff4d00
   ========================================================================== */

/* --- Self-hosted fonts -------------------------------------------------- */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lexend";
  src: url("fonts/Lexend-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Palette tokens — dark (default) ------------------------------------ */

:root {
  --coal:          #0E0E10;
  --ash:           #1A1B1E;
  --cream:         #F5F7F9;
  --smoke:         #9FA3A9;
  --accent:        #FF4D00;
  --accent-hover:  #FF783D;
  --destructive:   #DC2626;
  --border:        #1A1B1E;

  /* semantic */
  --background:         var(--coal);
  --foreground:         var(--cream);
  --card:               var(--ash);
  --card-foreground:    var(--cream);
  --muted-foreground:   var(--smoke);
  --primary:            var(--accent);
  --ring:               var(--accent);
  --radius-btn:         0.5rem;
  --radius-card:        1rem;

  /* accent tints */
  --accent-05: color-mix(in oklab, var(--accent) 5%,  transparent);
  --accent-10: color-mix(in oklab, var(--accent) 10%, transparent);
  --accent-20: color-mix(in oklab, var(--accent) 20%, transparent);
  --accent-30: color-mix(in oklab, var(--accent) 30%, transparent);
  --accent-50: color-mix(in oklab, var(--accent) 50%, transparent);
}

/* --- Palette tokens — light --------------------------------------------- */

:root[data-theme="light"] {
  --coal:         #FAFAFA;
  --ash:          #FFFFFF;
  --cream:        #0E0E10;
  --smoke:        #52555B;
  --accent:       #FF4D00;
  --accent-hover: #E64500;
  --border:       #E5E7EB;

  --background:       var(--coal);
  --foreground:       var(--cream);
  --card:             var(--ash);
  --card-foreground:  var(--cream);
  --muted-foreground: var(--smoke);
  --primary:          var(--accent);
}

/* --- Reset & base ------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  font-feature-settings: "cv11", "ss01", "ss03";
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}

::selection {
  background: color-mix(in oklab, var(--accent) 40%, transparent);
  color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lexend", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease-out;
}

a:hover {
  color: var(--accent-hover);
}

code, .mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.875em;
}

/* --- Layout utilities --------------------------------------------------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Nav ---------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-wordmark {
  font-family: "Lexend", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.nav-badge {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
}

.nav-accent-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out,
              border-color 150ms ease-out, box-shadow 150ms ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-30);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: transparent;
  padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
  background: var(--ash);
  color: var(--foreground);
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-btn);
}

/* --- Theme toggle ------------------------------------------------------- */

#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out,
              border-color 150ms ease-out;
}

#theme-toggle:hover {
  background: var(--ash);
  color: var(--foreground);
  border-color: var(--accent);
}

#theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 1.75;
}

.icon-sun  { display: none; }
.icon-moon { display: block; }

:root[data-theme="light"] .icon-sun  { display: block; }
:root[data-theme="light"] .icon-moon { display: none;  }

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero-eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--accent-50);
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent-word {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1875rem;
  color: var(--muted-foreground);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--smoke);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
}

/* --- Divider ------------------------------------------------------------ */

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border) 20%,
    var(--border) 80%,
    transparent 100%
  );
  margin: 0;
}

/* --- What it does section ----------------------------------------------- */

.features {
  padding: 5rem 0;
}

.section-label {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 1rem;
}

.features-header {
  margin-bottom: 3.5rem;
}

.features-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 22ch;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color 300ms ease-out, box-shadow 300ms ease-out;
}

.feature-card:hover {
  border-color: var(--accent-50);
  box-shadow: 0 8px 32px color-mix(in oklab, var(--accent) 8%, transparent);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--accent-10);
  border: 1px solid var(--accent-20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--accent);
  stroke-width: 1.75;
  fill: none;
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* --- CTA strip ---------------------------------------------------------- */

.cta-strip {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.cta-strip p {
  color: var(--muted-foreground);
  max-width: 44ch;
  margin: 0 auto 2rem;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Lexend", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--foreground);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--smoke);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--smoke);
  transition: color 150ms ease-out;
}

.footer-links a:hover {
  color: var(--accent);
}

/* --- Legal pages -------------------------------------------------------- */

.legal-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.legal-hero .subtitle {
  color: var(--muted-foreground);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.legal-body {
  padding-bottom: 5rem;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-body h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-body p,
.legal-body li {
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.legal-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.placeholder {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.875em;
  color: var(--accent);
  background: var(--accent-10);
  border: 1px solid var(--accent-20);
  border-radius: 0.25rem;
  padding: 0.05em 0.3em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--smoke);
  margin-bottom: 2.5rem;
  transition: color 150ms ease-out;
}

.back-link:hover {
  color: var(--accent);
}

.back-link svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 640px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ===== Overview / data-use sections (added for Google homepage clarity) ===== */
.overview {
  padding: 5rem 0;
}
.overview h2 {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0.5rem 0 1.5rem;
  color: var(--foreground);
}
.overview-lead {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin: 0 0 1.1rem;
}
.datause-list {
  max-width: 760px;
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.datause-list li { margin: 0 0 0.6rem; }
.datause-list strong { color: var(--foreground); }
