/* ==========================================================================
   NEXOAI — LANDING V2 SHARED TOKENS
   Dark developer-infrastructure brand. One accent (periwinkle). Hairlines,
   no shadows. Mono = data. Sora = display. Inter = prose. JetBrains Mono = data.
   Source of truth: taste-loop rebuild spec 2026-08-04 + DESIGN-v2 (locked soul).
   ========================================================================== */

:root {
  /* -- palette (taste-loop rebuild spec) ---------------------------------- */
  --canvas:      #0A0A0D;   /* page background */
  --surface:     #12131A;   /* panels, terminal, cards */
  --surface-2:   #16181F;   /* raised */
  --ink:         #F4F5FF;   /* primary text — warm white, not pure */
  --muted:       #8A8FA3;   /* secondary text */
  --faint:       #565B6E;   /* micro labels, captions */
  --line:        #1E2030;   /* hairlines, 1px */
  --line-strong: #2A2E40;   /* hover hairlines, focus */
  --accent:      #5B6BF5;   /* periwinkle — the one accent */
  --accent-hi:   #8B96FF;   /* glow cores / gradient light */
  --accent-deep: #3D4CD4;   /* gradient field close */
  --accent-wash: rgba(91, 107, 245, 0.10);
  --accent-glow: rgba(91, 107, 245, 0.35);
  --mint:        #3ECF8E;   /* product status ONLY (ledger dots) */

  /* -- type --------------------------------------------------------------- */
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --fs-display: clamp(2.5rem, 1.8rem + 3.1vw, 4.25rem); /* 40 → 68 */
  --fs-h1:      clamp(2rem, 1.6rem + 1.8vw, 3rem);      /* 32 → 48 */
  --fs-h2:      clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); /* 24 → 36 */
  --fs-h3:      clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem);
  --fs-body:    16px;
  --fs-small:   14px;
  --fs-mono:    13px;
  --fs-micro:   10.5px;

  --lh-tight: 1.05;
  --lh-snug:  1.25;
  --lh-body:  1.65;

  --ls-display: -0.022em;
  --ls-heading: -0.012em;
  --ls-label:   0.14em;   /* mono-caps eyebrows */

  /* -- motion ------------------------------------------------------------- */
  --dur-fast: 120ms;
  --dur-base: 250ms;
  --dur-slow: 600ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* -- geometry ----------------------------------------------------------- */
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(88px, 12vw, 160px);
  --grid: 4px;
}

/* ============================ RESET / BASE =============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--canvas);
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--canvas); }

/* Focus — the ≥3:1 cue hairlines cannot carry alone */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================ TYPE ROLES ================================= */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--ink);
  text-wrap: balance;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
}
.lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: var(--lh-body);
  color: #9AA3B2;
  max-width: 44ch;
}
.body { color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.small { font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }

/* The mono-caps eyebrow — the brand's signifier */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: #9AA3B2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.eyebrow--plain::before { display: none; }

/* Data = mono + tabular. Brand rule: tell data from prose with the page blurred. */
.data {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: 0;
}
.data--muted { color: var(--muted); font-weight: 400; }
.data--accent { color: var(--accent-hi); }

/* ============================ LAYOUT ===================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: calc(var(--section-pad) * 0.55); }

/* hairline section divider — inset to container */
.rule { border: 0; border-top: 1px solid var(--line); }

/* ============================ COMPONENTS ================================= */
/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--canvas) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9AA3B2;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { flex-shrink: 0; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* logo lockup */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.logo__mark {
  width: 26px; height: 26px;
  position: relative;
  flex-shrink: 0;
}
.logo__mark svg { width: 100%; height: 100%; display: block; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--canvas);               /* dark-on-accent: 6.3:1, Linear/Vercel idiom */
  border: 1px solid var(--accent);
}
.btn--primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn--ghost {
  background: transparent;
  color: #9AA3B2;
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--line-strong); }
.btn--dark {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--canvas);
}
.btn--dark:hover { background: #14151C; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }

/* hairline chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.chip--accent { border-color: color-mix(in oklab, var(--accent) 35%, transparent); color: var(--accent-hi); }
.chip--live { border-color: color-mix(in oklab, var(--mint) 35%, transparent); color: var(--mint); }
.chip__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ============================ MOTION ===================================== */
@keyframes nx-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: nx-rise 0.7s var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================ FOOTER ===================================== */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; transition: color var(--dur-fast) var(--ease-out); }
.footer ul a:hover { color: var(--ink); }
.footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  flex-wrap: wrap;
}
.status-line { display: inline-flex; align-items: center; gap: 8px; }
.status-line .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
