/* ============================================================
   NFA Landing — Cinematic dark, electric green accent
   ============================================================ */

:root {
  --bg: #07090a;
  --bg-2: #0c0f10;
  --bg-3: #11161a;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --fg: #f3f5f4;
  --fg-dim: rgba(243,245,244,0.62);
  --fg-faint: rgba(243,245,244,0.38);
  --accent: oklch(86% 0.22 145);
  --accent-soft: oklch(86% 0.22 145 / 0.14);
  --accent-glow: oklch(86% 0.22 145 / 0.45);
  --warn: oklch(78% 0.18 60);
  --red: oklch(68% 0.21 25);

  --display: "Söhne", "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 70% -10%, oklch(86% 0.22 145 / 0.08), transparent 60%),
    radial-gradient(900px 600px at 10% 30%, oklch(60% 0.18 220 / 0.05), transparent 60%),
    var(--bg);
}

/* ---------- typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
}
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

a { color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

section { position: relative; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 48px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(36px, 5vw, 68px);
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.section-head .lede {
  max-width: 38ch;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7,9,10,0.55);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1360px; margin: 0 auto; padding: 0 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: inline-flex; align-items: center; color: var(--fg); }
.logo-mark svg { height: 30px; width: auto; display: block; color: var(--fg); fill: currentColor; }
.logo-mark svg path { fill: currentColor; }
.nav-links {
  display: flex; gap: 32px; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--fg-dim);
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: flex; gap: 10px; align-items: center;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 20px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: transparent; color: var(--fg);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); }
.btn-primary {
  background: var(--accent); color: #061108; border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: oklch(90% 0.22 145);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 8px 30px var(--accent-glow);
}
.btn-ghost { border-color: transparent; color: var(--fg-dim); }
.btn-ghost:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.btn .arr { transition: transform 0.18s; display: inline-block; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 2; }
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
  filter: saturate(1.05) contrast(1.02);
  pointer-events: none;
}
.hero-bg-scrim {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 80% at 30% 50%, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(8,10,9,0.20) 0%, rgba(8,10,9,0.05) 30%, rgba(8,10,9,0.45) 100%),
    linear-gradient(90deg, rgba(8,10,9,0.40) 0%, rgba(8,10,9,0) 50%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
}
.hero-content {
  display: block;
  max-width: 920px;
  width: 100%;
  position: relative;
}
.hero-content::before {
  content: "";
  position: absolute;
  inset: -32px -48px;
  z-index: -1;
  background: rgba(8, 10, 9, 0.18);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 30% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 100% at 30% 50%, #000 60%, transparent 100%);
}
@media (max-width: 980px) {
  .hero { padding: 120px 0 60px; min-height: auto; }
}
@media (max-width: 640px) {
  /* Drop the milk-glass frame on phones — it covers too much of the
     hero video; the hero-bg-scrim already carries text legibility. */
  .hero-content::before { display: none; }
  .hero-bg-scrim {
    background:
      linear-gradient(180deg, rgba(8,10,9,0.45) 0%, rgba(8,10,9,0.10) 35%, rgba(8,10,9,0.55) 100%),
      linear-gradient(90deg, rgba(8,10,9,0.55) 0%, rgba(8,10,9,0) 70%);
  }
}
@media (max-width: 640px) {
  .hero { padding: 96px 0 48px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 124px); letter-spacing: -0.04em; margin: 14px 0 22px; }
  .hero h1 .strike::after { height: 3px; top: 53%; }
  .hero p.sub { font-size: 16px; line-height: 1.5; margin-bottom: 28px; max-width: 38ch; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 10px 16px; font-size: 11px; letter-spacing: 0.05em; }
  .hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    margin-top: 36px;
    padding-top: 22px;
  }
  .hero-meta .stat:nth-child(3) { grid-column: 1 / -1; }
  .hero-meta .stat .num { font-size: 26px; }
  .hero-meta .stat .lab { font-size: 10px; letter-spacing: 0.08em; margin-top: 6px; }
}
@media (max-width: 380px) {
  .hero { padding: 88px 0 40px; }
  .hero h1 { font-size: 38px; }
  .hero p.sub { font-size: 15px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta .stat:nth-child(3) { grid-column: auto; }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-size: clamp(48px, 8vw, 124px);
  margin: 18px 0 28px;
  text-wrap: balance;
}
.hero h1 .strike {
  position: relative;
  color: var(--fg-faint);
  font-style: italic;
  font-weight: 400;
}
.hero h1 .strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%;
  height: 4px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  animation: strikeIn 0.8s 0.6s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes strikeIn { to { transform: scaleX(1); } }
.hero h1 .accent { color: var(--accent); }
.hero p.sub {
  max-width: 48ch;
  font-size: 18px;
  line-height: 1.45;
  color: var(--fg-dim);
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  max-width: 720px;
}

/* ---------- demo section (swarm under hero) ---------- */
.demo-section {
  padding: 120px 0 100px;
  border-top: 1px solid var(--line);
  position: relative;
}
.demo-head {
  max-width: 760px;
  margin: 0 0 56px;
}
.demo-title {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-size: clamp(36px, 5vw, 64px);
  margin: 14px 0 18px;
  text-wrap: balance;
}
.demo-sub {
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin: 0;
}
@media (max-width: 760px) {
  .demo-section { padding: 80px 0 70px; }
  .demo-head { margin-bottom: 36px; }
}
.hero-meta .stat .num {
  font-family: var(--display); font-size: 32px;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--fg);
}
.hero-meta .stat .num .pct { color: var(--accent); }
.hero-meta .stat .lab {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-faint);
  margin-top: 8px;
}

/* ---------- demo canvas: swarm + chat side-by-side ---------- */
.demo-canvas {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.chat-cell { position: relative; min-height: 0; }
.chat-cell > .chat-wrap { position: absolute; inset: 0; }
@media (max-width: 760px) {
  .demo-canvas { grid-template-columns: 1fr; }
  .chat-cell { position: static; height: 480px; }
  .chat-cell > .chat-wrap { position: relative; inset: auto; height: 100%; }
}

/* ---------- swarm canvas wrapper ---------- */
.swarm-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, oklch(86% 0.22 145 / 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow:
    0 40px 100px -30px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.02);
}
@media (max-width: 640px) {
  .swarm-wrap { aspect-ratio: 1 / 1; }
}
.swarm-wrap canvas { width: 100%; height: 100%; display: block; }
.swarm-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-dim);
}
.swarm-overlay .row { display: flex; justify-content: space-between; gap: 12px; }
.swarm-overlay .tag {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 999px;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px;
}
.swarm-output {
  position: absolute; left: 24px; bottom: 24px;
  pointer-events: none;
  z-index: 2;
  text-align: left;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
}
.swarm-output .label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-faint);
  margin-bottom: 4px;
}
.swarm-output .prob {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 28px;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.swarm-output .prob span { color: var(--accent); font-size: 0.7em; margin-left: 2px; }
.swarm-output .delta {
  font-family: var(--mono); font-size: 10px;
  color: var(--fg-faint);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.swarm-output .delta b { color: var(--accent); font-weight: 500; }

/* ---------- ticker ---------- */
.ticker-wrap {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  height: 56px;
  display: flex; align-items: center;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.ticker {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
  font-family: var(--mono); font-size: 12px;
  padding-left: 0;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--fg-dim);
}
.ticker-item .name { color: var(--fg); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; }
.ticker-item .div {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.ticker-item .div.up { color: var(--accent); background: var(--accent-soft); }
.ticker-item .div.down { color: var(--red); background: oklch(68% 0.21 25 / 0.14); }
.ticker-item .sep { color: var(--fg-faint); }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- generic section padding ---------- */
.section-pad { padding: 120px 0; }
@media (max-width: 720px) { .section-pad { padding: 80px 0; } }

/* ---------- how it works ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.step {
  background: var(--bg-2);
  padding: 36px 28px 32px;
  position: relative;
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: background 0.3s;
}
.step:hover { background: var(--bg-3); }
.step .num {
  font-family: var(--mono); font-size: 11px; color: var(--fg-faint);
  letter-spacing: 0.1em;
}
.step h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 24px; letter-spacing: -0.02em; margin: 16px 0 12px;
  line-height: 1.05;
}
.step p { color: var(--fg-dim); font-size: 14px; line-height: 1.55; margin: 0; }
.step .visual {
  margin-top: auto; padding-top: 24px;
  font-family: var(--mono); font-size: 11px;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* step visuals */
.url-line {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line);
  padding: 8px 10px; border-radius: 6px;
  color: var(--fg-dim); font-size: 11px;
  overflow: hidden;
}
.url-line .caret {
  display: inline-block; width: 7px; height: 12px; background: var(--accent);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.scenario-pill {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 6px;
  margin-bottom: 6px;
}
.scenario-pill.top { border-color: oklch(86% 0.22 145 / 0.4); background: var(--accent-soft); }
.scenario-pill .nm { color: var(--fg); font-size: 12px; }
.scenario-pill .ac { color: var(--accent); font-size: 11px; }
.scenario-pill.muted .ac { color: var(--fg-faint); }

.swarm-mini {
  position: relative; height: 100px;
  border: 1px solid var(--line); border-radius: 6px;
  background:
    radial-gradient(circle at 50% 50%, oklch(86% 0.22 145 / 0.08), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.swarm-mini .node {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
  animation: drift 3s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -4px); }
}

.result-bar {
  height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden;
  margin-bottom: 8px;
}
.result-bar .fill {
  height: 100%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  width: 0;
  animation: fill 2s 0.2s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes fill { to { width: var(--w, 67%); } }

/* ---------- marketplace ---------- */
.market-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .market-grid { grid-template-columns: 1fr; } }

.scenario-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
  overflow: hidden;
}
.scenario-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  background: var(--bg-3);
}
.scenario-card .top-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 18px;
}
.scenario-card .cat {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-faint);
}
.scenario-card .badge {
  font-family: var(--mono); font-size: 10px;
  background: var(--accent-soft); color: var(--accent);
  padding: 3px 8px; border-radius: 4px;
  border: 1px solid oklch(86% 0.22 145 / 0.3);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.scenario-card h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 20px; line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 0 14px;
  text-wrap: balance;
}
.scenario-card .author {
  font-family: var(--mono); font-size: 11px; color: var(--fg-dim);
  margin-bottom: 22px;
}
.scenario-card .author b { color: var(--fg); font-weight: 500; }
.scenario-card .stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.scenario-card .stat .v {
  font-family: var(--display); font-size: 22px;
  letter-spacing: -0.02em; line-height: 1;
}
.scenario-card .stat .v.acc { color: var(--accent); }
.scenario-card .stat .l {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-faint);
  margin-top: 6px;
}

/* ---------- split (traders vs authors) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--line);
  gap: 1px;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split-side {
  background: var(--bg-2);
  padding: 56px 48px;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 540px;
}
.split-side.authors {
  background:
    radial-gradient(600px 300px at 80% 0%, oklch(86% 0.22 145 / 0.08), transparent),
    var(--bg-2);
}
.split-side .role {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-faint);
}
.split-side .role b { color: var(--accent); font-weight: 500; }
.split-side h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1;
  margin: 16px 0 20px; text-wrap: balance;
}
.split-side .desc {
  color: var(--fg-dim); font-size: 15px; line-height: 1.55;
  margin-bottom: 32px; max-width: 38ch;
}
.split-side ul {
  list-style: none; padding: 0; margin: 0 0 32px;
}
.split-side ul li {
  font-size: 14px; line-height: 1.5; color: var(--fg);
  padding: 14px 0; border-top: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start;
}
.split-side ul li:last-child { border-bottom: 1px solid var(--line); }
.split-side ul li .num {
  font-family: var(--mono); font-size: 11px; color: var(--fg-faint);
  min-width: 28px;
}
.split-side .cta-row { margin-top: auto; padding-top: 20px; }
@media (max-width: 720px) {
  .split-side { padding: 36px 24px; min-height: auto; }
}

/* ---------- mcp / dev ---------- */
.mcp {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 64px; align-items: center;
}
@media (max-width: 880px) { .mcp { grid-template-columns: 1fr; gap: 32px; } }
.code-block {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--mono); font-size: 13px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.code-block .head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--fg-faint); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.code-block .head .dots { display: flex; gap: 6px; }
.code-block .head .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.code-block .body {
  padding: 24px; line-height: 1.7; overflow-x: auto;
  white-space: pre;
}
.code-block .body .com { color: var(--fg-faint); }
.code-block .body .kw { color: oklch(78% 0.18 280); }
.code-block .body .fn { color: var(--accent); }
.code-block .body .str { color: oklch(78% 0.18 60); }
.code-block .body .num { color: oklch(78% 0.18 200); }

/* ---------- roadmap ---------- */
.roadmap {
  position: relative;
  border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
}
.phase {
  display: grid;
  grid-template-columns: 200px 180px 1fr auto;
  gap: 32px; align-items: center;
  padding: 28px 36px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.phase:last-child { border-bottom: none; }
.phase:hover { background: var(--bg-3); }
.phase .ph {
  font-family: var(--display); font-size: 36px;
  letter-spacing: -0.03em; line-height: 1; color: var(--fg-faint);
}
.phase.active .ph { color: var(--accent); }
.phase .nm {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-dim);
}
.phase .desc { font-size: 15px; color: var(--fg); line-height: 1.5; }
.phase .status {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
  border: 1px solid var(--line-2); color: var(--fg-dim);
  white-space: nowrap;
}
.phase .status.live { color: var(--warn); border-color: oklch(78% 0.18 60 / 0.5); background: oklch(78% 0.18 60 / 0.08); }
.phase .status.soon { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.phase .status.next { color: var(--warn); border-color: oklch(78% 0.18 60 / 0.5); }
@media (max-width: 880px) {
  .phase { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .phase .ph { font-size: 28px; }
}

/* ---------- faq ---------- */
.faq-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--line); gap: 1px;
  overflow: hidden;
}
@media (max-width: 880px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq {
  background: var(--bg-2);
  padding: 28px 32px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.faq:hover { background: var(--bg-3); }
.faq .q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--display); font-size: 18px; letter-spacing: -0.01em;
  font-weight: 500;
}
.faq .q .plus {
  font-family: var(--mono); font-size: 18px; color: var(--fg-faint);
  transition: transform 0.3s;
}
.faq.open .q .plus { transform: rotate(45deg); color: var(--accent); }
.faq .a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.2,.8,.2,1);
  color: var(--fg-dim); font-size: 14px; line-height: 1.55;
}
.faq.open .a { max-height: 400px; padding-top: 16px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  position: relative;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-faint);
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 6px 0; }
.footer ul li a {
  font-size: 14px; color: var(--fg-dim);
  transition: color 0.15s;
}
.footer ul li a:hover { color: var(--fg); }
.footer .brand-blurb {
  font-size: 14px; color: var(--fg-dim); line-height: 1.55;
  max-width: 32ch;
  margin: 18px 0 0;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-faint);
  letter-spacing: 0.08em;
}

.huge-mark { display: none; }
.footer-logo-mark svg { height: 36px; }

/* ---------- waitlist ---------- */
.waitlist {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 64px 48px;
  background:
    radial-gradient(600px 300px at 50% 0%, oklch(86% 0.22 145 / 0.1), transparent),
    var(--bg-2);
  text-align: center;
  overflow: hidden;
}
.waitlist::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, oklch(86% 0.22 145 / 0.04), transparent 70%);
  pointer-events: none;
}
.waitlist h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(36px, 6vw, 72px); letter-spacing: -0.035em; line-height: 0.95;
  margin: 0 0 16px; text-wrap: balance;
}
.waitlist p {
  color: var(--fg-dim); max-width: 48ch; margin: 0 auto 32px;
  font-size: 16px; line-height: 1.5;
}
.waitlist .form {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px; background: var(--bg);
}
.waitlist .form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.waitlist input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--fg); font-family: var(--mono); font-size: 14px;
  padding: 8px 16px;
}
.waitlist input::placeholder { color: var(--fg-faint); }
@media (max-width: 720px) { .waitlist { padding: 40px 24px; } }
@media (max-width: 520px) {
  .waitlist .form {
    flex-direction: column;
    border-radius: 18px;
    padding: 8px;
    gap: 6px;
    max-width: 360px;
  }
  .waitlist .form input {
    text-align: center;
    padding: 12px 14px;
    width: 100%;
  }
  .waitlist .form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
}

/* ---------- divider ---------- */
.row-rule {
  border: 0; height: 1px; background: var(--line); margin: 0;
}

/* ---------- selection ---------- */
::selection { background: var(--accent); color: #061108; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ---------- utility ---------- */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s, transform 0.7s;
  transition-timing-function: cubic-bezier(.2,.8,.2,1);
}
.fade-up.in { opacity: 1; transform: none; }


/* ---------- agent chat (swarm companion) ---------- */
.chat-wrap {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.02);
  overflow: hidden;
  height: 100%;
  min-height: 0;
}
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-faint);
}
.chat-pulse { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.chat-pulse .dot.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow);
  animation: chatPulse 1.6s infinite;
}
@keyframes chatPulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.chat-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.chat-stream::-webkit-scrollbar { width: 4px; }
.chat-stream::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
.chat-msg {
  border-left: 2px solid var(--line-2);
  padding: 2px 0 2px 12px;
  opacity: 1;
  transition: opacity 280ms ease-out, transform 280ms cubic-bezier(.2,.8,.2,1);
}
.chat-msg.entering { opacity: 0; transform: translateY(6px); }
.chat-msg.tone-alert  { border-left-color: var(--accent); }
.chat-msg.tone-data   { border-left-color: rgba(255,255,255,0.35); }
.chat-msg.tone-warn   { border-left-color: oklch(82% 0.16 75); }
.chat-msg.tone-calm   { border-left-color: rgba(120,180,150,0.55); }
.chat-msg.tone-neutral{ border-left-color: var(--line-2); }
.chat-meta {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 4px;
}
.chat-role { color: var(--fg); font-weight: 500; }
.chat-msg.tone-alert .chat-role { color: var(--accent); }
.chat-msg.tone-warn  .chat-role { color: oklch(86% 0.16 75); }
.chat-sep  { color: var(--fg-faint); }
.chat-time { color: var(--fg-faint); font-weight: 400; }
.chat-body {
  font-family: var(--body, var(--display, system-ui));
  font-size: 13px; line-height: 1.5;
  color: var(--fg-dim);
  text-wrap: pretty;
}
.chat-foot {
  display: flex; justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-faint);
}
.chat-foot-r { color: var(--accent); }

@media (max-width: 980px) {
  .chat-wrap { min-height: 420px; max-height: 520px; }
}

.chat-caret {
  display: inline-block;
  margin-left: 1px;
  color: var(--accent);
  font-weight: 500;
  animation: chatCaret 900ms steps(2, end) infinite;
}
@keyframes chatCaret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.link-soon {
  color: var(--fg-faint);
  cursor: not-allowed;
  display: inline-flex; align-items: center; gap: 8px;
}
.link-soon em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid oklch(85% 0.22 145 / 0.4);
  background: var(--accent-soft);
  padding: 2px 6px; border-radius: 999px;
}
