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

:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #A29BFE;
  --primary-bg: #F0EDFF;
  --danger: #FF6B6B;
  --warning: #FECA57;
  --success: #00D2A0;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F8F9FC;
  --border: #E5E7EB;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(108,92,231,0.4); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-white {
  background: white;
  color: var(--primary);
  border-color: white;
}
.btn-white:hover { background: #f0f0f0; }

.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }

.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--primary-bg) 0%, var(--bg) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: white;
  color: var(--primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

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

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

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

.phone-mockup {
  width: 300px;
  background: #1A1A2E;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.phone-screen {
  background: white;
  border-radius: 28px;
  padding: 24px 16px;
  min-height: 500px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}

.mock-shield-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  position: relative;
}
.mock-shield-icon::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

.mock-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.mock-alert strong { display: block; font-size: 13px; margin-bottom: 2px; }
.mock-alert small { font-size: 11px; color: var(--text-secondary); }

.mock-alert-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.mock-alert-danger { background: #FFF0F0; }
.mock-alert-danger .danger { background: var(--danger); color: white; }

.mock-alert-warning { background: #FFF9E6; }
.mock-alert-warning .warning { background: var(--warning); color: #333; }

.mock-alert-safe { background: #E8FFF6; }
.mock-alert-safe .safe { background: var(--success); color: white; }

.mock-stats-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.mock-stat-card {
  flex: 1;
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.mock-stat-num { display: block; font-size: 24px; font-weight: 800; color: var(--primary); }
.mock-stat-lbl { font-size: 11px; color: var(--text-secondary); }

/* ===== Trusted ===== */
.trusted {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.trusted-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: white;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-alt);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.step-connector {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin-top: 30px;
  flex-shrink: 0;
}

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition);
}
.toggle-label.active { color: var(--text); font-weight: 600; }

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--border);
  border-radius: 100px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}
.toggle-switch.active { background: var(--primary); }

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: var(--shadow);
}
.toggle-switch.active .toggle-knob { transform: translateX(24px); }

.save-badge {
  background: #ECFDF5;
  color: #059669;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: white;
  position: relative;
  transition: all var(--transition);
}
.price-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(108,92,231,0.15);
  transform: scale(1.04);
}
.price-card.popular:hover {
  transform: scale(1.04) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.price-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.price-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 28px;
}

.price-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.price-value {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.price-period {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
}

.price-features li.disabled { color: var(--text-secondary); opacity: 0.5; }

.check { color: var(--success); font-weight: 700; font-size: 16px; }
.x { color: var(--text-secondary); font-size: 16px; }

/* ===== Testimonials ===== */
.testimonials {
  padding: 100px 0;
  background: var(--bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.testimonial-stars {
  color: var(--warning);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 13px; color: var(--text-secondary); }

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
}

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

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  line-height: 1.4;
  font-family: inherit;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-secondary);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: var(--primary);
  text-align: center;
}

.cta h2 {
  font-size: 40px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  margin-bottom: 40px;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.15);
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  transition: background var(--transition);
}
.app-badge:hover { background: rgba(255,255,255,0.25); }
.app-badge small { display: block; font-size: 11px; opacity: 0.8; }
.app-badge strong { display: block; font-size: 15px; }

/* ===== Footer ===== */
.footer {
  padding: 60px 0 40px;
  background: var(--text);
  color: rgba(255,255,255,0.7);
}

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

.footer-brand .nav-logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.popular { grid-column: 1 / -1; max-width: 400px; justify-self: center; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }

  .section-header h2 { font-size: 28px; }
  .section-header p { font-size: 16px; }

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

  .steps { flex-direction: column; gap: 0; }
  .step-connector { width: 2px; height: 40px; margin: 0 auto; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .price-card.popular { max-width: none; transform: none; }
  .price-card.popular:hover { transform: translateY(-4px); }

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

  .cta h2 { font-size: 28px; }
  .app-badges { flex-direction: column; align-items: center; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto; }
  .footer-brand .nav-logo { justify-content: center; }
}
