/* ==========================================================================
   VoiceReach AI — Animations
   ========================================================================== */

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Flow Down (connector dots) ── */
@keyframes flowDown {
  0% { top: -20px; opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* ── Pulse ── */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

/* ── Counter Animation ── */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ── Waveform shimmer ── */
@keyframes waveShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Conversation Message Appearance ── */
.convo-msg {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.convo-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.convo-msg:nth-child(1) { transition-delay: 0s; }
.convo-msg:nth-child(2) { transition-delay: 0.3s; }
.convo-msg:nth-child(3) { transition-delay: 0.6s; }

/* ── Intel Cards Appear ── */
.intel-card {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.intel-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.intel-card:nth-child(1) { transition-delay: 0.8s; }
.intel-card:nth-child(2) { transition-delay: 1s; }
.intel-card:nth-child(3) { transition-delay: 1.2s; }
.intel-card:nth-child(4) { transition-delay: 1.4s; }

.transfer-status {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 1.8s;
}

.transfer-status.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Workflow Step Reveal ── */
.workflow-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.workflow-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Bar Fill Animation ── */
.bar-animate {
  width: 0 !important;
  transition: width 1.5s ease;
}

.bar-animate.visible {
  /* width set by inline style */
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .convo-msg,
  .intel-card,
  .transfer-status,
  .workflow-step {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .step-line::after {
    animation: none;
  }

  @keyframes pulse-dot {
    0%, 100% { opacity: 1; }
  }
}
