/* =====================================================================
   ADROAS — css/hero.css
   Hero shell, motion overlays, hero content, CTA buttons.
   Note: .btn--primary and .btn--secondary are shared site-wide
   but defined here as they originate in the hero CTA.
   ===================================================================== */


/* ─────────────────────────────────────────────────────────────────────
   5. HERO SHELL
   ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero::before {
  content: none !important;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../assets/exports/adroas-hero-bg-optimized.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  transform: none;
  contain: paint;
}

.hero__background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(247, 245, 240, 0.34) 0%,
      rgba(247, 245, 240, 0.22) 28%,
      rgba(247, 245, 240, 0.08) 48%,
      rgba(247, 245, 240, 0.00) 70%,
      rgba(247, 245, 240, 0.00) 100%
    ),
    radial-gradient(
      ellipse at 25% 42%,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.22) 36%,
      rgba(255, 255, 255, 0.00) 70%
    );
}

.hero__readability {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.20) 0%,
      rgba(255, 255, 255, 0.05) 18%,
      rgba(255, 255, 255, 0) 36%
    );
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}


/* ─────────────────────────────────────────────────────────────────────
   5b. HERO MOTION OVERLAYS — CSS-only, gentle "alive" feel
   Sits ABOVE the static PNG (z-index 0) and BELOW all content (z-index 10).
   The PNG itself never moves, scales, rotates, or shifts colour. These are
   faint, slow, low-opacity light overlays only. To dial motion down: lower
   each layer's `opacity`, shorten the translate distances in the keyframes,
   or lengthen the `animation-duration`.
   ───────────────────────────────────────────────────────────────────── */
.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 1;                 /* above .hero__background (0), below .hero-inner (10) */
  pointer-events: none;
  overflow: hidden;           /* contains drift — guarantees no horizontal scroll */
}
.hero-motion > * {
  position: absolute;
  inset: -6%;                 /* oversize so slow drift never reveals an edge */
}

/* ── SVG glass ribbons — translucent wave bands, soft-blurred, gentle drift
   Animate the entire SVG container on the GPU as a single layer to avoid
   re-calculating the expensive SVG blur filter on every frame. */
.hero-motion__ribbons {
  width: 112%;
  height: 112%;
  mix-blend-mode: screen;
  will-change: transform;
  animation: hm-ribbons-drift var(--motion-speed-slow) ease-in-out infinite alternate;
}
.hm-ribbon {
  opacity: var(--motion-opacity);
}

/* ── Particles — subtle shimmer, masked to centre-right, away from text ─ */
.hero-motion__particles {
  opacity: var(--particle-opacity);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0.7px, transparent 1.6px),
    radial-gradient(circle, rgba(196, 222, 246, 0.45) 0.6px, transparent 1.5px);
  background-size: 190px 190px, 250px 250px;
  background-position: 0 0, 95px 130px;
  /* Keep shimmer in the right/centre wave zone; left text stays clean */
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, transparent 32%, rgba(0,0,0,0.55) 60%, #000 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%, transparent 32%, rgba(0,0,0,0.55) 60%, #000 100%);
  will-change: transform;
  animation: hm-particle-pulse var(--motion-speed-medium) ease-in-out infinite alternate;
}

/* ── Glow — soft breathing light, opacity only (no movement) ──────────── */
.hero-motion__glow {
  opacity: 0.6;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 46% 52% at 90% 26%,
      rgba(190, 218, 244, 0.16) 0%,
      transparent 66%),
    radial-gradient(ellipse 52% 46% at 8% 96%,
      rgba(245, 224, 190, 0.12) 0%,
      transparent 64%);
  will-change: opacity;
  animation: hm-glow-breathe var(--motion-speed-slow) ease-in-out infinite alternate;
}

/* Unified GPU-based drift for the entire ribbon canvas */
@keyframes hm-ribbons-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(18px, -12px, 0); }
}
@keyframes hm-particle-pulse {
  0%   { opacity: calc(var(--particle-opacity) * 0.5); transform: translate3d(0, 0, 0); }
  100% { opacity: var(--particle-opacity);             transform: translate3d(9px, -10px, 0); }
}
@keyframes hm-glow-breathe {
  0%   { opacity: 0.42; }
  100% { opacity: 0.78; }
}

/* Respect reduced-motion preference — freeze all hero motion */
@media (prefers-reduced-motion: reduce) {
  .hero-motion,
  .hero-motion * {
    animation: none !important;
  }
}


/* ─────────────────────────────────────────────────────────────────────
   7. HERO CONTENT
   ───────────────────────────────────────────────────────────────────── */
.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top:    calc(var(--header-h) + clamp(6.5rem, 10vw, 11rem));
  padding-bottom: clamp(5.5rem, 9vw, 9.5rem);
  padding-left:   var(--pad-x);
  padding-right:  var(--pad-x);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  max-width: var(--content-max);
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.4;
}

.headline {
  margin: 0 auto 1.6rem;
  max-width: var(--headline-max);
  font-size: clamp(3.5rem, 5.5vw, 6rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  font-weight: 780;
  color: var(--navy);
  text-wrap: balance;
}

.subhead {
  margin: 0 auto 1.75rem;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 54ch;
}

.support {
  margin: 0 0 2.5rem;
  font-size: clamp(0.88rem, 1.0vw, 1.01rem);
  line-height: 1.62;
  color: var(--muted);
  opacity: 0.82;
  max-width: 62ch;
}


/* ─────────────────────────────────────────────────────────────────────
   8. CTA BUTTONS
   ───────────────────────────────────────────────────────────────────── */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}

.btn--primary {
  display: inline-flex;
  align-items: center;
  padding: 1.0rem 1.875rem;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(24, 38, 58, 0.22);
  transition: transform 0.12s ease, background 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn--primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(24, 38, 58, 0.28);
}

.btn--secondary {
  display: inline-flex;
  align-items: center;
  padding: 1.0rem 1.875rem;
  background: rgba(255, 255, 255, 0.60);
  color: var(--navy);
  border: 1px solid rgba(24, 38, 58, 0.15);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: transform 0.12s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn--secondary:hover {
  border-color: var(--steel);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}
