:root {
  color-scheme: dark;
  --bg: #0a111c;
  --bg-soft: #0e1826;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef6;
  --muted: #9aa8bb;
  --muted-strong: #c3cede;
  --mint: #5eead4;
  --mint-strong: #2dd4bf;
  --ivory: #f3ead9;
  --warn: #fbbf24;
  --radius: 18px;
  --max: 1120px;
  --header-h: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(94, 234, 212, 0.14), transparent 62%),
    radial-gradient(700px 420px at 8% 12%, rgba(96, 165, 250, 0.08), transparent 60%),
    linear-gradient(180deg, #0a111c 0%, #0a111c 55%, #0b1421 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

a {
  color: var(--mint);
  text-decoration: none;
}

a:hover {
  color: #a7f3e9;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding: 0 clamp(20px, 5vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 17, 28, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand b {
  color: var(--mint);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-size: 14px;
}

.site-nav a {
  color: var(--muted-strong);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid rgba(94, 234, 212, 0.42);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.09);
  color: var(--mint);
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: rgba(94, 234, 212, 0.16);
  color: #b8f7ef;
}

.site-nav .lang-link {
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.site-nav .lang-link:hover {
  border-color: rgba(94, 234, 212, 0.42);
  color: var(--mint);
}

.nav-version {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

main {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

html[lang="en"] .hero h1 {
  font-size: clamp(2.3rem, 4.1vw, 3.4rem);
}

.hero h1 .accent {
  background: linear-gradient(96deg, #5eead4 8%, #a7f3e9 46%, #f3ead9 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34em;
  margin-top: 26px;
  color: var(--muted-strong);
  font-size: clamp(15px, 1.6vw, 17px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(180deg, #6ff0dc, #3ed8c2);
  color: #062a25;
  box-shadow: 0 14px 34px rgba(45, 212, 191, 0.22);
}

.button.primary:hover {
  background: linear-gradient(180deg, #86f5e4, #4be3cd);
  box-shadow: 0 18px 42px rgba(45, 212, 191, 0.3);
  color: #062a25;
}

.button.ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.button.wide {
  width: 100%;
}

.hero-meta {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.hero-note {
  max-width: 36em;
  margin-top: 10px;
  color: rgba(251, 191, 36, 0.82);
  font-size: 12.5px;
  line-height: 1.65;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  border-radius: 26%;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.55));
  animation: float 7s ease-in-out infinite;
}

.glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.34), rgba(94, 234, 212, 0.06) 46%, transparent 68%);
  filter: blur(12px);
}

.version-chip {
  position: absolute;
  bottom: 4%;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 24, 38, 0.86);
  color: var(--muted-strong);
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
  max-width: 44em;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 750;
}

.section-head p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.3);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.06), rgba(255, 255, 255, 0.02));
}

.feature .num {
  display: block;
  margin-bottom: 22px;
  color: rgba(94, 234, 212, 0.72);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.feature h3 {
  font-size: 17px;
  font-weight: 650;
}

.feature p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.download-card {
  padding: 28px;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 80% 0%, rgba(94, 234, 212, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.file-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.file-head img {
  border-radius: 12px;
}

.file-head strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.file-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.file-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.file-meta div {
  min-width: 0;
}

.file-meta dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.file-meta dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.download-card .fine {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.download-side {
  padding: 6px 4px 0 22px;
}

.download-side h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.download-side h3:not(:first-child) {
  margin-top: 30px;
}

.steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 42px;
  color: var(--muted);
  font-size: 14px;
}

.steps li + li {
  margin-top: 14px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--mint);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.steps li span {
  display: block;
  margin-bottom: 1px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.requirements {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.requirements li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.requirements li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint-strong);
}

.verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.verify h3 {
  font-size: 15px;
}

.verify p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.verify pre {
  margin: 14px 0 0;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted-strong);
  font-size: 12.5px;
}

code {
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
}

.hash-box {
  align-self: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.hash-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.hash-label button {
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.hash-label button:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.hash {
  display: block;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.75;
  word-break: break-all;
}

.license-body {
  max-width: 52em;
  color: var(--muted);
  font-size: 14px;
}

.license-body p + p {
  margin-top: 14px;
}

.license-body strong {
  color: var(--muted-strong);
  font-weight: 600;
}

.license-body .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  font-size: 13.5px;
}

.license-body .links span {
  color: rgba(255, 255, 255, 0.22);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.footer-brand img {
  border-radius: 7px;
}

.site-footer .copyright {
  color: rgba(154, 168, 187, 0.62);
  font-size: 12px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .hero-art {
    order: -1;
    min-height: 0;
    padding: 10px 0 26px;
  }

  .hero-art img {
    width: min(64vw, 320px);
  }

  .version-chip {
    position: static;
    transform: none;
    margin-top: -18px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-grid,
  .verify {
    grid-template-columns: 1fr;
  }

  .download-side {
    padding: 8px 2px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .site-header {
    gap: 12px;
    padding: 0 18px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a:not(.nav-cta):not(.lang-link) {
    display: none;
  }

  .site-nav .nav-cta {
    padding: 7px 14px;
  }

  .site-nav .lang-link {
    padding: 6px 9px;
  }

  .hero,
  .section,
  .site-footer {
    width: calc(100% - 36px);
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .actions .button {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .file-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .requirements {
    grid-template-columns: 1fr;
  }

  .download-card,
  .verify {
    padding: 22px;
  }
}

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

  .hero-art img {
    animation: none;
  }

  .button,
  .feature {
    transition: none;
  }
}
