:root {
  --bg: #0d0d10;
  --surface: #131318;
  --border: #232330;
  --text: #e2e2ec;
  --text-muted: #6b6b7a;
  --amber: #f0a500;
  --amber-dim: rgba(240,165,0,0.12);
  --green: #4ade80;
  --red: #f87171;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  line-height: 1.6;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: var(--amber);
  font-style: italic;
}

.hero .lede {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 3rem;
  font-family: 'JetBrains Mono', monospace;
}

.hero-code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  max-width: 540px;
}

.hero-code pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
}

.prompt { color: var(--text-muted); }
.cmd { color: var(--green); }
.comment { color: var(--text-muted); }

/* ─── Stats ─── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--surface);
}

.stat-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat { border-right: 1px solid var(--border); padding-right: 2rem; }
.stat:last-child { border-right: none; padding-right: 0; }

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.stat-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ─── Features ─── */
.features {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header { margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; }
.subtitle { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.feature {
  background: var(--bg);
  padding: 2rem;
}

.feature-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  font-family: 'Instrument Serif', serif;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--amber);
  background: var(--amber-dim);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ─── Optimisations ─── */
.optimisations {
  padding: 4rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.optimisations .section-header { max-width: 1100px; margin: 0 auto 2.5rem; }

.opt-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.opt {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.opt-phase {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: inline-block;
  background: var(--amber-dim);
  padding: 0.2em 0.6em;
  border-radius: 4px;
}

.opt h4 {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.opt p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Benchmarks ─── */
.benchmarks {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.bench-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.bench-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.bench-row:last-child { border-bottom: none; }

.bench-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  background: var(--surface);
  text-transform: uppercase;
}

.win { color: var(--green); font-weight: 700; }

.bench-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Closing ─── */
.closing {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.closing p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.closing-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sep { color: var(--border); }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--amber);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: 1fr; }
  .bench-row { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.5rem; }
  .bench-row { grid-template-columns: 2fr 1fr; gap: 0.5rem; }
  .bench-row span:nth-child(3),
  .bench-row span:nth-child(4) { display: none; }
}