/* animations.css — entrance reveal, value ticks, CA bloom sequence.
   transform + opacity only (plus background-color flashes using tokens). */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes loading-pulse {
  0% {
    opacity: 0.45;
  }
  100% {
    opacity: 0.9;
  }
}

@keyframes tick-flash {
  0% {
    background: var(--glow-medium);
  }
  100% {
    background: transparent;
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

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

@keyframes hero-glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@keyframes ca-bloom {
  0% {
    box-shadow: 0 0 0 0 var(--glow-strong);
  }
  100% {
    box-shadow: 0 0 0 18px transparent;
  }
}

.ca-shell[data-just-stated="true"] {
  animation: ca-bloom var(--dur-slow) var(--ease-out);
}

.ca-copy[data-copied="true"] .copy-label::after {
  content: "Copied";
}

/* Coordinated hero entrance stagger via inline --reveal-delay custom props,
   set in markup; this file only defines the timing curve. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .pulse-dot::after {
    display: none;
  }
}
