/* Hero cinematográfica — refinamento premium */

.hero--cinematic {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 3.5rem) 0 6.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  text-align: left;
}

.hero-bloom {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 72% 42%, rgba(0, 217, 255, 0.07), transparent 58%),
    radial-gradient(ellipse 45% 45% at 22% 58%, rgba(123, 97, 255, 0.08), transparent 55%);
}

.hero-canvas-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-spotlight {
  position: absolute;
  left: 72%;
  top: 48%;
  width: min(640px, 85vw);
  height: min(640px, 85vw);
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(0, 217, 255, 0.07) 0%,
    rgba(123, 97, 255, 0.04) 40%,
    transparent 68%
  );
  filter: blur(40px);
  animation: spotlightPulse 12s ease-in-out infinite;
}

.hero-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3.5rem;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 5;
}

.hero-copy {
  flex: 0 0 52%;
  max-width: 52%;
  min-width: 0;
  position: relative;
  z-index: 20;
  text-align: left;
  isolation: isolate;
}

.hero--cinematic .hero-title,
.hero--cinematic .hero-subtitle,
.hero--cinematic .hero-actions,
.hero--cinematic .hero-badge {
  animation: none;
}

.hero--cinematic .hero-subtitle {
  margin-left: 0;
  margin-right: auto;
}

.hero--cinematic .hero-actions {
  justify-content: flex-start;
}

/* Conteúdo visível por padrão; animação é opcional */
[data-anim] {
  opacity: 1;
}

body.content-ready [data-anim] {
  will-change: transform, opacity;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    transparent 30%,
    rgba(5, 5, 5, 0.7) 100%
  );
}

@keyframes spotlightPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.03); }
}

#hero-canvas-deep { opacity: 0.35; }
#hero-canvas-mid { opacity: 0.5; }
#hero-canvas-front { opacity: 0.65; }

/* Holograma — quebra-cabeça + energia */
.hero-visual-wrap {
  flex: 0 0 44%;
  max-width: 44%;
  min-width: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.5rem;
  overflow: visible;
  min-height: 380px;
  max-height: min(72vh, 620px);
  height: min(72vh, 620px);
  perspective: 1200px;
}

.holo-scene {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  transform-style: preserve-3d;
}

.holo-scene-glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.18), transparent 58%);
  filter: blur(44px);
  animation: coreGlow 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes coreGlow {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

.holo-wireframe {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
  margin: auto;
  opacity: 0.32;
  animation: wireRotate 48s linear infinite;
}

@keyframes wireRotate {
  to { transform: rotate(360deg); }
}

.energy-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  z-index: 5;
}

.energy-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--neon) 30%, var(--purple) 65%, transparent 72%);
  box-shadow:
    0 0 32px rgba(0, 217, 255, 0.45),
    0 0 64px rgba(0, 217, 255, 0.2),
    inset 0 0 16px rgba(255, 255, 255, 0.4);
  animation: energyPulse 2.8s ease-in-out infinite;
}

@keyframes energyPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.15); }
}

.energy-ring {
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: 50%;
  animation: ringExpand 2.8s ease-out infinite;
}

.energy-ring--2 {
  animation-delay: 1.4s;
  inset: -34px;
}

@keyframes ringExpand {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.energy-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 140%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, transparent, var(--neon), transparent);
  opacity: 0.28;
  filter: blur(1px);
  z-index: 4;
}

.energy-beam--h {
  width: 140%;
  height: 2px;
}

.energy-particles {
  position: absolute;
  inset: -30px;
  pointer-events: none;
}

.energy-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: particleBurst 2.6s ease-out infinite;
}

.energy-particle:nth-child(1) { top: 10%; left: 50%; animation-delay: 0s; --bx: 25px; --by: -35px; }
.energy-particle:nth-child(2) { top: 30%; left: 80%; animation-delay: 0.3s; --bx: -30px; --by: -25px; }
.energy-particle:nth-child(3) { top: 70%; left: 20%; animation-delay: 0.6s; --bx: 35px; --by: 20px; }
.energy-particle:nth-child(4) { top: 85%; left: 60%; animation-delay: 0.9s; --bx: -20px; --by: 30px; }
.energy-particle:nth-child(5) { top: 50%; left: 15%; animation-delay: 1.2s; --bx: 40px; --by: 10px; }
.energy-particle:nth-child(6) { top: 20%; left: 25%; animation-delay: 1.5s; --bx: -35px; --by: -15px; }

@keyframes particleBurst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--bx, 20px), var(--by, -30px)) scale(0); opacity: 0; }
}

.hero--cinematic .hero-badge {
  margin-bottom: 1.75rem;
  padding: 0.45rem 1rem 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-badge-dot {
  background: var(--neon);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.5);
}

.hero-badge-tag {
  background: rgba(123, 97, 255, 0.12);
  color: var(--purple-soft);
  border: 1px solid rgba(123, 97, 255, 0.2);
}

.hero--cinematic .hero-subtitle {
  margin-bottom: 2.5rem;
}

.hero--cinematic .hero-actions {
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-metrics {
  padding: 1rem 1.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
}

.hero-metric strong {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.5rem;
}

/* Botões hero */
.btn-neon {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 1024px) {
  .hero-layout {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-copy {
    flex: 0 0 100%;
    max-width: 100%;
    order: 1;
    text-align: center;
  }

  .hero-visual-wrap {
    flex: 0 0 100%;
    max-width: 100%;
    order: 2;
    min-height: min(55vw, 420px);
    max-height: min(65vw, 480px);
    height: min(60vw, 450px);
  }

  .hero--cinematic .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero--cinematic .hero-actions {
    justify-content: center;
  }

  .holo-scene {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-spotlight,
  .energy-core,
  .energy-ring,
  .holo-wireframe,
  .holo-scene-glow {
    animation: none !important;
  }

  .energy-core {
    opacity: 1 !important;
  }
}
