/* ==========================================================================
   animations.css — Keyframes & scroll-reveal utility classes
   ========================================================================== */

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--c-scan-rgb), 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(var(--c-scan-rgb), 0); }
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 0 rgba(37,211,102,0.45); }
  50% { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 10px rgba(37,211,102,0); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes scanSweep {
  0% { transform: translateX(-10%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}
.scan-overlay .sweep {
  position: absolute;
  top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--c-scan), transparent);
  box-shadow: 0 0 18px 2px rgba(var(--c-scan-rgb), 0.7);
  animation: scanSweep 4.5s var(--ease-in-out) infinite;
}

@keyframes drawLine {
  from { stroke-dashoffset: var(--len, 600); }
  to { stroke-dashoffset: 0; }
}
.hero__scope svg .trace {
  stroke-dasharray: var(--len, 600);
  animation: drawLine 3.2s var(--ease-in-out) infinite alternate;
}

/* ---- Scroll reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > * { transition-delay: calc(var(--reveal-index, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .whatsapp-float { animation: none; }
  .scan-overlay .sweep { animation: none; opacity: 0; }
  .hero__kicker .dot { animation: none; }
  .hero__scope svg .trace { animation: none; stroke-dashoffset: 0; }
}
