:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: #10141b;
  --panel-alt: #0d1117;
  --line: rgba(133, 152, 187, 0.28);
  --line-strong: rgba(133, 152, 187, 0.5);
  --text: #eef4ff;
  --muted: #94a1b7;
  --accent: #8ea3d6;
  --accent-strong: #b2c1ef;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --mono: "Geist Mono", "SFMono-Regular", "SF Mono", Consolas, monospace;
  --sans: "Geist", "Inter", "SF Pro Display", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(58, 79, 122, 0.2), transparent 36%),
    linear-gradient(180deg, #0b0f16 0%, #090b10 52%, #07090e 100%);
  color: var(--text);
  font-family: var(--sans);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero,
.downloads,
.notes {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 20, 27, 0.96), rgba(10, 13, 18, 0.98));
  box-shadow: var(--shadow);
}

.hero,
.downloads {
  padding: 28px;
}

.downloads,
.notes {
  margin-top: 18px;
}

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
.lede,
.download-platform,
.download-file,
.download-size,
.stat strong,
.stat span,
.release-notes,
.download-link,
.recommended-label {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 60ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-panel,
.recommended,
.download-card,
.note-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 22, 31, 0.88), rgba(9, 12, 18, 0.96));
}

.hero-panel {
  display: grid;
  gap: 1px;
}

.stat,
.note-panel {
  padding: 18px;
  background: var(--panel-alt);
}

.stat span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat strong,
.stat a {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

h2,
h3 {
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.release-notes,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(30, 39, 59, 0.82), rgba(16, 20, 27, 0.96));
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recommended {
  margin-top: 24px;
  padding: 22px;
}

.recommended-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.recommended-title {
  margin-top: 10px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.recommended-body {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.recommended-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

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

.download-card {
  padding: 18px;
}

.download-meta {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.download-platform {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.download-file,
.download-size,
.recommended-body,
.note-panel p {
  color: var(--muted);
}

.download-file,
.download-size,
.stat strong {
  font-family: var(--mono);
}

.download-file {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}

.download-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.download-size {
  font-size: 0.82rem;
}

.note-panel {
  min-height: 100%;
}

.note-panel h3 {
  font-size: 1.25rem;
}

.note-panel p {
  margin-top: 10px;
  line-height: 1.7;
}

.is-hidden {
  display: none;
}

@media (max-width: 920px) {
  .hero-grid,
  .download-grid,
  .notes {
    grid-template-columns: 1fr;
  }

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

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 20px, 1120px);
    padding: 24px 0 48px;
  }

  .hero,
  .downloads {
    padding: 20px;
  }

  .download-actions,
  .recommended-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .release-notes,
  .download-link {
    width: 100%;
  }
}
