.download-body {
  background: #030d1a;
}

.download-main {
  overflow: hidden;
}

.download-hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 72px;
  color: #f8f5ed;
  background:
    radial-gradient(circle at 50% 8%, rgba(53, 93, 138, 0.25), transparent 30%),
    linear-gradient(155deg, #07182b 0%, #030d1a 58%, #061526 100%);
}

.download-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(232, 204, 143, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 204, 143, 0.025) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 82%, transparent);
}

.download-shell {
  position: relative;
  z-index: 1;
}

.download-orbit {
  position: absolute;
  top: 125px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(210, 174, 102, 0.09);
  border-radius: 50%;
}

.download-orbit-left {
  left: -205px;
}

.download-orbit-right {
  right: -205px;
}

.download-heading {
  max-width: 920px;
  margin: 0 auto 54px;
  text-align: center;
}

.download-kicker {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  color: #e6c77f;
  font: 700 11px/1 Montserrat, sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.download-kicker::before,
.download-kicker::after {
  content: "";
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cda95f);
}

.download-kicker::after {
  background: linear-gradient(90deg, #cda95f, transparent);
}

.download-heading h1 {
  margin: 26px 0 18px;
  color: #f8f5ed;
  font: 800 clamp(3.1rem, 7vw, 6.5rem)/0.95 Montserrat, sans-serif;
  letter-spacing: -0.052em;
}

.download-heading h1 span {
  display: block;
  margin-top: 12px;
  color: #edcd86;
}

.download-heading > p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: #aeb8c4;
  font-size: 1.05rem;
  line-height: 1.75;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  padding-top: 34px;
  border-top: 1px solid rgba(210, 174, 102, 0.2);
}

.platform-card {
  position: relative;
  min-height: 460px;
  display: grid;
  grid-template-rows: 50px 94px 42px minmax(108px, 1fr) 58px 30px;
  align-items: center;
  overflow: hidden;
  padding: 34px 30px 27px;
  border: 1px solid rgba(232, 204, 143, 0.3);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(32, 61, 90, 0.72), rgba(5, 20, 37, 0.96) 70%), #07182b;
  text-align: center;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), inset 0 0 0 6px rgba(3, 14, 27, 0.2), 0 22px 48px rgba(0, 0, 0, 0.24);
}

.platform-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e2bd70, transparent);
}

.platform-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(232, 204, 143, 0.1);
  border-radius: 10px;
}

.card-index {
  position: absolute;
  display: grid;
  justify-items: center;
  color: rgba(237, 205, 134, 0.7);
  font: 700 18px/0.9 Georgia, serif;
  z-index: 2;
}

.card-index svg {
  width: 14px;
  height: 14px;
  margin-top: 4px;
}

.card-index-top {
  top: 21px;
  left: 22px;
}

.card-index-bottom {
  right: 22px;
  bottom: 21px;
  transform: rotate(180deg);
}

.platform-ios .card-index {
  color: rgba(239, 145, 130, 0.78);
}

.platform-crown {
  width: 56px;
  height: 38px;
  margin: 4px auto 0;
  color: #e4c177;
  filter: drop-shadow(0 4px 14px rgba(226, 189, 112, 0.18));
  z-index: 1;
}

.platform-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 8px auto;
  border: 1px solid rgba(232, 204, 143, 0.3);
  border-radius: 50%;
  color: #f8f5ed;
  background: rgba(2, 12, 24, 0.5);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.platform-icon svg {
  width: 38px;
  height: 38px;
}

.platform-card h2 {
  margin: 0;
  color: #f8f5ed;
  font: 700 1.6rem/1.1 Montserrat, sans-serif;
  z-index: 1;
}

.platform-card > p {
  align-self: start;
  margin: 14px 0 18px;
  color: #aab5c1;
  font-size: 0.9rem;
  line-height: 1.65;
  z-index: 1;
}

.platform-download {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border: 1px solid #d6b266;
  border-radius: 8px;
  color: #071426;
  background: linear-gradient(180deg, #f0d48f, #caa359);
  font: 700 0.7rem/1.25 Montserrat, sans-serif;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(202, 163, 89, 0.14);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  z-index: 2;
}

.platform-download:hover,
.platform-download:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 32px rgba(202, 163, 89, 0.22);
}

.platform-download:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.platform-card small {
  align-self: end;
  margin-top: 10px;
  color: #7f8e9f;
  font: 600 0.62rem/1.4 Montserrat, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.account-promise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 28px 20px 0;
  color: #9ca9b7;
  font-size: 0.83rem;
  text-align: center;
}

.account-promise strong {
  color: #d4dbe3;
  font-weight: 600;
}

.account-promise i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #cda95f;
}

@media (max-width: 920px) {
  .platform-grid {
    grid-template-columns: 1fr;
    max-width: 610px;
    margin: 0 auto;
  }

  .platform-card {
    min-height: 440px;
  }
}

@media (max-width: 640px) {
  .download-hero {
    padding: 125px 0 54px;
  }

  .download-heading {
    margin-bottom: 38px;
  }

  .download-kicker::before,
  .download-kicker::after {
    width: 26px;
  }

  .download-heading h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .download-heading > p:last-child {
    font-size: 0.96rem;
  }

  .platform-card {
    min-height: 420px;
    padding-inline: 24px;
  }

  .account-promise {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-download {
    transition: none;
  }
}
