/* Motion inspired by neuralix.ai — restrained fade-up reveals, subtle hover lifts */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero visual pulse */
.hero__visual svg .pulse-node {
  animation: nodePulse 3s ease-in-out infinite;
}

.hero__visual svg .pulse-node:nth-child(2) { animation-delay: 0.5s; }
.hero__visual svg .pulse-node:nth-child(3) { animation-delay: 1s; }
.hero__visual svg .pulse-node:nth-child(4) { animation-delay: 1.5s; }

.hero__visual svg .flow-line {
  stroke-dasharray: 8 6;
  animation: flowDash 20s linear infinite;
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.6; r: 4; }
  50% { opacity: 1; r: 6; }
}

@keyframes flowDash {
  to { stroke-dashoffset: -200; }
}

/* Pipeline step stagger on reveal */
.pipeline-step.reveal.is-visible:nth-child(1) { transition-delay: 0s; }
.pipeline-step.reveal.is-visible:nth-child(2) { transition-delay: 0.12s; }
.pipeline-step.reveal.is-visible:nth-child(3) { transition-delay: 0.24s; }
.pipeline-step.reveal.is-visible:nth-child(4) { transition-delay: 0.36s; }

/* Stat counter emphasis */
.stat-card.reveal.is-visible .stat-card__value {
  animation: statPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes statPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
