/* Modern Hero Sample — high-interactivity lightbulb (no tilt) */

#hero.hero-modern {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: hidden;
  isolation: isolate;
  background-color: #B71C1C;
  background:
    radial-gradient(ellipse 70% 60% at var(--mx, 70%) var(--my, 40%), rgba(255, 180, 180, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 90% 80% at 15% 90%, rgba(90, 10, 10, 0.55) 0%, transparent 50%),
    linear-gradient(145deg, #8b1010 0%, #B71C1C 42%, #d32f2f 100%);
  padding: 100px 0 72px;
  --mx: 70%;
  --my: 40%;
}

#hero.hero-modern .hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.12) 0%, transparent 28%),
    repeating-linear-gradient(
      -12deg,
      transparent 0,
      transparent 18px,
      rgba(255, 255, 255, 0.015) 18px,
      rgba(255, 255, 255, 0.015) 19px
    );
  opacity: 0.9;
}

#hero.hero-modern .hero-spark {
  position: absolute;
  width: clamp(220px, 28vw, 360px);
  height: clamp(220px, 28vw, 360px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  left: var(--mx, 70%);
  top: var(--my, 40%);
  transform: translate(-50%, -50%) scale(calc(0.85 + var(--energy, 0) * 0.55));
  background: radial-gradient(circle, var(--ro-glow-strong) 0%, var(--ro-glow) 28%, transparent 68%);
  opacity: 0;
  transition: opacity 0.25s var(--ro-ease);
  mix-blend-mode: soft-light;
}

#hero.hero-modern.is-sparking .hero-spark {
  opacity: calc(0.55 + var(--energy, 0) * 0.45);
}

#hero.hero-modern .container {
  position: relative;
  z-index: 2;
  padding-top: 24px;
}

#hero.hero-modern .hero-brand {
  font-family: var(--ro-font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  animation: heroCopyIn 0.9s var(--ro-ease) both;
}

#hero.hero-modern .hero-copy h1 {
  font-family: var(--ro-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: #fff;
  letter-spacing: -0.02em;
  animation: heroCopyIn 0.9s var(--ro-ease) 0.08s both;
}

#hero.hero-modern .hero-copy h2 {
  font-family: var(--ro-font-body);
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 0.85rem;
  max-width: 34rem;
}

#hero.hero-modern .hero-copy .hero-sub {
  animation: heroCopyIn 0.9s var(--ro-ease) 0.14s both;
}

#hero.hero-modern .hero-copy .hero-tagline {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.92);
  animation: heroCopyIn 0.9s var(--ro-ease) 0.2s both;
}

#hero.hero-modern .hero-cta-wrap {
  animation: heroCopyIn 0.9s var(--ro-ease) 0.28s both;
}

#hero.hero-modern .btn-get-started {
  font-family: var(--ro-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  color: var(--ro-red);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  transition: transform 0.35s var(--ro-ease), box-shadow 0.35s var(--ro-ease), background 0.35s, color 0.35s;
}

#hero.hero-modern .btn-get-started:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Logo stage */
#hero.hero-modern .hero-img {
  text-align: center;
}

#hero.hero-modern .hero-logo-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  width: 100%;
  animation: heroBulbFloat 5.5s ease-in-out infinite;
}

#hero.hero-modern .hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

#hero.hero-modern .hero-logo-core {
  position: relative;
  width: min(320px, 78vw);
  cursor: pointer;
  z-index: 2;
  transform: scale(calc(1 + var(--energy, 0) * 0.08));
  transition: transform 0.2s var(--ro-ease);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#hero.hero-modern .hero-logo-core.is-speeding {
  transform: scale(calc(1.04 + var(--energy, 0) * 0.06));
}

#hero.hero-modern.is-holding .hero-energy-ring {
  box-shadow:
    0 0 48px rgba(255, 255, 255, 0.55),
    inset 0 0 24px rgba(255, 255, 255, 0.3);
  animation: heroHoldRingPulse 0.7s ease-in-out infinite;
}

#hero.hero-modern.is-holding .logo-outer-ring {
  stroke: rgba(255, 255, 255, 0.85);
}

#hero.hero-modern .hero-logo-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 200, 200, 0.35) 40%, transparent 70%);
  opacity: calc(0.35 + var(--energy, 0) * 0.65);
  filter: blur(calc(8px + var(--energy, 0) * 10px));
  transform: scale(calc(1 + var(--energy, 0) * 0.35));
  animation: heroAmbientPulse var(--ro-pulse-duration) ease-in-out infinite;
  animation-duration: calc(var(--ro-pulse-duration) * (1 - var(--energy, 0) * 0.55));
  pointer-events: none;
  z-index: 0;
}

#hero.hero-modern .hero-energy-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Match SVG outer ring: diameter 320 / viewBox 340 ≈ 94.1% */
  width: 94.1%;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  border: none;
  box-shadow:
    0 0 calc(14px + var(--energy, 0) * 44px) rgba(255, 255, 255, calc(0.12 + var(--energy, 0) * 0.5)),
    inset 0 0 calc(8px + var(--energy, 0) * 18px) rgba(255, 255, 255, calc(var(--energy, 0) * 0.2));
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  transition: box-shadow 0.2s;
}

#hero.hero-modern .logo-outer-ring {
  fill: none;
  stroke: rgba(255, 255, 255, calc(0.35 + var(--energy, 0) * 0.45));
  transition: stroke 0.2s;
}

#hero.hero-modern .hero-logo-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

#hero.hero-modern .logo-outline {
  filter: drop-shadow(0 0 calc(10px + var(--energy, 0) * 28px) rgba(255, 240, 240, calc(0.35 + var(--energy, 0) * 0.55)));
}

#hero.hero-modern .logo-sparks {
  pointer-events: none;
}

#hero.hero-modern .spark-dot {
  fill: #fff;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95));
  opacity: calc(0.55 + var(--speed, 0) * 0.45);
}

#hero.hero-modern .logo-fill {
  opacity: calc(0.35 + var(--energy, 0) * 0.55);
}

/* Dash flow driven by JS (--flow via stroke-dashoffset) for smooth speed easing */
#hero.hero-modern .logo-infinity {
  stroke: #fff;
  stroke-dasharray: 20 12;
  animation: none;
  filter: drop-shadow(0 0 calc(4px + var(--energy, 0) * 10px) rgba(255, 255, 255, 0.75));
}

#hero.hero-modern .logo-ring {
  stroke: rgba(255, 255, 255, calc(0.35 + var(--energy, 0) * 0.45));
  stroke-dasharray: 6 10;
  animation: none;
}

/* Click ripple */
#hero.hero-modern .hero-click-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.4);
  z-index: 4;
}

#hero.hero-modern .hero-click-ripple.is-bursting {
  animation: heroRippleBurst 0.85s var(--ro-ease) forwards;
}

#hero.hero-modern.is-bursting .hero-logo-core {
  transform: scale(1.12);
}

@keyframes heroAmbientPulse {
  0%, 100% { opacity: calc(0.3 + var(--energy, 0) * 0.4); }
  50% { opacity: calc(0.5 + var(--energy, 0) * 0.45); }
}

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

@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFilamentFlow {
  to { stroke-dashoffset: -44; }
}

@keyframes heroRingDash {
  to { stroke-dashoffset: -160; }
}

@keyframes heroRippleBurst {
  0% { opacity: 1; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(5.5); }
}

@keyframes heroHoldRingPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(calc(0.96 + var(--energy, 0) * 0.08)); }
  50% { transform: translate(-50%, -50%) scale(calc(1.04 + var(--energy, 0) * 0.1)); }
}

@media (max-width: 991px) {
  #hero.hero-modern {
    min-height: auto;
    height: auto;
    text-align: center;
    padding: 110px 0 64px;
  }

  #hero.hero-modern .hero-copy h2 {
    margin-left: auto;
    margin-right: auto;
  }

  #hero.hero-modern .hero-cta-wrap {
    justify-content: center;
  }

  #hero.hero-modern .hero-logo-stage {
    min-height: 300px;
    margin-bottom: 1.5rem;
  }

  #hero.hero-modern .hero-logo-core {
    width: min(220px, 55vw);
  }

  #hero.hero-modern.is-sparking .hero-spark {
    opacity: 0;
  }
}

@media (max-width: 575px) {
  #hero.hero-modern .hero-logo-core {
    width: min(180px, 58vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero.hero-modern .hero-logo-glow,
  #hero.hero-modern .hero-logo-stage,
  #hero.hero-modern .hero-brand,
  #hero.hero-modern .hero-copy h1,
  #hero.hero-modern .hero-copy .hero-sub,
  #hero.hero-modern .hero-copy .hero-tagline,
  #hero.hero-modern .hero-cta-wrap,
  #hero.hero-modern .logo-infinity,
  #hero.hero-modern .logo-ring {
    animation: none !important;
  }

  #hero.hero-modern .hero-logo-core,
  #hero.hero-modern .btn-get-started {
    transition: none !important;
  }

  #hero.hero-modern .hero-spark,
  #hero.hero-modern .hero-particle-canvas {
    display: none;
  }
}

.no-hover #hero.hero-modern.is-sparking .hero-spark {
  opacity: 0;
}
