.hero-turbine-host {
  position: relative;
  isolation: isolate;
}

.hero-turbine-host > :not(.hero-turbine-bg) {
  position: relative;
  z-index: 1;
}

.hero-turbine-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-turbine-bg__glow {
  position: absolute;
  right: 8%;
  top: 10%;
  width: min(42vw, 34rem);
  height: min(42vw, 34rem);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(125, 211, 252, 0.14) 0%, rgba(59, 130, 246, 0.1) 32%, rgba(15, 23, 42, 0) 72%);
  filter: blur(10px);
  opacity: 0.9;
}

.hero-turbine {
  --tower-height: min(50vw, 30rem);
  --rotor-size: min(28vw, 18rem);
  position: absolute;
  right: max(7%, 3rem);
  bottom: max(5%, 2rem);
  width: min(40vw, 24rem);
  height: min(62vw, 38rem);
  opacity: 0.17;
  transform: translateZ(0);
}

.hero-turbine__tower {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.45rem;
  height: var(--tower-height);
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(191, 219, 254, 0.35));
  box-shadow: 0 0 24px rgba(125, 211, 252, 0.18);
}

.hero-turbine__hub {
  position: absolute;
  left: 50%;
  top: calc(100% - var(--tower-height) - (var(--rotor-size) * 0.12));
  width: 1rem;
  height: 1rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
  box-shadow:
    0 0 0 0.7rem rgba(125, 211, 252, 0.05),
    0 0 28px rgba(125, 211, 252, 0.22);
}

.hero-turbine__blades {
  position: absolute;
  left: 50%;
  top: calc(100% - var(--tower-height) - (var(--rotor-size) * 0.12));
  width: var(--rotor-size);
  height: var(--rotor-size);
  transform: translate(-50%, -50%);
  animation: hero-turbine-spin 18s linear infinite;
  transform-origin: center;
}

.hero-turbine__blade {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--rotor-size) * 0.52);
  height: 0.42rem;
  transform-origin: 0 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.95), rgba(191, 219, 254, 0.3));
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.16);
}

.hero-turbine__blade::after {
  content: "";
  position: absolute;
  right: -0.2rem;
  top: 50%;
  width: 0.85rem;
  height: 0.24rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.7);
}

.hero-turbine__blade--1 {
  transform: translate(0, -50%) rotate(0deg);
}

.hero-turbine__blade--2 {
  transform: translate(0, -50%) rotate(120deg);
}

.hero-turbine__blade--3 {
  transform: translate(0, -50%) rotate(240deg);
}

.hero-turbine__ring {
  position: absolute;
  left: 50%;
  top: calc(100% - var(--tower-height) - (var(--rotor-size) * 0.12));
  width: calc(var(--rotor-size) * 0.86);
  height: calc(var(--rotor-size) * 0.86);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.16);
}

@keyframes hero-turbine-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 979px) {
  .hero-turbine-bg__glow {
    right: -8%;
    top: 16%;
    width: 28rem;
    height: 28rem;
    opacity: 0.6;
  }

  .hero-turbine {
    right: -2.5rem;
    bottom: 3rem;
    width: 18rem;
    height: 28rem;
    opacity: 0.12;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-turbine__blades {
    animation: none;
  }
}
