/* Homepage hero + warehouse PNG + SVG overlay */
.home-hero {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #f4f7f8 0%, #ffffff 70%);
  overflow: hidden;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.home-hero-copy .eyebrow {
  margin-bottom: 0.75rem;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.home-hero-copy h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
  max-width: 14ch;
  margin-bottom: 1.15rem;
}

.home-hero-copy .lead {
  max-width: 42ch;
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stage {
  position: relative;
  background: var(--navy);
  border-radius: 16px;
  padding: 1rem 0.75rem 1.5rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-height: 480px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(12, 129, 130, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(26, 86, 219, 0.1), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-stage-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.warehouse-frame {
  position: relative;
  width: 92%;
  max-width: 560px;
  aspect-ratio: 1024 / 682;
}

.warehouse-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-svg.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  pointer-events: none;
  overflow: visible;
}

.hero-overlay .insp-point,
.hero-overlay [data-insp="inspector"],
.hero-overlay [data-insp="pin"] {
  pointer-events: auto;
}

.insp-hidden {
  opacity: 0;
  pointer-events: none;
}

.insp-point {
  cursor: pointer;
}

.insp-point circle.insp-dot {
  transition: fill 0.2s ease;
}

.insp-point:hover circle.insp-dot,
.insp-point.is-open circle.insp-dot,
.insp-point.is-hot circle.insp-dot {
  fill: #0c8182;
}

.insp-point.is-finding circle.insp-dot {
  fill: #e3a008;
}

.insp-point.is-issue circle.insp-dot {
  fill: #e02424;
}

.insp-label {
  font-family: Inter, system-ui, sans-serif;
  fill: #ffffff;
  font-size: 28px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: rgba(6, 32, 38, 0.9);
  stroke-width: 5px;
  stroke-linejoin: round;
}

.insp-point:hover .insp-label,
.insp-point.is-open .insp-label,
.insp-point.is-hot .insp-label,
.insp-show-labels .insp-label {
  opacity: 1;
}

.insp-card,
.insp-panel {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.insp-card.is-on,
.insp-panel.is-on {
  opacity: 1;
}

/* HTML overlay cards — readable CSS typography */
.insp-ui-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.insp-ui-card {
  position: absolute;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.85rem 1rem;
  min-width: 168px;
  max-width: 210px;
}

.insp-ui-card.is-on {
  opacity: 1;
}

.insp-ui-card .ui-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6b70;
  margin-bottom: 0.35rem;
}

.insp-ui-card .ui-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b1f24;
  line-height: 1.3;
}

.insp-ui-card .ui-ok {
  color: #057a55;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.insp-ui-card .ui-badge {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: #fef2f2;
  color: #c81e1e;
  font-size: 0.8rem;
  font-weight: 600;
}

.insp-ui-card .ui-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b1f24;
  line-height: 1.55;
}

.insp-ui-card .ui-flow li {
  display: flex;
  flex-direction: column;
}

.insp-ui-card .ui-flow .ui-arrow {
  color: #5b6b70;
  font-weight: 500;
  font-size: 0.85rem;
  margin: 0.1rem 0;
}

.insp-ui-card .ui-flow .ui-done {
  color: #057a55;
}

.insp-ui-photo {
  top: 4%;
  left: 3%;
}

.insp-ui-video {
  top: 5%;
  right: 3%;
}

.insp-ui-disc {
  bottom: 8%;
  right: 3%;
}

.insp-ui-resolve {
  bottom: 10%;
  left: 3%;
}

.insp-pulse {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
}

.insp-pulse.is-on {
  animation: insp-pulse 2s ease-out infinite;
}

@keyframes insp-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

.insp-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.4s ease;
}

.insp-path.is-on {
  stroke-dashoffset: 0;
}

.insp-detail {
  position: absolute;
  z-index: 5;
  min-width: 160px;
  max-width: 200px;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: none;
}

.insp-detail.is-open {
  display: block;
}

.insp-detail h4 {
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.insp-detail p {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.hero-caption {
  position: absolute;
  left: 1rem;
  bottom: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  z-index: 2;
}

@media (max-width: 960px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-hero-copy h1 {
    max-width: none;
  }

  .hero-stage {
    max-height: 420px;
  }

  .warehouse-frame {
    width: 88%;
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-stage {
    border-radius: 12px;
    max-height: 340px;
    padding: 0.75rem 0.5rem 1.25rem;
  }

  .warehouse-frame {
    width: 94%;
    max-width: none;
  }

  .insp-ui-card {
    min-width: 140px;
    max-width: 170px;
    padding: 0.7rem 0.8rem;
  }

  .insp-ui-card .ui-title {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insp-pulse.is-on {
    animation: none;
    opacity: 0.35;
  }

  .insp-path,
  .insp-card,
  .insp-panel,
  .insp-ui-card {
    transition: none;
  }
}
