/* ═══════════════════════════════════════════
   SAFETY CENTRAL — Animations & Keyframes
═══════════════════════════════════════════ */

/* ── Page load reveal ── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for hero */
.fade-up             { animation: fade-up 0.6s ease-out both; }
.fade-up.d1          { animation-delay: 0.06s; }
.fade-up.d2          { animation-delay: 0.14s; }
.fade-up.d3          { animation-delay: 0.22s; }
.fade-up.d4          { animation-delay: 0.32s; }
.fade-up.d5          { animation-delay: 0.44s; }
.fade-up.d6          { animation-delay: 0.56s; }

/* ── Panel cards float ── */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-7px); }
}

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

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

.float-a { animation: float-gentle 5.4s ease-in-out infinite; }
.float-b { animation: float-offset 4.8s ease-in-out infinite 1.1s; }
.float-c { animation: float-slow   6.2s ease-in-out infinite 2.2s; }

/* ── Live dot pulse ── */
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    flex-shrink: 0;
    animation: live-pulse 2.2s ease-out infinite;
}

/* Amber pulse for main CTA */
@keyframes amber-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.50); }
    65%       { box-shadow: 0 0 0 12px rgba(245,158,11,0); }
}

.btn-pulse { animation: amber-pulse 2.8s ease-in-out infinite; }

/* ── Cursor blink ── */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.blink { animation: blink 1.1s step-end infinite; }

/* ── WA bubble fade-in ── */
@keyframes wa-in {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wa-bubble-anim { animation: wa-in 0.4s ease-out both; }
.wa-bubble-anim.d1 { animation-delay: 0.2s; }
.wa-bubble-anim.d2 { animation-delay: 0.5s; }
.wa-bubble-anim.d3 { animation-delay: 0.85s; }

/* ── Progress bar fill ── */
@keyframes bar-fill {
    from { width: 0; }
}

/* ── Scan line sweep (for hero panel) ── */
@keyframes scan-sweep {
    0%   { transform: translateY(-4px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,158,11,0.2), transparent);
    pointer-events: none;
    animation: scan-sweep 4s linear infinite;
}

/* ── Counter number ── */
@keyframes count-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stat-num-animated { animation: count-up 0.4s ease-out both; }

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