/* Homepage hero. Gradient, eyebrow and base type come from .catalog-hero
   in app-catalog.css; the homepage body has no .catalog-page class, so
   box-sizing and fonts are set here to stay independent of Elementor. */

.home-hero {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 4.5rem 1.25rem 7rem;
  font-family: var(--site-font);
  -webkit-font-smoothing: antialiased;
}

.home-hero *,
.home-hero *::before,
.home-hero *::after {
  box-sizing: border-box;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  color: #fff;
  font-family: var(--site-font);
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.home-hero__lead {
  max-width: 36rem;
  font-size: 1.15rem;
}

.home-hero .btn-row {
  margin-top: 1.5rem;
}

.home-hero .btn {
  height: 46px;
  padding: 0 1.35rem;
  font-family: var(--site-font);
  font-size: 1rem;
}

/* .catalog-hero a would otherwise turn the light button's label white */
.home-hero .btn--light {
  color: var(--cat-blue-dark);
}

.home-hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.home-hero__funding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.home-hero__funding img {
  display: block;
  height: 48px;
  width: auto;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
}

/* Waves: the three paths of the original Elementor divider. They are drawn
   anchored to y=0, so the SVG is turned upside down to sit on the bottom
   edge, and it is wider than the hero so the sideways drift never exposes
   an end. */
.home-waves {
  position: absolute;
  left: -5%;
  bottom: -1px;
  width: 110%;
  height: 80px;
  overflow: visible;
  transform: scaleY(-1);
  fill: #fff;
  pointer-events: none;
}

/* view-box + origin at y=0 make scaleY grow the crests from the filled
   edge instead of around the SVG's corner. */
.home-wave {
  transform-box: view-box;
  transform-origin: 50% 0;
  animation: wave-sway var(--dur, 14s) ease-in-out var(--delay, 0s) infinite alternate;
  will-change: transform;
}

/* Co-prime durations keep the combined motion from visibly repeating. */
.home-wave--back {
  --dur: 17s;
  --amp-x: 3%;
  --amp-y: 1.06;
}

.home-wave--mid {
  --dur: 13s;
  --amp-x: -2.2%;
  --amp-y: 1.08;
}

.home-wave--front {
  --dur: 11s;
  --amp-x: 1.4%;
  --amp-y: 1.05;
}

@keyframes wave-sway {
  0% {
    transform: translateX(0) scaleY(1);
  }
  50% {
    transform: translateX(var(--amp-x)) scaleY(var(--amp-y));
  }
  100% {
    transform: translateX(calc(var(--amp-x) * -0.6)) scaleY(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-wave {
    animation: none;
  }
}

@media (max-width: 767px) {
  .home-hero {
    padding: 3rem 1rem 5.5rem;
  }

  .home-waves {
    height: 56px;
  }
}
