:root {
  color-scheme: dark;
  --bg: #090b0a;
  --panel: #111510;
  --line: rgba(231, 241, 225, .12);
  --line-bright: rgba(231, 241, 225, .22);
  --text: #f4f7ef;
  --muted: #90988d;
  --quiet: #687066;
  --fuel: #9caa82;
  --fuel-bright: #c7cebb;
  --shell: min(1240px, calc(100vw - 48px));
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 110px; }
body { min-width: 320px; margin: 0; color: var(--text); background: var(--bg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.site-noise { position: fixed; z-index: 50; inset: 0; opacity: .05; pointer-events: none; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E"); }
.scroll-progress { position: fixed; z-index: 80; inset: 0 0 auto; height: 1px; background: rgba(255,255,255,.025); }
.scroll-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #667257, var(--fuel-bright)); transform: scaleX(var(--progress, 0)); transform-origin: left; }

.docs-nav { position: fixed; z-index: 40; top: 20px; left: 50%; width: min(820px, calc(100vw - 32px)); min-height: 62px; padding: 7px 8px 7px 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; border: 1px solid var(--line-bright); border-radius: 999px; background: rgba(14, 17, 14, .88); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 22px 60px rgba(0,0,0,.36); backdrop-filter: blur(24px) saturate(145%); transform: translateX(-50%); transition: top .4s var(--ease), background .3s ease; }
.docs-nav.is-scrolled { top: 12px; background: rgba(10, 13, 10, .95); }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; color: #12160f; background: linear-gradient(145deg, #c7cebb, #8f9d77); box-shadow: inset 0 1px rgba(255,255,255,.5), 0 8px 24px rgba(116,132,93,.12); }
.brand-mark svg { width: 21px; fill: currentColor; }
.brand strong { font-size: 13px; letter-spacing: -.02em; }
.brand small { margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.docs-nav > nav { display: flex; justify-content: center; gap: 24px; }
.docs-nav > nav a { color: #8b9388; font-size: 11px; transition: color .25s ease; }
.docs-nav > nav a:hover, .docs-nav > nav a.active { color: var(--text); }
.site-link { min-height: 46px; padding: 0 17px; display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; color: #12150f; background: linear-gradient(145deg, #d4dacb, #a8b795); box-shadow: inset 0 1px rgba(255,255,255,.65); font-size: 11px; font-weight: 700; }
.site-link svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

main { width: var(--shell); margin-inline: auto; }
.docs-hero { min-height: 810px; padding: 170px 40px 90px; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; isolation: isolate; }
.hero-grid { position: absolute; z-index: -3; inset: 0 calc((100vw - var(--shell)) / -2); opacity: .7; background-image: linear-gradient(rgba(255,255,255,.023) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.023) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 95%); }
.hero-ribbons { position: absolute; z-index: -2; right: -16vw; top: 15%; width: 70vw; height: 520px; pointer-events: none; transform: rotate(-8deg); }
.hero-ribbons span { position: absolute; right: 0; width: 100%; height: 170px; border: 1px solid rgba(173,190,146,.11); border-left: 0; border-radius: 50%; box-shadow: inset 0 0 55px rgba(141,160,111,.035); }
.hero-ribbons span:nth-child(1) { top: 0; }
.hero-ribbons span:nth-child(2) { top: 92px; right: -4%; opacity: .7; }
.hero-ribbons span:nth-child(3) { top: 185px; right: -9%; opacity: .45; }
.eyebrow { color: var(--fuel); font: 700 10px/1.2 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: .13em; }
.hero-copy h1 { margin: 24px 0 28px; font-size: clamp(62px, 6.5vw, 96px); line-height: .91; letter-spacing: -.075em; font-weight: 680; }
.hero-copy h1 em { color: var(--fuel); font-style: normal; font-weight: inherit; }
.hero-copy p { max-width: 610px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; letter-spacing: -.015em; }
.hero-route { padding: 22px; border: 1px solid var(--line-bright); border-radius: 28px; background: linear-gradient(145deg, rgba(29,35,28,.88), rgba(10,13,10,.94)); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 36px 90px rgba(0,0,0,.38); backdrop-filter: blur(18px); }
.route-title { min-height: 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.route-title span { font-size: 13px; font-weight: 700; }
.route-title strong { color: #8e9788; font-size: 9px; font-weight: 600; }
.route-flow { padding: 15px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 21px; background: rgba(4,7,4,.4); }
.route-flow > article { min-height: 150px; padding: 14px 11px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(231,241,225,.08); border-radius: 16px; background: rgba(255,255,255,.025); }
.route-flow > article svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--fuel); background: rgba(156,170,130,.08); fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.route-flow > article small { margin-top: auto; color: var(--quiet); font: 700 8px/1.2 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: .11em; }
.route-flow > article strong { margin-top: 7px; font-size: 11px; line-height: 1.3; }
.route-flow > span { color: #78836f; font-size: 16px; }

.docs-shell { padding: 80px 0 120px; display: grid; grid-template-columns: 190px minmax(0, 850px); justify-content: space-between; gap: 90px; border-top: 1px solid var(--line); }
.contents { position: sticky; top: 112px; height: max-content; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.contents > span { margin-bottom: 12px; color: #646c62; font: 700 9px/1.2 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: .13em; }
.contents a { padding-left: 13px; position: relative; color: #70786e; font-size: 12px; transition: color .25s ease, transform .25s ease; }
.contents a::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translateY(-50%); }
.contents a:hover, .contents a.active { color: var(--fuel-bright); transform: translateX(3px); }
.docs-content { min-width: 0; }
.doc-section { padding: 95px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.doc-section:first-child { padding-top: 0; }
.doc-section h2 { max-width: 730px; margin: 22px 0 28px; font-size: clamp(46px, 5vw, 68px); line-height: .96; letter-spacing: -.06em; font-weight: 640; }
.lead { max-width: 720px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.utility-card { margin-top: 48px; padding: 27px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border: 1px solid var(--line-bright); border-radius: 24px; background: radial-gradient(circle at 50% 50%, rgba(149,166,119,.08), transparent 55%), var(--panel); }
.utility-card > div { display: grid; gap: 9px; }
.utility-card span { color: var(--quiet); font: 700 8px/1.2 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: .11em; }
.utility-card strong { font-size: 15px; line-height: 1.4; }
.utility-card > svg { width: 36px; padding: 8px; border-radius: 50%; color: var(--fuel); background: rgba(156,170,130,.08); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.facts { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.facts > div { min-height: 118px; padding: 22px; display: grid; align-content: center; gap: 9px; background: rgba(255,255,255,.018); }
.facts > div + div { border-left: 1px solid var(--line); }
.facts strong { font-size: 24px; letter-spacing: -.035em; }
.facts span { color: var(--quiet); font: 650 9px/1.35 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.mechanism-list { margin-top: 52px; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.mechanism-list article { min-height: 155px; padding: 28px; display: grid; grid-template-columns: 52px 1fr; gap: 28px; align-items: start; background: linear-gradient(140deg, rgba(255,255,255,.028), rgba(255,255,255,.01)); }
.mechanism-list article + article { border-top: 1px solid var(--line); }
.mechanism-list article > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(156,170,130,.17); border-radius: 14px; color: var(--fuel); font: 700 10px/1 monospace; background: rgba(156,170,130,.055); }
.mechanism-list h3 { margin: 3px 0 11px; font-size: 18px; letter-spacing: -.025em; }
.mechanism-list p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.rule-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rule-card { padding: 29px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.02); }
.rule-card > span { color: var(--fuel); font: 700 10px/1.2 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: .12em; }
.rule-card ul { margin: 27px 0 0; padding: 0; display: grid; gap: 15px; list-style: none; }
.rule-card li { padding-left: 21px; position: relative; color: #a1a99e; font-size: 13px; line-height: 1.5; }
.rule-card li::before { position: absolute; left: 0; color: var(--fuel); }
.covered li::before { content: "✓"; }
.excluded li::before { content: "×"; color: #697066; }
.note { margin-top: 12px; padding: 20px 22px; display: flex; align-items: flex-start; gap: 15px; border: 1px solid rgba(156,170,130,.13); border-radius: 19px; background: rgba(135,150,110,.045); }
.note svg { width: 25px; flex: 0 0 auto; color: var(--fuel); fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.note strong { color: #dce2d7; }
.transparency-row { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.transparency-row span { min-height: 100px; padding: 18px; display: grid; place-items: center; color: #9ca49a; background: rgba(255,255,255,.018); font-size: 11px; text-align: center; }
.transparency-row span + span { border-left: 1px solid var(--line); }
[data-reveal] { opacity: 0; transform: translateY(25px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
[data-reveal].visible { opacity: 1; transform: translateY(0); }

footer { width: var(--shell); margin-inline: auto; padding: 60px 0 36px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 70px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 14px; }
footer > div > p { margin: 18px 0 0; color: #747c72; font-size: 13px; }
footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 30px; }
footer nav a { color: #8f978c; font-size: 12px; transition: color .2s ease; }
footer nav a:hover { color: var(--text); }

@media (max-width: 980px) {
  .docs-hero { grid-template-columns: 1fr; padding-inline: 10px; gap: 60px; }
  .hero-route { width: min(640px, 100%); }
  .docs-shell { grid-template-columns: 1fr; gap: 50px; }
  .contents { position: static; padding-bottom: 25px; display: grid; grid-template-columns: repeat(5, auto); overflow-x: auto; border-bottom: 1px solid var(--line); }
  .contents > span { display: none; }
}

@media (max-width: 700px) {
  :root { --shell: min(100% - 28px, 1240px); }
  .docs-nav { grid-template-columns: auto 1fr; }
  .docs-nav > nav { display: none; }
  .site-link { justify-self: end; width: 46px; padding: 0; justify-content: center; font-size: 0; }
  .docs-hero { min-height: auto; padding: 135px 0 80px; }
  .hero-copy h1 { font-size: clamp(51px, 15vw, 70px); }
  .hero-copy p { font-size: 15px; }
  .hero-ribbons { right: -50vw; width: 130vw; opacity: .7; }
  .hero-route { padding: 12px; border-radius: 23px; }
  .route-flow { grid-template-columns: 1fr; }
  .route-flow > article { min-height: 108px; flex-direction: row; align-items: center; gap: 15px; }
  .route-flow > article small { margin: 0 0 6px auto; }
  .route-flow > article strong { margin: 0; }
  .route-flow > span { justify-self: center; transform: rotate(90deg); }
  .docs-shell { padding-top: 45px; }
  .contents { grid-template-columns: repeat(5, max-content); }
  .doc-section { padding: 74px 0; }
  .doc-section h2 { font-size: 45px; }
  .lead { font-size: 15px; }
  .utility-card { grid-template-columns: 1fr; }
  .utility-card > svg { transform: rotate(90deg); }
  .facts, .rule-grid, .transparency-row { grid-template-columns: 1fr; }
  .facts > div + div, .transparency-row span + span { border-left: 0; border-top: 1px solid var(--line); }
  .mechanism-list article { grid-template-columns: 44px 1fr; padding: 22px; gap: 18px; }
  footer { grid-template-columns: 1fr; gap: 42px; }
}

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