:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --paper: #f5f5f5;
  --white: #ffffff;
  --lime: #edfe75;
  --periwinkle: #757cfe;
  --grey: #797979;
  --line: rgba(10, 10, 10, 0.18);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 4%, rgba(117, 124, 254, 0.18), transparent 26rem),
    var(--paper);
}

a { color: inherit; }

.shell {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 42px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.quiet-link { font-size: 0.875rem; text-underline-offset: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: clamp(40px, 8vw, 132px);
  padding: clamp(72px, 10vw, 150px) 0 96px;
}

.eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: -18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--periwinkle);
  box-shadow: 0 0 0 5px rgba(117, 124, 254, 0.12);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 8.5vw, 8.4rem);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.lede {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.download-panel {
  align-self: end;
  padding: 28px;
  background: var(--lime);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.recommendation { margin-bottom: 6px; font-size: 1.15rem; font-weight: 700; }
.release-meta { margin-bottom: 28px; color: rgba(10, 10, 10, 0.66); font-size: 0.9rem; }

.download-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}

.download-button:hover { background: var(--periwinkle); color: var(--ink); transform: translateY(-2px); }
.download-button:focus-visible, a:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 3px; }
.download-button.is-disabled { pointer-events: none; opacity: 0.55; }
.arrow { font-size: 1.4rem; }
.error { margin: 18px 0 0; font-size: 0.9rem; }

.alternatives { padding: 86px 0 100px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: end; margin-bottom: 48px; }
.kicker { margin-bottom: 0; color: var(--grey); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
h2 { margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 5.4rem); font-weight: 520; letter-spacing: -0.06em; line-height: 0.95; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }

.platform-card { min-height: 290px; padding: 24px 24px 26px 0; border-bottom: 1px solid var(--ink); }
.platform-card + .platform-card { padding-left: 24px; border-left: 1px solid var(--ink); }
.platform-number { color: var(--grey); font-size: 0.75rem; }
.platform-card h3 { margin: 78px 0 10px; font-size: 1.5rem; letter-spacing: -0.035em; }
.platform-card > p:not(.platform-number) { min-height: 40px; color: var(--grey); line-height: 1.45; }
.platform-card a { display: inline-flex; gap: 8px; margin-top: 20px; font-weight: 700; text-underline-offset: 5px; }
.platform-card a[aria-disabled="true"] { pointer-events: none; opacity: 0.4; }

.help { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 90px 0; border-bottom: 1px solid var(--line); }
.help h2 { max-width: 920px; font-size: clamp(2rem, 4vw, 4.5rem); }
.help > p:last-child { grid-column: 2; max-width: 650px; margin: 12px 0 0; color: var(--grey); font-size: 1.05rem; line-height: 1.55; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 32px 0 40px; font-size: 0.82rem; }
footer p { margin: 0; }
footer div { display: flex; gap: 24px; }

body[data-channel="nightly"] .status-dot { background: #e6569e; box-shadow: 0 0 0 5px rgba(230, 86, 158, 0.12); }
body[data-channel="nightly"] .download-panel { background: #feb6ee; }

@media (max-width: 850px) {
  .shell { padding: 0 22px; }
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .download-panel { max-width: 520px; }
  .section-heading, .help { grid-template-columns: 1fr; }
  .help > p:last-child { grid-column: 1; }
}

@media (max-width: 620px) {
  .nav { min-height: 74px; }
  .quiet-link { display: none; }
  .hero { padding-bottom: 72px; }
  h1 { font-size: clamp(3.4rem, 18vw, 5.2rem); }
  .download-grid { grid-template-columns: 1fr; }
  .platform-card, .platform-card + .platform-card { min-height: 220px; padding: 22px 0; border-left: 0; }
  .platform-card h3 { margin-top: 44px; }
  footer { flex-direction: column; }
}

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