/* ==========================================================================
   FASE 11B.06C — Assinatura Cromática ORKA & Conexão Energética da Hero
   Escopo estrito: tokens azuis isolados + camada decorativa .hero-energy
   ========================================================================== */

:root {
  /* Tokens cromáticos azuis derivados de img/brand/orka-logo.png e orka-symbol.png */
  --orka-blue: #0ca0e8;
  --orka-blue-active: #38b8ff;
  --orka-blue-highlight: #a8e4ff;
  --orka-blue-deep: #074169;
  --orka-blue-glow: rgba(12, 160, 232, 0.42);
}

/* Proporção exata da nova arte A02 Blue Edition (1024x768 = 4:3, zero distorção) */
.hero[data-astro-cid-ge2uvauf] .hero-hand--r[data-astro-cid-ge2uvauf] {
  aspect-ratio: 1024 / 768;
}

/* Camada SVG decorativa da conexão energética entre os dedos indicadores */
.hero[data-astro-cid-ge2uvauf] .hero-energy {
  --energy-opacity: 0.92;
  --energy-stroke: 1.05;
  --energy-glow: 0.34;
  --energy-wave: 2.2;
  --energy-speed: 4.8;
  --energy-l-u: 0.9922;
  --energy-l-v: 0.3282;
  --energy-r-u: 0.0626;
  --energy-r-v: 0.3749;

  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.hero[data-astro-cid-ge2uvauf] .hero-energy.is-ready {
  opacity: var(--energy-opacity);
}

.hero[data-astro-cid-ge2uvauf] .hero-energy.is-hidden {
  opacity: 0;
}

/* Filamento base + halo suave */
.hero-energy .he-aura {
  fill: none;
  stroke: var(--orka-blue);
  stroke-width: calc(var(--energy-stroke) * 3.1);
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 1s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.hero-energy .he-filament {
  fill: none;
  stroke: url(#orka-energy-grad);
  stroke-width: var(--energy-stroke);
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.85s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.hero-energy.is-filament .he-aura {
  opacity: var(--energy-glow);
}

.hero-energy.is-filament .he-filament {
  opacity: 0.88;
}

/* Centelhas discretas nas pontas dos dedos */
.hero-energy .he-spark-group {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.hero-energy.is-sparks .he-spark-group {
  opacity: 1;
}

.hero-energy .he-spark-halo {
  fill: var(--orka-blue);
  opacity: 0.28;
}

.hero-energy .he-spark-core {
  fill: var(--orka-blue-highlight);
  opacity: 0.92;
}

/* Pulsos viajantes suaves */
.hero-energy .he-pulse-group {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.hero-energy.is-pulsing .he-pulse-group {
  opacity: 1;
}

.hero-energy .he-pulse-halo {
  fill: var(--orka-blue-active);
  opacity: 0.42;
}

.hero-energy .he-pulse-core {
  fill: var(--orka-blue-highlight);
  opacity: 0.96;
}

@media (max-width: 720px) {
  .hero[data-astro-cid-ge2uvauf] .hero-energy {
    --energy-stroke: 0.85;
    --energy-glow: 0.28;
    --energy-wave: 1.1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero[data-astro-cid-ge2uvauf] .hero-energy,
  .hero-energy .he-aura,
  .hero-energy .he-filament,
  .hero-energy .he-spark-group {
    transition: none;
  }

  .hero-energy .he-pulse-group {
    display: none;
  }
}
