@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --beca-blue: #135AD5;
  --beca-accent: #07A5F6;
  --beca-font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --beca-container-max: 1240px;
}

.beca-section {
  box-sizing: border-box;
  font-family: var(--beca-font-family);
  cursor: default;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.beca-section *,
.beca-section *::before,
.beca-section *::after {
  box-sizing: inherit;
}

.beca-inner {
  margin: 0 auto;
  padding-inline: 24px;
}

.beca-stats {
  --beca-stats-overlay: #071b3a;
  --beca-stats-overlay-opacity: .72;
  --beca-heading-color: #fff;
  --beca-stat-color: #fff;
  --beca-stats-image: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 430px;
  padding: clamp(72px, 8vw, 112px) 0;
  background: transparent;
  animation: beca-section-in .7s cubic-bezier(.22, 1, .36, 1) both;
}

.beca-stats__backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--beca-stats-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.015);
}

.beca-stats__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--beca-stats-overlay);
  opacity: var(--beca-stats-overlay-opacity);
}

.beca-stats__glow {
  position: absolute;
  z-index: -2;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(95px);
  pointer-events: none;
  opacity: .22;
}

.beca-stats__glow--one {
  top: -250px;
  right: -100px;
  background: var(--beca-accent);
}

.beca-stats__glow--two {
  bottom: -300px;
  left: -130px;
  background: var(--beca-blue);
}

.beca-stats__inner {
  position: relative;
  z-index: 1;
}

.beca-stats__header {
  max-width: 820px;
  margin: 0 auto clamp(38px, 5vw, 64px);
  text-align: center;
}

.beca-stats .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 clamp(16px, 2vw, 24px);
  padding: 0;
  color: var(--beca-accent);
  font-size: clamp(0.72rem, 0.82vw, 0.82rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.beca-stats .eyebrow::before,
.beca-stats .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.beca-stats .heading {
  max-width: 880px;
  margin: 0 auto;
  color: var(--beca-heading-color);
  font-size: clamp(2rem, 4.15vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.beca-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.beca-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: clamp(27px, 3vw, 38px) clamp(20px, 2.2vw, 30px);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.19), rgba(255,255,255,.07));
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  text-align: center;
  opacity: 0;
  transform: translateY(24px) scale(.97);
  transition:
    opacity .55s cubic-bezier(.22, 1, .36, 1),
    transform .55s cubic-bezier(.22, 1, .36, 1),
    border-color .28s ease,
    box-shadow .28s ease,
    background .28s ease;
}

.beca-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(255,255,255,.25), transparent 52%);
  pointer-events: none;
}

.beca-stat-card--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.beca-stat-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 255, 255, .46);
  background: linear-gradient(145deg, rgba(255,255,255,.25), rgba(255,255,255,.10));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .26),
    0 0 0 1px rgba(7, 165, 246, .12),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}

.beca-stat-card__accent {
  position: absolute;
  top: 0;
  left: 50%;
  width: 62px;
  height: 4px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, var(--beca-blue), var(--beca-accent));
  box-shadow: 0 0 20px rgba(7, 165, 246, .75);
  transform: translateX(-50%);
}

.beca-stat-card__value {
  position: relative;
  margin-bottom: 14px;
  color: var(--beca-stat-color);
  font-size: clamp(2.25rem, 4vw, 3.65rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.045em;
  text-shadow: 0 5px 24px rgba(0, 0, 0, .28);
}

.beca-stat-card__label {
  position: relative;
  max-width: 19ch;
  margin: 0 auto;
  color: var(--beca-stat-color);
  font-size: clamp(.9rem, 1vw, 1rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .01em;
  opacity: .92;
  text-wrap: balance;
}

@keyframes beca-section-in {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .beca-inner { padding-inline: 18px; }
  .beca-stats .heading { font-size: clamp(1.9rem, 9vw, 2.65rem); }
  .beca-stats .eyebrow::before,
  .beca-stats .eyebrow::after { width: 18px; }
  .beca-stats { min-height: 0; }
  .beca-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beca-stat-card { min-height: 155px; border-radius: 20px; }
}

@media (max-width: 460px) {
  .beca-stats__grid { grid-template-columns: 1fr; }
  .beca-stat-card { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .beca-stats { animation: none; }
  .beca-stat-card {
    opacity: 1;
    transform: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
  }
  .beca-stat-card:hover { transform: none; }
}
