/* ==========================================================================
   Hero — full-bleed cinematic background (generic, no character art)
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(680px, 88vh, 860px);
  color: var(--color-text-on-dark);
  overflow: hidden;
  background: var(--whe-midnight-deep);
}

/* Generic atmospheric background layers */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 85% 20%, rgba(24, 184, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(8, 126, 245, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 40% at 60% 60%, rgba(8, 126, 245, 0.08), transparent 60%),
    linear-gradient(155deg, #02101c 0%, #041a2f 42%, #06304f 100%);
}

/* Soft water / refraction texture — temporary until final photography */
.hero__bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 800 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%2318b8ff' stop-opacity='.35'/%3E%3Cstop offset='1' stop-color='%23087ef5' stop-opacity='.05'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 380C120 320 200 440 320 400C440 360 480 280 600 300C700 316 760 360 800 340V600H0Z' fill='url(%23g)'/%3E%3Cpath d='M0 450C140 410 220 500 360 470C500 440 560 380 680 400C740 410 780 440 800 430V600H0Z' fill='%2318b8ff' fill-opacity='.08'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
  animation: bg-drift 18s ease-in-out infinite alternate;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(234, 247, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 247, 255, 0.35) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}

.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.hero__bg-orb--1 {
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  right: -8%;
  top: 10%;
  background: rgba(24, 184, 255, 0.35);
  animation: orb-pulse 9s ease-in-out infinite;
}

.hero__bg-orb--2 {
  width: min(36vw, 380px);
  height: min(36vw, 380px);
  right: 18%;
  bottom: 5%;
  background: rgba(8, 126, 245, 0.28);
  animation: orb-pulse 11s ease-in-out infinite reverse;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 16, 28, 0.55) 0%, rgba(2, 16, 28, 0.25) 50%, rgba(2, 16, 28, 0.35) 100%),
    linear-gradient(180deg, transparent 45%, rgba(2, 16, 28, 0.65) 100%);
}

/* Liquid-glass WebGL layer — under copy/CTAs */
.hero__liquid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

html.hero-liquid-on .hero__liquid {
  pointer-events: auto;
}

.hero__liquid canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__liquid-hint {
  display: none;
  position: absolute;
  right: var(--gutter);
  bottom: 5.5rem;
  z-index: 4;
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

html.hero-liquid-on .hero__liquid-hint {
  display: block;
}

.hero__cut {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 72px;
  background: var(--whe-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 28%, 0 100%);
  z-index: 4;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  margin-inline: auto;
  padding-top: clamp(3rem, 8vh, 5.5rem);
  padding-bottom: clamp(8rem, 14vh, 11rem);
  min-height: inherit;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: min(100%, 54rem);
  pointer-events: auto;
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: hero-rise var(--duration-slow) var(--ease-out) 0.1s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 2.2rem + 5.5vw, 7.25rem);
  font-weight: var(--fw-black);
  line-height: 0.9;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  opacity: 0;
  animation: hero-rise var(--duration-slow) var(--ease-out) 0.22s forwards;
}

.hero__title span {
  display: block;
}

.hero__title .accent {
  color: var(--whe-electric);
}

.hero__lede {
  max-width: 48ch;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 1.85rem;
  opacity: 0;
  animation: hero-rise var(--duration-slow) var(--ease-out) 0.34s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: hero-rise var(--duration-slow) var(--ease-out) 0.46s forwards;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  padding-top: 0.25rem;
  opacity: 0;
  animation: hero-rise var(--duration-slow) var(--ease-out) 0.58s forwards;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}

.trust-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(24, 184, 255, 0.12);
  border: 1px solid rgba(24, 184, 255, 0.28);
  color: var(--whe-electric);
  flex-shrink: 0;
}

.trust-item__icon .lucide {
  width: 0.9rem;
  height: 0.9rem;
}

.reviews-score__stars .lucide {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  stroke: currentColor;
}

.hero__tech-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 184, 255, 0.55), transparent);
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
  animation: line-drift 8s ease-in-out infinite;
}

.hero__tech-line--1 {
  width: 42%;
  top: 22%;
  right: 8%;
}

.hero__tech-line--2 {
  width: 28%;
  top: 38%;
  right: 18%;
  animation-delay: -3s;
  opacity: 0.35;
}

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 6.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hero__scroll-bar {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--whe-electric), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

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

@keyframes bg-drift {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-2%) scale(1.04);
  }
}

@keyframes orb-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.08);
  }
}

@keyframes line-drift {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.35;
  }
  50% {
    transform: translateX(-12px);
    opacity: 0.65;
  }
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__title,
  .hero__lede,
  .hero__actions,
  .hero__trust {
    opacity: 1;
    animation: none;
  }

  .hero__bg-texture,
  .hero__bg-orb,
  .hero__tech-line,
  .hero__scroll-bar {
    animation: none;
  }
}

@media (max-width: 899px) {
  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding-top: 2rem;
    padding-bottom: 7.5rem;
    min-height: auto;
  }

  .hero__content {
    max-width: none;
  }

  .hero__title {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .hero__lede {
    max-width: 40ch;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__trust {
    gap: 0.75rem 1.15rem;
  }

  .hero__liquid-hint,
  .hero__tech-line,
  .hero__scroll,
  .hero__cut {
    display: none !important;
  }

  .hero__vignette {
    background:
      linear-gradient(180deg, rgba(2, 16, 28, 0.35) 0%, rgba(2, 16, 28, 0.75) 100%);
  }
}
