/* ===== VARIABLES ===== */
:root {
  --primary:       #5B4DB8;
  --secondary:     #7C6FD8;
  --dark-purple:   #4F2978;
  --light-purple:  #F9F7FF;
  --border-purple: #E5D9FF;

  --bg:            #FFFFFF;
  --bg-card:       #FFFFFF;

  --text:          #1A1A1A;
  --text-secondary:#666666;
  --text-muted:    #999999;

  --red:           #EF4444;
  --red-dark:      #DC2626;
  --green:         #22C55E;
  --gold:          #F59E0B;

  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:    'Playfair Display', Georgia, serif;

  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --radius:        16px;
  --radius-sm:     10px;

  --shadow-sm:     0 2px 4px rgba(0,0,0,0.1);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg:     0 10px 30px rgba(0,0,0,0.15);
  --shadow-purple: 0 10px 30px rgba(91,77,184,0.2);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--secondary), var(--primary), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* In purple-bg sections, gradient text becomes gold */
.hero .gradient-text {
  background: linear-gradient(135deg, #FFD700, #F59E0B, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-purple .gradient-text,
.final-cta .gradient-text {
  background: linear-gradient(135deg, #FFD700, #F59E0B, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 8px 24px rgba(239,68,68,0.45);
  transform: translateY(-3px) scale(1.02);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.btn-ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* Ghost on white-background sections */
.features .btn-ghost,
.how-it-works .btn-ghost,
.faq .btn-ghost {
  color: var(--text-secondary);
  border-color: var(--border-purple);
}
.features .btn-ghost:hover,
.how-it-works .btn-ghost:hover,
.faq .btn-ghost:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--light-purple);
}

.btn-nav {
  padding: 10px 22px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  font-size: 14px;
}
.btn-nav:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

.btn-large { padding: 18px 40px; font-size: 16px; }

.btn-outline-card {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline-card:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--light-purple);
}

.btn-primary-card {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-purple);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-primary-card:hover {
  background: var(--dark-purple);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(91,77,184,0.35);
}
.btn-primary-card:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}


/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(91,77,184,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: white;
}
.navbar-logo img { border-radius: 12px; }
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}
.navbar-menu a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}
.navbar-menu a:hover { color: white; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
  border-radius: 2px;
}


/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow { display: none; }
.hero-grid-bg { display: none; }

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: white;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.meta-item svg { opacity: 0.7; }


/* ===== DEVICE MOCKUPS (HERO) ===== */
.hero-devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.ipad-frame {
  width: 380px;
  background: #1C1C1E;
  border-radius: 24px;
  padding: 12px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.ipad-screen {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.hero-devices .phone-frame {
  width: 220px;
  height: 460px;
  background: #1C1C1E;
  border-radius: 36px;
  padding: 10px;
  position: relative;
  z-index: 2;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  overflow: hidden;
  flex-shrink: 0;
  margin-left: -80px;
  margin-bottom: -20px;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  object-fit: cover;
}


/* ===== WAVE DIVIDER ===== */
.wave-divider {
  position: relative;
  margin-top: -1px;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}


/* ===== SOCIAL PROOF ===== */
.social-proof {
  background: var(--bg);
  border-bottom: 1px solid var(--border-purple);
  padding: 48px 0;
}

.proof-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.proof-item { text-align: center; }

.proof-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark-purple);
  margin-bottom: 4px;
}

.proof-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border-purple);
}


/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--dark-purple);
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--red));
  border-radius: 2px;
  margin: 20px auto 0;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Purple-bg section header overrides */
.section-purple .section-header h2,
.final-cta .cta-content h2 {
  color: white;
}

.section-purple .section-header h2::after {
  background: rgba(255,255,255,0.4);
}

.section-purple .section-header p {
  color: rgba(255,255,255,0.8);
}


/* ===== FEATURES ===== */
.features {
  padding: 120px 0;
  background: var(--light-purple);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse .feature-visual { order: 2; }
.feature-row.reverse .feature-info  { order: 1; }

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-phone {
  width: 280px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(91,77,184,0.25),
    0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-phone:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 32px 64px rgba(91,77,184,0.35),
    0 14px 32px rgba(0,0,0,0.15);
}

.feature-phone img {
  width: 100%;
  display: block;
}

/* ===== FSRS CHART CARD ===== */
.fsrs-chart-card {
  width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: 20px;
  padding: 28px 24px 20px;
  box-shadow:
    0 20px 50px rgba(91,77,184,0.15),
    0 8px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.fsrs-chart-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 60px rgba(91,77,184,0.22),
    0 12px 28px rgba(0,0,0,0.1);
}

.fsrs-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.fsrs-chart-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.fsrs-chart-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--light-purple);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.fsrs-curve {
  width: 100%;
  height: auto;
}

.fsrs-chart-footer {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-purple);
}

.fsrs-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.fsrs-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}


.feature-ipad {
  width: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(91,77,184,0.25),
    0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-ipad:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow:
    0 32px 64px rgba(91,77,184,0.35),
    0 14px 32px rgba(0,0,0,0.15);
}

/* iPad with device frame (like hero) */
.feature-ipad-frame {
  width: 480px;
  background: #1C1C1E;
  border-radius: 24px;
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-ipad-frame:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.12),
    inset 0 0 0 2px rgba(255,255,255,0.06);
}

.feature-ipad-frame .ipad-screen {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.feature-ipad img {
  width: 100%;
  display: block;
}

.feature-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--light-purple);
  border: 1px solid var(--border-purple);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.feature-info h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--dark-purple);
}

.feature-info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-list li svg { flex-shrink: 0; }


/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 120px 0;
  background: var(--light-purple);
  border-top: 1px solid var(--border-purple);
  border-bottom: 1px solid var(--border-purple);
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.step-card {
  flex: 1;
  max-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-purple);
  border-color: var(--primary);
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-purple);
  border: 1px solid var(--border-purple);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark-purple);
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}


/* ===== PRICING ===== */
.pricing {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary) 100%);
}

.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.price-card {
  flex: 1;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-lg);
}

.price-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 48px rgba(0,0,0,0.22);
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  transform: scale(1.02);
}

.price-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  background: var(--gold);
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.price-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-purple);
}

.price-header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark-purple);
}

.price-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.price-dollar {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark-purple);
  margin-top: 6px;
  margin-right: 2px;
}

.price-value {
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dark-purple);
}

.price-cents {
  font-size: 28px;
  font-weight: 700;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.price-features {
  margin-bottom: 32px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-purple);
}
.price-features li:last-child { border-bottom: none; }

.price-features .check { color: var(--green); font-weight: 700; }
.price-features .x { color: var(--text-muted); }
.price-features li.muted { color: var(--text-muted); opacity: 0.6; }


/* ===== FAQ ===== */
.faq {
  padding: 120px 0;
  background: var(--light-purple);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-purple);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--primary);
}

.faq-item summary:hover { color: var(--primary); }

.faq-answer {
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ===== FINAL CTA ===== */
.final-cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: white;
}

.cta-content > p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}


/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  padding: 80px 0 32px;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 12px;
  color: white;
}
.footer-logo img { border-radius: 8px; }

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  text-align: center;
}
.footer-bottom p {
  font-size: 14px;
  color: var(--text-muted);
}


/* ===== SCROLL REVEAL — Spring-Based Animations ===== */

/* Spring easing: cubic-bezier approximation of Framer Motion spring(stiffness:400, damping:30) */
:root {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 0.7s;
  --stagger-delay: 0.08s;
}

/* Base hidden state for all reveal elements */
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--reveal-duration) var(--spring-smooth),
    transform var(--reveal-duration) var(--spring);
}

/* Revealed state */
.js-reveal-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children inside feature rows */
.js-reveal-ready .reveal .feature-visual,
.js-reveal-ready .reveal .feature-info {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--spring-smooth),
    transform 0.6s var(--spring);
}

.js-reveal-ready .reveal.visible .feature-visual {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.js-reveal-ready .reveal.visible .feature-info {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

/* Stagger feature-list items */
.js-reveal-ready .reveal .feature-list li {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.45s var(--spring-smooth),
    transform 0.45s var(--spring);
}

.js-reveal-ready .reveal.visible .feature-list li:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.3s; }
.js-reveal-ready .reveal.visible .feature-list li:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.38s; }
.js-reveal-ready .reveal.visible .feature-list li:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.46s; }
.js-reveal-ready .reveal.visible .feature-list li:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.54s; }

/* Scale-up entrance for device mockups */
.js-reveal-ready .reveal .feature-phone,
.js-reveal-ready .reveal .feature-ipad,
.js-reveal-ready .reveal .feature-ipad-frame,
.js-reveal-ready .reveal .fsrs-chart-card {
  opacity: 0;
  transform: scale(0.92) translateY(16px);
  transition:
    opacity 0.65s var(--spring-smooth),
    transform 0.65s var(--spring);
}

.js-reveal-ready .reveal.visible .feature-phone,
.js-reveal-ready .reveal.visible .feature-ipad,
.js-reveal-ready .reveal.visible .feature-ipad-frame,
.js-reveal-ready .reveal.visible .fsrs-chart-card {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition-delay: 0.12s;
}

/* Steps cards — staggered scale-up */
.js-reveal-ready .reveal .step-card {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition:
    opacity 0.6s var(--spring-smooth),
    transform 0.6s var(--spring);
}
.js-reveal-ready .reveal.visible .step-card:nth-child(1) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.08s; }
.js-reveal-ready .reveal.visible .step-card:nth-child(2) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.18s; }
.js-reveal-ready .reveal.visible .step-card:nth-child(3) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.28s; }

/* Steps arrows — fade */
.js-reveal-ready .reveal .step-arrow {
  opacity: 0;
  transition: opacity 0.4s var(--spring-smooth);
}
.js-reveal-ready .reveal.visible .step-arrow:nth-of-type(1) { opacity: 1; transition-delay: 0.14s; }
.js-reveal-ready .reveal.visible .step-arrow:nth-of-type(2) { opacity: 1; transition-delay: 0.24s; }

/* Pricing cards — staggered */
.js-reveal-ready .reveal .price-card {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s var(--spring-smooth),
    transform 0.6s var(--spring);
}
.js-reveal-ready .reveal.visible .price-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.js-reveal-ready .reveal.visible .price-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }

/* FAQ items — staggered */
.js-reveal-ready .reveal .faq-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s var(--spring-smooth),
    transform 0.5s var(--spring);
}
.js-reveal-ready .reveal.visible .faq-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.js-reveal-ready .reveal.visible .faq-item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.js-reveal-ready .reveal.visible .faq-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.19s; }
.js-reveal-ready .reveal.visible .faq-item:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.js-reveal-ready .reveal.visible .faq-item:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.33s; }
.js-reveal-ready .reveal.visible .faq-item:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }

/* Social proof stats — stagger */
.js-reveal-ready .reveal .proof-stat {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s var(--spring-smooth),
    transform 0.5s var(--spring);
}
.js-reveal-ready .reveal.visible .proof-stat:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.js-reveal-ready .reveal.visible .proof-stat:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.js-reveal-ready .reveal.visible .proof-stat:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.js-reveal-ready .reveal.visible .proof-stat:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.js-reveal-ready .reveal.visible .proof-stat:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready .reveal,
  .js-reveal-ready .reveal .feature-visual,
  .js-reveal-ready .reveal .feature-info,
  .js-reveal-ready .reveal .feature-list li,
  .js-reveal-ready .reveal .feature-phone,
  .js-reveal-ready .reveal .feature-ipad,
  .js-reveal-ready .reveal .feature-ipad-frame,
  .js-reveal-ready .reveal .fsrs-chart-card,
  .js-reveal-ready .reveal .step-card,
  .js-reveal-ready .reveal .step-arrow,
  .js-reveal-ready .reveal .price-card,
  .js-reveal-ready .reveal .faq-item,
  .js-reveal-ready .reveal .proof-stat {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { gap: 60px; }
  .feature-row { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .mobile-menu-toggle { display: flex; }
  .navbar-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: rgba(91,77,184,0.98);
    backdrop-filter: blur(10px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-text { max-width: 100%; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-devices { order: -1; }
  .ipad-frame { width: 300px; }
  .hero-devices .phone-frame { width: 180px; height: 375px; margin-left: -60px; margin-bottom: -16px; }
  .wave-divider svg { height: 50px; }

  .section-header { margin-bottom: 60px; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
  }
  .feature-row.reverse .feature-visual { order: 0; }
  .feature-row.reverse .feature-info { order: 0; }
  .feature-info { text-align: center; }
  .feature-list { align-items: center; }
  .feature-ipad { width: 100%; max-width: 480px; }
  .feature-ipad-frame { width: 100%; max-width: 480px; }

  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }

  .pricing-cards { flex-direction: column; align-items: center; }
  .price-card { max-width: 100%; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }

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

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col { align-items: center; }

  .proof-stats { gap: 24px; }
  .proof-divider { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .ipad-frame { width: 240px; }
  .hero-devices .phone-frame { width: 150px; height: 310px; margin-left: -40px; margin-bottom: -12px; }
  .feature-phone { width: 240px; }
  .fsrs-chart-card { width: 100%; padding: 20px 16px 16px; }
  .feature-info h3 { font-size: 26px; }
}
