:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --text: #f4f4f5;
  --muted: #a2a2a8;
  --faint: #73737a;
  --border: #343438;
  --strong: #fafafa;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -20%, #2b2b2f 0, var(--bg) 42%); }
a { color: inherit; }
main { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: clamp(52px, 9vw, 104px) 0 32px; }

.hero { max-width: 690px; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(42px, 9vw, 78px); line-height: .95; letter-spacing: -.055em; }
h2 { margin-bottom: 0; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.035em; }
.lead { max-width: 540px; margin: 0 auto 34px; color: var(--muted); font-size: clamp(16px, 2.5vw, 19px); line-height: 1.55; }

.release-card { padding: 20px; text-align: left; background: rgba(21,21,23,.9); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 26px 70px rgba(0,0,0,.38); }
.release-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.release-heading strong, .release-heading span { display: block; }
.platform { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.release-heading strong { font-size: 17px; }
.status { padding: 6px 9px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; font-size: 11px; font-weight: 700; }
.status.ready { color: #0b0b0c; background: #f4f4f5; border-color: #f4f4f5; }

.download-button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 64px; padding: 12px 16px; color: #0b0b0c; background: var(--strong); border: 1px solid var(--strong); border-radius: 14px; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.download-button:hover { background: #dedee1; transform: translateY(-1px); }
.download-button:focus-visible { outline: 3px solid rgba(255,255,255,.28); outline-offset: 3px; }
.download-button span { font-size: 15px; font-weight: 800; }
.download-button small { font-size: 11px; font-weight: 650; }
.download-button.disabled { color: var(--faint); background: var(--surface-2); border-color: var(--border); pointer-events: none; }
.notice { margin: 13px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.integrity { display: grid; gap: 11px; margin: 18px 0 0; padding-top: 17px; border-top: 1px solid var(--border); }
.integrity div { min-width: 0; }
.integrity dt { margin-bottom: 5px; color: var(--faint); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.integrity dd { margin: 0; }
.integrity code { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.55; }

.instructions { margin-top: clamp(70px, 11vw, 110px); }
.section-heading { margin-bottom: 25px; }
.instructions ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.instructions li { min-height: 180px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.instructions li > span { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 28px; color: #0b0b0c; background: var(--text); border-radius: 50%; font-size: 12px; font-weight: 800; }
.instructions strong { display: block; margin-bottom: 7px; }
.instructions li p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.security { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: end; margin-top: 56px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.security p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 20px; color: var(--faint); border-top: 1px solid var(--border); font-size: 11px; }
footer a { color: var(--muted); }
noscript { display: block; padding: 18px; color: var(--text); background: #2a2020; text-align: center; }

@media (max-width: 680px) {
  main { width: min(100% - 24px, 520px); padding-top: 48px; }
  .release-card { padding: 15px; border-radius: 19px; }
  .release-heading { align-items: flex-start; }
  .download-button { align-items: flex-start; flex-direction: column; gap: 3px; }
  .instructions ol { grid-template-columns: 1fr; }
  .instructions li { display: grid; grid-template-columns: 38px 1fr; gap: 9px; min-height: 0; }
  .instructions li > span { margin: 0; }
  .security { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  footer { flex-wrap: wrap; }
}

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