/* ─── Stats Bar Module ─── */
@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── Section ── */
.stats-bar-section {
  width: 100%;
  padding: 28px 64px;
  font-family: 'Host Grotesk', sans-serif;
  background: #01010A;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

/* ── Outer frame ── */
.stats-bar-frame {
  width: 100%;
  max-width: 986px;
  border-radius: 30px;
  border: 1px solid rgba(231, 231, 253, 0.15);
  background: #00000F;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  box-sizing: border-box;
}

/* ── CSS Grid: 2 cols, 3 equal rows ── */
.stats-bar-inner {
  display: grid;
  grid-template-columns: 329px 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  column-gap: 105px;
  padding: 67px;
  box-sizing: border-box;
}

/* ── Left cells (col 1) ── */
.stats-bar-left-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* ── Heading row: gradient bar beside heading ── */
.stats-bar-heading-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

/* ── Gradient flank — height matches heading only ── */
.stats-bar-gradient-flank {
  width: 2px;
  flex-shrink: 0;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    #0C0CE9 0%,
    #8A8AFF 29.33%,
    #E90CE9 66.25%,
    #E90C0C 100%
  );
  border-radius: 2px;
}

/* ── Eyebrow ── */
.stats-bar-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9792FF;
  margin-bottom: 8px;
}

/* ── H2 Heading ── */
.stats-bar-heading {
  font-size: 60px;
  font-weight: 400;
  line-height: 1.05;
  color: #F6F9FC;
  letter-spacing: -0.02em;
}

/* ── Description ── */
.stats-bar-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #F6F9FC;
}

/* ── Source wrap ── */
.stats-bar-source-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-bar-source-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.stats-bar-source {
  font-size: 13px;
  font-weight: 500;
  color: #9792FF;
  text-decoration: none;
  border-bottom: 1px solid rgba(151, 146, 255, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats-bar-source:hover {
  color: #F6F9FC;
  border-color: #F6F9FC;
}

/* ── Stat cards (col 2) ── */
.stats-bar-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: 45px;
  border-radius: 37px;
  border: 1px solid rgba(231, 231, 253, 0.15);
  background: transparent;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, background 0.2s ease;
}

.stats-bar-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.stats-bar-card:nth-child(2) { transition-delay: 0ms; }
.stats-bar-card:nth-child(4) { transition-delay: 120ms; }
.stats-bar-card:nth-child(6) { transition-delay: 240ms; }

.stats-bar-card:hover {
  border-color: rgba(12, 12, 233, 0.35);
  background: rgba(12, 12, 233, 0.05);
}

/* ── Value + unit on same line ── */
.stats-bar-card-top {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Prefix / Value / Suffix — all identical style ── */
.stats-bar-card-prefix,
.stats-bar-card-value,
.stats-bar-card-suffix {
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #9792FF !important;
  -webkit-text-fill-color: #9792FF !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  display: inline;
}

/* ── Unit ── */
.stats-bar-card-unit {
  font-size: 18px;
  font-weight: 400;
  color: #F6F9FC !important;
  -webkit-text-fill-color: #F6F9FC !important;
  align-self: flex-end;
  padding-bottom: 6px;
}

/* ── Label ── */
.stats-bar-card-label {
  font-size: 13px;
  font-weight: 400;
  color: #F6F9FC;
  line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stats-bar-section { padding: 28px 32px; }
  .stats-bar-inner { column-gap: 48px; padding: 48px; }
  .stats-bar-heading { font-size: 48px; }
  .stats-bar-inner { grid-template-columns: 260px 1fr; }
}

@media (max-width: 768px) {
  .stats-bar-section { padding: 24px 20px; }
  .stats-bar-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
  }
  /* Heading row */
  .stats-bar-left-cell:nth-child(1) { order: 1; }
  /* Description row */
  .stats-bar-left-cell:nth-child(3) { order: 2; }
  /* Three stat cards */
  .stats-bar-card:nth-child(2) { order: 3; }
  .stats-bar-card:nth-child(4) { order: 4; }
  .stats-bar-card:nth-child(6) { order: 5; }
  /* Source/Forrester */
  .stats-bar-left-cell:nth-child(5) { order: 6; }

  .stats-bar-gradient-flank { display: none; }
  .stats-bar-heading { font-size: 36px; }
  .stats-bar-card { padding: 32px; border-radius: 24px; }
  .stats-bar-card-value { font-size: 36px; }
}
  .stats-bar-gradient-flank { display: none; }
  .stats-bar-heading { font-size: 36px; }
  .stats-bar-card { padding: 32px; border-radius: 24px; }
  .stats-bar-card-value { font-size: 36px; }
}
