.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #020403;
}
.hero[data-theme="light"] {
  background: #f6f8f1;
}

.scene-stack { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: #020403; }
.light-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
  transition: opacity .8s ease;
}
.hero[data-theme="light"] .light-scene { opacity: 1; }
.light-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) contrast(1.06) brightness(.98);
}
.light-aeroponic-fallback {
  position: absolute;
  z-index: 1;
  left: 31%;
  top: 18%;
  width: 16%;
  height: 58%;
  translate: -50% 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.hero[data-theme="light"] .light-aeroponic-fallback { opacity: .82; }
.mist-pulse {
  position: absolute;
  left: 50%;
  width: 94%;
  height: 11%;
  translate: -50% 0;
  border: 1px solid rgba(71, 194, 160, .3);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.08) 18%, rgba(85,223,210,.16) 44%, rgba(157,255,53,.06) 62%, transparent 76%);
  box-shadow: 0 0 18px rgba(85,223,210,.16), inset 0 0 12px rgba(255,255,255,.24);
  filter: blur(1.2px);
  opacity: 0;
  animation: aeroponic-mist-pulse 3.6s ease-out infinite;
}
.mist-pulse-1 { top: 19%; animation-delay: 0s; }
.mist-pulse-2 { top: 44%; animation-delay: 1.2s; }
.mist-pulse-3 { top: 68%; animation-delay: 2.4s; }
@keyframes aeroponic-mist-pulse {
  0% { opacity: 0; scale: .72 .58; translate: -50% 6px; }
  28% { opacity: .66; }
  68% { opacity: .28; }
  100% { opacity: 0; scale: 1.12 .92; translate: -50% -10px; }
}
.light-sun {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 15% 7%, rgba(255,255,255,.48), transparent 25%),
    radial-gradient(circle at 86% 34%, rgba(85,223,210,.09), transparent 23%),
    linear-gradient(116deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.1) 32%, rgba(255,255,255,.02) 68%, rgba(224,255,206,.08) 100%);
  pointer-events: none;
}
.light-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(22,27,20,.04), transparent 16%, transparent 82%, rgba(22,27,20,.12)),
    radial-gradient(ellipse at 78% 72%, rgba(52,65,46,.1), transparent 20%),
    radial-gradient(ellipse at 48% 90%, rgba(143,122,74,.08), transparent 26%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.light-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .2;
  background-image:
    linear-gradient(115deg, transparent 0 55.5%, rgba(85,223,210,.14) 55.8%, transparent 59%),
    linear-gradient(115deg, transparent 0 66%, rgba(157,255,53,.12) 66.3%, transparent 69.2%),
    linear-gradient(0deg, transparent 0 92%, rgba(255,255,255,.36) 92.1%, transparent 92.4%);
  pointer-events: none;
}
.hero[data-theme="light"] .scene-frame,
.hero[data-theme="light"] .hero-scene-video,
.hero[data-theme="light"] .care-scan { opacity: 0; visibility: hidden; }
.hero[data-theme="light"] .scene-stack { background: #f3f6ef; }
.scene-frame {
  position: absolute;
  top: 88px;
  left: 0;
  width: 100%;
  height: calc(100% - 88px);
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 1.15s ease;
}
.scene-k1 { opacity: 1; }
.hero[data-scene="k2"] .scene-k1,
.hero[data-scene="k3"] .scene-k1 { opacity: 0; }
.hero[data-scene="k2"] .scene-k2,
.hero[data-scene="k3"] .scene-k2 { opacity: 1; }
.hero[data-scene="k3"] .scene-k3 { opacity: 1; }

.hero-scene-video {
  position: absolute;
  z-index: 2;
  top: 88px;
  left: 0;
  width: 100%;
  height: calc(100% - 88px);
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}

.scene-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,4,2,.42) 0%, rgba(1,4,2,.08) 47%, rgba(1,4,2,.08) 78%, rgba(1,4,2,.34) 100%); pointer-events: none; }
.hero[data-theme="light"] .scene-shade {
  background:
    linear-gradient(90deg, rgba(246,249,242,.02) 0%, rgba(246,249,242,.02) 34%, rgba(246,249,242,.16) 54%, rgba(246,249,242,.5) 75%, rgba(246,249,242,.78) 100%),
    linear-gradient(180deg, rgba(15,20,15,.04), transparent 20%, transparent 82%, rgba(15,20,15,.11));
}
.light-sweep { position: absolute; top: -25%; bottom: -25%; left: 53%; width: 12%; opacity: 0; background: linear-gradient(90deg, transparent, rgba(85,223,210,.12), rgba(224,255,206,.18), transparent); filter: blur(22px); pointer-events: none; }
.hero[data-active="true"] .light-sweep { animation: light-sweep 7.8s cubic-bezier(.22,.61,.36,1) .8s both; }
.care-scan { position: absolute; left: 55%; top: 11%; width: 15%; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, var(--cyan), var(--acid), transparent); box-shadow: 0 0 22px rgba(98,241,197,.68); pointer-events: none; }
.hero[data-scene="k3"] .care-scan { animation: care-scan 1.6s ease-out both; }

@keyframes light-sweep {
  0% { opacity: 0; translate: -65% 0; }
  16% { opacity: .25; }
  72% { opacity: .7; }
  100% { opacity: 0; translate: 175% 0; }
}
@keyframes care-scan {
  0% { opacity: 0; translate: 0 0; }
  18% { opacity: .72; }
  100% { opacity: 0; translate: 0 68svh; }
}
