:root {
  --bg: #070014;
  --card-bg: rgba(20, 10, 40, 0.72);
  --border: rgba(255, 255, 255, 0.10);
  --muted: rgba(255, 255, 255, 0.65);
  --white: #ffffff;

  --purple-1: #6a2bff;
  --purple-2: #2b0fff;
  --purple-3: #120027;

  --gold: #ffd34d;
  --gold-deep: #ffb300;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: dark; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #2a0fff 0, #0b001b 55%, #05000f 100%);
}

/* Background */
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  position: relative;
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -2;
  filter: blur(26px);
  opacity: 0.9;
}

body::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(106, 43, 255, 0.38), transparent 62%);
  top: -210px;
  left: -210px;
  animation: orbDriftLeft 18s ease-in-out infinite alternate;
}

body::after {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255, 211, 77, 0.22), transparent 65%);
  bottom: -190px;
  right: -170px;
  animation: orbDriftRight 22s ease-in-out infinite alternate;
}

@keyframes orbDriftLeft {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(42px, 28px) scale(1.06); }
  100% { transform: translate(10px, -12px) scale(0.98); }
}

@keyframes orbDriftRight {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -38px) scale(1.08); }
  100% { transform: translate(-6px, 10px) scale(0.96); }
}

/* Floating coins (generated by JS) */
.bg-coins {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-coin {
  position: absolute;
  top: -15vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45));
  opacity: 0.9;
  animation: coinFall linear infinite;
  will-change: transform, opacity;
}

@keyframes coinFall {
  0% {
    transform: translate3d(var(--x, 0px), -18vh, 0) rotate(0deg) scale(var(--s, 1));
    opacity: 0;
  }
  10% { opacity: 0.9; }
  100% {
    transform: translate3d(var(--x, 0px), 118vh, 0) rotate(360deg) scale(var(--s, 1));
    opacity: 0;
  }
}

/* App shell */
.app {
  width: 100%;
  max-width: 430px;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.10) 0, rgba(20,10,40,0.70) 38%, rgba(10,0,25,0.85) 100%);
  border-radius: 28px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);

  position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
  animation: appIn 520ms cubic-bezier(.2,.9,.2,1) both;
}

/* breathing glow */
.app::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 211, 77, 0.10), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(106, 43, 255, 0.14), transparent 60%);
  filter: blur(10px);
  opacity: 0.6;
  z-index: -1;
  animation: glowBreathe 6.5s ease-in-out infinite;
}

@keyframes appIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50%      { opacity: 0.75; transform: translateY(-2px); }
}

/* Status bar */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.status-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold) 0, var(--gold-deep) 70%, #6b3f00 100%);
  box-shadow: 0 0 14px rgba(255, 211, 77, 0.55);
  animation: dotPulse 2.2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 211, 77, 0.45); }
  50%      { box-shadow: 0 0 22px rgba(255, 211, 77, 0.75); }
}

.status-dot--small {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 10px rgba(255, 211, 77, 0.5);
}

.status-label { font-weight: 650; }
.status-page { font-weight: 520; }
.pager-current { font-weight: 800; }

/* Slides (smooth transitions) */
.slides {
  position: relative;
  min-height: clamp(560px, 72vh, 660px);
}

.slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: translateY(12px) scale(0.995);
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(.2,.9,.2,1), transform 380ms cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
}

.slide--active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.slide--leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.995);
}

/* Typography */
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 850;
  margin: 0 0 14px;
}

.hero-title--inline { font-size: 28px; }

.highlight {
  background: linear-gradient(90deg, var(--gold), #fff2c2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.body-copy {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.86);
  margin: 14px 0 16px;
}

.subtle-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}

/* Bonus card */
.bonus-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at left, rgba(255, 211, 77, 0.18), rgba(106, 43, 255, 0.10) 55%, transparent 70%);
  border: 1px solid rgba(255, 211, 77, 0.28);
  animation: floatSoft 4.2s ease-in-out infinite;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.bonus-icon {
  width: 34px;
  height: 34px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 211, 77, 0.14);
  font-size: 18px;
}

.bonus-text { display: flex; flex-direction: column; gap: 2px; }
.bonus-title { font-size: 14px; font-weight: 750; }
.bonus-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Rating */
.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
}
.stars { font-size: 14px; color: #ffe9a8; }
.rating-text { color: var(--muted); }

/* Stats */
.stats-row { display: flex; gap: 10px; margin-top: 16px; }

.stat-card {
  flex: 1;
  border-radius: var(--radius-md);
  padding: 10px 10px 11px;
  border: 1px solid rgba(255,255,255,0.10);
  background: radial-gradient(circle at top, rgba(255,255,255,0.08) 0, rgba(0,0,0,0.28) 100%);
}

.stat-icon { font-size: 14px; margin-bottom: 4px; }
.stat-number { font-size: 16px; font-weight: 800; }
.stat-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.age-buttons {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pill-button {
  width: 100%;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  outline: none;
  background: transparent;
  color: var(--white);
  text-align: left;
  transition: transform 180ms cubic-bezier(.2,.9,.2,1),
              box-shadow 180ms cubic-bezier(.2,.9,.2,1),
              background 180ms cubic-bezier(.2,.9,.2,1),
              border-color 180ms cubic-bezier(.2,.9,.2,1);
}

.pill-button--primary {
  background: linear-gradient(90deg, rgba(106,43,255,1), rgba(43,15,255,1));
  border-color: rgba(255, 211, 77, 0.25);
  box-shadow: 0 16px 34px rgba(106, 43, 255, 0.35);
}

.pill-button--secondary {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.pill-button:hover { transform: translateY(-1px); }

.pill-sub {
  font-size: 11px;
  font-weight: 430;
  color: rgba(255,255,255,0.80);
}

/* Press animation state */
.pill-button--pressed {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

/* Slide 2 / CTA */
.step-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 14px 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  color: #16002f;

  background: linear-gradient(90deg, var(--gold), #ffe9a8, var(--gold));
  background-size: 220% 100%;
  animation: ctaShine 2.8s ease-in-out infinite;

  box-shadow: 0 18px 40px rgba(255, 211, 77, 0.28);
  position: relative;
  overflow: hidden;
  transition: transform 160ms cubic-bezier(.2,.9,.2,1), box-shadow 160ms cubic-bezier(.2,.9,.2,1);
}

@keyframes ctaShine {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.cta-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.cta--pressed {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.65);
}

/* Journey */
.journey {
  margin-top: 10px;
  padding: 12px 12px 10px;
  border-radius: var(--radius-lg);
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
}

.journey-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.journey-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number-main {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 77, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gold);
  background: rgba(255, 211, 77, 0.06);
}

.step-number {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
}

.step-text { display: flex; flex-direction: column; gap: 2px; }
.step-title { font-size: 13px; font-weight: 650; }
.step-sub { font-size: 11px; color: var(--muted); }

/* Stagger */
.slide--active[data-slide="2"] .journey-steps li:nth-child(1) { animation: fadeUpSoft 0.45s ease-out 0.05s both; }
.slide--active[data-slide="2"] .journey-steps li:nth-child(2) { animation: fadeUpSoft 0.45s ease-out 0.25s both; }
.slide--active[data-slide="2"] .journey-steps li:nth-child(3) { animation: fadeUpSoft 0.45s ease-out 0.45s both; }

@keyframes fadeUpSoft {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Focus ring */
.pill-button:focus-visible,
.cta-main:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 211, 77, 0.18), 0 18px 40px rgba(0,0,0,0.6);
}

/* Small screens */
@media (max-width: 360px) {
  .hero-title { font-size: 30px; }
  .app { padding-inline: 16px; }
  .slides { min-height: clamp(520px, 74vh, 620px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
