:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #fff;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000; }
body { margin: 0; min-width: 280px; background: #000; }
a { color: inherit; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 68px;
  padding: env(safe-area-inset-top) max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; font-size: 18px; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.platform { color: #9e9e9e; font-size: 14px; }

main { overflow: hidden; }
.hero {
  min-height: 82svh;
  padding: max(110px, calc(82px + env(safe-area-inset-top))) 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid #202020;
}

.hero-logo { width: clamp(120px, 23vw, 230px); aspect-ratio: 1; object-fit: contain; margin-bottom: 26px; }
.eyebrow { margin: 0 0 13px; color: #a8a8a8; font-size: 13px; font-weight: 650; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(42px, 9vw, 82px); line-height: 1; }
h2 { font-size: clamp(28px, 5vw, 44px); }
.lead { width: min(680px, 100%); margin: 22px auto 0; color: #c9c9c9; font-size: clamp(17px, 2.2vw, 22px); line-height: 1.55; overflow-wrap: anywhere; }
.actions { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.download { min-width: 220px; padding: 15px 24px; border-radius: 8px; background: #fff; color: #000; font-weight: 750; text-decoration: none; }
.download:hover { background: #dedede; }
.version, .checksum { color: #8f8f8f; font-size: 13px; }
.checksum { margin-top: 14px; text-underline-offset: 4px; }

.steps { padding: 84px max(24px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid #202020; }
.section-heading { margin-bottom: 32px; }
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.step-grid li { min-height: 210px; padding: 24px; border: 1px solid #2c2c2c; border-radius: 8px; background: #111; }
.step-grid span { display: block; margin-bottom: 30px; color: #787878; font: 600 13px ui-monospace, monospace; }
.step-grid strong { display: block; font-size: 19px; }
.step-grid p { margin: 12px 0 0; color: #aaa; line-height: 1.55; }
code { color: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.privacy { padding: 84px max(24px, calc((100vw - 1120px) / 2)); display: grid; grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr); gap: 70px; align-items: start; }
.privacy > p { margin: 0; color: #b9b9b9; font-size: 18px; line-height: 1.65; }

footer { min-height: 82px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #202020; color: #888; font-size: 14px; }
footer a { text-underline-offset: 4px; }

@media (max-width: 720px) {
  .topbar { height: 60px; }
  .hero { min-height: 82svh; padding-top: 96px; }
  .hero-logo { width: 132px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid li { min-height: 0; }
  .privacy { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
