:root {
  --page-bg: #061a36;
  --panel: rgba(4, 16, 34, 0.82);
  --panel-border: rgba(149, 221, 255, 0.24);
  --text: #f4fbff;
  --muted: rgba(244, 251, 255, 0.72);
  --gold-1: #fff475;
  --gold-2: #ffc72d;
  --gold-3: #d97800;
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 0%, rgba(45, 186, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 88% 24%, rgba(255, 202, 39, 0.18), transparent 18rem),
    linear-gradient(180deg, #0b4d8c 0%, #061a36 36%, #05111f 100%);
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.landing-phone {
  position: relative;
  width: min(100%, 750px);
  min-height: 100vh;
  background: #071528;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.46);
  overflow: clip;
}

.top-actions {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  margin: 0 auto;
  padding: 8px;
  padding-top: max(8px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(11, 45, 83, 0.92), var(--panel));
  box-shadow: 0 12px 28px var(--shadow);
  backdrop-filter: blur(14px);
}

.field {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.field select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(151, 222, 255, 0.24);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  background: rgba(5, 19, 39, 0.96);
  outline: none;
}

.image-stack {
  position: relative;
  z-index: 1;
}

.image-frame {
  position: relative;
  display: block;
  opacity: 0;
  transform: translateY(10px);
  animation: panel-in 420ms ease forwards;
}

.image-frame:nth-child(2) {
  animation-delay: 80ms;
}

.image-frame:nth-child(3) {
  animation-delay: 150ms;
}

.image-frame:nth-child(4) {
  animation-delay: 220ms;
}

.image-panel {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}

.top-download-hotspot {
  position: absolute;
  top: 15%;
  right: 4%;
  width: 28%;
  height: 62%;
  z-index: 3;
  border-radius: 999px;
}

.top-download-hotspot:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 12;
  width: min(calc(100% - 24px), 726px);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(6, 38, 73, 0.93), rgba(4, 16, 34, 0.93));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.cta-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  line-height: 1.08;
}

.cta-copy strong {
  font-size: clamp(17px, 5vw, 22px);
  color: white;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.cta-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-button {
  flex: 0 0 auto;
  min-width: 126px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #6a3300;
  font-size: 15px;
  font-weight: 1000;
  text-decoration: none;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48);
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 48%, var(--gold-3) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -3px 0 rgba(126, 57, 0, 0.26),
    0 8px 18px rgba(0, 0, 0, 0.26);
}

.download-button:active {
  transform: translateY(1px);
}

@keyframes panel-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  body {
    padding: 20px 0;
  }

  .landing-phone {
    border-radius: 14px;
  }

  .sticky-cta {
    bottom: 22px;
  }
}

@media (max-width: 359px) {
  .top-actions {
    grid-template-columns: 1fr;
  }

  .download-button {
    min-width: 106px;
    padding: 0 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-frame {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
