:root {
  --bg: #0a0e13;
  --bg-alt: #0f151c;
  --surface: #141c25;
  --line: #223040;
  --text: #e8eef4;
  --muted: #8c9bab;
  --accent: #5eead4;
  --accent-ink: #062a24;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f8fa;
    --bg-alt: #edf1f5;
    --surface: #ffffff;
    --line: #d5dde6;
    --text: #0d1620;
    --muted: #536273;
    --accent: #0f9f8a;
    --accent-ink: #ffffff;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code { font-family: var(--mono); font-size: .88em; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mute { color: var(--muted); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .15s; }
.links a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px var(--accent); }
.btn:focus-visible, .links a:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--muted); }
.btn-small { padding: 8px 14px; font-size: .9rem; }

/* hero */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font: 500 .82rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.lead { font-size: 1.15rem; color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .9rem; }
.trust li::before { content: "✓ "; color: var(--accent); }

.terminal {
  margin: 0; background: #070a0e; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); overflow: hidden; color: #d6dee6;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #1a2430; }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3644; }
.term-bar em { font: normal .8rem var(--mono); color: #7d8b99; margin-left: 10px; }
.terminal pre { margin: 0; padding: 18px 20px 22px; font: .8rem/1.65 var(--mono); overflow-x: auto; }
.terminal .mute { color: #6b7988; }
.bad { color: #0a0e13; background: #f87171; padding: 0 4px; border-radius: 3px; }
.warn { color: #0a0e13; background: #fbbf24; padding: 0 4px; border-radius: 3px; }
.tag { color: #f87171; }
.tag-m { color: #fbbf24; }
.ai { color: #062a24; background: #5eead4; padding: 0 4px; border-radius: 3px; }

/* strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid div { padding: 28px 20px; border-left: 1px solid var(--line); }
.strip-grid div:first-child { border-left: 0; padding-left: 0; }
.strip strong { display: block; font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.strip span { color: var(--muted); font-size: .92rem; }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.kicker { font: 500 .8rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-bottom: 8px; }
.note { margin-top: 32px; color: var(--muted); font-size: .92rem; }

.cards { display: grid; gap: 20px; margin-top: 40px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.card p { color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pipeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.pipeline li { padding: 26px 24px 26px 0; border-top: 2px solid var(--line); position: relative; }
.pipeline li::before { content: ""; position: absolute; top: -2px; left: 0; width: 40%; height: 2px; background: var(--accent); }
.pipeline li + li { padding-left: 24px; }
.pipeline li + li::before { left: 24px; }
.step { font: 500 .8rem var(--mono); color: var(--muted); display: block; margin-bottom: 14px; }
.pipeline p { color: var(--muted); font-size: .95rem; }

.feature h3 { font-size: 1.4rem; }
.pill { display: inline-block; font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 99px; margin-bottom: 16px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.pill-alt { color: #d4a27f; border-color: color-mix(in srgb, #d4a27f 50%, transparent); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; font-size: .95rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.list li:first-child { padding-top: 0; }
.list span { color: var(--muted); }

.sources { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sources li { font: 500 .95rem var(--mono); padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }

.roadmap { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; max-width: 760px; }
.roadmap li { display: grid; grid-template-columns: 22px 1fr; column-gap: 18px; padding-bottom: 26px; position: relative; }
.roadmap li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); margin-top: 6px; grid-row: span 2; background: var(--bg-alt); z-index: 1; }
.roadmap li::after { content: ""; position: absolute; left: 7px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.roadmap li:last-child::after { display: none; }
.roadmap li.done::before { background: var(--accent); border-color: var(--accent); }
.roadmap span { color: var(--muted); }

.final { text-align: center; background:
  radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%); }
.final-inner { max-width: 640px; }
.final p { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .mute { max-width: 560px; }

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .cards.three { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline li:nth-child(3) { padding-left: 0; }
  .pipeline li:nth-child(3)::before { left: 0; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip-grid div { border-top: 1px solid var(--line); }
  .strip-grid div:nth-child(-n+2) { border-top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .cards.two, .pipeline { grid-template-columns: 1fr; }
  .pipeline li, .pipeline li + li { padding-left: 0; }
  .pipeline li + li::before { left: 0; }
  .terminal pre { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

.page-404 { min-height: 100vh; display: grid; place-items: center; }

.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.four h3 { font-size: 1.1rem; }
@media (max-width: 1100px) { .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards.four { grid-template-columns: 1fr; } }
