:root {
  color-scheme: light dark;
  --bg: #f4f6f8;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #171a1f;
  --muted: #66707d;
  --line: rgba(18, 27, 39, 0.12);
  --accent: #1769e0;
  --accent-pressed: #0e4faa;
  --preview: #6c4fd3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(58, 130, 246, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
}

main,
footer {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

main {
  padding: 72px 0 36px;
}

.hero {
  max-width: 760px;
  margin-bottom: 48px;
}

.brand,
footer a {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-weight: 650;
}

.eyebrow,
.release__kind {
  margin: 28px 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.release,
.trust {
  margin-top: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(29, 42, 62, 0.07);
}

.release__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.release__kind {
  margin: 0 0 6px;
}

.release--preview .release__kind {
  color: var(--preview);
}

h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.release__version,
.status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.download {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-strong);
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}

.download:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  transform: translateY(-1px);
}

.download:active {
  border-color: var(--accent-pressed);
  transform: translateY(0);
}

.download:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 3px;
}

.download strong {
  font-size: 15px;
}

.download span {
  color: var(--muted);
  font-size: 12px;
}

.download--recommended {
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
}

.status {
  margin-top: 18px;
  line-height: 1.6;
}

.status--error {
  color: #a13b2d;
}

.trust ol {
  margin: 20px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  main {
    padding-top: 44px;
  }

  .release__head {
    align-items: start;
    flex-direction: column;
  }

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --surface: rgba(25, 29, 35, 0.9);
    --surface-strong: #1b1f25;
    --text: #f2f4f7;
    --muted: #a4acb7;
    --line: rgba(233, 239, 248, 0.13);
    --accent: #73a9ff;
    --accent-pressed: #9fc3ff;
    --preview: #b5a3ff;
  }

  body {
    background:
      radial-gradient(circle at 18% 0%, rgba(72, 132, 230, 0.13), transparent 34rem),
      var(--bg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .download {
    transition: none;
  }
}
