@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&family=Silkscreen:wght@400;700&display=swap");

:root {
  --ink: #0b0d0c;
  --ink-raised: #111511;
  --paper: #f2f0e8;
  --muted: rgba(242, 240, 232, .66);
  --line: rgba(242, 240, 232, .16);
  --green: #78cc58;
  --green-dark: #23591f;
  --cyan: #69e7f1;
  --magenta: #ff3d9a;
  --yellow: #ffe17d;
  --display: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); color: var(--paper); font-family: var(--display); }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--paper); }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
pre, code { font-family: var(--mono); }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
[hidden] { display: none !important; }

.page-noise {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(255,255,255,.8) .65px, transparent 1px, transparent 4px);
  background-size: 5px 5px;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 12, .88);
  backdrop-filter: blur(18px) saturate(130%);
}
.header-shell {
  width: min(100%, var(--max));
  min-height: 76px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { width: 36px; height: 36px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: .92rem; }
.brand-copy small { margin-top: 5px; color: var(--muted); font: 500 .59rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.plain-link, .version-control {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: transparent;
  font: 600 .67rem/1 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}
.version-control { border-color: rgba(105, 231, 241, .5); color: var(--cyan); }

.download-card {
  max-width: 800px;
  margin: 24px 0;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(120, 204, 88, .42);
  background: rgba(120, 204, 88, .06);
}
.download-detail { min-width: 0; }
.download-detail strong { display: block; margin-bottom: 7px; font-size: .96rem; overflow-wrap: anywhere; }
.download-detail span { color: var(--muted); font: 500 .68rem/1.55 var(--mono); }
.download-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 13px 16px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--ink);
  font: 700 .7rem/1 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.download-button:hover { background: #94dc78; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(125deg, rgba(120, 204, 88, .12), transparent 42%),
    linear-gradient(305deg, rgba(105, 231, 241, .1), transparent 44%),
    #0d100e;
}
.hero::after {
  content: attr(data-mark);
  position: absolute;
  right: -2vw;
  bottom: -4vw;
  color: rgba(255,255,255,.025);
  font: 700 clamp(8rem, 23vw, 22rem)/.75 var(--pixel);
  pointer-events: none;
}
.hero-shell { width: min(100%, var(--max)); margin: 0 auto; padding: clamp(68px, 10vw, 132px) var(--gutter) clamp(54px, 8vw, 100px); }
.eyebrow { margin-bottom: 18px; color: var(--green); font: 600 .72rem/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 920px; margin-bottom: 24px; font-size: clamp(3rem, 8vw, 7.8rem); line-height: .9; letter-spacing: -.07em; }
h1[tabindex="-1"]:focus { outline: 0; }
.lede { max-width: 740px; margin-bottom: 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.22rem); line-height: 1.72; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-meta span { padding: 8px 10px; border: 1px solid var(--line); color: rgba(242,240,232,.78); font: 500 .64rem/1 var(--mono); text-transform: uppercase; }
.hero-meta .current-version { border-color: rgba(120,204,88,.5); color: var(--green); }

.docs-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(34px, 6vw, 86px);
}
.docs-nav { position: sticky; top: 104px; align-self: start; padding-top: 56px; }
.docs-nav strong { display: block; margin-bottom: 14px; color: var(--muted); font: 600 .62rem/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.docs-nav a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(242,240,232,.08); color: rgba(242,240,232,.7); font-size: .87rem; }
.docs-nav a:hover { color: var(--cyan); }
.docs-content { min-width: 0; }
.doc-section { padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 82px; }
.doc-section:last-child { border-bottom: 0; }
.section-kicker { margin-bottom: 13px; color: var(--cyan); font: 600 .65rem/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
h2 { max-width: 780px; margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: .98; letter-spacing: -.045em; }
h3 { margin-bottom: 12px; font-size: 1.05rem; }
.doc-section > p, .version-panel > p { max-width: 800px; color: var(--muted); line-height: 1.75; }
.note { margin: 24px 0; padding: 18px 20px; border-left: 3px solid var(--yellow); background: rgba(255,225,125,.06); color: rgba(242,240,232,.82); line-height: 1.65; }
.note strong { color: var(--yellow); }
.note.is-cyan { border-color: var(--cyan); background: rgba(105,231,241,.05); }
.note.is-cyan strong { color: var(--cyan); }

.step-grid, .command-grid, .fact-grid { display: grid; gap: 1px; margin-top: 28px; background: var(--line); border: 1px solid var(--line); }
.step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.command-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step, .command-card, .fact { min-width: 0; padding: 22px; background: var(--ink-raised); }
.step b, .fact b { display: block; margin-bottom: 10px; color: var(--green); font: 600 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.step p, .fact p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.command-card code { display: block; color: var(--cyan); font-size: .78rem; line-height: 1.6; overflow-wrap: anywhere; }
.command-card p { margin: 10px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.code-block { position: relative; margin: 24px 0; padding: 22px; border: 1px solid var(--line); background: #080a09; color: #d5f7dc; font-size: .79rem; line-height: 1.7; }
.path { display: inline-block; margin: 4px 0 10px; color: var(--magenta); font: 500 .76rem/1.55 var(--mono); overflow-wrap: anywhere; }
.tight-list { max-width: 840px; margin-bottom: 0; padding-left: 20px; color: var(--muted); }
.tight-list li { margin: 9px 0; line-height: 1.65; }
.tight-list strong { color: var(--paper); }

.version-gate {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 6, .92);
  backdrop-filter: blur(16px);
}
.version-card {
  width: min(100%, 760px);
  border: 1px solid rgba(242,240,232,.22);
  background:
    linear-gradient(135deg, rgba(120,204,88,.1), transparent 48%),
    #0e120f;
  box-shadow: 0 28px 90px rgba(0,0,0,.5);
}
.version-card-head { padding: clamp(28px, 6vw, 56px); border-bottom: 1px solid var(--line); }
.version-card-head .eyebrow { margin-bottom: 14px; }
.version-card h2 { max-width: 560px; margin: 0; font-size: clamp(2.1rem, 6vw, 4.3rem); }
.version-card-head p:last-child { margin: 18px 0 0; color: var(--muted); line-height: 1.65; }
.version-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.version-option { min-height: 94px; padding: 18px 22px; border: 0; background: var(--ink-raised); text-align: left; cursor: pointer; }
.version-option:hover { background: #172018; }
.version-option strong { display: block; color: var(--paper); font-size: .92rem; }
.version-option span { display: block; margin-top: 7px; color: var(--green); font: 500 .64rem/1.4 var(--mono); text-transform: uppercase; }
.version-option:last-child:nth-child(odd) { grid-column: 1 / -1; }

.site-footer { border-top: 1px solid var(--line); }
.footer-shell { width: min(100%, var(--max)); margin: 0 auto; padding: 32px var(--gutter); display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font: 500 .65rem/1.5 var(--mono); }

@media (max-width: 900px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; gap: 8px; overflow-x: auto; padding-top: 28px; }
  .docs-nav strong { display: none; }
  .docs-nav a { flex: 0 0 auto; padding: 9px 11px; border: 1px solid var(--line); }
  .doc-section { padding: 48px 0; }
  .step-grid, .fact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .brand-copy small, .plain-link { display: none; }
  .header-shell { min-height: 66px; }
  .command-grid, .version-options { grid-template-columns: 1fr; }
  .version-option:last-child:nth-child(odd) { grid-column: auto; }
  .hero-shell { padding-top: 58px; }
  .footer-shell { flex-direction: column; }
  .download-card { align-items: stretch; flex-direction: column; }
  .download-button { text-align: center; }
}

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