/* ========================================
   Animations — Граунд Landing Page
   ======================================== */

/* --- Pulse Rings (SOS hero) --- */
@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

.pulse-ring--1 {
  animation: pulse-ring 3s ease-out infinite;
}

.pulse-ring--2 {
  animation: pulse-ring 3s ease-out infinite 1.5s;
}

/* --- Hero SOS circle gentle float --- */
@keyframes hero-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero__sos-wrapper {
  animation: hero-float 4s ease-in-out infinite;
}

/* --- Floating particles --- */
@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.particle {
  animation: float-up var(--duration, 12s) linear var(--delay, 0s) infinite;
  animation-fill-mode: backwards;
}

/* --- Stat count-up pulse --- */
@keyframes stat-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.stat__number.counting {
  animation: stat-pulse 0.6s ease-in-out;
}

/* --- prefers-reduced-motion overrides --- */
@media (prefers-reduced-motion: reduce) {
  .pulse-ring--1,
  .pulse-ring--2 {
    animation: none;
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.4);
  }

  .hero__sos-wrapper {
    animation: none;
  }

  .particle {
    animation: none;
    display: none;
  }

  .stat__number.counting {
    animation: none;
  }
}
