* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --accent: #A78BFA;
  --accent-soft: rgba(167, 139, 250, 0.3);
  --bg-dark: #0f0b1a;
  --bg-gradient-1: #1a1028;
  --bg-gradient-2: #0d0a14;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.06);
}

html, body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(160deg, var(--bg-gradient-1) 0%, var(--bg-dark) 40%, var(--bg-gradient-2) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* Hide scrollbar but keep scroll */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

html::-webkit-scrollbar {
  width: 4px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

.screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Ambient background orbs */
.ambient-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.orb-1 {
  width: 250px;
  height: 250px;
  background: rgba(167, 139, 250, 0.25);
  top: -80px;
  left: -60px;
  animation: float1 8s ease-in-out infinite;
}

.orb-2 {
  width: 180px;
  height: 180px;
  background: rgba(129, 140, 248, 0.2);
  bottom: 30%;
  right: -60px;
  animation: float2 10s ease-in-out infinite;
}

.orb-3 {
  width: 120px;
  height: 120px;
  background: rgba(196, 181, 253, 0.15);
  bottom: 15%;
  left: 20%;
  animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 30px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -20px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -25px); }
}

/* Stars */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1.5px 1.5px at 160px 120px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 200px 50px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 250px 100px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 280px 180px, rgba(255,255,255,0.25), transparent),
    radial-gradient(1.5px 1.5px at 320px 60px, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 350px 140px, rgba(255,255,255,0.2), transparent);
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Content */
.content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 28px 24px;
  text-align: center;
}

.bottom-cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* Moon icon */
.moon-container {
  margin-bottom: 36px;
}

.moon {
  position: relative;
  width: 72px;
  height: 72px;
  color: #E9D5FF;
  animation: moonFloat 6s ease-in-out infinite;
}

.moon svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.moon-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(233, 213, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: moonGlow 4s ease-in-out infinite;
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
}

@keyframes moonGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Typography */
.headline {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: #fff;
}

.subheadline {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 0;
  letter-spacing: 0.3px;
}

/* Benefits */
.benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  flex: 1;
  width: 100%;
  max-width: 260px;
  padding: 24px 0;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.benefit-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-soft);
}

/* Trial badge */
.trial-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}

.trial-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.trial-sub {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Apple Pay button */
.apple-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.apple-pay-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.apple-logo {
  width: 24px;
  height: 24px;
}

/* Terms */
.terms {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Safe area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .content {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
}

/* Legal footer */
.legal {
  position: relative;
  z-index: 10;
  padding: 40px 28px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 9px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  margin: 0 auto;
}

.legal a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: underline;
}

/* Larger phones */
@media (min-height: 800px) {
  .headline {
    font-size: 46px;
  }

  .content {
    padding-top: 80px;
  }

  .moon {
    width: 80px;
    height: 80px;
  }
}

