/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes pulse-rec {
  0%   { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255,51,102,0.7); }
  70%  { transform: scale(1);   box-shadow: 0 0 0 7px rgba(255,51,102,0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255,51,102,0); }
}

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

@keyframes glow-pulse {
  0%,100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes scanline-down {
  0%   { transform: translateY(-100%); opacity: 0.3; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-left {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes blink-cursor {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

@keyframes slide-in-log {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

@keyframes count-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ── Animation Utilities ────────────────────────────────────── */
.reveal-up   { animation: reveal-up   0.7s var(--transition-slow) both; }
.reveal-left { animation: reveal-left 0.7s var(--transition-slow) both; }
.animate-float { animation: float 5s ease-in-out infinite; }
.animate-glow  { animation: glow-pulse 2s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 8s linear infinite; }

/* ── Stagger delays ─────────────────────────────────────────── */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ── Hero Scanline overlay ─────────────────────────────────── */
.scanline-overlay {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden; z-index: 2;
}
.scanline-overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to bottom, transparent, rgba(0,242,254,0.2), transparent);
  animation: scanline-down 8s linear infinite;
}

/* ── Terminal cursor ───────────────────────────────────────── */
.term-cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--brand-cyan);
  vertical-align: middle;
  animation: blink-cursor 0.8s step-end infinite;
}

/* ── Shimmer text ───────────────────────────────────────────── */
.shimmer-text {
  background: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-violet) 50%, var(--brand-cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 3s linear infinite;
}

/* ── Neon separator ─────────────────────────────────────────── */
.neon-sep {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,242,254,0.4), rgba(139,92,246,0.4), transparent);
  margin: 3rem 0;
}

/* ── Glow orbs on hero ──────────────────────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 4s ease-in-out infinite;
}
.glow-orb-cyan   { background: rgba(0,242,254,0.18); }
.glow-orb-violet { background: rgba(139,92,246,0.2); }
.glow-orb-pink   { background: rgba(255,51,102,0.14); }

/* ── Card hover glow ─────────────────────────────────────────── */
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0,242,254,0.15), rgba(139,92,246,0.15));
}
.glass-card:hover .card-glow { opacity: 1; }
