/* =============================================
   NEURCITE — Animations & Keyframes
   ============================================= */

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }
.reveal--delay-4 { transition-delay: 0.48s; }

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Pulse dot */
@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    transform: scale(1.1);
  }
}

/* Hero scroll line */
@keyframes scroll-line {
  0% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 0.5; transform: scaleY(0.5); }
  100% { opacity: 0; transform: scaleY(0); }
}

/* Shimmer button effect */
@keyframes shimmer {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(300%) skewX(-15deg); }
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
}
.btn--primary:hover::before {
  animation: shimmer 0.7s ease-in-out;
}

/* Gradient border glow on cards */
@keyframes border-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Scan progress animation keyframes */
@keyframes scan-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Counter number flip */
@keyframes count-up {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Spinning ring (loading) */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Dashboard ring fill animation */
@keyframes ring-fill {
  from { stroke-dashoffset: 364.4; }
}

/* Fade in */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Typewriter cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Grid background pulse */
@keyframes grid-pulse {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.06; }
}

/* Scanning beam */
@keyframes scan-beam {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Status dot live pulse */
@keyframes live-pulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.status-dot--live::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: live-pulse 2s ease-out infinite;
}
.status-dot { position: relative; }

/* Gradient text shimmer */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text-animated {
  background: linear-gradient(270deg, #2563eb, #7c3aed, #06b6d4, #2563eb);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* FAQ open/close */
.faq__answer {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s ease,
              opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.faq__answer.open {
  max-height: 600px;
  opacity: 1;
  padding-bottom: 22px;
}

/* Navbar blur entrance */
@keyframes nav-entrance {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.nav { animation: nav-entrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* Hero badge pulse ring */
.hero__badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.4);
  animation: live-pulse 2s ease-out infinite 0.5s;
}

/* Section reveal stagger for grids */
.why__card:nth-child(1) { transition-delay: 0s; }
.why__card:nth-child(2) { transition-delay: 0.08s; }
.why__card:nth-child(3) { transition-delay: 0.16s; }
.why__card:nth-child(4) { transition-delay: 0.24s; }
.why__card:nth-child(5) { transition-delay: 0.32s; }

.usecases__card:nth-child(1) { transition-delay: 0s; }
.usecases__card:nth-child(2) { transition-delay: 0.08s; }
.usecases__card:nth-child(3) { transition-delay: 0.16s; }
.usecases__card:nth-child(4) { transition-delay: 0.24s; }
.usecases__card:nth-child(5) { transition-delay: 0.32s; }
.usecases__card:nth-child(6) { transition-delay: 0.40s; }
.usecases__card:nth-child(7) { transition-delay: 0.48s; }

.how__step:nth-child(2) { transition-delay: 0.05s; }
.how__step:nth-child(3) { transition-delay: 0.10s; }
.how__step:nth-child(4) { transition-delay: 0.15s; }
.how__step:nth-child(5) { transition-delay: 0.20s; }
.how__step:nth-child(6) { transition-delay: 0.25s; }
.how__step:nth-child(7) { transition-delay: 0.30s; }
.how__step:nth-child(8) { transition-delay: 0.35s; }

.faq__item:nth-child(1) { transition-delay: 0s; }
.faq__item:nth-child(2) { transition-delay: 0.06s; }
.faq__item:nth-child(3) { transition-delay: 0.12s; }
.faq__item:nth-child(4) { transition-delay: 0.18s; }
.faq__item:nth-child(5) { transition-delay: 0.24s; }
.faq__item:nth-child(6) { transition-delay: 0.30s; }
.faq__item:nth-child(7) { transition-delay: 0.36s; }
.faq__item:nth-child(8) { transition-delay: 0.42s; }
.faq__item:nth-child(9) { transition-delay: 0.48s; }
.faq__item:nth-child(10) { transition-delay: 0.54s; }
