:root {
  color-scheme: dark;
  --bg: #091226;
  --surface: #14223a;
  --text: #f2faff;
  --muted: #b0bfd2;
  --accent: #45e3c4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }

.page-header, main { width: min(100% - 48px, 1072px); margin-inline: auto; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  border-bottom: 1px solid #ffffff16;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 720; }
.back { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.back:hover { color: var(--accent); }

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 260px;
  margin-block: 34px 22px;
  padding: 40px clamp(24px, 6vw, 64px);
  border: 1px solid #71bda745;
  border-radius: 26px;
  background: radial-gradient(ellipse at 85% 70%, #214a52 0%, #142d43 37%, #112038 75%);
}
.hero h1 { margin: 0; font-size: clamp(2rem, 5.7vw, 4.25rem); line-height: 1.15; letter-spacing: -.045em; }
.hero h1 span { color: var(--accent); margin-inline-start: .23em; }
.hero p { margin: 17px 0 0; max-width: 28em; color: #c6d7e4; line-height: 1.65; }
.hero-icon { flex: none; width: clamp(65px, 19vw, 168px); height: auto; filter: drop-shadow(0 14px 23px #020c21a0); }

.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.platform {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid #ffffff20;
  background: var(--surface);
  border-radius: 18px;
}
.platform-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #ffffff12;
  color: var(--accent);
  position: relative;
}
.platform-mark::before, .platform-mark::after { content: ""; }
.windows-mark::before {
  width: 8px; height: 8px; background: currentColor;
  box-shadow: 10px 0 currentColor, 0 10px currentColor, 10px 10px currentColor;
  transform: translate(-5px, -5px);
  position: absolute;
}
.mac-mark::before { position: absolute; width: 19px; height: 13px; border: 1.7px solid; border-radius: 3px; top: 10px; }
.mac-mark::after { position: absolute; width: 25px; height: 1.7px; background: currentColor; border-radius: 2px; top: 27px; }
.android-mark::before { position: absolute; width: 12px; height: 20px; border: 1.7px solid; border-radius: 4px; }
.android-mark::after { position: absolute; width: 4px; height: 1.7px; background: currentColor; border-radius: 2px; bottom: 12px; }
.platform h2 { margin: 16px 0 0; font-size: 1.35rem; }
.platform p { margin: 6px 0 17px; color: var(--muted); font-size: .9rem; }
.file-meta { margin-top: auto; color: var(--muted); min-height: 1.4em; font-size: .82rem; font-variant-numeric: tabular-nums; }
.download-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 13px;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #092623;
  font-size: .95rem;
  font-weight: 720;
}
.download-button:hover { background: #80f8e2; }
.upgrade-note { color: var(--muted); font-size: .85rem; text-align: center; margin-block: 23px 38px; }

@media (max-width: 670px) {
  .page-header, main { width: calc(100% - 28px); }
  .page-header { min-height: 62px; }
  .hero { min-height: 0; margin-block: 18px 14px; padding: 23px 16px; border-radius: 18px; gap: 10px; }
  .hero p { font-size: .9rem; margin-top: 11px; }
  .downloads { grid-template-columns: 1fr; gap: 9px; }
  .platform { display: grid; grid-template-columns: 38px 1fr auto; gap: 4px 10px; padding: 13px; border-radius: 13px; }
  .platform-mark { grid-row: 1 / 3; width: 38px; height: 38px; align-self: center; }
  .platform h2, .platform p { margin: 0; }
  .platform h2 { font-size: 1.05rem; }
  .platform p { font-size: .72rem; grid-column: 2; }
  .file-meta { grid-column: 2; font-size: .72rem; }
  .download-button { grid-column: 3; grid-row: 1 / 4; align-self: center; margin: 0; padding-inline: 8px; font-size: .75rem; }
}
