:root {
  color-scheme: dark;
  --bg: #000600;
  --black: #020402;
  --panel: rgba(0, 17, 5, 0.88);
  --panel-strong: rgba(0, 24, 7, 0.96);
  --green: #39ff88;
  --green-soft: #10c25b;
  --green-dim: #8ac79d;
  --text: #d9ffe7;
  --muted: #8ac79d;
  --quiet: #5a8c69;
  --line: rgba(57, 255, 136, 0.26);
  --line-strong: rgba(57, 255, 136, 0.56);
  --warning: #d5ff6a;
  --danger: #ffb36a;
  --max: 74rem;
  --shadow: 0 0 60px rgba(57, 255, 136, 0.11);
  --mono: "Cascadia Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--mono);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #000;
}

body {
  position: relative;
  min-width: 18rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(57, 255, 136, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 5%, rgba(11, 159, 78, 0.11), transparent 28rem),
    linear-gradient(180deg, #000 0%, var(--bg) 54%, #000 100%);
  font-size: 1rem;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(57, 255, 136, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 136, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 50;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background: repeating-linear-gradient(
    to bottom,
    rgba(57, 255, 136, 0.035),
    rgba(57, 255, 136, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: screen;
}

a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--warning); text-shadow: 0 0 12px rgba(213, 255, 106, 0.36); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--warning); outline-offset: 4px; }
img { max-width: 100%; height: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 60;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line-strong);
  color: #001405;
  background: var(--green);
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 5, 1, 0.86);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  max-width: var(--max);
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  min-width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--green);
  background: #000;
  box-shadow: inset 0 0 18px rgba(57, 255, 136, 0.14), 0 0 22px rgba(57, 255, 136, 0.1);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-links a::before { content: "./"; color: var(--quiet); }
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-color: var(--green);
  color: var(--warning);
  background: transparent;
}

main { position: relative; z-index: 1; overflow: hidden; }

.hero, .page-hero, .section, .footer-shell {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  min-height: min(50rem, calc(100vh - 4.5rem));
  grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4rem, 10vw, 8rem) 0 5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow::before { content: "> "; color: var(--quiet); }

h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--green);
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(57, 255, 136, 0.22);
}
.page-hero h1 { max-width: 16ch; font-size: clamp(2.75rem, 7vw, 5.4rem); }
h2 { margin: 0 0 1.25rem; color: var(--text); font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -0.045em; }
h3 { margin: 0 0 0.6rem; color: var(--text); font-size: 1.18rem; }

.subtitle {
  margin: 1rem 0 0;
  color: var(--warning);
  font-size: clamp(1.18rem, 2.5vw, 1.7rem);
  font-weight: 800;
}

.lede {
  max-width: 42rem;
  margin: 1.3rem 0 0;
  color: var(--text);
  font-size: clamp(1.03rem, 1.7vw, 1.18rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line-strong);
  color: var(--green);
  background: rgba(0, 0, 0, 0.64);
  box-shadow: inset 0 0 18px rgba(57, 255, 136, 0.07);
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.button.primary { border-color: var(--green); color: #001405; background: var(--green); }
.button:hover { color: var(--warning); background: rgba(57, 255, 136, 0.1); box-shadow: inset 0 0 22px rgba(57, 255, 136, 0.13), 0 0 20px rgba(57, 255, 136, 0.13); }
.button.primary:hover { color: #001405; background: var(--warning); }

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.proof-list li, .pill {
  padding: 0.34rem 0.62rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.56);
  font-size: 0.8rem;
  font-weight: 750;
}

.hero-figure, .feature-image { position: relative; margin: 0; }
.hero-figure::before {
  position: absolute;
  z-index: -1;
  inset: -1rem;
  content: "";
  border: 1px solid rgba(57, 255, 136, 0.16);
  background: rgba(57, 255, 136, 0.04);
  filter: blur(0.6rem);
}
.hero-figure img, .feature-image img {
  display: block;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: var(--shadow);
}
figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.82rem; }
figcaption::before { content: "// "; color: var(--quiet); }

.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 2.5rem; }
.page-hero .lede { max-width: 52rem; }

.section { padding: clamp(3.25rem, 7vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-intro { max-width: 49rem; margin: 0 0 2rem; color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  padding: clamp(1.15rem, 2.5vw, 1.7rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(57, 255, 136, 0.05), transparent 58%),
    var(--panel);
  box-shadow: inset 0 0 30px rgba(57, 255, 136, 0.025);
}
.card p:last-child { margin-bottom: 0; }
.card .kicker { margin: 0 0 0.5rem; color: var(--green); font-size: 0.74rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.card .kicker::before { content: "["; color: var(--quiet); }
.card .kicker::after { content: "]"; color: var(--quiet); }
.card.warning { border-color: rgba(213, 255, 106, 0.48); }
.card.success { border-color: rgba(57, 255, 136, 0.5); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.86fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }

.callout {
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(213, 255, 106, 0.38);
  border-left: 4px solid var(--warning);
  color: var(--text);
  background: rgba(213, 255, 106, 0.055);
}

.status-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.status-table th, .status-table td { padding: 0.9rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.status-table th { color: var(--green); font-size: 0.73rem; letter-spacing: 0.08em; text-transform: uppercase; }
.status-table code { word-break: break-all; }

.status { font-weight: 850; }
.status.verified { color: var(--green); }
.status.experimental { color: var(--warning); }
.status.developer { color: #8ee7ff; }

code, pre { font-family: var(--mono); }
code { color: var(--warning); }
pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: #000;
  font-size: 0.86rem;
}

.equation {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  color: var(--warning);
  background: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.toc { margin: 1.5rem 0 0; padding-left: 1.25rem; columns: 2; }
.toc li { margin: 0.3rem 0; break-inside: avoid; }

.faq-list { display: grid; gap: 0.8rem; }
details { padding: 1rem 1.15rem; border: 1px solid var(--line); background: var(--panel); }
summary { cursor: pointer; color: var(--green); font-weight: 800; }
details p:last-child { margin-bottom: 0; }

.site-footer { position: relative; z-index: 1; margin-top: 4rem; border-top: 1px solid var(--line); background: rgba(0, 5, 1, 0.78); }
.footer-shell { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0 3rem; color: var(--muted); font-size: 0.88rem; }
.footer-shell p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a::before { content: "./"; color: var(--quiet); }

@media (max-width: 54rem) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 4.5rem; }
  .hero-copy { max-width: 45rem; }
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 42rem) {
  .nav-shell { align-items: flex-start; flex-direction: column; gap: 0.45rem; }
  .nav-links { justify-content: flex-start; }
  .site-header { position: static; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .footer-shell { flex-direction: column; }
  h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .hero, .page-hero, .section, .footer-shell { width: min(calc(100% - 1.5rem), var(--max)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .actions, .site-footer, body::before, body::after { display: none; }
  body { color: #111; background: white; }
  a { color: inherit; }
  .card, .callout { border: 1px solid #999; color: #111; background: white; }
}
