/* ===================================
   Nitelit Marketing Site
   =================================== */

/* --- Design Tokens --- */
:root {
  /* Night palette */
  --night-950: #0D0820;
  --night-900: #1A1035;
  --night-800: #2D2452;
  --night-700: #3D3060;

  /* Brand purples */
  --purple-50:  #F8F4FF;
  --purple-100: #EDE6F8;
  --purple-200: #D4C5F9;
  --purple-300: #B8A5D6;
  --purple-400: #9B8BC2;
  --purple-500: #8A7AB5;
  --purple-600: #5D4E7A;

  /* Surfaces */
  --bg:       #F8F4FF;
  --bg-card:  #FDFBFF;
  --bg-white: #FFFFFF;

  /* Text */
  --t-primary:        #3D2E5C;
  --t-secondary:      #7A6A99;
  --t-muted:          #B8A5D6;
  --t-on-dark:        rgba(255,255,255,0.92);
  --t-on-dark-muted:  rgba(255,255,255,0.58);

  /* Accents */
  --gold:  #FFE080;
  --peach: #FFDAB9;
  --mint:  #D8F0E4;

  /* Spacing */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;

  /* Radius */
  --r-s:    8px;
  --r-m:    14px;
  --r-l:    24px;
  --r-xl:   40px;
  --r-full: 9999px;

  /* Shadows */
  --sh-s:    0 2px 8px  rgba(61,46,92,0.07);
  --sh-m:    0 6px 24px rgba(61,46,92,0.11);
  --sh-l:    0 16px 56px rgba(61,46,92,0.16);
  --sh-night: 0 24px 80px rgba(13,8,32,0.55);

  /* Easing */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--t-primary);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(2rem, 4.5vw, 3rem); }

h3 {
  font-size: 1.125rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-8);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple-500);
  color: #fff;
  box-shadow: 0 4px 16px rgba(138,122,181,0.38);
}
.btn-primary:hover {
  background: var(--purple-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(138,122,181,0.48);
}

.btn-outline {
  background: transparent;
  border-color: var(--purple-300);
  color: var(--purple-600);
}
.btn-outline:hover {
  background: var(--purple-100);
  border-color: var(--purple-500);
}

.btn-ghost {
  background: transparent;
  color: var(--t-on-dark);
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.38);
}

.btn-sm    { padding: var(--s-2) var(--s-6); font-size: 0.875rem; }
.btn-lg    { padding: var(--s-4) var(--s-12); font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-4);
  padding: var(--s-3) var(--s-6);
  background: var(--purple-500);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 var(--r-s) var(--r-s);
  z-index: 300;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --- Focus styles (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(13, 8, 32, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
}

.header-scrolled {
  background: rgba(13, 8, 32, 0.92);
  box-shadow: 0 4px 24px rgba(13,8,32,0.4);
}

.header-hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--t-on-dark);
  letter-spacing: -0.01em;
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(255,224,128,0.65));
}

.nav-links {
  display: flex;
  gap: var(--s-8);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--t-on-dark-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--t-on-dark); }

/* --- Hamburger --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-2);
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 210;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--t-on-dark);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0; bottom: 0;
  background: rgba(13, 8, 32, 0.96);
  backdrop-filter: blur(24px);
  z-index: 199;
  padding: var(--s-8) var(--s-6);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.mobile-menu-links a {
  display: block;
  padding: var(--s-4) var(--s-4);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--t-on-dark-muted);
  border-radius: var(--r-m);
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible {
  color: var(--t-on-dark);
  background: rgba(255,255,255,0.06);
}

.mobile-menu-links .btn {
  margin-top: var(--s-4);
  text-align: center;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--night-950);
  overflow: hidden;
  padding-top: 68px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 72% 38%, rgba(61,48,96,0.85) 0%, transparent 58%),
    radial-gradient(ellipse 50% 50% at 18% 72%, rgba(45,36,82,0.6) 0%, transparent 55%),
    linear-gradient(170deg, var(--night-800) 0%, var(--night-950) 60%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Stars as small dots */
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.star-1 { width: 3px; height: 3px; top: 12%; left: 8%;   opacity: 0.9; animation: twinkle 2.5s ease-in-out infinite; }
.star-2 { width: 2px; height: 2px; top: 19%; left: 22%;  opacity: 0.7; animation: twinkle 3.5s ease-in-out infinite 0.5s; }
.star-3 { width: 4px; height: 4px; top: 7%;  left: 44%;  opacity: 0.8; animation: twinkle 2s   ease-in-out infinite 1s; }
.star-4 { width: 2px; height: 2px; top: 24%; right: 24%; opacity: 0.6; animation: twinkle 4s   ease-in-out infinite 1.5s; }
.star-5 { width: 3px; height: 3px; top: 15%; right: 9%;  opacity: 0.9; animation: twinkle 3s   ease-in-out infinite 0.3s; }
.star-6 { width: 2px; height: 2px; top: 32%; left: 13%;  opacity: 0.5; animation: twinkle 3.2s ease-in-out infinite 0.8s; }
.star-7 { width: 3px; height: 3px; top: 5%;  right: 38%; opacity: 0.8; animation: twinkle 2.8s ease-in-out infinite 2s; }
.star-8 { width: 2px; height: 2px; top: 42%; left: 6%;   opacity: 0.4; animation: twinkle 4.5s ease-in-out infinite 0.2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.35); }
}

.shooting-star {
  position: absolute;
  top: 22%;
  left: -120px;
  width: 110px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), rgba(255,224,128,0.9));
  border-radius: 2px;
  animation: shoot 9s ease-in-out infinite 4s;
  opacity: 0;
}

@keyframes shoot {
  0%   { transform: translateX(0)    translateY(0)    rotate(-28deg); opacity: 0; }
  4%   { opacity: 1; }
  28%  { transform: translateX(120vw) translateY(120px) rotate(-28deg); opacity: 0; }
  100% { transform: translateX(120vw) translateY(120px) rotate(-28deg); opacity: 0; }
}

/* Nebula blobs */
.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.cloud-1 {
  width: 520px; height: 320px;
  background: rgba(93,78,122,0.22);
  top: -80px; right: -80px;
  animation: nebula 14s ease-in-out infinite;
}

.cloud-2 {
  width: 420px; height: 260px;
  background: rgba(45,36,82,0.32);
  bottom: 5%; left: -80px;
  animation: nebula 11s ease-in-out infinite reverse 2s;
}

@keyframes nebula {
  0%, 100% { transform: scale(1)    translateY(0); }
  50%       { transform: scale(1.08) translateY(-18px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
  padding: var(--s-24) 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-4);
  background: rgba(255,224,128,0.1);
  border: 1px solid rgba(255,224,128,0.28);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-6);
}

.hero-text h1 {
  color: var(--t-on-dark);
  margin-bottom: var(--s-6);
  line-height: 1.08;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--t-on-dark-muted);
  margin-bottom: var(--s-8);
  line-height: 1.72;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--t-on-dark-muted);
}

.hero-note strong { color: var(--gold); }

/* Phone */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-wrap {
  position: relative;
}

.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(138,122,181,0.32) 0%, transparent 68%);
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.65; transform: scale(0.94); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

.phone-mockup {
  width: 268px;
  height: 556px;
  background: linear-gradient(145deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.04) 100%);
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 46px;
  padding: 14px;
  box-shadow:
    0 48px 96px rgba(13,8,32,0.72),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 0 1px rgba(255,255,255,0.04);
  animation: float 6.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  z-index: 3;
}

@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-18px); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1C1142 0%, #0E0921 55%, #1A1035 100%);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: radial-gradient(ellipse at 50% 0%, rgba(93,78,122,0.38) 0%, transparent 70%);
}

.mock-story {
  text-align: center;
  padding: var(--s-6);
  position: relative;
  z-index: 1;
}

.moon-illustration { margin-bottom: var(--s-4); }

.moon {
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(255,224,128,0.55));
  animation: moon-glow 5s ease-in-out infinite;
}

@keyframes moon-glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255,224,128,0.5)); }
  50%       { filter: drop-shadow(0 0 42px rgba(255,224,128,0.92)); }
}

.mock-stars {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.mock-star {
  width: 4px; height: 4px;
  background: rgba(255,224,128,0.75);
  border-radius: 50%;
}

.mock-star:nth-child(1) { animation: twinkle 2.2s infinite 0s; }
.mock-star:nth-child(2) { animation: twinkle 2.2s infinite 0.4s; }
.mock-star:nth-child(3) { animation: twinkle 2.2s infinite 0.8s; }

.mock-text {
  color: rgba(255,255,255,0.72);
  font-family: 'Playfair Display', serif;
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.55;
}

.mock-progress {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: var(--s-6);
}

.mock-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.mock-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 3px;
}

/* Wave divider */
.wave-divider {
  display: block;
  line-height: 0;
  margin-top: -2px;
  background: var(--night-950);
}

.wave-divider svg { display: block; width: 100%; }

/* --- Social Proof --- */
.social-proof {
  padding: var(--s-16) 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--purple-100);
}

.proof-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-16);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--purple-200);
  flex-shrink: 0;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--t-primary);
  line-height: 1;
  margin-bottom: var(--s-1);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t-secondary);
  letter-spacing: 0.03em;
}

/* --- Section header --- */
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto var(--s-16);
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-500);
  margin-bottom: var(--s-4);
}

.section-header h2 {
  color: var(--t-primary);
  margin-bottom: var(--s-4);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--t-secondary);
  line-height: 1.72;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Features --- */
.features {
  padding: var(--s-24) 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.feature-card {
  background: var(--bg-card);
  padding: var(--s-8);
  border-radius: var(--r-l);
  border: 1.5px solid var(--purple-100);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(212,197,249,0.22), transparent 70%);
  transition: opacity 0.3s;
  opacity: 0;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-m);
  border-color: var(--purple-200);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-m);
  background: linear-gradient(135deg, var(--purple-100), var(--purple-50));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-6);
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: var(--s-3);
  color: var(--t-primary);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--t-secondary);
  line-height: 1.68;
}

/* --- How It Works --- */
.how-it-works {
  padding: var(--s-24) 0;
  background: var(--night-900);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(93,78,122,0.18) 0%, transparent 68%);
  pointer-events: none;
}

.how-it-works .section-header h2  { color: var(--t-on-dark); }
.how-it-works .section-header p   { color: var(--t-on-dark-muted); }
.how-it-works .section-label       { color: var(--gold); }

.steps {
  display: flex;
  justify-content: center;
  max-width: 840px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 31px;
  left: 80px;
  right: 80px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.12) 20%,
    rgba(255,224,128,0.28) 50%,
    rgba(255,255,255,0.12) 80%,
    transparent
  );
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 var(--s-4);
  position: relative;
  z-index: 1;
}

.step-number {
  width: 62px;
  height: 62px;
  margin: 0 auto var(--s-6);
  background: linear-gradient(135deg, var(--purple-600), var(--night-700));
  border: 2px solid rgba(255,255,255,0.1);
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(13,8,32,0.45), 0 0 0 5px rgba(93,78,122,0.12);
}

.step-content h3    { margin-bottom: var(--s-3); color: var(--t-on-dark); }
.step-content p     { font-size: 0.9375rem; color: var(--t-on-dark-muted); line-height: 1.65; }

/* --- Themes --- */
.themes-preview {
  padding: var(--s-24) 0;
  background: var(--bg);
}

.themes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}

.theme-chip {
  padding: var(--s-3) var(--s-6);
  background: var(--bg-card);
  border: 1.5px solid var(--purple-200);
  border-radius: var(--r-full);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--t-primary);
  transition: all 0.25s var(--ease);
  cursor: default;
}

.theme-chip:hover {
  background: var(--purple-100);
  border-color: var(--purple-400);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--sh-s);
  color: var(--purple-600);
}

/* --- Pricing --- */
.pricing {
  padding: var(--s-24) 0;
  background: var(--bg-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  padding: var(--s-8);
  border-radius: var(--r-l);
  border: 1.5px solid var(--purple-100);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-m);
}

.pricing-card-popular {
  background: var(--night-900);
  border: none;
  box-shadow:
    0 0 0 1.5px var(--purple-500),
    var(--sh-l),
    0 0 56px rgba(138,122,181,0.18);
  transform: translateY(-10px) scale(1.02);
}

.pricing-card-popular:hover {
  transform: translateY(-14px) scale(1.02);
  box-shadow:
    0 0 0 1.5px var(--purple-400),
    0 24px 64px rgba(13,8,32,0.32),
    0 0 64px rgba(138,122,181,0.24);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--s-1) var(--s-4);
  background: linear-gradient(90deg, var(--purple-500), var(--purple-600));
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(93,78,122,0.45);
}

.pricing-header {
  text-align: center;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--purple-100);
  margin-bottom: var(--s-6);
}

.pricing-card-popular .pricing-header {
  border-bottom-color: rgba(255,255,255,0.07);
}

.pricing-header h3 {
  margin-bottom: var(--s-3);
  color: var(--t-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing-card-popular .pricing-header h3 { color: var(--gold); }

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--s-1);
}

.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--t-primary);
  line-height: 1;
}

.pricing-card-popular .price-amount { color: var(--t-on-dark); }

.price-period {
  font-size: 0.875rem;
  color: var(--t-muted);
}

.pricing-card-popular .price-period { color: var(--t-on-dark-muted); }

.pricing-stories {
  text-align: center;
  padding: var(--s-6) 0;
}

.stories-count {
  font-family: 'Playfair Display', serif;
  font-size: 4.25rem;
  font-weight: 700;
  color: var(--purple-600);
  line-height: 1;
}

.pricing-card-popular .stories-count { color: var(--t-on-dark); }

.stories-bonus {
  display: inline-block;
  margin-left: var(--s-2);
  padding: 2px var(--s-3);
  background: var(--gold);
  color: var(--night-900);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--r-full);
  vertical-align: super;
}

.stories-label {
  display: block;
  color: var(--t-secondary);
  font-size: 0.875rem;
  margin-top: var(--s-2);
}

.pricing-card-popular .stories-label { color: var(--t-on-dark-muted); }

.pricing-features { margin-bottom: var(--s-8); }

.pricing-features li {
  padding: var(--s-2) 0;
  font-size: 0.9375rem;
  color: var(--t-secondary);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.pricing-card-popular .pricing-features li { color: var(--t-on-dark-muted); }

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--purple-500)
    url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 9l3 3L13.5 6' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

.pricing-card-popular .pricing-features li::before {
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 9l3 3L13.5 6' stroke='%231A1035' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- CTA --- */
.cta {
  padding: var(--s-24) 0;
  background: var(--night-950);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 85% at 50% 50%, rgba(93,78,122,0.28) 0%, transparent 68%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--t-on-dark);
  margin-bottom: var(--s-4);
}

.cta p {
  font-size: 1.0625rem;
  color: var(--t-on-dark-muted);
  margin-bottom: var(--s-8);
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.app-button {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-6);
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  color: white;
  border-radius: var(--r-m);
  transition: all 0.25s var(--ease);
  min-width: 178px;
  backdrop-filter: blur(8px);
}

.app-button:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(13,8,32,0.42);
}

.app-button-icon      { font-size: 2rem; opacity: 0.9; }
.app-button-text      { text-align: left; }

.app-button-small {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.app-button-big {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1px;
}

/* --- Footer --- */
.footer {
  padding: var(--s-16) 0 var(--s-8);
  background: var(--night-950);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-16);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo {
  color: var(--t-on-dark);
  margin-bottom: var(--s-4);
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--t-on-dark-muted);
  max-width: 220px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-16);
}

.footer-column h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-on-dark-muted);
  margin-bottom: var(--s-6);
}

.footer-column li    { margin-bottom: var(--s-3); }

.footer-column a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.46);
  transition: color 0.2s;
}

.footer-column a:hover { color: var(--t-on-dark); }

.footer-bottom {
  padding-top: var(--s-8);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.28);
}

/* --- Legal Pages --- */
.legal-page {
  padding: calc(68px + var(--s-12)) 0 var(--s-24);
  background: var(--bg);
}

.legal-page .container { max-width: 760px; }

.legal-page h1 {
  color: var(--t-primary);
  margin-bottom: var(--s-2);
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--t-muted);
  margin-bottom: var(--s-12);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--purple-100);
}

.legal-page section { margin-bottom: var(--s-8); }

.legal-page h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--t-primary);
  margin-bottom: var(--s-4);
  margin-top: var(--s-8);
}

.legal-page h2:first-child { margin-top: 0; }

.legal-page h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--purple-500);
  margin-top: var(--s-6);
  margin-bottom: var(--s-3);
}

.legal-page p {
  color: var(--t-secondary);
  margin-bottom: var(--s-4);
  line-height: 1.78;
}

.legal-page ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--s-6);
}

.legal-page li {
  color: var(--t-secondary);
  padding: var(--s-2) 0 var(--s-2) var(--s-8);
  position: relative;
  line-height: 1.65;
}

.legal-page li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--t-muted);
}

.legal-page a {
  color: var(--purple-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover { color: var(--purple-600); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: var(--s-8);
  }

  .pricing-card-popular {
    transform: none;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--s-12);
    padding: var(--s-16) 0;
  }

  .hero-eyebrow { margin: 0 auto var(--s-6); }

  .hero-subtitle { max-width: none; }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-visual { order: -1; }

  .phone-mockup {
    width: 220px;
    height: 458px;
  }

  .proof-stats {
    flex-direction: column;
    gap: var(--s-8);
  }

  .stat-divider { display: none; }

  .features-grid { grid-template-columns: 1fr; }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: var(--s-8);
    max-width: 380px;
  }

  .steps::before { display: none; }

  .step { padding: 0; }

  .app-buttons { flex-direction: column; align-items: center; }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--s-8);
  }

  .footer-brand p   { max-width: none; }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s-8);
  }
}

@media (max-width: 480px) {
  .hero-eyebrow { font-size: 0.6875rem; }
  .feature-card { padding: var(--s-6); }
  .theme-chip   { font-size: 0.875rem; }
}
