:root {
  color-scheme: dark;
  --bg: #050608;
  --text: #fff8df;
  --muted: #c9bd9b;
  --gold: #f6c64b;
  --gold-deep: #8b5a10;
  --red: #c82235;
  --blue: #37a4ff;
  --green: #16b277;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(246, 198, 75, 0.2), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(200, 34, 53, 0.18), transparent 30%),
    radial-gradient(circle at 78% 72%, rgba(55, 164, 255, 0.13), transparent 30%),
    linear-gradient(145deg, #040506 0%, #11161d 48%, #100608 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.download-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  isolation: isolate;
}

.download-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle, black 0%, transparent 78%);
}

.download-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.download-hero {
  position: relative;
  display: grid;
  width: min(100%, 980px);
  justify-items: center;
  padding: clamp(32px, 7vw, 78px) clamp(18px, 5vw, 72px);
  text-align: center;
}

.home-link {
  width: min(72vw, 420px);
  margin-bottom: clamp(20px, 5vw, 38px);
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.72));
}

.animated-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.3vw, 13px);
  margin-bottom: 18px;
  perspective: 760px;
}

.animated-logo span {
  display: inline-block;
  min-width: clamp(38px, 9vw, 94px);
  color: transparent;
  font-size: clamp(54px, 14vw, 138px);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  -webkit-text-stroke: 2px rgba(255, 240, 170, 0.95);
  background: linear-gradient(180deg, #fff26f 0%, #ffc21e 38%, #c8790a 72%, #4d2603 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 7px 0 rgba(85, 48, 7, 0.82)) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.75));
  animation: letterDeal 3.6s cubic-bezier(.2, .9, .2, 1) infinite;
  animation-delay: var(--delay);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(34px, 7vw, 74px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(16px, 2.6vw, 21px);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.store-button {
  display: inline-flex;
  min-width: 204px;
  min-height: 68px;
  align-items: center;
  gap: 13px;
  padding: 12px 18px;
  border: 1px solid rgba(246, 198, 75, 0.28);
  border-radius: 18px;
  background: rgba(8, 10, 13, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.store-button:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 198, 75, 0.72);
  background: rgba(18, 20, 24, 0.86);
}

.store-button.primary {
  background: linear-gradient(135deg, rgba(246, 198, 75, 0.96), rgba(168, 98, 10, 0.96));
  color: #100902;
}

.store-button.muted {
  opacity: 0.78;
}

.store-button small,
.store-button strong {
  display: block;
}

.store-button small {
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.72;
}

.store-button strong {
  font-size: 19px;
  font-weight: 950;
}

.store-symbol {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.store-symbol.apple::before {
  content: "";
  width: 19px;
  height: 24px;
  border-radius: 50% 50% 45% 45%;
  background: currentColor;
  box-shadow: 7px -10px 0 -5px currentColor;
}

.store-symbol.web::before {
  content: "";
  width: 23px;
  height: 23px;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 8px 0 0 -6px currentColor, inset -8px 0 0 -6px currentColor;
}

.store-symbol.play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 19px solid currentColor;
}

.download-note {
  max-width: 520px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.card-orbit {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.play-card {
  position: absolute;
  display: grid;
  width: clamp(58px, 8vw, 94px);
  height: clamp(82px, 11vw, 134px);
  grid-template-rows: auto 1fr;
  padding: 10px;
  border: 1px solid rgba(246, 198, 75, 0.5);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 250, 230, 0.96), rgba(222, 213, 190, 0.92));
  color: #111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.56);
  animation: floatCard 6.8s ease-in-out infinite;
}

.play-card b {
  font-size: clamp(17px, 2.2vw, 25px);
  line-height: 1;
}

.play-card i {
  align-self: center;
  justify-self: center;
  color: var(--red);
  font-size: clamp(28px, 5vw, 54px);
  font-style: normal;
}

.card-one {
  top: 13%;
  left: 8%;
  rotate: -15deg;
}

.card-two {
  top: 18%;
  right: 9%;
  rotate: 14deg;
  animation-delay: -1.1s;
}

.card-three {
  bottom: 12%;
  left: 12%;
  rotate: 11deg;
  animation-delay: -2.3s;
}

.card-four {
  right: 13%;
  bottom: 10%;
  rotate: -13deg;
  animation-delay: -3.4s;
}

@keyframes letterDeal {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotateX(58deg) scale(0.9);
  }
  16%,
  70% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
  80% {
    transform: translateY(-8px) rotateX(0deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -22px, 0) rotate(5deg);
  }
}

@media (max-width: 720px) {
  .download-page {
    padding: 18px;
  }

  .download-hero {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .home-link {
    width: min(78vw, 330px);
  }

  .download-actions {
    width: 100%;
  }

  .store-button {
    width: min(100%, 340px);
  }

  .card-one {
    top: 8%;
    left: -16px;
  }

  .card-two {
    top: 9%;
    right: -18px;
  }

  .card-three,
  .card-four {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
