:root {
  color-scheme: dark;
  --background: #080c14;
  --panel: #101823;
  --ink: #f2f6ff;
  --muted: #b1bed0;
  --accent: #b9edff;
  --line: #304052;
  --gutter: clamp(16px, 5vw, 80px);
  --wrap: 1360px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background: var(--background);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 2px solid #94e7ff;
  outline-offset: 4px;
}
[id] { scroll-margin-top: 24px; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 4;
  inset: 12px auto auto 12px;
  padding: 10px 16px;
  color: #081422;
  background: var(--accent);
  border-radius: 4px;
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 1;
  background: #090d16;
  border-bottom: 1px solid #232e3c;
}
.topbar, .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 12px;
}
.wordmark, .footer-brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
}
.wordmark {
  min-height: 44px;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}
.wordmark img, .footer-brand img { display: block; flex: none; }
nav { display: flex; align-items: center; gap: clamp(8px, 2vw, 32px); }
nav a, .quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
  transition: color 160ms ease;
}
nav a { justify-content: center; min-width: 44px; }
nav a:hover, .quiet:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(500px, 43vw, 635px);
  background: #0a111d;
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: max(72%, calc((100% - var(--wrap)) / 2 + 1000px));
  max-width: 100%;
  overflow: hidden;
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 76% 48%; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a111d 0%, rgba(10,17,29,.92) 9%, rgba(10,17,29,.25) 30%, transparent 57%),
    linear-gradient(0deg, #080c14 0%, rgba(8,12,20,.53) 12%, transparent 33%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 64px;
  background: linear-gradient(0deg, var(--background), transparent);
  pointer-events: none;
}
.hero-inner { padding-block: clamp(50px, 7vw, 108px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c2d8eb;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .07em;
}
.eyebrow > span {
  width: 18px;
  height: 1px;
  background: #9ce8ff;
  box-shadow: 0 0 10px #6bc9f5;
}
h1 {
  display: grid;
  gap: .12em;
  width: fit-content;
  margin-top: 23px;
  font-size: clamp(52px, 5.55vw, 94px);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -.053em;
}
.hero-brand { white-space: nowrap; }
.hero-brand > span {
  margin-inline-start: .1em;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.075em;
}
.hero-product { color: #bce7fa; }
.lede {
  max-width: 395px;
  margin-top: 23px;
  color: #c5d2e1;
  font-size: clamp(15px, 1.4vw, 18px);
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 17px 0 20px;
  border: 1px solid #e7f8ff;
  border-radius: 5px;
  background: #c5efff;
  color: #061520;
  font-weight: 700;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.cta:hover { background: #ebfaff; box-shadow: 0 0 26px #79c7ea48; }

.section { padding-block: 44px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 6px 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
h2 { font-size: clamp(26px, 3vw, 41px); font-weight: 700; line-height: 1.3; letter-spacing: -.039em; }
.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 24px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.package {
  --platform: #b6e6ff;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(14px, 2.15vw, 28px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(155deg, #151f2c, var(--panel) 63%);
  transition: border-color 180ms ease;
}
.package.mac-x64 { --platform: #d9cfff; }
.package.windows-x64 { --platform: #aee7e2; }
.package:focus-within { border-color: var(--platform); }
@media (hover: hover) { .package:hover { border-color: #72859a; } }
.package-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 16px;
}
.platform-icon {
  display: grid;
  place-items: center;
  color: var(--platform);
  width: 46px;
  height: 46px;
  border: 1px solid #3d4f61;
  border-radius: 7px;
  background: #101823;
}
.platform-icon > * { grid-area: 1 / 1; }
.platform-icon b { font: 650 9px/1 system-ui, sans-serif; }
.version, .size, .hash-list code {
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.package h3 { margin-bottom: 4px; font-size: clamp(17px, 1.8vw, 23px); letter-spacing: -.018em; }
.package p { margin-bottom: 15px; color: var(--muted); font-size: 14px; }
.package-footer { display: grid; align-items: center; gap: 10px; margin-top: auto; }
.download {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #425467;
  border-radius: 5px;
  background: #192536;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.download svg { width: 19px; height: 19px; color: var(--platform); }
.download:hover { border-color: #7b9db5; background: #23354c; }
.size { white-space: nowrap; }

.hashes { margin-top: 18px; border-bottom: 1px solid #293746; }
.hashes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}
.hashes summary::-webkit-details-marker { display: none; }
.hashes summary::after { content: ""; width: 8px; height: 8px; margin-inline: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.hashes[open] summary::after { transform: translateY(2px) rotate(225deg); }
.hashes summary:hover { color: var(--ink); }
.hashes small { margin-inline-start: 8px; font-size: 12px; }
.hash-list { display: grid; gap: 9px; padding-bottom: 17px; }
.hash-list p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; font-size: 14px; }
.hash-list strong { min-width: 145px; font-weight: 550; }
.hash-list code { min-width: 0; overflow-wrap: anywhere; }

.install { padding-block: clamp(50px, 6vw, 88px); }
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(20px, 5vw, 74px); margin-top: 24px; }
.guide article { padding-top: 17px; border-top: 1px solid var(--line); }
.guide h3 { font-size: 18px; }
.guide ol { margin: 10px 0 0; padding-inline-start: 1.45em; color: var(--muted); }
.guide li + li { margin-top: 6px; }
.install-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid #293746; color: var(--muted); font-size: 14px; }
.to-top svg { transform: rotate(180deg); }

@media (min-width: 1650px) {
  .hero-art {
    right: auto;
    left: calc(50% - 410px);
    width: min(1560px, calc(50% + 410px));
  }
}

@media (min-width: 2300px) {
  .hero-art { mask-image: linear-gradient(90deg, #000 0 86%, transparent 100%); }
}

@media (max-width: 900px) {
  .hero-art { width: 82%; }
}

@media (max-width: 760px) {
  .topbar { min-height: 60px; }
  .wordmark { font-size: 14px; gap: 8px; }
  .wordmark img { width: 32px; height: 32px; }
  nav { gap: 5px; }
  nav a { font-size: 13px; }
  .hero { min-height: 0; grid-template-rows: auto auto; }
  .hero-inner { grid-row: 1; padding-block: 38px 4px; }
  h1 { margin-top: 16px; font-size: clamp(44px, 8.8vw, 65px); }
  .lede { margin-top: 16px; }
  .cta { min-height: 48px; margin-top: 19px; }
  .hero-art { grid-row: 2; position: relative; width: 100%; height: clamp(210px, 47vw, 310px); }
  .hero-art img { object-position: 50% 51%; }
  .hero-art::after { background: linear-gradient(180deg, #0a111d, transparent 29%), linear-gradient(0deg, #080c14, transparent 26%); }
  .section { padding-top: 30px; }
  .install { padding-top: 46px; }
  .packages { grid-template-columns: 1fr; }
  .package {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
  }
  .package-top { grid-column: 1 / -1; margin: 0 0 4px; }
  .package p { margin-bottom: 1px; }
  .package-footer { justify-items: end; margin: 0; align-self: end; gap: 5px; }
  .download { min-height: 44px; gap: 10px; }
}

@media (max-width: 560px) {
  .guide { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 12px; }
}

@media (max-width: 360px) {
  .wordmark img { width: 28px; height: 28px; }
  .topbar { gap: 5px; }
  nav { gap: 2px; }
  .package { grid-template-columns: minmax(0, 1fr); }
  .package-footer { justify-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  nav a, .quiet, .cta, .package, .download { transition: none; }
}
