:root {
  --surface-0: hsl(214 54% 7%);
  --surface-1: hsl(212 45% 10%);
  --surface-2: hsl(210 38% 14%);
  --surface-3: hsl(207 32% 19%);
  --accent: hsl(190 74% 55%);
  --accent-hover: hsl(190 70% 62%);
  --accent-dim: hsl(190 74% 55% / .11);
  --accent-border: hsl(190 74% 55% / .28);
  --text-primary: hsl(202 42% 96%);
  --text-secondary: hsl(204 20% 72%);
  --text-muted: hsl(205 18% 53%);
  --border: hsl(204 34% 22%);
  --border-strong: hsl(198 42% 34%);
  --success: hsl(158 67% 51%);
  --warning: hsl(38 91% 57%);
  --error: hsl(350 78% 64%);
  --font-sans: "Geist", "Microsoft YaHei UI", sans-serif;
  --font-mono: "Geist Mono", "Cascadia Mono", monospace;
  --text-display: clamp(2.5rem, 4.7vw, 5.2rem);
  --text-title: clamp(2rem, 4vw, 3.8rem);
  --shadow: 0 32px 80px hsl(216 70% 2% / .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text-primary);
  background:
    linear-gradient(hsl(202 58% 24% / .14) 1px, transparent 1px),
    linear-gradient(90deg, hsl(202 58% 24% / .14) 1px, transparent 1px),
    radial-gradient(circle at 83% 12%, hsl(190 72% 29% / .16), transparent 30rem),
    var(--surface-0);
  background-size: 56px 56px, 56px 56px, auto, auto;
  font-family: var(--font-sans);
  line-height: 1.6875;
  min-width: 320px;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--accent); color: var(--surface-0); padding: .7rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; border-bottom: 1px solid hsl(204 34% 22% / .72); background: hsl(214 54% 7% / .82); backdrop-filter: blur(18px); }
.nav-shell { height: 72px; max-width: 1360px; margin: auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { justify-self: start; display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { display: inline-block; width: 7px; height: 34px; border-radius: 2px; background: var(--accent); box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .25); }
.brand strong { display: block; font-size: .96rem; letter-spacing: -.01em; }
.brand small { display: block; margin-top: -.16rem; color: var(--text-muted); font: 500 .58rem var(--font-mono); letter-spacing: .14em; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-secondary); font-size: .86rem; text-decoration: none; transition: color 180ms ease; }
.nav-links a:hover { color: var(--accent); }
.nav-download { justify-self: end; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: .65rem; font-weight: 600; font-size: .88rem; text-decoration: none; cursor: pointer; transition: transform 180ms cubic-bezier(.16,1,.3,1), background 180ms ease, border-color 180ms ease; }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--accent); color: hsl(214 54% 7%); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .3); }
.button-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.button-primary:active, .button-quiet:active { transform: scale(.97); }
.button-quiet { border-color: var(--border-strong); background: hsl(210 38% 14% / .65); }
.button-quiet:hover { border-color: var(--accent); background: var(--surface-2); }
.button[aria-disabled="true"] { opacity: .5; pointer-events: none; cursor: not-allowed; }
.is-loading span { display: inline-block; min-width: 8.7rem; background: linear-gradient(90deg, currentColor 30%, transparent 50%, currentColor 70%); background-size: 220% 100%; color: transparent; border-radius: .25rem; animation: shimmer 1.4s infinite linear; opacity: .4; }

.hero { max-width: 1360px; min-height: 100dvh; margin: auto; padding: 10rem 2rem 6rem; display: grid; grid-template-columns: 1.02fr 1.16fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.hero-copy { padding-left: clamp(0rem, 4vw, 4.5rem); }
.eyebrow { margin: 0 0 1.2rem; color: var(--text-muted); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px hsl(158 67% 51% / .1); }
h1 { margin: 0; font-size: var(--text-display); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; }
h1 span { white-space: nowrap; }
.hero-lead { max-width: 57ch; margin: 2rem 0 0; color: var(--text-secondary); font-size: clamp(1rem, 1.4vw, 1.14rem); }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; }
.text-link { color: var(--text-secondary); font-size: .9rem; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--accent); }
.hero-note { margin: .9rem 0 0; color: var(--text-muted); font: .72rem var(--font-mono); }

.product-frame { min-width: 0; padding: 1rem; border: 1px solid var(--accent-border); border-radius: 1.1rem; background: hsl(212 45% 10% / .88); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .05), var(--shadow); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.frame-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; color: var(--text-secondary); font: .7rem var(--font-mono); }
.frame-title { font-family: var(--font-sans); font-weight: 600; }
.frame-title i { display: inline-block; width: 4px; height: 16px; margin-right: .4rem; vertical-align: middle; border-radius: 1px; background: var(--accent); }
.metric-strip { display: grid; grid-template-columns: .7fr .9fr 1fr 1fr; gap: .45rem; }
.metric-strip > div { min-width: 0; padding: .75rem; border: 1px solid var(--border); background: hsl(214 54% 7% / .72); }
.metric-strip small { display: block; color: var(--text-muted); font-size: .55rem; }
.metric-strip strong { display: block; margin-top: .15rem; font: 600 clamp(.82rem, 1.45vw, 1.15rem) var(--font-mono); white-space: nowrap; }
.metric-strip .healthy strong { color: var(--success); font-family: var(--font-sans); }
.disk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .55rem; }
.disk-card { min-width: 0; display: grid; grid-template-columns: auto 1fr auto; gap: .65rem; align-items: center; padding: .8rem; border: 1px solid var(--border); border-radius: .45rem; background: hsl(214 54% 7% / .72); }
.disk-id { min-width: 2.2rem; padding: .25rem .35rem; border: 1px solid var(--accent-border); border-radius: .28rem; background: var(--accent-dim); color: var(--accent); text-align: center; font: 600 .85rem var(--font-mono); }
.disk-card div { min-width: 0; }
.disk-card strong, .disk-card small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.disk-card strong { font-size: .72rem; }
.disk-card small { color: var(--text-muted); font: .53rem var(--font-mono); }
.disk-card b { font: 600 .72rem var(--font-mono); }
.disk-card meter { grid-column: 1 / -1; width: 100%; height: 3px; border: 0; background: var(--surface-3); }
.disk-card meter::-webkit-meter-bar { height: 3px; border: 0; background: var(--surface-3); }
.disk-card meter::-webkit-meter-optimum-value { background: var(--success); }
.disk-card.folder { border-color: var(--accent-border); }
.frame-foot { display: flex; justify-content: space-between; margin-top: .8rem; color: var(--text-muted); font: .53rem var(--font-mono); letter-spacing: .03em; }

.proof-band { max-width: 1180px; margin: -2rem auto 0; padding: 1.6rem 2rem; display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--border); }
.proof-band > div { display: flex; align-items: baseline; gap: .7rem; padding-inline: 1.5rem; border-left: 1px solid var(--border); }
.proof-band > div:first-child { border-left: 0; }
.proof-band strong { font: 600 1.55rem var(--font-mono); color: var(--accent); }
.proof-band span { color: var(--text-muted); font-size: .75rem; }

.section { max-width: 1220px; margin: auto; padding: 8rem 2rem; }
.section-heading { display: grid; grid-template-columns: .75fr 1.35fr; column-gap: 3rem; }
.section-heading .eyebrow { grid-row: 1 / 3; }
h2 { max-width: 18ch; margin: 0; font-size: var(--text-title); line-height: 1.12; letter-spacing: -.032em; }
.section-heading > p:last-child { grid-column: 2; max-width: 62ch; color: var(--text-secondary); }
.feature-ledger { margin-top: 5rem; border-top: 1px solid var(--border-strong); }
.feature-row { min-height: 180px; display: grid; grid-template-columns: 80px 1fr minmax(260px,.7fr); gap: 2rem; align-items: center; border-bottom: 1px solid var(--border); }
.feature-index { align-self: start; padding-top: 2rem; color: var(--text-muted); font: .72rem var(--font-mono); }
.feature-row h3 { margin: 0; font-size: clamp(1.2rem,2vw,1.55rem); letter-spacing: -.02em; }
.feature-row p { max-width: 58ch; margin: .55rem 0 0; color: var(--text-secondary); font-size: .9rem; }
.path-sample, .update-sample { padding: 1rem; border: 1px solid var(--border); background: var(--surface-1); }
.path-sample span { display: block; margin-bottom: .45rem; color: var(--text-muted); font: .6rem var(--font-mono); letter-spacing: .1em; }
.path-sample code { display: block; overflow: hidden; color: var(--accent); font: .72rem var(--font-mono); text-overflow: ellipsis; }
.temperature-sample { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; }
.temperature-sample strong { font: 600 3.5rem var(--font-mono); letter-spacing: -.08em; }
.temperature-sample span { color: var(--text-muted); font: .64rem/1.4 var(--font-mono); }
.update-sample { display: grid; grid-template-columns: auto 1fr; align-items: center; }
.update-sample .status-dot { grid-row: 1 / 3; }
.update-sample strong, .update-sample small { display: block; }
.update-sample strong { font-size: .82rem; }
.update-sample small { color: var(--text-muted); font: .62rem var(--font-mono); }

.release-section { padding-top: 6rem; }
.release-header { display: flex; justify-content: space-between; align-items: end; padding-bottom: 2rem; border-bottom: 1px solid var(--border-strong); }
.release-header h2 { font-family: var(--font-mono); }
.release-header > p { color: var(--text-muted); font: .75rem var(--font-mono); }
.release-layout { display: grid; grid-template-columns: 1.5fr .65fr; gap: 1px; background: var(--border); }
.release-notes, .compatibility { padding: clamp(2rem,5vw,4rem); background: var(--surface-0); }
.release-kicker { margin: 0; color: var(--text-secondary); font-size: .85rem; }
.release-list { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: release; }
.release-list li { counter-increment: release; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--border); color: var(--text-secondary); }
.release-list li::before { content: "0" counter(release); color: var(--accent); font: .7rem var(--font-mono); }
.compatibility { background: var(--surface-1); }
.compatibility h3 { margin: 1.2rem 0; font: 600 clamp(1.25rem,2.5vw,2rem)/1.4 var(--font-mono); }
.compatibility > p:last-child { color: var(--text-secondary); font-size: .85rem; }
.skeleton-line { height: 54px; background: linear-gradient(90deg,var(--surface-1),var(--surface-2),var(--surface-1)); background-size: 220% 100%; animation: shimmer 1.4s infinite linear; }

.download-section { max-width: 1360px; }
.download-panel { padding: clamp(2rem,6vw,5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,8vw,8rem); border: 1px solid var(--accent-border); background: linear-gradient(135deg,var(--accent-dim),transparent 45%),var(--surface-1); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .05); }
.download-copy h2 { margin-bottom: 1rem; }
.download-copy > p:not(.eyebrow) { max-width: 55ch; color: var(--text-secondary); }
.download-copy .button { margin-top: 1.5rem; }
.file-size { margin-left: 1rem; color: var(--text-muted); font: .7rem var(--font-mono); }
.checksum-card { align-self: center; min-width: 0; padding: 1.5rem; border: 1px solid var(--border); background: hsl(214 54% 7% / .72); }
.checksum-head { display: flex; justify-content: space-between; color: var(--text-muted); font: .68rem var(--font-mono); letter-spacing: .1em; }
.checksum-head button, .inline-error button { border: 0; background: none; color: var(--accent); cursor: pointer; }
.checksum-head button:disabled { opacity: .4; cursor: not-allowed; }
.checksum-card > code { display: block; overflow-wrap: anywhere; margin: 1.2rem 0; color: var(--text-primary); font: .78rem/1.8 var(--font-mono); }
.checksum-card p { margin: 0; color: var(--text-muted); font-size: .74rem; }
.checksum-card p code { color: var(--text-secondary); }
.inline-error { max-width: 32rem; margin-top: 1rem; padding: .7rem 1rem; border: 1px solid hsl(350 78% 64% / .35); color: var(--error); font-size: .8rem; }

footer { max-width: 1320px; margin: auto; padding: 2rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .75rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: var(--text-secondary); font-weight: 600; }
.footer-brand .brand-mark { height: 20px; width: 4px; }
footer a:hover { color: var(--accent); }

.reveal { animation: enter 700ms cubic-bezier(.16,1,.3,1) both; }
.product-frame.reveal { animation-delay: 120ms; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { background-position: -220% 0; } }

@media (max-width: 900px) {
  .nav-shell { grid-template-columns: 1fr auto; padding-inline: 1rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 8rem 1.2rem 5rem; }
  .hero-copy { padding-left: 0; }
  .product-frame { transform: none; }
  .proof-band { grid-template-columns: 1fr 1fr; margin-inline: 1.2rem; padding-inline: 0; }
  .proof-band > div { padding: 1rem; border-bottom: 1px solid var(--border); }
  .section { padding: 6rem 1.2rem; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .eyebrow, .section-heading > p:last-child { grid-column: 1; grid-row: auto; }
  .feature-row { grid-template-columns: 42px 1fr; padding-block: 2rem; }
  .feature-row > :last-child { grid-column: 2; }
  .release-layout, .download-panel { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 span { white-space: normal; }
  .nav-download { display: none; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .disk-grid { grid-template-columns: 1fr; }
  .proof-band { grid-template-columns: 1fr; }
  .proof-band > div { border-left: 0; }
  .release-header, footer { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .file-size { display: block; margin: .8rem 0 0; }
}

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