.downloads-page { overflow: hidden; }

.downloads-hero {
  position: relative;
  min-height: min(760px, 90dvh);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 92px;
}
.downloads-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7%;
  right: -10%;
  width: 60%;
  height: 82%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 25, 43, 0.2), transparent 67%);
  filter: blur(18px);
}
.downloads-hero__copy { max-width: 570px; }
.downloads-hero h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  font-weight: 850;
  letter-spacing: -0.085em;
  line-height: 0.91;
}
.downloads-hero__intro {
  max-width: 45ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.7;
}
.downloads-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--subtle); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.downloads-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.downloads-hero__meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 5px var(--fx-red); }

.downloads-hero__visual { position: relative; min-height: 500px; }
.download-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent); border-radius: 50%; transform: rotate(-21deg); }
.download-orbit--one { width: 80%; aspect-ratio: 1; top: 6%; left: 10%; }
.download-orbit--two { width: 64%; aspect-ratio: 1; top: 18%; left: 18%; border-color: color-mix(in srgb, var(--red-bright) 36%, transparent); transform: rotate(28deg); }
.download-device { position: absolute; padding: 9px; border: 1px solid rgba(255, 255, 255, .5); background: linear-gradient(145deg, rgba(255,255,255,.27), rgba(255,255,255,.05)); box-shadow: 0 34px 70px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.5); }
.download-device__screen { position: relative; height: 100%; overflow: hidden; padding: 24px 18px; background: linear-gradient(155deg, #c31325 0%, #670711 47%, #140a0a 100%); color: #fff; }
.download-device__screen::after { content: ""; position: absolute; width: 150%; height: 50%; right: -40%; bottom: -18%; border-radius: 50%; background: rgba(255,255,255,.12); transform: rotate(-27deg); }
.download-device__brand { position: relative; z-index: 1; font-size: .65rem; font-weight: 900; letter-spacing: .2em; }
.download-device__screen strong { position: absolute; z-index: 1; left: 18px; bottom: 24px; font-size: 1.65rem; line-height: .97; letter-spacing: -.07em; }
.download-device__signal { position: absolute; z-index: 1; right: 15px; top: 24px; width: 36px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.6); }
.download-device--ios { z-index: 2; width: 212px; height: 430px; top: 12%; left: 22%; border-radius: 34px; transform: rotate(-11deg); }
.download-device--ios .download-device__screen { border-radius: 26px; }
.download-device__speaker { position: absolute; z-index: 2; top: 16px; left: 50%; width: 68px; height: 19px; border-radius: 12px; background: #080808; transform: translateX(-50%); }
.download-device--android { width: 190px; height: 365px; right: 7%; bottom: 8%; border-radius: 22px; transform: rotate(12deg); }
.download-device--android .download-device__screen { border-radius: 14px; background: linear-gradient(150deg, #d7aa62 0%, #7a4d1b 42%, #16110b 100%); }
.download-visual-tag { position: absolute; z-index: 3; display: inline-flex; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.download-visual-tag--ios { top: 8%; right: 17%; }
.download-visual-tag--android { bottom: 15%; left: 12%; }

.downloads-choices { padding-top: 84px; padding-bottom: 116px; }
.downloads-section-heading { display: grid; grid-template-columns: 1fr minmax(260px, .8fr); column-gap: 36px; align-items: end; max-width: 920px; margin-bottom: 34px; }
.downloads-section-heading .eyebrow { grid-column: 1 / -1; }
.downloads-section-heading h2 { margin: 0; font-size: clamp(2.1rem, 4.8vw, 4.3rem); letter-spacing: -.07em; line-height: .98; }
.downloads-section-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.download-card { position: relative; min-height: 410px; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, var(--surface-strong), var(--surface)); box-shadow: var(--shadow); }
.download-card::after { content: ""; position: absolute; right: -72px; bottom: -100px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--fx-red), transparent 68%); pointer-events: none; }
.download-card--android::after { background: radial-gradient(circle, var(--fx-gold), transparent 68%); }
.download-card__topline { position: relative; z-index: 1; width: 100%; display: flex; justify-content: space-between; color: var(--subtle); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.download-card__icon { position: relative; z-index: 1; margin-top: 46px; color: var(--text); font: 900 3rem/1 Arial, sans-serif; }
.download-card__icon--android { width: 43px; height: 40px; margin-top: 48px; border: 3px solid var(--text); border-radius: 13px 13px 9px 9px; }
.download-card__icon--android::before, .download-card__icon--android::after { content: ""; position: absolute; top: -11px; width: 16px; height: 10px; border-top: 3px solid var(--text); }
.download-card__icon--android::before { left: 3px; transform: rotate(-56deg); }
.download-card__icon--android::after { right: 3px; transform: rotate(56deg); }
.download-card__icon--android span::before, .download-card__icon--android span::after { content: ""; position: absolute; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--text); }
.download-card__icon--android span::before { left: 12px; } .download-card__icon--android span::after { right: 12px; }
.download-card h3 { position: relative; z-index: 1; margin: 25px 0 0; font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: -.05em; }
.download-card > p:not(.download-card__note) { position: relative; z-index: 1; max-width: 43ch; margin: 12px 0 0; color: var(--muted); line-height: 1.65; }
.download-action { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 190px; min-height: 47px; margin-top: auto; padding: 0 15px 0 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--surface-strong); font-weight: 850; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.download-action:hover { transform: translateY(-2px); border-color: var(--gold); background: var(--surface-strong); }
.download-action.is-pending { cursor: not-allowed; opacity: .78; }
.download-action.is-pending:hover { transform: none; border-color: var(--line); }
.download-card__note { position: relative; z-index: 1; min-height: 1.2em; margin: 12px 0 0; color: var(--subtle); font-size: .74rem; line-height: 1.4; }
.downloads-note { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin-top: 20px; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.downloads-note__mark { display: grid; flex: 0 0 auto; width: 22px; height: 22px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: .75rem; font-weight: 900; }
.downloads-note p { margin: 0; font-size: .8rem; line-height: 1.55; }

@media (max-width: 900px) {
  .downloads-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 140px; }
  .downloads-hero__copy { max-width: 680px; }
  .downloads-hero h1 { max-width: 12ch; }
  .downloads-hero__visual { width: min(100%, 580px); min-height: 480px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .downloads-hero { width: min(100% - 40px, 1180px); padding-top: 124px; padding-bottom: 42px; }
  .downloads-hero h1 { font-size: clamp(3.25rem, 17vw, 5rem); }
  .downloads-hero__visual { min-height: 390px; transform: scale(.82); transform-origin: top center; margin-bottom: -68px; }
  .downloads-section-heading { display: block; }
  .downloads-section-heading h2 { margin-bottom: 16px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { min-height: 370px; }
  .downloads-choices { padding-top: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .download-action:hover { transform: none; }
}
