:root {
  --bg: #08111f;
  --surface: #0f1d31;
  --surface-2: #152741;
  --text: #eaf1f8;
  --muted: #9fb0c3;
  --accent: #72d6c9;
  --accent-2: #91b8ff;
  --border: rgba(255,255,255,.1);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.hero {
  min-height: 70vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(114,214,201,.18), transparent 30%),
    radial-gradient(circle at 15% 30%, rgba(145,184,255,.18), transparent 28%),
    linear-gradient(180deg, #0b1627 0%, #08111f 100%);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.repo-link { text-decoration: none; color: var(--muted); border: 1px solid var(--border); padding: 9px 14px; border-radius: 999px; }
.repo-link:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.hero-copy { padding: 80px 0 100px; max-width: 930px; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.03em; margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); margin-bottom: 24px; max-width: 1000px; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 820px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.badges span { background: rgba(255,255,255,.06); border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; color: #dce7f2; }
.section { padding: 88px 0; }
.alt { background: #0b1627; border-block: 1px solid var(--border); }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.pipeline { display: grid; grid-template-columns: repeat(11, auto); align-items: center; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.stage { min-width: 130px; padding: 20px; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; }
.stage strong, .stage span { display: block; }
.stage span { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.arrow { color: var(--accent); font-size: 1.5rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.metric .value { display: block; font-size: 2.35rem; font-weight: 850; letter-spacing: -.04em; }
.metric .label { color: var(--muted); }
.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; min-height: 420px; }
.chart-card p { color: var(--muted); min-height: 52px; }
.chart-card canvas { max-height: 285px; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.split p { color: var(--muted); }
.note { padding: 16px 18px; background: rgba(114,214,201,.08); border-left: 3px solid var(--accent); border-radius: 8px; }
.model-grid { display: grid; gap: 16px; }
.model { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.model span { display: block; color: var(--muted); }
.model strong { display: block; font-size: 2rem; margin-top: 6px; }
.callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.callouts article { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.callouts p { color: var(--muted); }
code { color: #c6fff6; background: rgba(114,214,201,.08); padding: .12em .35em; border-radius: 5px; }
.cta { background: linear-gradient(135deg, #102540, #0b1d2d); border-top: 1px solid var(--border); }
.cta p { color: var(--muted); max-width: 820px; }
.button { display: inline-block; margin-top: 12px; background: var(--accent); color: #05131a; text-decoration: none; font-weight: 800; padding: 12px 18px; border-radius: 10px; }
footer { border-top: 1px solid var(--border); color: var(--muted); padding: 28px 0 40px; }

@media (max-width: 850px) {
  .metric-grid, .chart-grid, .callouts, .split { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 55px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .nav { align-items: flex-start; gap: 14px; }
  .brand { max-width: 180px; }
  .metric-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
