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

:root {
  --primary: #5FA6E8;
  --primary-dark: #4A8ED0;
  --primary-light: #EDF4FC;
  --text: #2E3A44;
  --text-secondary: #6D757C;
  --coral: #F48A78;
  --success: #6CBF6C;
  --amber: #F59E0B;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFB;
  --border: #E6EBF0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow); }

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(95,166,232,0.4); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========== HERO ========== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
  text-align: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(95,166,232,0.1);
  border: 1px solid rgba(95,166,232,0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; }

.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95,166,232,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-store {
  background: #000;
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
}

.btn-store:hover { background: #222; color: #fff; transform: translateY(-2px); }

.btn svg { width: 20px; height: 20px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.hero-stat .label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; }

/* ========== SECTION ========== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header .overline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* ========== FEATURES GRID ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: inherit;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

.feature-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

/* ========== HOW IT WORKS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
  position: relative;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.price-card.popular {
  border-color: var(--primary);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}

.price-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card h3 { font-size: 1.3rem; margin-bottom: 8px; }

.price-card .price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  margin: 16px 0 4px;
}

.price-card .price span { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }

.price-card .period { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }

.price-card .savings {
  display: inline-block;
  background: rgba(107,191,107,0.1);
  color: var(--success);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.price-card ul { list-style: none; text-align: left; margin-bottom: 28px; }

.price-card ul li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.price-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.price-card .btn { width: 100%; justify-content: center; }

.free-note {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: var(--primary-light);
  border-radius: var(--radius);
}

.free-note p { color: var(--text-secondary); font-size: 0.95rem; }
.free-note strong { color: var(--text); }

/* ========== TRUST BAR ========== */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #4A8ED0 100%);
  color: #fff;
}

.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 500px; margin: 0 auto 36px; }

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ========== FOOTER ========== */
.footer {
  padding: 60px 0 30px;
  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 p { margin-top: 12px; font-size: 0.9rem; line-height: 1.7; }
.footer-brand .nav-brand { color: #fff; margin-bottom: 4px; }

.footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer ul a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ========== FEATURE PAGE ========== */
.feature-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}

.feature-hero .overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-hero h1 { margin-bottom: 20px; max-width: 700px; }
.feature-hero p { color: var(--text-secondary); font-size: 1.15rem; max-width: 600px; }

.feature-content { padding: 80px 0; }

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

.feature-block:nth-child(even) { direction: rtl; }
.feature-block:nth-child(even) > * { direction: ltr; }

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

.feature-block .visual {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  min-height: 300px;
}

.feature-block h3 { font-size: 1.5rem; margin-bottom: 16px; }
.feature-block p { color: var(--text-secondary); margin-bottom: 16px; }

.feature-list { list-style: none; }
.feature-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

/* ========== LEGAL PAGES ========== */
.legal-page { padding: 120px 0 80px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .updated { color: var(--text-secondary); margin-bottom: 40px; font-size: 0.9rem; }
.legal-page h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-secondary); margin-bottom: 12px; }
.legal-page ul, .legal-page ol { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 6px; }

/* ========== MOBILE NAV ========== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  z-index: 99;
}

.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-nav li:last-child { border: none; }
.mobile-nav a { color: var(--text); font-weight: 600; font-size: 1.05rem; display: block; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

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

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

  .feature-block { grid-template-columns: 1fr; gap: 30px; }
  .feature-block:nth-child(even) { direction: ltr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .price-card.popular { transform: none; }

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

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
