:root {
  color-scheme: dark;
  --background: #080a0f;
  --surface: #121620;
  --surface-soft: #191e2a;
  --border: #30394b;
  --text: #f7f8fb;
  --muted: #c4cad5;
  --gold: #ffc21c;
  --gold-dark: #a56b00;
  --red: #ff3b30;
  --success: #70e09a;
  --error: #ff9a94;
  --shadow: 0 18px 54px rgb(0 0 0 / 35%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 50% -10%, rgb(255 194 28 / 15%), transparent 38rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero,
main,
footer {
  width: min(860px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  padding: 68px 0 42px;
  text-align: center;
}

.brand-mark {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  place-items: center;
  border: 2px solid #ffe28a;
  border-radius: 22px;
  background: linear-gradient(145deg, #ff4338 0 42%, #161a22 42% 66%, #ffbf17 66%);
  box-shadow: 0 0 36px rgb(255 194 28 / 22%);
  color: white;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin: 0 auto 16px;
  font-size: clamp(2.35rem, 9vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.hero-copy {
  max-width: 650px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease;
}

.button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

.button[aria-disabled="true"] {
  cursor: wait;
  filter: saturate(0.5);
  transform: none;
}

.button-primary {
  min-width: min(100%, 320px);
  background: var(--gold);
  box-shadow: 0 12px 30px rgb(255 194 28 / 20%);
  color: #181000;
}

.button-secondary {
  border-color: var(--gold);
  color: var(--gold);
}

.download-status {
  min-height: 1.6em;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.download-status[data-state="checking"] {
  color: var(--gold);
}

.download-status[data-state="ready"] {
  color: var(--success);
}

.download-status[data-state="error"] {
  color: var(--error);
}

main {
  display: grid;
  gap: 22px;
  padding-bottom: 28px;
}

.card,
.security-note {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 42px);
  background: linear-gradient(145deg, rgb(25 30 42 / 98%), rgb(14 18 26 / 98%));
  box-shadow: var(--shadow);
}

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

.facts div {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--surface-soft);
}

.facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 780;
}

.checksum {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.checksum summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 760;
}

.checksum p {
  margin: 16px 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.checksum code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.84rem;
}

.compatibility-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.steps,
.product-list,
.security-note ul {
  margin: 0;
}

.steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--gold);
  color: #181000;
  font-weight: 900;
}

.steps p {
  margin: 0;
}

.product-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.help-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.help-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.security-note {
  border-color: #5a4511;
  background: #1b170d;
}

.security-note h2 {
  color: var(--gold);
}

footer {
  padding: 24px 0 46px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.noscript-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero,
  main,
  footer {
    width: min(100% - 22px, 860px);
  }

  .hero {
    padding-top: 44px;
  }

  .button {
    width: 100%;
  }

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

  .help-card {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .button {
    min-height: 64px;
    font-size: 1.12rem;
  }
}

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