:root {
  --bg: #0d1117;
  --panel: #151b24;
  --panel-2: #101722;
  --text: #edf2f7;
  --muted: #a8b3c5;
  --line: rgba(255,255,255,.12);
  --blue: #78a6ff;
  --cyan: #5eead4;
  --orange: #f6ad55;
  --pink: #f687b3;
  --green: #9ae6b4;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(120,166,255,.20), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(94,234,212,.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

.nav {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
  background: rgba(13,17,23,.72);
  border-bottom: 1px solid var(--line);
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .88rem;
  padding: .45rem .75rem;
  border-radius: 999px;
}
.nav a:hover { background: rgba(255,255,255,.08); color: var(--text); }

.hero, .section, footer { max-width: 1180px; margin: 0 auto; padding: 5rem 1.2rem; }
.hero { padding-top: 2rem; }
.hero-grid, .split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 2rem;
  align-items: center;
}
.split.reverse { grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr); }
.split.reverse > div:first-child { order: 2; }
.split.reverse > div:last-child { order: 1; }

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 800;
}
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); letter-spacing: -.07em; max-width: 980px; }
h2 { font-size: clamp(2rem, 4.2vw, 3.7rem); letter-spacing: -.045em; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
p { color: var(--muted); font-size: 1.03rem; }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 780px; color: #d6deea; }
.section-intro { max-width: 820px; font-size: 1.12rem; }

.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .82rem 1.05rem;
  color: var(--text);
  font-weight: 800;
  background: rgba(255,255,255,.05);
}
.button.primary { background: linear-gradient(135deg, var(--blue), #8b5cf6); border: 0; }

.scorecard, .concept-card, .controller-card, .callout, .sources, .beta-section, .result-card, .card, .pipeline {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.scorecard { padding: 1.3rem; }
.scorecard h2 { font-size: 1.45rem; margin-bottom: 1rem; letter-spacing: -.025em; }
.metric { display: grid; grid-template-columns: 95px 1fr; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.metric:first-of-type { border-top: 0; }
.metric strong { font-family: "JetBrains Mono", monospace; font-size: 1.15rem; color: var(--cyan); }
.metric span { color: var(--muted); font-size: .94rem; }

.concept-card, .controller-card, .sources { padding: 1.4rem; }
.compare { display: grid; gap: .8rem; margin-top: 1.2rem; }
.compare div { padding: 1rem; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.compare span { display: block; color: var(--orange); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.compare b { display: block; margin-top: .35rem; font-size: 1.05rem; }
.note { color: #dbeafe; }

.width-depth {
  margin: 2rem 0;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  position: relative;
  overflow: hidden;
}
.gridlines {
  position: absolute; inset: 2.3rem;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  border-left: 2px solid rgba(255,255,255,.35);
  border-bottom: 2px solid rgba(255,255,255,.35);
}
.axis { position: absolute; color: var(--muted); font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; z-index: 1; }
.axis span { color: #75839a; text-transform: none; letter-spacing: 0; font-weight: 600; }
.axis.y { left: 1.1rem; top: 2rem; writing-mode: vertical-rl; transform: rotate(180deg); }
.axis.x { right: 2rem; bottom: 1rem; }
.path { position: absolute; z-index: 2; padding: .55rem .75rem; border-radius: 999px; font-weight: 900; font-size: .86rem; border: 1px solid rgba(255,255,255,.25); }
.path.self { right: 12%; top: 16%; background: rgba(246,173,85,.2); color: #ffd6a3; }
.path.one { left: 18%; bottom: 18%; background: rgba(120,166,255,.2); color: #bfd4ff; }
.path.pp { right: 30%; top: 45%; background: rgba(94,234,212,.2); color: #c4fff5; }
.path.auto { inset: 4.5rem 5rem 4rem 5rem; border-radius: 22px; display: grid; place-items: center; border: 2px dashed rgba(246,135,179,.65); background: rgba(246,135,179,.08); color: #ffd0e3; }

.cards { display: grid; gap: 1rem; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 1.1rem; box-shadow: none; }
.card p { font-size: .96rem; }

.pipeline { padding: 1.1rem; display: grid; gap: .75rem; }
.pipeline div { display: grid; grid-template-columns: 42px 1fr; gap: .8rem; align-items: center; padding: .75rem; border-radius: 18px; background: rgba(255,255,255,.05); }
.pipeline b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(94,234,212,.15); color: var(--cyan); font-family: "JetBrains Mono", monospace; }

.actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin: 1.4rem 0; }
.actions div { padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.05); }
.actions strong { display: block; color: var(--green); font-family: "JetBrains Mono", monospace; font-size: .9rem; }
.actions span { color: var(--muted); display: block; margin-top: .45rem; font-size: .92rem; }
.callout { padding: 1.2rem 1.4rem; box-shadow: none; border-color: rgba(94,234,212,.35); }

.controller-card ol { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.controller-card li { margin: .85rem 0; }
.controller-card b { color: var(--text); }

.beta-section { padding: 2rem; }
.slider-label { display: block; font-weight: 900; margin: 1rem 0 .5rem; font-size: 1.1rem; }
#beta { width: 100%; accent-color: var(--cyan); }
.beta-readout { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 1rem; }
.beta-readout div { background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; }
.beta-readout span { display: block; color: var(--muted); font-size: .86rem; }
.beta-readout b { display: block; margin-top: .35rem; color: var(--cyan); font-family: "JetBrains Mono", monospace; font-size: 1.25rem; }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.result-card { padding: 1.2rem; box-shadow: none; }
.result-card strong { color: var(--orange); }
.caveat { border-left: 3px solid var(--pink); padding-left: 1rem; color: #e9d5ff; }

.sources { display: grid; gap: .7rem; }
.sources a { color: var(--cyan); text-decoration: none; font-weight: 800; }
.sources a:hover { text-decoration: underline; }
footer { padding-top: 1rem; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > div:first-child, .split.reverse > div:last-child { order: initial; }
  .cards.four, .actions, .beta-readout, .result-grid { grid-template-columns: 1fr; }
  .width-depth { min-height: 320px; }
  .path.auto { inset: 4rem 3rem 3.6rem 3rem; }
}
