:root {
  --paper: #f4f5f6;
  --surface: #ffffff;
  --ink: #15171b;
  --muted: #777d86;
  --line: rgba(21, 23, 27, .14);
  --violet: #6f63e9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }

.download-header {
  position: relative;
  z-index: 20;
  height: 78px;
  margin: 0 clamp(22px, 3.1vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 760; }
.brand img { width: 29px; height: 29px; }
.download-header nav { display: flex; align-items: center; gap: 32px; color: #60656d; font: 650 9px/1 "Cascadia Mono", Consolas, monospace; }
.download-header nav a:last-child { color: var(--ink); }

.download-hero {
  position: relative;
  min-height: 650px;
  height: calc(100svh - 78px);
  max-height: 780px;
  overflow: hidden;
  isolation: isolate;
}
#download-scene {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-copy {
  position: absolute;
  z-index: 5;
  left: 7.5%;
  top: 44%;
  width: min(540px, 45vw);
  transform: translateY(-50%);
}
.kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font: 650 8px/1 "Cascadia Mono", Consolas, monospace;
}
.hero-copy h1 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  font-size: clamp(68px, 7.4vw, 118px);
  font-weight: 690;
  line-height: .83;
  white-space: nowrap;
}
.hero-copy h1 em { margin-top: 5px; color: var(--violet); font-size: .25em; font-style: normal; font-weight: 650; }
.compatibility { margin: 28px 0 0; color: #555b64; font-size: 14px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.primary-download {
  min-width: 228px;
  height: 52px;
  padding: 0 18px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 680;
  transition: background .2s ease, transform .2s ease;
}
.primary-download:hover { background: #2c3036; transform: translateY(-1px); }
.primary-download:focus-visible,
.row-download:focus-visible,
.download-header a:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.primary-download b { color: #9f97ff; font-size: 17px; font-weight: 500; }
.release-link { padding-bottom: 7px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 650; }
.release-link span { margin-left: 16px; color: var(--violet); }

.release-facts {
  position: absolute;
  z-index: 6;
  left: clamp(22px, 3.1vw, 48px);
  right: clamp(22px, 3.1vw, 48px);
  bottom: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.release-facts div { min-height: 92px; padding: 22px 24px; border-right: 1px solid var(--line); }
.release-facts div:first-child { padding-left: 0; }
.release-facts div:last-child { border-right: 0; }
.release-facts dt { color: var(--muted); font: 650 8px/1 "Cascadia Mono", Consolas, monospace; }
.release-facts dd { margin: 12px 0 0; font-size: 14px; font-weight: 660; }

.release-section {
  padding: 100px max(7.5%, 28px) 112px;
  background: var(--surface);
}
.section-heading { display: grid; grid-template-columns: 1fr 2fr; align-items: end; padding-bottom: 38px; border-bottom: 1px solid var(--ink); }
.section-heading p { margin: 0 0 4px; color: var(--muted); font: 650 8px/1 "Cascadia Mono", Consolas, monospace; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); font-weight: 620; line-height: 1; }
.platform-list { border-bottom: 1px solid var(--line); }
.platform-row {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.platform-row:last-child { border-bottom: 0; }
.platform-name { display: flex; align-items: center; gap: 24px; }
.platform-name span { color: var(--muted); font: 650 9px/1 "Cascadia Mono", Consolas, monospace; }
.platform-name h3 { margin: 0; font-size: 28px; font-weight: 630; }
.platform-details p { margin: 0 0 8px; font-size: 14px; font-weight: 650; }
.platform-details small { color: var(--muted); font-size: 12px; }
.row-download {
  width: 220px;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 680;
}
.row-download b { color: var(--violet); font-size: 15px; font-weight: 500; }
.platform-row--disabled { color: #9a9da3; }
.unavailable { justify-self: end; width: 220px; color: #9a9da3; font-size: 12px; }

.upgrade-note {
  margin-top: 52px;
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-top: 1px solid var(--line);
}
.upgrade-note strong { font-size: 13px; }
.upgrade-note p { max-width: 660px; margin: 0; color: #646972; font-size: 13px; line-height: 1.8; }

.download-footer {
  min-height: 94px;
  padding: 0 clamp(22px, 3.1vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  background: var(--paper);
  font: 650 8px/1 "Cascadia Mono", Consolas, monospace;
}

@media (max-width: 900px) {
  .download-hero { min-height: 720px; height: calc(100svh - 78px); max-height: none; }
  .hero-copy { left: 28px; top: auto; bottom: 132px; width: calc(100% - 56px); transform: none; }
  .hero-copy h1 { font-size: clamp(60px, 15vw, 88px); }
  .release-facts div { padding-inline: 14px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 620px) {
  .download-header { height: 68px; margin-inline: 20px; }
  .brand { font-size: 16px; }
  .brand img { width: 28px; height: 28px; }
  .download-header nav a:first-child { display: none; }
  .download-header nav { gap: 0; font-size: 8px; }
  .download-hero { min-height: 720px; height: calc(100svh - 68px); }
  .hero-copy { left: 22px; bottom: 196px; width: calc(100% - 44px); }
  .kicker { margin-bottom: 16px; font-size: 7px; }
  .hero-copy h1 { font-size: clamp(54px, 17vw, 70px); }
  .compatibility { margin-top: 20px; font-size: 12px; }
  .hero-actions { margin-top: 24px; gap: 16px; }
  .primary-download { min-width: 194px; height: 48px; font-size: 13px; }
  .release-link { font-size: 11px; }
  .release-link span { display: none; }
  .release-facts { left: 20px; right: 20px; grid-template-columns: repeat(2, 1fr); }
  .release-facts div { min-height: 68px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .release-facts div:nth-child(2) { border-right: 0; }
  .release-facts div:nth-child(3), .release-facts div:nth-child(4) { border-bottom: 0; }
  .release-facts div:nth-child(3) { padding-left: 0; }
  .release-facts dd { margin-top: 8px; font-size: 12px; }
  .release-section { padding: 72px 22px 78px; }
  .platform-row { min-height: 168px; grid-template-columns: 1fr auto; gap: 16px; padding: 24px 0; }
  .platform-name { gap: 16px; }
  .platform-name h3 { font-size: 24px; }
  .platform-details { grid-column: 1 / -1; grid-row: 2; }
  .row-download, .unavailable { grid-column: 2; grid-row: 1; width: 120px; }
  .unavailable { text-align: right; }
  .upgrade-note { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-download { transition: none; }
}
