/* ===== ANIMATIONS CSS ===== */

/* -- Scroll Reveal -- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER / NAVBAR ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}
.site-header.scrolled .nav-logo { color: var(--text-dark); }
.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  font-size: 1.2rem;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }
.site-header.scrolled .nav-links a { color: var(--text-body); }
.site-header.scrolled .nav-links a:hover { color: var(--primary); }
.nav-cta { padding: 10px 24px; font-size: 0.9rem; }
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.site-header.scrolled .mobile-toggle span { background: var(--text-dark); }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-overlay.active { opacity: 1; pointer-events: auto; }

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    z-index: 1001;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active { right: 0; }
  .nav-links a { color: var(--text-dark) !important; font-size: 1.1rem; }
  .nav-cta { display: none; }
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  background: var(--gradient-hero);
  padding: 160px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #fff;
}
.shape-1 { width: 500px; height: 500px; top: -150px; right: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: -80px; left: -60px; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 30%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { color: #fff; }
.hero-content h1 { color: #fff; margin-bottom: 20px; }
.text-gradient {
  background: linear-gradient(135deg, #F97316, #FBBF24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: #fff;
}
.hero-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* Hero Illustration Cards */
.hero-visual { position: relative; }
.hero-illustration { position: relative; min-height: 420px; }
.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  color: #fff;
  animation: float 6s ease-in-out infinite;
}
.hero-card-1 { top: 20px; left: 10%; width: 220px; animation-delay: 0s; }
.hero-card-2 { top: 180px; right: 5%; width: 180px; animation-delay: 1s; }
.hero-card-3 { bottom: 20px; left: 20%; width: 190px; animation-delay: 2s; }
.card-label { font-size: 0.8rem; opacity: 0.7; display: block; margin-bottom: 4px; }
.card-value { font-size: 1.3rem; font-family: var(--font-heading); display: block; }
.text-accent { color: var(--accent); }
.card-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.accent-bg { background: var(--accent) !important; }
.mini-chart { margin-bottom: 12px; }
.mini-chart svg { width: 100%; height: 50px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
  .hero-section { padding: 120px 0 60px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-illustration { min-height: 280px; }
  .hero-card-1 { left: 5%; }
  .hero-card-2 { right: 0; }
  .hero-card-3 { left: 10%; }
}

/* ===== WHY SECTION ===== */
.why-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.why-card h3 { margin-bottom: 10px; }
.why-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ===== HOW IT WORKS ===== */
.steps-wrapper { position: relative; }
.steps-line {
  position: absolute;
  top: 50px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-light) 100%);
  z-index: 0;
}
.step-card {
  background: #fff;
  padding: 40px 24px 32px;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient-hero);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}
.step-icon { margin-bottom: 16px; }
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

@media (max-width: 1024px) { .steps-line { display: none; } }

/* ===== BENEFITS SECTION ===== */
.benefit-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.benefit-card h3 { margin-bottom: 10px; }
.benefit-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ===== TRUST / STATS SECTION ===== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-item p { color: var(--text-muted); margin-top: 8px; margin-bottom: 0; }

/* Testimonials */
.testimonials-wrapper { max-width: 680px; margin: 0 auto; text-align: center; }
.testimonial-carousel { position: relative; }
.testimonial-card {
  display: none;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.testimonial-card.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-stars { color: #F59E0B; font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 4px; }
.testimonial-card blockquote {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-author strong { display: block; color: var(--text-dark); }
.testimonial-author span { font-size: 0.85rem; color: var(--text-muted); }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

@media (max-width: 640px) {
  .stats-row { gap: 32px; }
  .stat-number { font-size: 2.2rem; }
  .testimonial-card { padding: 24px; }
}

/* ===== FAQ SECTION ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  transition: var(--transition);
}
.faq-item.active { border-color: var(--primary); box-shadow: 0 2px 12px rgba(79,70,229,0.1); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-chevron { transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 24px;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer p { color: var(--text-muted); margin-bottom: 0; line-height: 1.8; }

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  background: var(--gradient-hero);
  padding: 96px 0;
  overflow: hidden;
  text-align: center;
}
.cta-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-shape-1 { width: 400px; height: 400px; top: -100px; right: -80px; }
.cta-shape-2 { width: 300px; height: 300px; bottom: -100px; left: -60px; }
.cta-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-content h2 { color: #fff; margin-bottom: 16px; }
.text-gradient-warm {
  background: linear-gradient(135deg, #F97316, #FBBF24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-content > p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.cta-disclaimer { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ===== FOOTER ===== */
.site-footer { 
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.15) 0%, transparent 40%), 
              radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.1) 0%, transparent 40%),
              var(--bg-dark);
  color: rgba(255,255,255,0.7); 
  padding-top: 80px; 
  position: relative;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo .logo-text { color: #fff; }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-links a:hover { 
  background: var(--primary); 
  color: #fff; 
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 24px; font-family: var(--font-heading); }
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul a { 
  font-size: 0.95rem; 
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}
.footer-col ul a:hover { 
  color: var(--secondary); 
  transform: translateX(6px);
}
.footer-col ul a::before {
  content: "→";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
}
.footer-col ul a:hover::before {
  opacity: 1;
  left: -16px;
}
.footer-bottom {
  text-align: center;
  padding: 32px 0;
  margin-top: 48px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
