/* SECURIT-E — animations.css — effets vivants */

/* Reveal on scroll */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* Card glow on hover */
.card, .tech-card, .plan {
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.plan:hover { box-shadow: 0 16px 48px -16px rgba(34, 211, 238, 0.25); }
.plan-featured { box-shadow: 0 0 48px -8px rgba(34, 211, 238, 0.35); }

/* Animated gradient text shimmer */
.grad-text, .grad-text-2 {
  background-size: 200% 200%;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Subtle floating for founder card */
.founder-card { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Logo glow loop */
.logo-mark { animation: logo-glow 4s ease-in-out infinite; }
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.5)); }
  50% { filter: drop-shadow(0 0 14px rgba(217, 70, 239, 0.6)); }
}

/* Switch active glow */
.switch.active { animation: switch-pulse 2.5s ease-out infinite; }
@keyframes switch-pulse {
  0%, 100% { box-shadow: var(--glow-cyan); }
  50% { box-shadow: 0 0 48px rgba(34, 211, 238, 0.55), 0 0 24px rgba(168, 85, 247, 0.4); }
}

/* Stats counter shine */
.stat-num { background-size: 200% 200%; animation: shimmer 8s linear infinite; }

/* Particles slowing as we scroll deep — handled via JS opacity */

/* CTA button shimmer line */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: btn-shine 3s ease-in-out infinite;
}
@keyframes btn-shine {
  0%, 50% { left: -100%; }
  100% { left: 100%; }
}

/* Section appear delay (cascading) */
section { animation-fill-mode: both; }

/* Hero h1 entrance */
.hero h1 {
  opacity: 0;
  animation: hero-in 0.9s ease-out forwards;
}
.hero-sub {
  opacity: 0;
  animation: hero-in 0.9s 0.15s ease-out forwards;
}
.switch-wrap, .hero-cta, .hero-trust {
  opacity: 0;
  animation: hero-in 0.9s 0.3s ease-out forwards;
}
.founder-card {
  opacity: 0;
  animation: hero-in 0.9s 0.45s ease-out forwards, float 6s 1.5s ease-in-out infinite;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero stats count-up entrance */
.hero-stats {
  opacity: 0;
  animation: hero-in 0.9s 0.6s ease-out forwards;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
