:root {
  --pink: #ff6b81;
  --deep: #c41e3a;
  --text: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: #c41e3a;
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #ff8a96 0%, #ef4d66 42%, #c41e3a 100%);
  animation: skyShift 14s ease-in-out infinite alternate;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(255, 210, 120, 0.16), transparent 32%);
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.glow-a {
  width: 52vw;
  height: 52vw;
  left: -16vw;
  top: -12vw;
  background: rgba(255, 180, 200, 0.55);
  animation: drift 16s ease-in-out infinite;
}

.glow-b {
  width: 40vw;
  height: 40vw;
  right: -12vw;
  top: 28vh;
  background: rgba(255, 120, 90, 0.42);
  animation: drift 19s ease-in-out infinite reverse;
}

.glow-c {
  width: 46vw;
  height: 46vw;
  left: 28vw;
  bottom: -18vw;
  background: rgba(255, 214, 140, 0.28);
  animation: drift 22s ease-in-out infinite;
}

#spark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes skyShift {
  from { filter: saturate(1) hue-rotate(0deg); }
  to { filter: saturate(1.15) hue-rotate(12deg); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, -4vh) scale(1.12); }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: min(420px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 0 36px;
}

.brand {
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.92;
}

h1 {
  font-size: clamp(40px, 9vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lede {
  margin-top: 22px;
  max-width: 340px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.stores {
  width: 100%;
  max-width: 280px;
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.btn .play-icon {
  width: 22px;
  height: 22px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: #d22645;
}

.btn-ghost {
  background: rgba(92, 16, 28, 0.38);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.foot {
  margin-top: 48px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.contact {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 500;
}

.contact a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact a:hover {
  color: #fff;
}

.page-go {
  justify-content: center;
  transition: padding 0.9s ease;
}

.page-go.auth-mode {
  padding-top: 8vh;
  padding-bottom: 8vh;
}

.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-ok {
  background: rgba(255, 255, 255, 0.22);
}

.perks {
  list-style: none;
  width: 100%;
  max-width: 320px;
  margin: 22px auto 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.perks li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  font-weight: 800;
}

.btn-cta {
  width: 100%;
  max-width: 280px;
  margin-top: 28px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.micro {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

#unlock-view .stores {
  margin-top: 28px;
}

#gate-intro {
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.95s ease;
  max-height: 640px;
  overflow: hidden;
}

#cta-wrap {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.85s ease,
    margin 0.85s ease;
  max-height: 180px;
  overflow: hidden;
}

#gate-view.auth-focus {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(62vh, 520px);
}

#gate-view.auth-focus #gate-intro,
#gate-view.auth-focus #cta-wrap {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
}

#auth-mount {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  filter: blur(2px);
  transition: opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.05s ease;
  will-change: opacity, transform, filter;
}

#auth-mount.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

#auth-mount.is-in::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
  z-index: -1;
  animation: authHalo 1.4s ease both;
}

@keyframes authHalo {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #gate-intro,
  #cta-wrap,
  #auth-mount,
  .page-go {
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }
}

#cta-wrap[hidden],
#auth-mount[hidden],
#gate-view[hidden],
#unlock-view[hidden] {
  display: none !important;
}
