:root {
  --ink: #eef4ff;
  --muted: #9baac3;
  --dim: #67758d;
  --night: #07101d;
  --night-2: #0b1626;
  --panel: #0f1c2e;
  --line: #243552;
  --cyan: #62e5ff;
  --lime: #b8f35b;
  --amber: #ffca62;
  --red: #ff808b;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(98, 229, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 229, 255, .035) 1px, transparent 1px),
    var(--night);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--cyan); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--cyan);
  color: #001019;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(98, 229, 255, .13);
  background: rgba(7, 16, 29, .88);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 760;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  box-shadow: inset 0 0 18px rgba(98,229,255,.08), 0 0 18px rgba(98,229,255,.08);
}
.brand small { color: var(--muted); font-weight: 550; }
.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links a {
  padding: .55rem .7rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { background: rgba(98,229,255,.08); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: .5rem .7rem;
}

main { overflow: hidden; }
.shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 780px); margin-inline: auto; }
.section { padding: 5.5rem 0; }
.section + .section { border-top: 1px solid rgba(36,53,82,.7); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  color: var(--cyan);
  font: 700 .76rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.04em; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); max-width: 920px; }
h2 { font-size: clamp(2rem, 4.2vw, 3.8rem); max-width: 760px; }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lede { max-width: 760px; margin-top: 1.5rem; color: #c2cee0; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.muted { color: var(--muted); }
.fine { color: var(--dim); font-size: .82rem; }
.accent { color: var(--cyan); }
.lime { color: var(--lime); }

.hero { padding: 7.2rem 0 4rem; }
.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.4rem;
  color: var(--muted);
  font: .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; background: var(--lime); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1rem;
  border: 1px solid var(--cyan);
  background: var(--cyan);
  color: #03111d;
  font-weight: 720;
  text-decoration: none;
}
.button:hover { color: #03111d; background: #a7f2ff; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { color: var(--cyan); border-color: var(--cyan); }

.decision-strip {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1.05fr auto 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  background: rgba(11,22,38,.72);
}
.decision-node { padding: 1.35rem; min-height: 170px; }
.decision-node + .decision-node { border-left: 1px solid var(--line); }
.decision-node .kicker { color: var(--dim); font: .72rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.decision-node strong { display: block; margin-top: .8rem; font-size: 1.15rem; }
.decision-node code { color: var(--cyan); }
.decision-arrow { display: grid; place-items: center; padding: .6rem; color: var(--cyan); font-family: monospace; border-inline: 1px solid var(--line); }
.prob-list { display: grid; gap: .45rem; margin-top: .8rem; }
.prob { display: grid; grid-template-columns: 78px 1fr 42px; gap: .5rem; align-items: center; font: .76rem ui-monospace, monospace; color: var(--muted); }
.bar { height: 5px; background: #1a2a42; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lime); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat { padding: 1.4rem; min-height: 150px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; color: var(--cyan); font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.05em; }
.stat span { color: var(--muted); font-size: .88rem; }
.stat small { display: block; margin-top: .65rem; color: var(--dim); font-size: .72rem; }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr); gap: 3rem; align-items: end; margin-bottom: 2.4rem; }
.section-head > p { color: var(--muted); max-width: 540px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  min-height: 260px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15,28,46,.95), rgba(9,19,33,.82));
}
.card .num { color: var(--cyan); font: .78rem ui-monospace, monospace; }
.card h3 { margin-top: 2.5rem; }
.card p { margin-top: .85rem; color: var(--muted); }
.card a { display: inline-block; margin-top: 1.2rem; color: var(--cyan); font-weight: 650; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.panel { padding: 1.6rem; border: 1px solid var(--line); background: rgba(15,28,46,.78); }
.panel h3 + p, .panel h3 + ul { margin-top: 1rem; }
.panel p, .panel li { color: var(--muted); }
.panel ul { padding-left: 1.2rem; }
.panel li + li { margin-top: .5rem; }
.callout { border-left: 3px solid var(--amber); padding: 1.1rem 1.25rem; background: rgba(255,202,98,.055); color: #d7deea; }
.callout strong { color: var(--amber); }

.article-head { padding: 6rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
.article { padding: 4rem 0 6rem; }
.article > * + * { margin-top: 1.35rem; }
.article h2 { margin-top: 4rem; font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
.article h3 { margin-top: 2.5rem; }
.article p, .article li { color: #bdc9db; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li + li { margin-top: .5rem; }
.article a { color: var(--cyan); }
.article code { color: var(--lime); font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.article .source-note { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .88rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 680px; background: rgba(11,22,38,.78); }
th, td { padding: .95rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--cyan); font: .75rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
td { color: #bdc9db; }
tr:last-child td { border-bottom: 0; }
.metric-good { color: var(--lime); font-weight: 700; }
.metric-warn { color: var(--amber); font-weight: 700; }

.flow { display: grid; gap: 0; border: 1px solid var(--line); }
.flow-step { display: grid; grid-template-columns: 68px 1fr; gap: 1.2rem; padding: 1.3rem; }
.flow-step + .flow-step { border-top: 1px solid var(--line); }
.flow-step .step { color: var(--cyan); font: .75rem ui-monospace, monospace; }
.flow-step p { margin-top: .4rem; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem; background: rgba(4,10,18,.55); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.footer-grid h2 { font-size: 1rem; letter-spacing: -.01em; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: .88rem; }
.footer-grid nav { display: grid; gap: .5rem; }
.footer-grid a { width: fit-content; }
.disclosure { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(36,53,82,.7); color: var(--dim); font-size: .8rem; }

@media (max-width: 900px) {
  .decision-strip { grid-template-columns: 1fr; }
  .decision-arrow { min-height: 42px; transform: rotate(90deg); border-block: 1px solid var(--line); border-inline: 0; }
  .decision-node + .decision-node { border-left: 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .section-head, .split { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    inset: 68px 0 auto;
    padding: .8rem 1rem 1rem;
    background: #081322;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    flex-direction: column;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem; }
  .hero { padding-top: 5.2rem; }
  .section { padding: 4rem 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat + .stat, .stat:nth-child(3), .stat:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

