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



html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  /* Centered logo and links with a gap between them */
  display: flex; align-items: center; justify-content: center; gap: 40px;
  padding: 0 48px;
  height: 64px;
  background: rgba(242,239,254,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--sub); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--purple); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover { background: var(--purple-dk); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── SECTION SHELL ── */
section { padding: 80px 48px; max-width: 1100px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 20px;
}
/* .eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--purple); border-radius: 2px; } */

/* ── HERO ── */
#hero {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 48px 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 24px; }
/* Modified Hero Font Size */
.hero-headline { font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
.hero-headline span { color: var(--purple); }
.hero-sub { font-size: 17px; line-height: 1.65; color: var(--sub); max-width: 420px; }
.hero-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.appstore-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0D0B1E; color: #fff;
  padding: 12px 18px; border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .15s, box-shadow .2s;
}
.appstore-btn:hover { transform: translateY(-2px); }
.appstore-btn svg { width: 22px; height: 22px; fill: white; }
.appstore-text { display: flex; flex-direction: column; }
.appstore-text small { font-size: 10px; opacity: .7; }
.appstore-text strong { font-size: 15px; font-weight: 700; }
.hero-trial { font-size: 13px; color: var(--sub); }
.hero-right { position: relative; display: flex; justify-content: center; }

/* Stats bar */
.stats-bar {
  max-width: 1100px; margin: 0 auto 0;
  padding: 0 48px 40px;
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
/* Modified height of white pill */
.stat-item {
  padding: 16px 32px;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: #FAF8FF; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--purple); letter-spacing: -.02em; }
.stat-label { font-size: 13px; color: var(--sub); margin-top: 4px; }

/* ── QR ROW ── */
.qr-row { display: flex; align-items: center; gap: 10px; }
.qr-box { width: 62px; height: 62px; background: var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.qr-box svg { width: 36px; height: 36px; opacity: .4; }
.qr-label { font-size: 12px; color: var(--sub); line-height: 1.4; }

/* ── HOW IT WORKS ── */
#how { background: none; }
/* Modified Font Size to be smaller and accommodate line breaks */
.section-headline {
  font-size: clamp(26px, 3.5vw, 38px);
  /* font-weight: 900; */
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #383838;
}
.how-headline { margin-bottom: 48px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.step-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-lt));
}
/* .step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } */
.step-num {
  width: 30px; height: 30px;
  background: var(--purple); color: #fff;
  font-size: 13px; font-weight: 800;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-size: 15px; font-weight: 700; }
.step-body { font-size: 14px; color: var(--sub); line-height: 1.55; }

/* Increased height for screenshots */
.step-visual {
  margin-top: auto;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  /* height: 380px;  */
  height: 340px; 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* States marquee for step 1 */
.states-marquee-wrap { overflow: hidden; padding: 12px 0; width: 100%; }
.states-marquee {
  display: flex; gap: 8px;
  animation: marquee 12s linear infinite;
  width: max-content;
}
.states-marquee:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.state-chip {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  background: var(--bg); color: var(--sub);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.state-chip.active { background: var(--purple); color: #fff; border-color: var(--purple); }

.best-value-card {
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dk));
  color: #fff;
  width: 100%;
}
.bv-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: 4px; }
.bv-name { font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.bv-detail { font-size: 10px; opacity: .8; }
.bv-odds { margin-top: 8px; display: flex; gap: 4px; }
.bv-odds span {
  padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,.15);
  font-size: 9px; font-weight: 600;
}

/* ── FEATURES ── */
#features { background: var(--card); border-radius: 32px; max-width: 1100px; margin: 0 auto; scroll-margin-top: 84px;}
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 40px; }
.feature-list { display: flex; flex-direction: column; gap: 28px; }
.feature-item {
  display: flex; gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: default;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

/* Updated background for Feature Icon to be a slightly darker shade of purple */
.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  /* background: rgba(124, 58, 237, 0.16); */
  display: flex; align-items: center; justify-content: center;
  font-size: 50px;
}
.feature-text h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-text p { font-size: 14px; color: var(--sub); line-height: 1.55; }
.features-right {
  position: relative; 
  display: flex; 
  flex-direction: column; 
  gap: 16px;
}
.feature-phone-bg {
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,.12) 0%, transparent 70%);
  border-radius: 50%;
}
/* ✨ NEW: Phone Bezel style border added around features screenshots */
.feature-phone { 
  width: 100%; 
  border-radius: 28px; 
  box-shadow: var(--shadow-lg); 
  position: relative; 
  z-index: 1; 
  border: 6px solid #0D0B1E; 
}

/* ── PRICING ── */
#pricing { background: none; }
.pricing-toggle {
  display: flex; gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.toggle-btn {
  padding: 8px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  background: transparent; color: var(--sub);
  transition: background .2s, color .2s, box-shadow .2s;
}
.toggle-btn.active {
  background: var(--purple); color: #fff;
  box-shadow: 0 2px 8px rgba(124,58,237,.3);
}

/* Modified sizes & vertical alignment for pricing cards */
.pricing-cards { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 16px; 
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  height: 100%; /* Important for pushing button to the bottom */
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Changed to white background, black text, purple border. transform-origin locked to bottom center. */
.pricing-card.featured {
  background: var(--card);
  border: 2px solid var(--purple);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  transform-origin: bottom center;
  z-index: 2;
}
.pricing-card.featured:hover { transform: translateY(-4px); }

.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #FCD34D; color: #78350F;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  padding: 4px 14px; border-radius: 999px;
  white-space: nowrap;
}
.pricing-period { font-size: 12px; font-weight: 600; color: var(--sub); margin-bottom: 12px; }

/* Scaled down font size for price */
.pricing-price { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: #383838;}
.pricing-price span { font-size: 13px; font-weight: 500; opacity: .6; }

.pricing-trial {
  margin-top: 12px;
  font-size: 13px; color: var(--purple); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}

.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }

/* Added Flex-grow to align button to absolute bottom */
.pricing-features { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; margin-bottom: 24px; }
.pricing-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.pricing-feature .check {
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(124,58,237,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.pricing-feature-group { display: flex; flex-direction: column; gap: 10px; }
.pricing-sublist { display: flex; flex-direction: column; gap: 6px; padding-left: 28px; }
.pricing-subfeature { font-size: 13px; position: relative; padding-left: 14px; }
.pricing-subfeature::before {
  content: '•'; position: absolute; left: 0;
}

/* Align bottom */
.pricing-cta {
  display: block; width: 100%;
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s;
  border: none; cursor: pointer;
}
.pricing-cta.light {
  background: var(--bg); color: var(--purple);
  border: 1px solid var(--border);
}
.pricing-cta.light:hover { background: var(--border); }

/* Updated dark button so middle card still pops visually */
.pricing-cta.dark {
  background: var(--purple); color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,.25);
}
.pricing-cta.dark:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 8px 24px rgba(124,58,237,.35); 
  background: var(--purple-dk); 
}

/* ── CTA SECTION ── */
#cta-section {
  max-width: 1100px; margin: 0 auto;
  padding: 0 48px 26px;
}

/* Modified white pill height (reduced padding) */
.cta-inner {
  padding: 20px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  position: relative; overflow: hidden;
}
.cta-left { flex: 1; }
.cta-headline { margin-bottom: 6px; color: var(--purple); }
.cta-sub { font-size: 15px; color: var(--sub); line-height: 1.6; }
.cta-right { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-note { font-size: 12px; color: var(--sub); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto;
  font-size: 13px; color: var(--sub);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .features-grid { grid-template-columns: 1fr; }
  .features-right { display: none; }
  nav { padding: 0 20px; }
  nav .nav-links { display: none; }
  section { padding: 64px 20px; }
  #hero, .stats-bar, #cta-section { padding-left: 20px; padding-right: 20px; }
  .cta-inner { flex-direction: column; padding: 40px 28px; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .states-marquee { animation: none; }
}

/* ── RESTORED POLISH & DEPTH SYSTEM ── */

:root {
  --bg: #F2EFFE;
  --bg-alt: #FFFFFF;
  --purple: #7C3AED;
  --purple-lt: #A78BFA;
  --purple-dk: #5B21B6;
  --text: #0D0B1E;
  --sub: #6B6880;
  --border: #E2DAFD;
  --card: #fcfcfc;
  --radius: 24px;
  --shadow-sm: 0 2px 8px rgba(124,58,237,.10);
  --shadow-md: 0 8px 32px rgba(124,58,237,.14);
  --shadow-lg: 0 20px 60px rgba(124,58,237,.18);
  --shadow-float:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

/* 1. Theme Logic */
[data-theme="white"] {
  --bg: #FFFFFF;
  --bg-alt: #F9F9FB;
  --border: #E8E8F2;
  --depth-grid: rgba(0, 0, 0, 0.04);
  --depth-glow: rgba(226, 232, 240, 0.5);
  --particle-color: #A0AEC0;
}

[data-theme="purple"] {
  --bg: #F2EFFE;
  --bg-alt: #FFFFFF;
  --depth-grid: rgba(124, 58, 237, 0.06); /* Restored subtle grid */
  --depth-glow: rgba(167, 139, 250, 0.2);
  --particle-color: var(--purple-lt);
}

/* 2. Background Scene Mechanics */
.background-scene-wrapper {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--bg);
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-grid {
  position: absolute;
  inset: -10%; 
  background-image: 
    linear-gradient(to right, var(--depth-grid) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--depth-grid) 1.5px, transparent 1.5px);
  background-size: 70px 70px;
  opacity: 0;
  transition: opacity 0.8s ease;
  mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
  will-change: transform;
}

.aurora {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, var(--depth-glow), transparent 70%);
  filter: blur(120px);
  opacity: 0;
  transition: opacity 1s ease;
}

[data-depth="true"] .bg-grid, 
[data-depth="true"] .aurora { opacity: 1; }

/* 3. Restored Component Polish */
section, .stats-inner, .cta-inner, .step-card, .pricing-card {
  border-radius: var(--radius) !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border 0.4s ease;
}

/* Depth Mode "Floating Glass" Styling */
[data-depth="true"] section:not(#hero),
[data-depth="true"] .stats-inner,
[data-depth="true"] .cta-inner,
[data-depth="true"] .step-card,
[data-depth="true"] .pricing-card:not(.featured) {
  backdrop-filter: blur(14px) saturate(120%);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-float);
}

/* Vertical Spacing fix for Depth Mode bubbles */
[data-depth="true"] section:not(#hero),
[data-depth="true"] .stats-bar,
[data-depth="true"] #cta-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* RESTORED: Featured Purple Card updated for Depth mode with transform origin preserved */
[data-depth="true"] .pricing-card.featured {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 2px solid var(--purple) !important;
  box-shadow: 0 30px 60px rgba(124, 58, 237, 0.15);
  transform: scale(1.05) translateY(-10px);
  transform-origin: bottom center;
  backdrop-filter: blur(14px) saturate(120%);
}

/* 4. Mockup Sharpness (Stop guessing section fix) */
.phone-img {
  border-radius: 36px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

[data-depth="true"] .phone-img {
  box-shadow: 
    0 50px 100px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.4);
  transform: translateY(-20px) rotateX(2deg) rotateY(-2deg);
}

/* Remove artifacts in depth mode */
[data-depth="true"] .phone-shadow-layer,
[data-depth="true"] .phone-back-layer,
[data-depth="true"] .feature-phone-bg {
  display: none;
}
