:root {
  color-scheme: dark;
  --ink: #f8f4e8;
  --muted: #b7c0cf;
  --navy: #101827;
  --navy-soft: #18243a;
  --gold: #f2b84b;
  --gold-bright: #ffd06a;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 8%, rgba(242, 184, 75, 0.18), transparent 28rem),
    linear-gradient(150deg, #101827 0%, #0b111d 72%);
}

.locked {
  min-height: 100vh;
  overflow: hidden;
}

.locked > main,
.locked > footer {
  visibility: hidden;
}

.password-gate {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 20%, rgba(242, 184, 75, 0.18), transparent 25rem),
    var(--navy);
}

.password-gate[hidden] {
  display: none;
}

.password-gate form {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--navy-soft);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.password-gate img {
  display: block;
  width: 112px;
  height: 112px;
  margin: -4px auto 20px;
  object-fit: contain;
}

.password-gate label {
  display: block;
  margin: 24px 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.password-gate input {
  width: 100%;
  margin-bottom: 10px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #0b111d;
  font: inherit;
}

.password-gate input:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(242, 184, 75, 0.2);
}

.password-error {
  min-height: 24px;
  margin-bottom: 10px;
  color: #ff9f96;
  font-size: 0.9rem;
}

a {
  color: inherit;
}

main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  padding: 62px 0 42px;
}

.mascot {
  width: 100%;
  max-height: 410px;
  object-fit: contain;
  filter: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.38));
}

.eyebrow,
.platform {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.6rem, 9vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.1vw, 1.38rem);
  line-height: 1.65;
}

.downloads {
  padding: 70px 0 88px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 34px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.download-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 430px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(24, 36, 58, 0.78);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.download-card.featured {
  border-color: rgba(242, 184, 75, 0.48);
  background: linear-gradient(150deg, rgba(43, 50, 57, 0.95), rgba(24, 36, 58, 0.86));
}

.platform-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 16px;
  color: var(--navy);
  background: var(--gold);
  font-size: 2rem;
  font-weight: 900;
}

.platform-mark.android {
  border-radius: 50%;
}

.download-card p:not(.platform) {
  color: var(--muted);
  line-height: 1.65;
}

.download-button {
  display: block;
  padding: 15px 20px;
  border-radius: 12px;
  color: var(--navy);
  background: var(--gold);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}

.download-button:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.download-button.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.download-button:focus-visible,
.checksum:focus-visible,
footer a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.checksum {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  text-underline-offset: 4px;
}

.details {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 8vw, 110px);
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.details ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.details li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer span {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 760px) {
  main,
  footer {
    width: min(100% - 28px, 620px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 34px;
  }

  .mascot {
    max-height: 300px;
  }

  .cards,
  .details {
    grid-template-columns: 1fr;
  }

  .download-card {
    min-height: 390px;
  }

  footer {
    flex-direction: column;
  }
}

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