/* Partículas / hero scan line */
@keyframes scanLine {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: .4; }
  90%  { opacity: .4; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43,165,178,.5), transparent);
  animation: scanLine 6s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* Pulso no glow do hero */
@keyframes glowPulse {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}

.hero-orb { animation: glowPulse 4s ease-in-out infinite; }

/* Fade-in geral com IntersectionObserver */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Atraso em cascata para grades */
.fade-up:nth-child(2) { transition-delay: .08s; }
.fade-up:nth-child(3) { transition-delay: .16s; }
.fade-up:nth-child(4) { transition-delay: .24s; }
.fade-up:nth-child(5) { transition-delay: .32s; }
.fade-up:nth-child(6) { transition-delay: .40s; }

/* Blink cursor no título hero */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.cursor-blink {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--color-cyan);
  vertical-align: middle;
  margin-left: 4px;
  border-radius: 2px;
  animation: blink 1.1s step-end infinite;
}

/* Float suave — elemento decorativo hero */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-art { animation: floatY 6s ease-in-out infinite; }

/* Glow ring no art card */
@keyframes ringPulse {
  0%   { box-shadow: 0 0 0 0 rgba(43,165,178,.3); }
  70%  { box-shadow: 0 0 0 18px rgba(43,165,178,.0); }
  100% { box-shadow: 0 0 0 0 rgba(43,165,178,.0); }
}

.hero-art:hover { animation: none; }
.hero-art:hover { box-shadow: var(--glow-cyan); }

/* Loader de entrada da página */
@keyframes fadeInPage {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body { animation: fadeInPage .4s ease; }
