:root {
  --bg: #0b0d10;
  --bg-alt: #101318;
  --bg-dark: #07080a;
  --panel: #151920;
  --line: #232833;
  --text: #e8eaed;
  --muted: #9aa3b2;
  --accent: #ffb454;
  --accent-ink: #1a1206;
  --green: #7cf0c4;
  --blue: #7fb2ff;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,13,16,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.mark { width: 26px; height: 26px; color: var(--accent); }
.links { display: flex; align-items: center; gap: 24px; font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--text); }
@media (max-width: 760px) { .links a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px; border: 1px solid var(--accent);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #ffc46f; transform: translateY(-1px); color: var(--accent-ink); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); color: var(--text); }

/* Hero */
.hero { position: relative; padding: 110px 0 120px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; max-width: 860px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 700; letter-spacing: -0.03em; }
.hero .lede { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); margin-top: 20px; max-width: 620px; }
.cta-row { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 20%, transparent 75%);
}
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--bg-dark); }
.section h2 { font-size: clamp(28px, 4vw, 42px); max-width: 820px; margin-bottom: 44px; }
.section.dark h2 { max-width: 960px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 28px; font-family: var(--mono); }
.callout {
  margin-top: 40px; padding: 22px 26px; border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 20px; font-weight: 500;
}
.callout.small { font-size: 17px; margin-top: 28px; }

/* Cards */
.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--muted); }
.card.plain { background: transparent; border-color: var(--line); }
.card.plain h3 { font-size: 26px; color: var(--accent); }
.card.person h3 { margin-bottom: 4px; }
.role { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 14px !important; }

/* Compare (data gap) */
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1.4fr; }
.compare-head { background: var(--panel); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare-head span, .compare-row span { padding: 18px 22px; }
.compare-row { border-top: 1px solid var(--line); }
.compare-row span:first-child { color: var(--muted); }
.compare-row span:last-child { border-left: 1px solid var(--line); font-weight: 500; }
.compare-head span:last-child { border-left: 1px solid var(--line); color: var(--accent); }

/* Split */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
.sub { font-size: 22px; margin-bottom: 20px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); opacity: .9;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 8.5l3 3 7-7" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 8.5l3 3 7-7" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat, linear-gradient(#000 0 0);
}
.stat-block {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 36px; text-align: center;
}
.stat-big { font-size: clamp(56px, 8vw, 88px); font-weight: 700; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.stat-label { font-size: 19px; margin-top: 12px; }
.stat-note { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Steps */
.steps { display: grid; gap: 18px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step { padding: 26px 0 0; border-top: 2px solid var(--line); }
.step h3 { font-size: 19px; margin: 12px 0 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(255,180,84,.1); padding: 4px 10px; border-radius: 6px;
}

/* Flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.flow-step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.flow-step h3 { font-size: 24px; margin: 12px 0 10px; }
.flow-step p { color: var(--muted); }
.flow-arrow { display: flex; align-items: center; font-size: 28px; color: var(--muted); }

/* Chain */
.chain { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.chain li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.chain .num { font-family: var(--mono); color: var(--muted); font-size: 13px; padding-top: 3px; }
.chain h3 { font-size: 18px; margin-bottom: 6px; }
.chain p { color: var(--muted); font-size: 14.5px; }
.status { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.status.live { color: var(--accent-ink); background: var(--accent); }
.status.next { color: var(--blue); background: rgba(127,178,255,.12); }
.status.talks { color: var(--green); background: rgba(124,240,196,.12); }
.status.later { color: var(--muted); background: rgba(154,163,178,.12); }

/* Uses */
.uses { margin: 0; }
.uses dt { font-weight: 600; font-size: 18px; margin-top: 18px; }
.uses dt:first-child { margin-top: 0; }
.uses dd { margin: 6px 0 0; color: var(--muted); }
.numbered { margin: 0; padding-left: 0; list-style: none; counter-reset: n; display: grid; gap: 14px; }
.numbered li { counter-increment: n; position: relative; padding-left: 42px; color: var(--muted); }
.numbered li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: 13px; color: var(--accent);
}

/* Stats */
.stats { display: grid; gap: 18px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stat-num { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); line-height: 1.05; margin-bottom: 14px; }
.stat h3 { font-size: 17px; margin-bottom: 8px; }
.stat p { color: var(--muted); font-size: 15px; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { text-align: left; padding: 18px 22px; vertical-align: top; }
.compare-table th { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--panel); font-weight: 500; }
.compare-table td { border-top: 1px solid var(--line); color: var(--muted); }
.compare-table td strong { color: var(--text); font-weight: 600; }
.compare-table .muted { font-size: 14px; }
.compare-table tr.us td { background: rgba(255,180,84,.08); color: var(--text); font-weight: 500; }
.compare-table tr.us td strong { color: var(--accent); }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--line); }
.tl { padding-top: 36px; position: relative; }
.tl::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tl h3 { font-size: 19px; margin: 12px 0 10px; }
.tl p { color: var(--muted); font-size: 15.5px; }

/* Contact */
.contact { text-align: center; padding: 120px 0; }
.contact h2 { margin: 0 auto 18px; }
.contact .lede { color: var(--muted); max-width: 640px; margin: 0 auto 32px; font-size: 18px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .cards.three, .steps.four, .stats.four, .timeline, .chain { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 80px; }
  .cards.three, .steps.four, .stats.four, .timeline, .chain { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-content: center; }
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row span:last-child { border-left: 0; border-top: 1px dashed var(--line); }
  .compare-row span:first-child::before { content: "Frontier model: "; font-family: var(--mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 4px; }
  .compare-row span:last-child::before { content: "GPU factory needs: "; font-family: var(--mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 4px; }
}
