/*
 * Motion system — Deepiqs (inspired by deepiq.com)
 * Reveal: fade-up with stagger, 0.7s expo ease
 * Hover: subtle lift + color shift
 * Reduced motion: instant transitions
 */

.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 .reveal {
  transform: translateY(32px);
}

.capability-row__visual svg,
.platform__panel-visual svg {
  transition: transform 0.6s var(--ease-out-expo);
}

.capability-row:hover .capability-row__visual svg,
.platform__panel.is-active .platform__panel-visual svg {
  transform: scale(1.03);
}

.modal {
  animation: modalFadeIn 0.3s var(--ease-out-expo);
}

.modal__panel {
  animation: modalSlideUp 0.35s var(--ease-out-expo);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero__pipeline .flow-dot {
  animation: flowPulse 3s ease-in-out infinite;
}

.hero__pipeline .flow-dot:nth-child(2) { animation-delay: 0.5s; }
.hero__pipeline .flow-dot:nth-child(3) { animation-delay: 1s; }
.hero__pipeline .flow-dot:nth-child(4) { animation-delay: 1.5s; }

@keyframes flowPulse {
  0%, 100% { opacity: 0.4; r: 4; }
  50% { opacity: 1; r: 6; }
}

@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;
  }

  .hero__pipeline .flow-dot {
    animation: none;
  }
}
