/* Stats CTA — black top, city bottom-left, globe GIF bottom-right */

.stats-section {
  --stats-heading-main: #e8eaed;
  --stats-accent: #7ba4cc;
  --stats-cta: #4c74b9;
  --stats-cta-hover: #3d63a3;
  position: relative;
  box-sizing: border-box;
  isolation: isolate;
  background-color: #000;
  overflow: hidden;
  min-height: 784px;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(5rem, 14vw, 8rem);
  text-align: center;
}

/* City skyline: covers the lower-left ~65% of the section */
.stats-section::before {
content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 71%;
    height: 100%;
    z-index: 0;
    background-image: url(../../images/transform-bg.png);
    /* background-size: 100% 100%, 100% 100%, cover; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}


/* Globe GIF: bottom-right, screen blend removes the black matte */
.stats-section::after {
  content: "";
  position: absolute;
  right: clamp(-1rem, 7vw, 8rem);
  bottom: clamp(1.5rem, 5vw, 4rem);
  width: clamp(249px, 50vw, 433px);
  height: clamp(252px, 37vw, 429px);
  z-index: 1;
  background: url("../../images/video/transform.gif") center / contain no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}

.stats-section .section-width {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-section .section-width::before {
  content: "";
  position: absolute;
  inset: -9999px;
  background: rgb(1 0 35 / 66%);
  z-index: -1;
  pointer-events: none;
}

.stats-section h2,
.stats-section .stats-heading {
  font-family:
    "Inter",
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 5rem);
  line-height: 1.2;
  /* letter-spacing: 0.08em; */
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff 0%, #4873b7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin: 0 0 clamp(4rem, 10vw, 12rem);
  max-width: 24em;
  text-shadow: none;
}

.stats-section .stats-heading__line {
  color: var(--stats-heading-main);
}

.stats-section .stats-heading__accent,
.stats-section .stats-heading-accent {
  color: var(--stats-accent);
}

.stats-container {
  width: 100%;
  margin: 0 0 clamp(2.5rem, 6vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  height: 522px;
}

.stats-container-data {
  display: flex;
  /* flex-wrap: wrap; */
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(1.75rem, 10vw, 12rem);
  max-width: 920px;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.stats-section .stat-card {
  flex: 1 1 160px;
  min-width: 150px;
  max-width: 260px;
  text-align: center;
}

.stats-section .stat-card h3 {
  font-family:
    "Inter",
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 7.5vw, 7.25rem);
  line-height: 1;
  color: #fff;
  margin: 0 0 0.55rem;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 2px 16px rgba(0, 0, 0, 0.9),
    0 4px 32px rgba(0, 0, 0, 0.55);
}

.stats-section .stat-card .unit {
  font-weight: 700;
  font-size: 0.58em;
  vertical-align: 0.12em;
  margin-left: 0.03em;
}

.stats-section .stat-card p {
  font-family:
    "Inter",
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: clamp(0.88rem, 1.9vw, 1rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.98);
  margin: 0;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 2px 12px rgba(0, 0, 0, 0.85);
}

.stats-section .cta-button {
  display: inline-block;
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #fff !important;
  text-decoration: none !important;
  background: var(--stats-cta);
  padding: 0.7rem 2.25rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.stats-section .cta-button:hover {
  background: var(--stats-cta-hover);
  color: #fff !important;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

.gh-content .stats-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (max-width: 700px) {
  .stats-section {
    min-height: 520px;
    padding-bottom: clamp(6rem, 18vw, 10rem);
    padding-top: 8rem;
  }

  .stats-section::before {
    width: 100%;
    height: 65%;
  }

  .stats-section::after {
    right: -5%;
    bottom: 5%;
    width: clamp(180px, 55vw, 300px);
    height: clamp(180px, 55vw, 300px);
    opacity: 0.9;
  }

  .stats-container-data {
    flex-direction: column;
    align-items: center;
    gap: 0rem;
    font-size: 2rem;
  }

  .stats-section .stat-card {
    max-width: 100%;
  }
  .stats-section .stat-card h3 {
    font-size: 6rem;
  }

  .stats-section .stat-card p {
    font-size: 2rem;
  }
  .stats-section h2,
  .stats-section .stats-heading {
    font-size: 2.5rem;
  }
}
