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

/* ===========================================================================
   UC Why  —  colors come from CSS vars set inline per instance
   =========================================================================== */

.uc-why {
  position: relative;
  font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
  padding: 72px 24px 88px;
  overflow: hidden; /* clip ghost numbers + reveal slide-ins */
  box-sizing: border-box;
}
.uc-why *,
.uc-why *::before,
.uc-why *::after { box-sizing: border-box; }

.uc-why__inner { max-width: 1120px; margin: 0 auto; }

.uc-why__heading {
  margin: 0 0 56px;
  text-align: center;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--uc-heading, #0F0F14);
}

/* ---- Items ---- */
.uc-why__item {
  position: relative;
  max-width: 560px;
  padding-left: 30px;
  margin-bottom: 72px;
}
.uc-why__item:last-child { margin-bottom: 0; }
.uc-why__item--right { margin-left: auto; } /* shift even items to the right */

.uc-why__num {
  position: absolute;
  left: -8px;
  top: -50px;
  z-index: 0;
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  color: var(--uc-ghost, #E2E8F5);
  pointer-events: none;
  user-select: none;
}
.uc-why__title {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
/* per-item gradient title text; solid fallback so it never disappears */
.uc-why__title { color: var(--uc-title-fallback, #0099CC); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .uc-why__title {
    background: var(--uc-title-grad, linear-gradient(180deg, #0099CC, #924DC2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.uc-why__desc {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--uc-desc, #4B5563);
  font-size: 16px;
  line-height: 1.5;
}

/* ---- Reveal-on-scroll (hidden state added by JS only → never blanks) ---- */
.uc-why .uc-reveal.is-init { opacity: 0; }
.uc-why .uc-reveal.is-init.uc-why__heading { transform: translateY(24px); }
.uc-why .uc-reveal--from-left.is-init  { transform: translateX(-40px); }
.uc-why .uc-reveal--from-right.is-init { transform: translateX(40px); }
.uc-why .uc-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}

/* ---- Tablet/Mobile: single column, all left-aligned ---- */
@media (max-width: 880px) {
  .uc-why__item,
  .uc-why__item--right { max-width: 100%; margin-left: 0; }
  .uc-why__heading { font-size: 36px; }
}
@media (max-width: 767px) {
  .uc-why { padding: 0px 18px; }
  .uc-why__heading { margin-bottom: 40px; font-size: 28px; }
  .uc-why__item { margin-bottom: 48px; padding-left: 22px; }
  .uc-why__num { font-size: 84px; top: -30px; left: -6px; }
  .uc-why__title { font-size: 24px; }
  /* horizontal slide-ins can feel jumpy on narrow screens → fade up instead */
  .uc-why .uc-reveal--from-left.is-init,
  .uc-why .uc-reveal--from-right.is-init { transform: translateY(24px); }
}
