/* ====================================================
   POLYTRADERS  —  pre-registration site
   Terminal-first dark aesthetic. Lime "up" accent.
   ==================================================== */

:root {
  /* ---- Type ---- */
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-display: 'Instrument Serif', 'Times New Roman', serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.75rem, 1.4rem + 4.8vw, 5.75rem);

  /* ---- Space ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* ---- Radius ---- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;

  /* ---- Dark theme (default) ---- */
  --bg: #0a0b0d;
  --bg-2: #0f1114;
  --panel: #12151a;
  --panel-2: #171a20;
  --panel-3: #1c2028;
  --border: #23272f;
  --border-strong: #2e333d;
  --text: #eef1f5;
  --text-muted: #b0b6bf;      /* was #8a919b — bumped for AA on small text */
  --text-faint: #757b84;      /* was #5b616a — bumped so faint copy still reads */

  --accent: #c6ff3d;         /* electric lime — "up" */
  --accent-ink: #0a0b0d;
  --accent-glow: rgba(198, 255, 61, 0.18);
  --up: #6ee87a;
  --down: #ff5b6b;
  --violet: #9a7cff;         /* echo of Polymarket brand */
  --gold: #f5c86a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(198, 255, 61, 0.3), 0 0 40px var(--accent-glow);

  --grid-line: rgba(255, 255, 255, 0.035);
  --max-w: 1240px;
}

/* ---- Light theme — paper / editorial ----
   Warm cream ground, ink-black type, muted olive-lime as accent.
   Not a colour-inverted dark theme; a deliberate second face for the brand. */
[data-theme='light'] {
  --bg:        #f5f2ea;      /* warm paper */
  --bg-2:      #ebe6d9;      /* ticker / edge bands */
  --panel:     #fbf8f0;      /* card face — slightly warmer than bg */
  --panel-2:   #ede8dc;      /* recessed panel */
  --panel-3:   #e2dccc;
  --border:    #d8d0bd;
  --border-strong: #b0a689;
  --text:      #1a1a17;      /* ink black w/ warm cast */
  --text-muted:#4c4a44;      /* body-muted at ~9:1 contrast */
  --text-faint:#7a766c;
  --accent:      #566b1b;    /* olive-lime, restrained */
  --accent-ink:  #f8f6ee;
  --accent-glow: rgba(86, 107, 27, 0.16);
  --up:   #2f6b1f;
  --down: #a12a2a;
  --violet: #6d5cc8;
  --grid-line: rgba(22, 20, 15, 0.045);
  --shadow-sm: 0 1px 2px rgba(50, 40, 20, 0.08);
  --shadow-md: 0 6px 20px rgba(50, 40, 20, 0.10);
  --shadow-lg: 0 20px 50px rgba(50, 40, 20, 0.14);
  --shadow-glow: 0 0 0 1px rgba(86, 107, 27, 0.35), 0 8px 24px rgba(86, 107, 27, 0.16);
}
[data-theme='light'] body { font-weight: 420; }
[data-theme='light'] .hero-title,
[data-theme='light'] section h2 { font-weight: 500; letter-spacing: -0.028em; }
[data-theme='light'] .terminal-card::before { display: none; }
[data-theme='light'] .tick b,
[data-theme='light'] .tc-row .mono,
[data-theme='light'] .tc-row .tc-mkt { color: var(--text); }
[data-theme='light'] .brand-tag { border-color: var(--accent); color: var(--accent); }
[data-theme='light'] .pulse-dot { box-shadow: 0 0 0 0 rgba(86, 107, 27, 0.6); }
[data-theme='light'] .chart-fill { opacity: 0.5; }

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent); }

button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }

h1, h2, h3, h4, h5 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
p { max-width: 62ch; }

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1, 'zero' 1; letter-spacing: 0; }
.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  padding: 8px 12px; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r-md); z-index: 999;
}

/* ---------------- NAV ---------------- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: var(--sp-6);
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .logo { width: 28px; height: 28px; color: var(--text); }
.brand-name { font-weight: 600; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 2px 6px; border-radius: 3px;
  align-self: center;
}
.nav-links { display: none; gap: var(--sp-6); margin-left: auto; }
.nav-links a { color: var(--text-muted); font-size: 0.9375rem; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 900px) { .nav-links { display: inline-flex; } .brand { margin-right: auto; } }

/* --- Theme toggle button --- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  margin-left: auto;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); background: var(--panel); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme='light'] .theme-toggle .icon-sun { display: block; }
[data-theme='light'] .theme-toggle .icon-moon { display: none; }
@media (min-width: 900px) { .theme-toggle { margin-left: 0; } }

/* language switcher */
.lang-switch { position: relative; display: none; }
@media (min-width: 900px) { .lang-switch { display: inline-flex; margin-left: 8px; } }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent; color: var(--text-muted);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
  cursor: pointer;
}
.lang-current:hover { color: var(--text); border-color: var(--border-strong); background: var(--panel); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 160px;
  list-style: none; margin: 0; padding: 4px;
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  display: none; z-index: 60;
}
.lang-switch.is-open .lang-menu { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--text); text-decoration: none;
  font-size: 0.875rem;
}
.lang-menu a:hover { background: var(--bg); color: var(--accent); }
.lang-menu .mono { color: var(--text-muted); font-size: 11px; letter-spacing: 0.05em; }
.lang-menu a:hover .mono { color: var(--accent); }

/* mobile drawer language block */
.nav-drawer-lang {
  padding: 20px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
.nav-drawer-lang-lab {
  display: block;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.nav-drawer-lang-list { display: flex; flex-direction: column; gap: 2px; }
.nav-drawer-lang-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; color: var(--text-muted);
  font-size: 1rem; text-decoration: none;
}
.nav-drawer-lang-list a.is-active { color: var(--accent); }
.nav-drawer-lang-list a .mono { font-size: 12px; letter-spacing: 0.05em; min-width: 24px; }

/* --- Mobile menu button + drawer --- */
.nav-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.nav-menu-btn svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .nav-menu-btn { display: none; } }
@media (max-width: 899px) { .site-nav .nav-cta { display: none; } }

.nav-drawer {
  position: fixed; inset: 0; z-index: 90;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  display: flex; flex-direction: column;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.nav-drawer[data-open='true'] { opacity: 1; pointer-events: auto; }
.nav-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px;
}
.nav-drawer-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.nav-drawer-close svg { width: 18px; height: 18px; }
.nav-drawer-links {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: auto;
}
.nav-drawer-links a {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.nav-drawer-links a:last-child { border-bottom: 0; }
.nav-drawer-foot {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.nav-drawer-foot .btn { width: 100%; padding: 16px; font-size: 1rem; }
.nav-drawer-foot .footnote {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: center;
}
@media (min-width: 900px) { .nav-drawer { display: none; } }
body.no-scroll { overflow: hidden; }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-md);
  font-weight: 600; font-size: 0.9375rem; line-height: 1;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 24px -12px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); color: var(--accent-ink); }
.btn-ghost { background: var(--panel-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------------- TICKER ---------------- */
.ticker {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.ticker-track {
  display: inline-flex; gap: 40px; white-space: nowrap;
  padding: 10px 0;
  animation: ticker 110s linear infinite;
  will-change: transform;
}
.tick b { color: var(--text); font-weight: 500; margin: 0 4px; }
.tick em { font-style: normal; margin: 0 4px; font-weight: 600; }
.tick .sep { color: var(--text-faint); margin: 0 8px; }
.up { color: var(--up); }
.down { color: var(--down); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- HERO ---------------- */
.hero {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px) clamp(32px, 6vw, 72px);
  max-width: var(--max-w); margin: 0 auto;
  position: relative;
}
.hero-grid {
  display: grid; gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--panel);
  margin-bottom: 24px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(198, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0); }
}

.hero-title {
  font-size: var(--text-3xl);
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title .serif { font-size: 1.05em; letter-spacing: -0.01em; }

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text);
  margin: 4px 0 20px;
  max-width: 52ch;
  letter-spacing: -0.01em;
}
.hero-sub .accent-num { color: var(--accent); font-weight: 600; font-size: 1.05em; }
.accent-emph {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  font-size: 1.1em;
  letter-spacing: 0;
}

.hero-lede {
  color: var(--text);
  font-size: var(--text-lg);
  max-width: 44ch;
  margin-bottom: 28px;
  font-weight: 400;
  line-height: 1.55;
  opacity: 0.86;
}

.accent-num { color: var(--accent); font-weight: 600; }
.hero-caption .accent-num { color: var(--accent); }

.hero-form {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: var(--r-md);
  max-width: 480px;
}
.hero-form input {
  flex: 1 1 220px; min-width: 0;
  background: transparent; border: 0;
  padding: 10px 12px; color: var(--text);
  font-size: 0.9375rem;
}
.hero-form input::placeholder { color: var(--text-faint); }
.hero-form input:focus { outline: none; }

.hero-caption {
  margin-top: 16px;
  font-size: 12.5px; color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex; flex-wrap: wrap; gap: 8px 14px; max-width: 640px;
  line-height: 1.5;
}
.hero-caption .check { color: var(--accent); font-weight: 600; }
.hero-caption .dot { color: var(--text-faint); }

/* ------- Terminal card ------- */
.terminal-card {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.terminal-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(198,255,61,0.06), transparent 60%),
    radial-gradient(500px 200px at 0% 100%, rgba(154,124,255,0.06), transparent 60%);
  pointer-events: none;
}
.tc-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.tc-dots { display: inline-flex; gap: 6px; }
.tc-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.tc-dots span:nth-child(1) { background: #ff5f57; }
.tc-dots span:nth-child(2) { background: #febc2e; }
.tc-dots span:nth-child(3) { background: #28c840; }
.tc-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--text-muted); margin-left: 6px;
}
.tc-title span { color: var(--text-faint); }
.tc-status {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  color: var(--up); display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.12em;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: pulse 1.8s infinite; }

.tc-body { padding: 14px; }
.tc-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.8fr 0.9fr;
  gap: 10px;
  padding: 10px 8px;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--border);
  align-items: center;
}
.tc-row-title {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--text-faint); text-transform: uppercase; border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.tc-row .tc-mkt { color: var(--text); font-weight: 500; }
.tc-row .mono { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.tc-row .mono.up { color: var(--up); }
.tc-row .mono.down { color: var(--down); }
.tc-row:last-of-type { border-bottom: 0; }

.tc-chart {
  margin: 16px 0 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
}
.tc-chart-label {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.tc-chart svg { width: 100%; height: 80px; }
.chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 2.4s var(--ease) forwards 0.4s; }
.chart-fill { opacity: 0; animation: fadeIn 1.2s var(--ease) forwards 2s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.tc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tc-btn {
  padding: 12px; border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tc-btn:hover { transform: translateY(-1px); }
.tc-btn-buy { background: rgba(110, 232, 122, 0.12); color: var(--up); border-color: rgba(110,232,122,0.35); }
.tc-btn-sell { background: rgba(255, 91, 107, 0.10); color: var(--down); border-color: rgba(255,91,107,0.3); }

/* ------- Hero marquee (little tags row) ------- */
.hero-marquee {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em;
}
.marquee-track { display: inline-flex; gap: 32px; white-space: nowrap; animation: ticker 60s linear infinite; }
.marquee-track span { color: var(--text-muted); }
.marquee-track span[aria-hidden] { color: var(--accent); }

/* ---------------- SECTION SHELL ---------------- */
section { padding: clamp(64px, 10vw, 128px) clamp(16px, 4vw, 40px); position: relative; }
section:not(.hero):not(.final-cta) { max-width: var(--max-w); margin: 0 auto; }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-num {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 16px;
}
section h2 {
  font-size: var(--text-2xl);
  font-weight: 600; letter-spacing: -0.03em;
  max-width: 22ch;
}
section h2 .serif { font-size: 1.08em; }

/* ---------------- MARKET ---------------- */
.stat-grid {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.stat { background: var(--panel); padding: clamp(24px, 3vw, 36px); }
.stat-num {
  font-size: clamp(2.25rem, 2rem + 2vw, 3.5rem);
  color: var(--text);
  font-weight: 500; letter-spacing: -0.03em;
  margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 4px;
}
.stat-unit { font-size: 0.35em; color: var(--text-muted); font-weight: 500; margin-left: 2px; }
.stat-label { color: var(--text-muted); font-size: 0.9375rem; max-width: 32ch; }

.market-note {
  margin-top: 36px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  max-width: 66ch;
  line-height: 1.65;
  opacity: 0.9;
}
.market-note strong { color: var(--text); font-family: var(--font-body); font-weight: 600; opacity: 1; }

/* ---------------- PRODUCT ---------------- */
.feature-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .feature-grid { grid-template-columns: 1fr 1fr; } }

.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-num {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.feature-num span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent);
}
.feature-icon {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--panel-2); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--accent);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 {
  font-size: var(--text-lg); margin-bottom: 12px;
  font-weight: 600; letter-spacing: -0.02em;
}
.feature p { color: var(--text); opacity: 0.82; margin-bottom: 16px; line-height: 1.6; }
.feature-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.feature-list li {
  padding: 10px 0; border-bottom: 1px dashed var(--border);
  font-size: 0.9375rem; color: var(--text);
  padding-left: 22px; position: relative;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 12px; height: 1px; background: var(--accent);
}

/* ---------------- WHY ---------------- */
.why-grid {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 780px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-cell {
  background: var(--panel);
  padding: clamp(24px, 3vw, 36px);
  transition: background var(--dur) var(--ease);
}
.why-cell:hover { background: var(--panel-2); }
.why-cell-wide { grid-column: 1 / -1; background: linear-gradient(135deg, var(--panel-2) 0%, var(--panel) 100%); }
.why-key {
  font-size: 11px; letter-spacing: 0.14em; color: var(--accent);
  margin-bottom: 12px;
}
.why-cell h4 { font-size: var(--text-lg); font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.why-cell p { color: var(--text-muted); font-size: 0.9375rem; }

/* ---------------- FOUNDER ---------------- */
.founder {
  background: linear-gradient(180deg, transparent 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none !important;
  padding-left: 0; padding-right: 0;
}
.founder-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .founder-inner { grid-template-columns: 1fr 1fr; align-items: start; } }

.founder-copy h2 { font-size: var(--text-2xl); margin-bottom: 20px; letter-spacing: -0.03em; }
.founder-lede { color: var(--text-muted); font-size: var(--text-lg); margin-bottom: 32px; max-width: 44ch; }

.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.perks li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.perk-key {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 4px;
  border-top: 1px solid var(--accent);
  display: block; text-align: left;
  width: 34px;
}
.perks strong { display: block; margin-bottom: 4px; font-weight: 600; }
.perks p { color: var(--text-muted); font-size: 0.9375rem; }

/* Form card */
.ff-card {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-lg);
  position: sticky; top: 96px;
}
.ff-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.ff-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border); padding: 4px 8px; border-radius: var(--r-pill);
}
.ff-seat { display: inline-flex; align-items: baseline; gap: 4px; }
.ff-seat-num { color: var(--accent); font-size: 1.5rem; font-weight: 600; }
.ff-seat-lab { color: var(--text-muted); font-size: 12px; font-family: var(--font-mono); }

.ff-bar {
  height: 6px; background: var(--panel-3); border-radius: var(--r-pill);
  overflow: hidden; margin-bottom: 24px;
}
.ff-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), #a4e60a);
  box-shadow: 0 0 20px var(--accent-glow);
  transition: width 800ms var(--ease);
}

#waitlist-form label {
  display: block; font-size: 12px;
  color: var(--text-muted); font-family: var(--font-mono);
  letter-spacing: 0.06em; margin-bottom: 8px; margin-top: 16px;
  text-transform: uppercase;
}
#waitlist-form label:first-of-type { margin-top: 0; }
#waitlist-form input,
#waitlist-form select {
  width: 100%; background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text); font-size: 0.9375rem;
  padding: 12px 14px; border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
#waitlist-form input:focus,
#waitlist-form select:focus {
  outline: none; border-color: var(--accent);
  background: var(--panel);
}
#waitlist-form input.err, #waitlist-form select.err { border-color: var(--down); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--r-pill);
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--border-strong); }
.chip input { accent-color: var(--accent); }
.chip:has(input:checked) { border-color: var(--accent); color: var(--accent); }

#waitlist-form button[type='submit'] { margin-top: 20px; }
.ff-fine { margin-top: 14px; font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }

.ff-success { text-align: center; padding: 8px 0 4px; }
.ff-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(198, 255, 61, 0.12);
  color: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  border: 1px solid var(--accent);
}
.ff-success h3 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.ff-success > p { color: var(--text-muted); margin: 0 auto 20px; }
.ff-share { font-size: 0.875rem; }
.ff-share code {
  display: inline-block; padding: 6px 10px; border-radius: var(--r-sm);
  background: var(--panel-2); border: 1px solid var(--border);
  font-family: var(--font-mono); color: var(--accent);
  margin: 8px 0;
}

/* ---------------- ROADMAP ---------------- */
.road { list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}
.road-step { padding: 16px 0 28px; position: relative; }
.road-step::before {
  content: ''; position: absolute; left: -34px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--border-strong);
}
.road-step.done::before { background: var(--accent); border-color: var(--accent); }
.road-step.active::before {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(198,255,61,0.15);
}
.road-when {
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 6px;
}
.road-step h4 { font-size: var(--text-lg); font-weight: 600; margin-bottom: 6px; letter-spacing: -0.02em; }
.road-step p { color: var(--text-muted); font-size: 0.9375rem; }

/* ---------------- FAQ ---------------- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  transition: background var(--dur) var(--ease);
}
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; font-size: var(--text-lg); font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; font-family: var(--font-mono); color: var(--accent);
  font-size: 1.5rem; line-height: 1; transition: transform var(--dur) var(--ease);
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p {
  color: var(--text-muted); margin-top: 12px; max-width: 68ch;
}

/* ---------------- FINAL CTA ---------------- */
.final-cta {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 20px;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 50% 100%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.final-inner { position: relative; max-width: 800px; margin: 0 auto; }
.final-inner .sec-num { display: block; margin: 0 auto 20px; }
.final-inner h2 { font-size: var(--text-2xl); margin: 0 auto 32px; max-width: none; letter-spacing: -0.03em; }
.final-fine { margin-top: 20px; font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); }
.final-fine .mono { color: var(--accent); }

/* ---------------- FOOTER ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px clamp(16px, 4vw, 40px) 24px;
  background: var(--bg);
}
.foot-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.foot-brand p { color: var(--text-muted); font-size: 0.9375rem; margin-top: 14px; max-width: 40ch; }
.foot-tag { color: var(--text-faint); font-size: 11px; letter-spacing: 0.1em; margin-top: 12px; }
.foot-col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 16px;
}
.foot-col a {
  display: block; padding: 4px 0;
  color: var(--text-muted); font-size: 0.9375rem;
}
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  max-width: var(--max-w); margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 11px; color: var(--text-faint);
}

/* ---------------- REVEAL ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track, .marquee-track { animation: none; }
}

/* ================= PRICING ================= */
.pricing { padding: var(--section-py) 0; }
.section-sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 60ch;
  margin-top: 12px;
}

.price-grid {
  max-width: var(--max-w);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.price-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.price-card-pro {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(198,255,61,0.04) 0%, var(--panel) 60%);
}
.price-card-pro:hover { border-color: var(--accent); }

.pc-ribbon {
  position: absolute; top: -1px; left: 24px;
  transform: translateY(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
}

.pc-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pc-tier {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
}
.pc-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.pc-amt {
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.pc-per { color: var(--text-muted); font-size: 0.9375rem; }
.pc-tag { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.5; }

.pc-feat {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pc-feat li {
  display: flex;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.45;
}
.pc-feat .pc-tick {
  flex-shrink: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 2px;
}
.pc-feat .pc-off { color: var(--text-muted); }
.pc-feat .pc-off .pc-tick { color: var(--text-faint); }

.pc-fee {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}
.pc-fee-lab { color: var(--text-muted); letter-spacing: 0.03em; text-transform: uppercase; font-size: 11px; }
.pc-fee-val { color: var(--text); font-weight: 600; }
.pc-fee-cap { color: var(--text-muted); font-weight: 400; font-size: 11px; }

/* Founder banner within pricing */
.price-founder {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 32px 32px;
  background: linear-gradient(90deg, rgba(198,255,61,0.06), rgba(198,255,61,0.02));
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.pf-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.pf-h {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.25;
}
.pf-h .accent-num { color: var(--accent); font-size: 1.05em; }
.pf-sub { color: var(--text-muted); font-size: 0.9375rem; max-width: 62ch; }
.pf-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pf-mini { font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; }
.pf-mini #pf-seat { color: var(--accent); }

/* Compare table */
.price-compare {
  max-width: var(--max-w);
  margin: 56px auto 0;
}
.pc-cmp-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}
.pc-cmp-grid {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pc-cmp-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1.4fr 1.4fr;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  align-items: center;
}
.pc-cmp-row:last-child { border-bottom: 0; }
.pc-cmp-head {
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pc-cmp-us {
  background: rgba(198,255,61,0.04);
}
.pc-cmp-us strong { color: var(--accent); font-weight: 600; }
.pc-cmp-note {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 12px;
  max-width: 70ch;
  line-height: 1.5;
}
.text-muted { color: var(--text-muted); }

/* ================= VOLUME PROOF ================= */
.vol-proof {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.015);
}
.vp-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.vp-row:last-child { border-bottom: 0; padding-bottom: 0; }
.vp-row:first-child { padding-top: 0; }
.vp-num {
  color: var(--accent);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.vp-lab {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-card { min-height: auto; }
  .price-card-pro { order: -1; }
  .price-founder { grid-template-columns: 1fr; padding: 24px; }
  .pf-right { align-items: flex-start; }
  .pc-cmp-row { grid-template-columns: 1.6fr 0.7fr 0.9fr 0.9fr; gap: 8px; font-size: 0.8125rem; padding: 12px 14px; }
  .hero-sub { font-size: 1rem; }

  /* Terminal card: tighten grid so buttons never clip on narrow viewports */
  .terminal-card { max-width: 100%; }
  .tc-body { padding: 12px; }
  .tc-row {
    grid-template-columns: 1.4fr 0.7fr 0.8fr 0.9fr;
    gap: 6px; padding: 10px 4px;
    font-size: 12px;
  }
  .tc-row .mono { font-size: 12px; }
  .tc-btn { padding: 12px 8px; font-size: 11.5px; }
}

@media (max-width: 640px) {
  .site-nav { padding: 12px 16px; gap: 8px; }
  .brand-name { font-size: 1rem; }
  .brand .logo { width: 24px; height: 24px; }
  .brand-tag { font-size: 9px; padding: 2px 5px; }

  .hero { padding-top: 32px; padding-bottom: 24px; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem); line-height: 1.02; }
  .hero-sub { font-size: 1rem; line-height: 1.5; }
  .hero-lede { font-size: 1rem; line-height: 1.6; max-width: 100%; }
  .hero-form { padding: 6px; }
  .hero-form input { font-size: 16px; /* prevents iOS zoom on focus */ padding: 12px; }
  .hero-form .btn { width: 100%; padding: 14px; }
  .hero-caption { font-size: 12px; }

  /* Ticker: slower + slightly larger for narrow screens */
  .ticker { font-size: 12px; }
  .ticker-track { animation-duration: 140s; gap: 28px; padding: 12px 0; }

  /* Section spacing tightens on small screens */
  section { padding: clamp(48px, 12vw, 96px) 16px; }
  section h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .section-head { margin-bottom: 28px; }
  .sec-num { font-size: 11px; margin-bottom: 12px; }

  /* Stat grid on mobile: tighten padding */
  .stat { padding: 24px 20px; }
  .stat-num { font-size: clamp(2rem, 9vw, 2.75rem); }
  .stat-label { font-size: 0.9375rem; line-height: 1.5; }

  /* Feature cards: comfortable but not cramped */
  .feature { padding: 24px 20px; }
  .feature h3 { font-size: 1.1875rem; }
  .feature p { font-size: 0.9375rem; }
  .feature-list li { font-size: 0.9375rem; padding: 12px 0; }

  /* Market note: tighter measure */
  .market-note { font-size: 0.9375rem; margin-top: 28px; }

  /* Why cells breathe more */
  .why-cell { padding: 20px; }
  .why-cell p { font-size: 0.9375rem; line-height: 1.55; }

  /* Buttons: ensure 44px minimum tap target */
  .btn-sm { padding: 10px 14px; font-size: 0.875rem; }
  .btn { min-height: 44px; }

  .pc-cmp-row {
    display: block;
    padding: 14px 16px;
  }
  .pc-cmp-row.pc-cmp-head { display: none; }
  .pc-cmp-row > span:first-child {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 6px;
  }
  .pc-cmp-row > span:nth-child(n+2) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 0;
    font-size: 0.8125rem;
  }
  .pc-cmp-row > span:nth-child(n+2)::before {
    content: attr(data-lab);
    color: var(--text-muted);
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    margin-right: 12px;
  }
  .vp-row { grid-template-columns: 1fr; gap: 2px; }
  .price-founder { padding: 20px; }
  .pf-h { font-size: 1.25rem; }
}

/* Duplicate final rule removed — fallthrough of previous block preserved */

