.download-page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg-deep);
}

.download-header {
  background: rgba(21, 18, 15, .78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.download-main {
  position: relative;
  min-height: calc(100svh - 74px);
  display: grid;
  place-items: center;
  padding: calc(var(--header) + 58px) 0 72px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 20%, rgba(242, 193, 78, .1), transparent 31rem),
    linear-gradient(145deg, #17130f 0%, #12100e 56%, #121412 100%);
}

.download-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.download-orbit {
  position: absolute;
  z-index: -2;
  width: min(74vw, 900px);
  aspect-ratio: 1;
  border: 1px solid rgba(242, 193, 78, .08);
  border-radius: 50%;
  pointer-events: none;
}

.download-orbit--one { top: -48%; right: -26%; }
.download-orbit--two { bottom: -60%; left: -24%; border-color: rgba(111, 143, 120, .08); }

.download-stage {
  position: relative;
  width: min(calc(100% - 40px), 850px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.download-app-icon {
  position: relative;
  width: 112px;
  margin-bottom: 34px;
}

.download-app-icon img {
  position: relative;
  z-index: 1;
  width: 112px;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .52), 0 0 0 1px rgba(242, 234, 223, .13);
}

.download-app-glow {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: rgba(242, 193, 78, .2);
  filter: blur(30px);
}

.download-stage h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.025em;
}

.redirect-status {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 30px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream-2);
  background: rgba(30, 25, 21, .72);
  font-size: 13px;
  backdrop-filter: blur(14px);
}

.no-js .redirect-status,
.no-js .download-note {
  display: none;
}

.redirect-status__indicator {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(242, 193, 78, .38);
  animation: download-pulse 1.35s ease-out infinite;
}

.redirect-status[data-redirect-status="select"] .redirect-status__indicator {
  background: var(--sage);
  animation: none;
}

.download-store-options {
  width: min(100%, 480px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.download-store-button {
  position: relative;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  text-align: left;
  background: rgba(30, 25, 21, .82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.download-store-button:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 193, 78, .5);
  background: rgba(39, 33, 28, .96);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .26);
}

.download-store-button.is-recommended {
  border-color: rgba(242, 193, 78, .52);
  background: linear-gradient(145deg, rgba(45, 35, 24, .98), rgba(30, 25, 21, .94));
}

.download-store-button.is-recommended::after {
  content: attr(data-badge);
  position: absolute;
  right: 10px;
  top: -10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--bg-deep);
  background: var(--amber);
  font: 700 9px/1 var(--font-body);
  letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(242, 193, 78, .16);
}

.download-store-button svg {
  width: 30px;
  flex: 0 0 auto;
  fill: var(--cream-2);
}

.download-store-button span {
  display: flex;
  flex-direction: column;
}

.download-store-button small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .06em;
}

.download-store-button strong {
  color: var(--cream);
  font-size: 16px;
  line-height: 1.25;
}

.download-note,
.noscript-message {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.download-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  background: var(--bg-deep);
  font-size: 11px;
}

.download-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color .2s ease;
}

.download-footer a:hover { color: var(--amber); }

@keyframes download-pulse {
  70% { box-shadow: 0 0 0 8px rgba(242, 193, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 193, 78, 0); }
}

@media (max-width: 600px) {
  .download-main { padding: calc(var(--header) + 38px) 0 54px; }
  .download-stage { width: min(calc(100% - 28px), 850px); }
  .download-app-icon,
  .download-app-icon img { width: 88px; }
  .download-app-icon { margin-bottom: 28px; }
  .download-app-icon img { border-radius: 21px; }
  .download-stage h1 { font-size: clamp(46px, 15vw, 64px); }
  .redirect-status { width: 100%; justify-content: center; margin-top: 24px; }
  .download-store-options { grid-template-columns: 1fr; margin-top: 22px; }
  .download-store-button { width: 100%; min-height: 68px; }
}

@media (max-width: 380px) {
  .download-stage h1 { font-size: 43px; }
  .download-footer { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .redirect-status__indicator { animation: none; }
}
