:root {
  color-scheme: dark;
  --page: #090d11;
  --surface: #111820;
  --surface-raised: #18222c;
  --line: #293541;
  --text: #f2f5f7;
  --muted: #8c9aa7;
  --gold: #f2b705;
  --gold-bright: #ffd44d;
  --ink: #111009;
  --live: #3fd68c;
  --danger: #ff7770;
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(125deg, transparent 58%, rgb(242 183 5 / 4%) 58.2%, transparent 58.5%),
    var(--page);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 100% 56px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.page-shell {
  display: grid;
  width: min(100% - 32px, 620px);
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(36px, 8vh, 84px) 0 24px;
  grid-template-rows: 1fr auto;
  gap: 28px;
}

.download-card {
  position: relative;
  align-self: center;
  overflow: hidden;
  padding: clamp(24px, 6vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px 28px 8px 28px;
  background: var(--surface);
  box-shadow: 0 32px 80px rgb(0 0 0 / 34%);
}

.download-card::after {
  position: absolute;
  top: -64px;
  right: -68px;
  width: 160px;
  height: 160px;
  border: 28px solid rgb(242 183 5 / 8%);
  border-radius: 50%;
  content: "";
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 1px solid #3b4854;
  border-radius: 21px 21px 6px 21px;
  background: var(--surface-raised);
  object-fit: cover;
}

.eyebrow,
.section-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
}

h1 span {
  margin-left: 0.12em;
  color: var(--gold);
  font-family: "Bahnschrift", sans-serif;
  font-size: 0.55em;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.app-summary {
  margin: 26px 0 28px;
  color: #c0c9d0;
  font-size: 15px;
  line-height: 1.7;
}

.download-button {
  display: grid;
  min-height: 88px;
  padding: 16px 20px;
  color: var(--ink);
  text-decoration: none;
  background: var(--gold);
  border-radius: 18px 18px 5px 18px;
  box-shadow: 0 14px 30px rgb(242 183 5 / 18%);
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.download-button:not(.is-loading):hover {
  background: var(--gold-bright);
  box-shadow: 0 18px 40px rgb(242 183 5 / 28%);
  transform: translateY(-2px);
}

.download-button:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

.download-button.is-loading {
  cursor: wait;
  opacity: 0.58;
}

.download-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.download-copy {
  display: grid;
  gap: 4px;
}

.download-copy strong {
  font-size: 18px;
  font-weight: 900;
}

.download-copy small {
  font-family: "Bahnschrift", "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.68;
}

.release-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 34px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.version-line {
  display: flex;
  align-items: baseline;
  margin: 0;
  gap: 9px;
}

#version {
  font-family: "Bahnschrift", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

#published-at {
  color: var(--muted);
  font-size: 12px;
}

.release-status {
  padding: 5px 9px;
  color: var(--live);
  border: 1px solid rgb(63 214 140 / 35%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.release-notes {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 12px;
}

.release-notes li {
  position: relative;
  padding-left: 19px;
  color: #cbd3d9;
  font-size: 14px;
  line-height: 1.55;
}

.release-notes li::before {
  position: absolute;
  top: 0.65em;
  left: 1px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  content: "";
  transform: rotate(45deg);
}

.error-message {
  margin: 18px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-inline: 6px;
  color: #667480;
  font-family: "Bahnschrift", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 20px, 620px);
    padding-top: 20px;
  }

  .download-card {
    padding: 24px 20px;
    border-radius: 22px 22px 7px 22px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
  }

  .download-button {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
