:root {
  --bg: #f8faf9;
  --bg-alt: #eef3f0;
  --surface: #ffffff;
  --surface-2: #f6f9f7;
  --ink: #12201b;
  --muted: #55655e;
  --faint: #8a9993;
  --line: #dbe4df;
  --line-strong: #c6d3cc;
  --accent: #126044;
  --accent-2: #1b8a5f;
  --accent-ink: #ffffff;
  --accent-soft: #e2efe8;
  --glow: rgba(27, 138, 95, .16);
  --warn: #8a5a00;
  --warn-soft: #fbf3e2;
  --pass: #16794f;
  --skip: #64748b;
  --fail: #b42318;
  --term-bg: #0b1310;
  --term-bar: #111b17;
  --term-line: #1c2b25;
  --term-ink: #b9d6c6;
  --term-hi: #5ee6a0;
  --term-dim: #4c8f6e;
  --term-warn: #f0c35a;
  --shadow-sm: 0 1px 2px rgba(16, 40, 30, .05);
  --shadow: 0 1px 2px rgba(16, 40, 30, .05), 0 10px 30px -12px rgba(16, 40, 30, .14);
  --shadow-lg: 0 30px 60px -20px rgba(5, 30, 18, .35);
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1210;
    --bg-alt: #101815;
    --surface: #141d1a;
    --surface-2: #18231f;
    --ink: #e3ebe7;
    --muted: #9aaba4;
    --faint: #6f817a;
    --line: #233029;
    --line-strong: #2f3f38;
    --accent: #3fbf86;
    --accent-2: #5ee6a0;
    --accent-ink: #06130d;
    --accent-soft: #15302a;
    --glow: rgba(63, 191, 134, .14);
    --warn: #e7b85a;
    --warn-soft: #272112;
    --pass: #4cc98c;
    --skip: #94a3b8;
    --fail: #f97066;
    --term-bg: #070c0a;
    --term-bar: #0d1512;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1210;
  --bg-alt: #101815;
  --surface: #141d1a;
  --surface-2: #18231f;
  --ink: #e3ebe7;
  --muted: #9aaba4;
  --faint: #6f817a;
  --line: #233029;
  --line-strong: #2f3f38;
  --accent: #3fbf86;
  --accent-2: #5ee6a0;
  --accent-ink: #06130d;
  --accent-soft: #15302a;
  --glow: rgba(63, 191, 134, .14);
  --warn: #e7b85a;
  --warn-soft: #272112;
  --pass: #4cc98c;
  --skip: #94a3b8;
  --fail: #f97066;
  --term-bg: #070c0a;
  --term-bar: #0d1512;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
code, kbd { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--surface); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.wordmark img { border-radius: 7px; box-shadow: 0 2px 8px -2px var(--glow); }
#site-nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
#site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 12px; border-radius: 8px; min-height: 40px; display: inline-flex; align-items: center; transition: color .15s, background .15s; }
#site-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.topbar-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.gh-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 9px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 650; font-size: 14px; }
.gh-btn:hover { opacity: .88; }
.menu-btn { display: none; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* Hero */
.hero { position: relative; padding: 84px 0 56px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 30%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(90% 80% at 50% 20%, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(90% 80% at 50% 20%, #000 35%, transparent 85%);
  opacity: .9;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.4 var(--mono); color: var(--accent); letter-spacing: .03em; margin-bottom: 22px; padding: 6px 12px 6px 10px; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 999px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 var(--accent-2); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.kicker { font: 600 13px/1.4 var(--mono); color: var(--accent); letter-spacing: .04em; margin-bottom: 12px; }
h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 820; letter-spacing: -.04em; line-height: 1.12; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); margin: 24px 0 32px; max-width: 32em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px; border-radius: 10px;
  font-weight: 650; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, filter .15s, border-color .15s;
}
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 20px -8px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 26px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .i { width: 15px; height: 15px; color: var(--accent); stroke-width: 2.6; }

.terminal { position: relative; margin: 0; background: var(--term-bg); border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--term-line); overflow: hidden; }
.terminal::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--term-bar); border-bottom: 1px solid var(--term-line); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c3c35; }
.terminal-bar span:nth-child(1) { background: #e5574b; }
.terminal-bar span:nth-child(2) { background: #e3b341; }
.terminal-bar span:nth-child(3) { background: #3fbf86; }
.terminal-bar b { margin-left: 10px; font: 500 12px var(--mono); color: #6f8a7d; }
.terminal pre { margin: 0; padding: 20px 20px 22px; color: var(--term-ink); font: 12.5px/1.65 var(--mono); overflow-x: auto; }
.t-hi { color: var(--term-hi); font-weight: 700; }
.t-dim { color: var(--term-dim); }
.t-sel { color: #06130d; background: var(--term-hi); }
.t-warn { color: var(--term-warn); }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--term-hi); vertical-align: text-bottom; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal figcaption { font-size: 12px; color: #7f998c; padding: 0 20px 16px; }

.stats { margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 85%, transparent); box-shadow: var(--shadow); overflow: hidden; }
.stats > div { padding: 22px 26px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.stats dd { margin: 4px 0 2px; font: 800 34px/1.15 var(--mono); letter-spacing: -.03em; color: var(--ink); }
.stats dd small { font: 600 14px system-ui, sans-serif; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stats p { margin: 0; font-size: 13px; color: var(--faint); }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 780; letter-spacing: -.025em; }
.section-head p:last-child { color: var(--muted); margin: 14px 0 0; font-size: 16.5px; }
.sub-title { font-size: 19px; margin: 56px 0 18px; }

/* Download */
.status { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); margin-bottom: 24px; }
.status p { margin: 0; font-size: 15px; }
.status .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); margin-top: 8px; }
.status.ready { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.status.ready .dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edition { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, transform .2s; }
.edition::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.edition-mem::before { background: linear-gradient(90deg, #2b6cb0, #4fa3e0); }
.edition:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.edition-head { display: flex; align-items: center; gap: 12px; }
.edition-head h3 { font-size: 23px; letter-spacing: -.02em; }
.tag { font: 700 11px/1 var(--mono); letter-spacing: .08em; color: var(--accent); background: var(--accent-soft); padding: 6px 8px; border-radius: 6px; }
.edition-mem .tag { color: #2b6cb0; background: color-mix(in srgb, #2b6cb0 12%, transparent); }
:root[data-theme="dark"] .edition-mem .tag { color: #7cc0f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .edition-mem .tag { color: #7cc0f0; } }
.edition-sub { color: var(--muted); margin: 8px 0 20px; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; font-size: 15px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.32em + 5px); width: 6px; height: 3.5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.asset { margin-top: auto; padding-top: 22px; border-top: 1px dashed var(--line-strong); }
.asset p { margin: 0; font-size: 14px; }
.asset .btn { width: 100%; }
.metadata { color: var(--muted); font-size: 13px; margin: 12px 0 6px !important; }
.checksum-row { display: flex; gap: 8px; align-items: flex-start; }
.checksum { flex: 1; display: block; font: 12px/1.6 var(--mono); color: var(--muted); overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; }
.copy { flex: none; font: 600 12px system-ui, sans-serif; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; min-height: 36px; }
.copy:hover { border-color: var(--accent); }
.more-downloads { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 20px; }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; background: var(--surface-2); }
.panel h3 { font-size: 17px; margin-bottom: 8px; }
.panel p { font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.pills a { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); min-height: 38px; display: inline-flex; align-items: center; }
.pills a:hover { border-color: var(--accent); color: var(--accent); }
.text-link { display: inline-block; font-size: 14px; font-weight: 600; margin-right: 18px; }
.release-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.release-row a { font-family: var(--mono); font-weight: 600; }
.release-row span { color: var(--muted); font-size: 13px; }
#release-history { margin-bottom: 14px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
.steps li { position: relative; counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px 24px; box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); font: 700 14px var(--mono); margin-bottom: 18px; box-shadow: 0 6px 14px -6px var(--accent); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 45px; right: -17px; width: 18px; height: 2px; background: var(--line-strong); }
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 14.5px; color: var(--muted); margin: 0; }
.steps strong { color: var(--ink); }
.warn { margin: 24px 0 0; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent); border-left: 4px solid var(--warn); background: var(--warn-soft); border-radius: 10px; font-size: 14.5px; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 24px; }
.link-row a { font-weight: 600; font-size: 15px; text-decoration: none; }
.link-row a:hover { text-decoration: underline; }
.link-row a::after { content: " →"; }

/* Output */
.output-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.output-grid .section-head { margin-bottom: 28px; }
.output-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.output-points li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.output-points .i { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.output-points b { display: block; font-size: 15.5px; }
.output-points span { font-size: 14px; color: var(--muted); }
.tree { margin: 0; background: var(--term-bg); border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--term-line); overflow: hidden; }
.tree-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--term-bar); border-bottom: 1px solid var(--term-line); color: #e3b341; }
.tree-bar .i { width: 16px; height: 16px; }
.tree-bar b { font: 500 12px var(--mono); color: #8fb3a2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree pre { margin: 0; padding: 18px 20px; color: var(--term-ink); font: 12.5px/1.75 var(--mono); overflow-x: auto; }
.t-ok { color: var(--term-hi); font-weight: 700; }
.t-muted { color: #5d7a6c; }
.t-badge { display: inline-block; font: 700 10.5px/1 var(--mono); padding: 3px 6px; border-radius: 4px; color: #06130d; background: var(--term-hi); vertical-align: 1px; }
.t-badge.muted { color: #c7d8cf; background: #2a3a33; }
.tree figcaption { font-size: 12px; color: #7f998c; padding: 0 20px 16px; }

/* Tests */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: phase; }
.phases li { position: relative; counter-increment: phase; padding: 24px 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.phases li::before { content: "0" counter(phase); position: absolute; right: 18px; top: 10px; font: 800 44px/1 var(--mono); color: var(--accent); opacity: .1; letter-spacing: -.04em; }
.phases li:nth-child(5) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.phases b { display: block; font-size: 18px; margin-bottom: 8px; }
.phases span { font-size: 14.5px; color: var(--muted); }
.scopes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scope { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.scope kbd { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-strong); border-bottom-width: 3px; font-weight: 700; font-size: 15px; background: var(--surface-2); color: var(--ink); }
.scope b { display: block; font-size: 15px; }
.scope span { font-size: 13px; color: var(--muted); }
.scope.main { border-color: var(--accent); background: var(--accent-soft); }
.scope.main kbd { background: var(--accent); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 70%, #000); }
.note { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }

/* Principles */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: border-color .2s, box-shadow .2s; }
.cards article:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card-icon .i { width: 21px; height: 21px; }
.cards h3 { font-size: 17px; margin-bottom: 8px; }
.cards p { font-size: 14.5px; color: var(--muted); margin: 0; }
.verdicts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.verdicts i { font: 700 11px/1 var(--mono); font-style: normal; padding: 5px 8px; border-radius: 5px; letter-spacing: .04em; }
.v-pass { color: var(--pass); background: color-mix(in srgb, var(--pass) 14%, transparent); }
.v-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.v-skip { color: var(--skip); background: color-mix(in srgb, var(--skip) 16%, transparent); }
.v-fail { color: var(--fail); background: color-mix(in srgb, var(--fail) 14%, transparent); }

/* Docs */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.docs a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .15s, transform .15s, box-shadow .15s; }
.docs a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.docs b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.docs b::after { content: " ↗"; color: var(--accent); font-weight: 500; }
.docs span { font-size: 13px; color: var(--muted); }

/* License */
.license-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.license h2 { font-size: 24px; margin-bottom: 16px; }
.license-grid p { font-size: 14.5px; color: var(--muted); }
.attribution { border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 22px 24px; }
.attribution p[lang="en"] { font-size: 12.5px; font-family: var(--mono); line-height: 1.6; color: var(--muted); }
.attribution p:last-child { margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; min-height: 112px; flex-wrap: wrap; padding: 24px 0; }
.footer-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand p { margin: 0; font-size: 13.5px; color: var(--muted); }
.footer .wordmark { font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 1020px) {
  .hero-grid, .output-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps, .docs, .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .steps li:not(:last-child)::after { display: none; }
  .phases, .cards, .scopes { grid-template-columns: 1fr 1fr; }
  .more-downloads, .license-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-grid; }
  #site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 14px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  #site-nav.open { display: flex; }
  #site-nav a { min-height: 44px; font-size: 16px; color: var(--ink); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .topbar-inner { min-height: 58px; gap: 8px; }
  .gh-btn span { display: none; }
  .gh-btn { width: 40px; padding: 0; justify-content: center; }
  .hero { padding: 48px 0 40px; }
  .lead { font-size: 16px; }
  .actions .btn { flex: 1; }
  .terminal pre { font-size: 10px; padding: 14px; }
  .tree pre { font-size: 11px; padding: 14px; }
  .stats { margin-top: 44px; }
  .stats > div { padding: 18px 18px; }
  .stats dd { font-size: 28px; }
  .section { padding: 64px 0; }
  .editions, .steps, .docs, .phases, .cards, .scopes { grid-template-columns: 1fr; }
  .edition, .panel { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .pulse { animation: none; }
  .docs a, .edition, .btn, .cards article { transition: none; }
}
