/* ==========================================================================
   Hero V4 — Webflow Component
   Self-contained: does not need base.css. Tokens are used with fallbacks.
   Plate matches the page column (1280). Corners match the nav bar. Copy left.
   Background is a static CSS gradient (WebGL disabled for perf testing).
   V4: the key figures live inside the plate, directly under the CTA —
   kicker + figure only (no captions), capped at half the plate width.
   ========================================================================== */

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

.bd-hero {
  --bd-hero-radius: var(--bd-radius, 8px);
  --bd-hero-pad: clamp(24px, 4vw, 48px);
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  font-family: var(--bd-font, InterVariable, sans-serif);
  font-feature-settings: "liga" 1, "calt" 1, "cv02", "cv03", "cv04", "cv11";
  font-optical-sizing: auto;
}

.bd-hero .bd-wrap {
  width: 100%;
  max-width: var(--bd-content, 1280px);
  margin-inline: auto;
}

.bd-hero__plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: 28rem;
  padding: var(--bd-hero-pad);
  overflow: hidden;
  border-radius: var(--bd-hero-radius);
  background: #cde0f0;
}

.bd-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Approximates gradient-lab first frame. Replace with static image later. */
.bd-hero__bg--static {
  background-color: #cde0f0;
  background-image:
    radial-gradient(ellipse 70% 80% at 10% 76%, #ffffff 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 24% 16%, #cde0f0 0%, transparent 50%),
    radial-gradient(ellipse 65% 75% at 64% 79%, #b3b0e9 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 81% 33%, #ffffff 0%, transparent 50%);
}

.bd-hero__copy {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
}

.bd-hero__title {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 600;
  font-variation-settings: "wght" 600;
  line-height: 1.1;
  color: var(--bd-text, #000);
}

.bd-hero__lead {
  margin: var(--bd-space-5, 20px) 0 0;
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--bd-text, #000);
}

.bd-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--bd-space-6, 24px);
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--bd-radius, 8px);
  background: var(--bd-text, #000);
  color: #fff;
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.bd-hero__cta:hover {
  opacity: 0.85;
}

.bd-hero__cta:focus-visible {
  outline: 2px solid var(--bd-text, #000);
  outline-offset: 3px;
}

/* --- Key figures, moved into the plate (V4) -------------------------------
   Compact edition of the stats section: kicker + figure, captions dropped.
   Only the icon and the number scale down (72px → 32px); the kicker keeps
   the 14px floor. Row hugs its content and never exceeds half the plate. */

.bd-hero__stats {
  --bd-hero-stat-gap: var(--bd-space-3, 12px);
  --bd-hero-stat-col: var(--bd-space-5, 20px);
  --bd-hero-stat-rule: #d5d7da;
  --bd-hero-stat-figure: 32px;
  --bd-hero-stat-muted: var(--bd-text-2, #252B37);
  --bd-hero-stat-plus: var(--bd-success, #079455);
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: var(--bd-space-8, 32px) 0 0;
  padding: 0;
  list-style: none;
  max-width: 50%;
  column-gap: var(--bd-hero-stat-col);
  row-gap: var(--bd-hero-stat-gap);
}

.bd-hero__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  min-width: 0;
  gap: var(--bd-hero-stat-gap);
}

.bd-hero__stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(var(--bd-hero-stat-col) / -2);
  width: 1px;
  transform: translateX(50%);
  background: var(--bd-hero-stat-rule);
  pointer-events: none;
}

.bd-hero__stat-kicker,
.bd-hero__stat-figure {
  margin: 0;
}

.bd-hero__stat-kicker {
  font-size: var(--bd-text-sm, 14px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--bd-hero-stat-muted);
  white-space: nowrap;
}

.bd-hero__stat-figure {
  display: flex;
  align-items: center;
  gap: var(--bd-space-2, 8px);
  font-size: var(--bd-hero-stat-figure);
}

.bd-hero__stat-icon {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  display: block;
  color: var(--bd-hero-stat-muted);
}

.bd-hero__stat-icon,
.bd-hero__stat-icon * {
  vector-effect: non-scaling-stroke;
}

.bd-hero__stat-value {
  font-weight: var(--bd-weight-value, 200);
  font-variation-settings: "wght" var(--bd-weight-value, 200);
  font-variant-numeric: proportional-nums lining-nums;
  font-feature-settings: "liga" 1, "calt" 1, "kern" 1;
  line-height: 1;
  color: var(--bd-text, #000);
  white-space: nowrap;
}

.bd-hero__stat-plus {
  color: var(--bd-hero-stat-plus);
}

@media (max-width: 1199px) {
  .bd-hero__stats {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .bd-hero__plate {
    min-height: 22rem;
  }

  .bd-hero__stats {
    --bd-hero-stat-figure: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: var(--bd-space-6, 24px);
    column-gap: var(--bd-hero-stat-col);
    row-gap: var(--bd-space-6, 24px);
  }

  /* 2×2: the vertical rule only between the two columns. */
  .bd-hero__stat:not(:last-child)::after {
    content: none;
  }

  .bd-hero__stat:nth-child(odd)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(var(--bd-hero-stat-col) / -2);
    width: 1px;
    transform: translateX(50%);
    background: var(--bd-hero-stat-rule);
    pointer-events: none;
  }
}
