/* SolarScan AI v2 landing: hero (giant type, 3D drone, live-feed card, beam). */
.hero-title {
  font: 800 var(--hero)/0.84 var(--f-display);
  letter-spacing: -0.045em;
}

.hw { position: absolute; white-space: nowrap; }
.hw-1 { left: var(--gut); top: var(--hero-top); z-index: 1; }
.hw-2 { left: var(--gut); top: calc(var(--hero-top) + var(--hero) * 0.96); z-index: 3; }

.intro { --hero-top: calc(10vh + 1.6rem); }

.hero-script {
  position: absolute;
  z-index: 4;
  left: calc(var(--gut) + var(--hero) * 3.55);
  top: calc(var(--hero-top) + var(--hero) * 0.2);
  font-size: calc(var(--hero) * 0.4);
  line-height: 1;
  transform: rotate(-7deg);
  -webkit-text-stroke: 0.08em var(--ink);
  paint-order: stroke fill;
  padding-right: 0.1em;
}

.hero-stage {
  position: absolute;
  z-index: 2;
  left: 50%;
  right: -1%;
  top: 4vh;
  bottom: 46vh;
  pointer-events: none;
}

.hero-stage canvas { width: 100%; height: 100%; }

.hero-beam {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.beam-cone { fill: url(#beam-grad); mix-blend-mode: multiply; }
.beam-dot { fill: var(--volt); stroke: var(--ink); stroke-width: 2; }

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none; /* decorative fly-in video; was swallowing clicks on the hero CTA */
  background: var(--night);
}

.hero-video video { width: 100%; height: 100%; object-fit: cover; }

.hero-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hero-ui a { pointer-events: auto; }

/* ----- Live feed card ----- */
.feed {
  position: absolute;
  right: var(--gut);
  top: calc(var(--hero-top) + var(--hero) * 1.95);
  width: min(33vw, 29rem);
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.feed-frame {
  position: relative;
  aspect-ratio: 480 / 300;
  border-radius: 18px;
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 7px var(--paper), 0 0 0 8px rgb(11 12 10 / 18%), 0 30px 60px -20px rgb(11 12 10 / 45%);
}

.feed-img { width: 100%; height: 100%; object-fit: cover; }

.feed-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgb(200 255 46 / 22%) 85%, rgb(200 255 46 / 70%) 100%);
  transform: translateY(-100%);
  animation: feed-scan 2.8s linear infinite;
  pointer-events: none;
}

@keyframes feed-scan { to { transform: translateY(460%); } }

.feed-chip {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.64rem;
}

.feed-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--high);
  box-shadow: 0 0 8px var(--high);
  animation: blink 1.2s ease-in-out infinite;
}

/* Detection box sits exactly over the model's own box (photo_09, cracked 0.88; crop x 0-512, y 40-360). */
.feed-box {
  position: absolute;
  left: 13.1%;
  top: 13.5%;
  width: 33.8%;
  height: 76.5%;
}

.feed-box .e { position: absolute; background: var(--volt); box-shadow: 0 0 10px rgb(200 255 46 / 70%); }
.feed-box .e-t,
.feed-box .e-b { left: 0; right: 0; height: 3px; }
.feed-box .e-l,
.feed-box .e-r { top: 0; bottom: 0; width: 3px; }
.feed-box .e-t { top: 0; transform-origin: 0 50%; }
.feed-box .e-r { right: 0; transform-origin: 50% 0; }
.feed-box .e-b { bottom: 0; transform-origin: 100% 50%; }
.feed-box .e-l { left: 0; transform-origin: 50% 100%; }

.feed-label {
  position: absolute;
  left: 13.1%;
  top: calc(13.5% - 1.85rem);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: var(--volt);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 500;
  white-space: nowrap;
}

.feed-hud {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.2rem;
  font-size: 0.62rem;
  color: var(--ink-2);
}

/* ----- Lede, use cases, trust ----- */
.hero-lede {
  position: absolute;
  left: var(--gut);
  top: calc(var(--hero-top) + var(--hero) * 2.05);
  display: grid;
  gap: 1.3rem;
  justify-items: start;
  max-width: 30rem;
}

.hero-lede > p:first-child { font-size: 1.14rem; line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }

.hero-uses {
  margin-top: 1.1rem;
  max-width: 34rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.64rem;
  color: var(--ink-2);
}

.use {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

.use--now { background: var(--ink); color: var(--volt); box-shadow: none; }
.use-lead { margin: 0 0.2rem 0 0.4rem; }

.hero-trust {
  position: absolute;
  left: var(--gut);
  bottom: 6vh;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
}

.pip {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--volt);
  box-shadow: 0 0 0 2px var(--ink);
  border-radius: 2px;
}

/* ----- Mobile: stack the hero UI from the bottom ----- */
@media (max-width: 640px) {
  .intro { --hero-top: 4.6rem; --hero: clamp(2.9rem, 15vw, 5rem); }
  .hw-2 { white-space: normal; width: 6.6em; line-height: 0.84; }
  .hero-script { left: auto; right: var(--gut); top: calc(var(--hero-top) + var(--hero) * 0.08); font-size: calc(var(--hero) * 0.5); }
  .hero-stage { left: 34%; right: -12%; top: calc(var(--hero-top) + var(--hero) * 1.2); bottom: auto; height: 27svh; }
  .hero-ui {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.9rem;
    padding: 0 var(--gut) 3svh;
  }
  .feed, .hero-lede, .hero-trust { position: static; }
  .feed { width: 100%; }
  .feed-chip, .feed-label { font-size: 0.56rem; }
  .feed-hud span:first-child { display: none; }
  .hero-lede { max-width: none; gap: 0.9rem; }
  .hero-lede > p:first-child { font-size: 0.95rem; }
  .hero-uses { font-size: 0.58rem; gap: 0.3rem; }
  .use-lead { flex-basis: 100%; margin: 0.1rem 0 0; order: -1; }
  .hero-trust { display: none; }
}

@media (max-height: 760px) and (min-width: 641px) {
  .hero-uses { display: none; }
}
