/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #4F6BF6;
  --blue-dark: #3A51D4;
  --blue-light: #E8ECFE;
  --orange: #FF8C42;
  --orange-light: #FFF3EB;
  --green: #22C55E;
  --purple: #8B5CF6;
  --text: #1A1A2E;
  --text-light: #64748B;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-warm: #FFFBF5;
  --border: #E2E8F0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Nunito', sans-serif; font-weight: 800; line-height: 1.2; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem;
  background: var(--blue); color: #fff;
  transition: all 0.2s; cursor: pointer; border: 2px solid transparent;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #f0f0f0; color: var(--blue-dark); }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.95rem; color: var(--text-light); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }

/* === HERO === */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.badge {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: var(--blue-light); color: var(--blue);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 20px;
}
.hero h1 { font-size: 3.25rem; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero-sub { font-size: 1.2rem; color: var(--text-light); margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 0.85rem; color: var(--text-light); }

/* Phone mockup */
.phone-mockup {
  width: 280px; margin: 0 auto;
  background: #1a1a2e; border-radius: 36px; padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
}
.phone-screen { background: #fff; border-radius: 26px; overflow: hidden; aspect-ratio: 9/16; }
.demo-screen {
  height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: 24px; gap: 16px; background: linear-gradient(180deg, #f0f4ff 0%, #fff 100%);
}
.demo-book-bg {
  width: 100%; height: 60px; border-radius: 8px;
  background: repeating-linear-gradient(0deg, #e8e8e8, #e8e8e8 8px, #f5f5f5 8px, #f5f5f5 12px);
  opacity: 0.5;
}
.demo-highlight { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-highlight .word {
  padding: 4px 10px; border-radius: 6px; font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.95rem; background: #f0f4ff; color: var(--text);
}
.demo-highlight .word.active {
  background: var(--blue); color: #fff;
  animation: pulse-word 2s infinite;
}
@keyframes pulse-word {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.demo-bubble {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; border-radius: 12px; padding: 10px 14px;
}
.demo-bubble-icon { font-size: 1.2rem; }
.demo-bubble-text { font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 0.85rem; }
.demo-definition {
  background: var(--orange-light); border-radius: 10px; padding: 10px 14px;
  font-size: 0.8rem; color: #7c4a1e;
}
.demo-definition strong { color: var(--orange); }

/* === SOCIAL PROOF === */
.social-proof { padding: 48px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-items { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.proof-item { text-align: center; }
.proof-number { display: block; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.5rem; color: var(--blue); }
.proof-label { font-size: 0.85rem; color: var(--text-light); }
.proof-divider { width: 1px; background: var(--border); align-self: stretch; }

/* === HOW IT WORKS === */
.how-it-works { padding: 96px 0; }
.how-it-works h2, .features h2, .comparison h2, .pricing h2, .testimonials h2, .faq h2 {
  text-align: center; font-size: 2.5rem; margin-bottom: 12px;
}
.section-sub { text-align: center; color: var(--text-light); font-size: 1.1rem; margin-bottom: 56px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step {
  text-align: center; padding: 40px 24px; border-radius: var(--radius);
  background: var(--bg-soft); position: relative;
}
.step-number {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 2.5rem; margin-bottom: 16px; }
.step h3 { font-size: 1.25rem; margin-bottom: 12px; }
.step p { color: var(--text-light); font-size: 0.95rem; }

/* === FEATURES === */
.features { padding: 96px 0; background: var(--bg-warm); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* === COMPARISON === */
.comparison { padding: 96px 0; }
.compare-table { max-width: 720px; margin: 0 auto; overflow-x: auto; }
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.compare-table thead th { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem; }
.compare-table .highlight-col { color: var(--blue); font-weight: 600; }
.compare-table thead .highlight-col {
  background: var(--blue); color: #fff; border-radius: 12px 12px 0 0;
}
.compare-table tbody tr:last-child .highlight-col { border-radius: 0 0 12px 12px; }
.compare-table .highlight-col { background: var(--blue-light); }
.compare-table thead .highlight-col { background: var(--blue); color: #fff; }

/* === PRICING === */
.pricing { padding: 96px 0; background: var(--bg-soft); }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.pricing-card {
  background: #fff; border-radius: var(--radius); padding: 36px 28px;
  text-align: center; box-shadow: var(--shadow); position: relative;
  border: 2px solid transparent;
}
.pricing-card.popular { border-color: var(--blue); transform: scale(1.04); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; padding: 4px 20px; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.8rem;
}
.pricing-name { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.pricing-price {
  font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 2.75rem;
  color: var(--text); margin-bottom: 4px;
}
.pricing-price span { font-size: 1rem; font-weight: 600; color: var(--text-light); }
.pricing-period { font-size: 0.85rem; color: var(--text-light); margin-bottom: 24px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-features li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; padding-left: 24px; position: relative;
}
.pricing-features li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--green); font-weight: 700;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* === TESTIMONIALS === */
.testimonials { padding: 96px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg-soft); border-radius: var(--radius); padding: 28px;
}
.stars { color: var(--orange); font-size: 1.2rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-size: 1rem; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { font-size: 0.85rem; color: var(--text-light); font-weight: 600; }

/* === FAQ === */
.faq { padding: 96px 0; background: var(--bg-soft); }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.faq-item summary {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1.1rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); font-weight: 300; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* === CTA === */
.cta {
  padding: 96px 0; text-align: center;
  background: linear-gradient(135deg, var(--blue) 0%, #6366f1 50%, var(--purple) 100%);
  color: #fff;
}
.cta h2 { font-size: 2.5rem; margin-bottom: 16px; }
.cta p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px; }
.cta-note { font-size: 0.85rem; opacity: 0.7; margin-top: 16px; }

/* === FOOTER === */
.footer { padding: 64px 0 32px; background: var(--text); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: #94a3b8; margin-top: 12px; font-size: 0.9rem; }
.footer-brand .logo-text { color: #fff; }
.footer-links h4 { font-family: 'Nunito', sans-serif; font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; }
.footer-links a { display: block; color: #94a3b8; font-size: 0.9rem; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 24px; text-align: center; }
.footer-bottom p { color: #64748b; font-size: 0.85rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.popular { transform: scale(1); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .proof-items { gap: 24px; }
  .proof-divider { display: none; }
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: 0.85rem; }
}
