:root {
  --canvas: 207 73% 8%;
  --surface: 205 62% 12%;
  --surface-2: 205 49% 16%;
  --text: 193 55% 94%;
  --muted: 198 25% 66%;
  --cyan: 187 100% 50%;
  --cyan-soft: 186 100% 72%;
  --magenta: 335 100% 64%;
  --line: 190 65% 31%;
  --success: 156 75% 53%;
  --font-display: "Space Grotesk", "Segoe UI Variable Display", "Microsoft YaHei UI", sans-serif;
  --font-body: "IBM Plex Sans SC", "Segoe UI Variable Text", "Microsoft YaHei UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --max: 1180px;
  --shadow: 0 24px 90px hsl(206 95% 3% / .46);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: hsl(var(--text));
  background-color: hsl(var(--canvas));
  background-image:
    linear-gradient(hsl(var(--cyan) / .06) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--cyan) / .06) 1px, transparent 1px),
    radial-gradient(circle at 13% 14%, hsl(var(--cyan) / .12), transparent 28%),
    radial-gradient(circle at 86% 52%, hsl(var(--magenta) / .09), transparent 32%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  font-family: var(--font-body);
  line-height: 1.65;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 10; padding: 10px 14px; background: hsl(var(--cyan)); color: hsl(var(--canvas)); }
.skip-link:focus { top: 16px; }
.scanline { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 3px, hsl(0 0% 100% / .015) 4px); }
.topbar, main, footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid hsl(var(--line) / .72); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { filter: drop-shadow(0 0 14px hsl(var(--cyan) / .35)); }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { margin-top: 5px; color: hsl(var(--cyan)); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; }
nav { display: flex; gap: clamp(18px, 3vw, 40px); }
nav a { color: hsl(var(--muted)); font-size: .9rem; text-decoration: none; transition: color .18s ease; }
nav a:hover, nav a:focus-visible { color: hsl(var(--cyan)); }

.hero { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: clamp(40px, 8vw, 110px); align-items: center; padding: 84px 0 74px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: hsl(var(--cyan)); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; }
.eyebrow span { display: inline-block; width: 32px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
h1, h2 { font-family: var(--font-display); }
h1 { margin: 0; max-width: 760px; font-size: clamp(3.15rem, 7vw, 6.7rem); line-height: .94; letter-spacing: -.065em; font-weight: 650; }
h1 em { color: hsl(var(--cyan)); font-style: normal; text-shadow: 0 0 32px hsl(var(--cyan) / .18); }
.lede { max-width: 620px; margin: 30px 0 0; color: hsl(var(--muted)); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 36px; padding: 0 20px; border: 1px solid hsl(var(--cyan)); border-radius: 2px; cursor: pointer; font-weight: 700; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, #copy-hash:focus-visible { outline: 3px solid hsl(var(--magenta)); outline-offset: 3px; }
.button.primary { color: hsl(var(--canvas)); background: hsl(var(--cyan)); box-shadow: 0 12px 36px hsl(var(--cyan) / .15); }
.button.primary:hover { box-shadow: 0 14px 44px hsl(var(--cyan) / .28); }
.button.secondary { color: hsl(var(--cyan)); background: transparent; }
.microcopy { color: hsl(var(--muted)); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; }

.release-console { position: relative; padding: 25px; border: 1px solid hsl(var(--line)); background: linear-gradient(145deg, hsl(var(--surface) / .97), hsl(var(--surface-2) / .86)); box-shadow: var(--shadow); }
.release-console::before, .release-console::after { content: ""; position: absolute; width: 28px; height: 28px; border-color: hsl(var(--cyan)); }
.release-console::before { inset: -1px auto auto -1px; border-top: 2px solid; border-left: 2px solid; }
.release-console::after { inset: auto -1px -1px auto; border-right: 2px solid; border-bottom: 2px solid; }
.console-head { display: flex; justify-content: space-between; color: hsl(var(--muted)); font-family: var(--font-mono); font-size: .65rem; letter-spacing: .12em; }
.console-head i { color: hsl(var(--success)); font-style: normal; }
.version-row { display: grid; gap: 5px; margin: 45px 0 30px; }
.version-row span { color: hsl(var(--muted)); font-size: .78rem; }
.version-row strong { color: hsl(var(--cyan-soft)); font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.05em; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid hsl(var(--line) / .5); font-size: .86rem; }
dt { color: hsl(var(--muted)); }
dd { margin: 0; font-family: var(--font-mono); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: hsl(var(--success)); box-shadow: 0 0 9px hsl(var(--success)); }
.signal { height: 42px; display: flex; align-items: end; gap: 5px; margin-top: 27px; }
.signal span { flex: 1; height: 24%; background: hsl(var(--cyan) / .5); transform-origin: bottom; animation: signal 2.8s ease-in-out infinite alternate; }
.signal span:nth-child(2) { height: 52%; animation-delay: -.8s; }.signal span:nth-child(3) { height: 33%; animation-delay: -1.4s; }.signal span:nth-child(4) { height: 80%; animation-delay: -.4s; }.signal span:nth-child(5) { height: 48%; animation-delay: -1.8s; }.signal span:nth-child(6) { height: 67%; animation-delay: -1s; }
#release-status { margin: 12px 0 0; color: hsl(var(--muted)); font-family: var(--font-mono); font-size: .68rem; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid hsl(var(--line)); }
.metrics article { display: flex; gap: 20px; padding: 35px 26px; }
.metrics article + article { border-left: 1px solid hsl(var(--line)); }
.metrics strong { color: hsl(var(--magenta)); font-family: var(--font-mono); font-size: .8rem; }
.metrics h2 { margin: 0 0 6px; font-size: 1rem; }
.metrics p { margin: 0; color: hsl(var(--muted)); font-size: .86rem; }

.content-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 120px); padding: 120px 0; }
.section-heading h2, .integrity h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p:last-child, .integrity p { color: hsl(var(--muted)); }
.changelog-card { border-top: 2px solid hsl(var(--cyan)); background: hsl(var(--surface) / .74); }
.changelog-title { display: flex; justify-content: space-between; padding: 22px 25px; border-bottom: 1px solid hsl(var(--line)); }
.changelog-title strong { font-family: var(--font-display); }
.changelog-title span { color: hsl(var(--muted)); font-family: var(--font-mono); font-size: .75rem; }
.changelog-card ul { list-style: none; margin: 0; padding: 6px 25px 22px; }
.changelog-card li { position: relative; padding: 16px 0 16px 28px; border-bottom: 1px solid hsl(var(--line) / .35); color: hsl(var(--muted)); }
.changelog-card li::before { content: "+"; position: absolute; left: 0; color: hsl(var(--cyan)); font-family: var(--font-mono); }

.integrity { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 85px); align-items: end; padding: 72px; margin-bottom: 100px; border: 1px solid hsl(var(--line)); background: linear-gradient(125deg, hsl(var(--surface)), hsl(var(--canvas))); }
.hash-panel { min-width: 0; padding: 18px; border: 1px solid hsl(var(--line)); background: hsl(var(--canvas) / .86); }
.hash-panel > div { display: flex; justify-content: space-between; color: hsl(var(--muted)); font-family: var(--font-mono); font-size: .7rem; }
#copy-hash { padding: 0; border: 0; color: hsl(var(--cyan)); background: transparent; cursor: pointer; }
.hash-panel code { display: block; margin-top: 15px; overflow-wrap: anywhere; color: hsl(var(--cyan-soft)); font-family: var(--font-mono); font-size: .76rem; line-height: 1.7; }
footer { display: flex; justify-content: space-between; padding: 28px 0 45px; border-top: 1px solid hsl(var(--line)); color: hsl(var(--muted)); font-size: .78rem; }

.feedback { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(36px, 7vw, 100px); padding: 82px 72px; margin-bottom: 100px; border: 1px solid hsl(var(--line)); background: linear-gradient(135deg, hsl(var(--surface-2) / .82), hsl(var(--surface) / .94)); box-shadow: var(--shadow); }
.feedback-intro h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1.04; letter-spacing: -.045em; }
.feedback-intro > p:last-of-type { margin: 22px 0; color: hsl(var(--muted)); }
.feedback-intro ul { margin: 0; padding-left: 20px; color: hsl(var(--muted)); font-size: .9rem; }
.feedback-intro li { margin: 9px 0; }
.feedback-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.form-row { position: relative; display: grid; align-content: start; gap: 8px; }
.form-row.full, .feedback-submit.full, .feedback-status.full { grid-column: 1 / -1; }
.form-row label { font-size: .9rem; font-weight: 700; }
.form-row label span { color: hsl(var(--muted)); font-weight: 400; }
.form-row input, .form-row select, .form-row textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid hsl(var(--line)); border-radius: 2px; color: hsl(var(--text)); background: hsl(var(--canvas) / .74); font: inherit; font-size: 1rem; }
.form-row textarea { min-height: 150px; resize: vertical; }
.form-row input::placeholder, .form-row textarea::placeholder { color: hsl(var(--muted) / .72); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: hsl(var(--cyan)); outline: 2px solid hsl(var(--cyan) / .2); outline-offset: 1px; }
.form-row small { justify-self: end; color: hsl(var(--muted)); font-size: .75rem; }
.upload-row input { padding: 9px; }
.upload-row input::file-selector-button { margin-right: 12px; padding: 8px 12px; border: 1px solid hsl(var(--cyan)); border-radius: 2px; color: hsl(var(--cyan)); background: transparent; cursor: pointer; }
.feedback-submit { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 4px; }
.feedback-submit p { max-width: 530px; margin: 0; color: hsl(var(--muted)); font-size: .78rem; }
.feedback-submit .button { flex: 0 0 auto; }
.feedback-submit .button:disabled { cursor: wait; opacity: .6; transform: none; }
.feedback-status { min-height: 24px; margin: -4px 0 0; color: hsl(var(--muted)); font-family: var(--font-mono); font-size: .82rem; }
.feedback-status.success { color: hsl(var(--success)); }
.feedback-status.error { color: hsl(var(--magenta)); }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@keyframes signal { from { transform: scaleY(.45); opacity: .4; } to { transform: scaleY(1); opacity: 1; } }
@media (max-width: 820px) {
  .topbar { padding: 18px 0; align-items: flex-start; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .release-console { width: 100%; }
  .metrics, .content-grid, .integrity, .feedback { grid-template-columns: 1fr; }
  .metrics article + article { border-left: 0; border-top: 1px solid hsl(var(--line)); }
  .integrity { padding: 34px 24px; }
  .feedback { padding: 42px 28px; }
}
@media (max-width: 520px) {
  .topbar, main, footer { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: 3.1rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .feedback-form { grid-template-columns: 1fr; }
  .feedback-submit { align-items: stretch; flex-direction: column; }
  footer { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
