/* AegisAML Pro — CSS-first motion */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}
.reveal.is-visible {
  animation: fade-up .7s cubic-bezier(.22, .61, .36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

.hero-visual.is-visible,
#heroDash.is-visible {
  animation: fade-up .9s cubic-bezier(.22, .61, .36, 1) .25s forwards;
  opacity: 0;
}

/* Risk-ring stroke draw on hero mockup visible */
@keyframes risk-fill {
  from { stroke-dashoffset: 239; }
  to   { stroke-dashoffset: 52; }
}
#heroDash.is-visible .risk-ring-fill {
  animation: risk-fill 1.6s cubic-bezier(.65, 0, .35, 1) .55s both;
}

/* Active dashboard row — subtle inset highlight after entry */
@keyframes row-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(59, 156, 255, .08), inset 0 0 0 1px rgba(59, 156, 255, .2); }
  50%      { box-shadow: 0 0 32px rgba(59, 156, 255, .14), inset 0 0 0 1px rgba(59, 156, 255, .36); }
}
#heroDash.is-visible .dash-row--active {
  animation: row-pulse 3.6s ease-in-out 1.8s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .hero-visual.is-visible,
  #heroDash.is-visible {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  #heroDash.is-visible .risk-ring-fill {
    animation: none !important;
    stroke-dashoffset: 52 !important;
  }
  #heroDash.is-visible .dash-row--active {
    animation: none !important;
  }
}
