/* Home — Why Choose Us (light, stats + counters) */

.apit-why {
  position: relative;
  z-index: 20;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(26, 95, 191, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 50% at 92% 100%, rgba(255, 106, 61, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(240, 180, 41, 0.06), transparent 60%),
    #ffffff;
  color: #0b1b2b;
  font-family: "General Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 5.5rem 4.5vw 5.75rem;
}

.apit-why::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 61, 122, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 61, 122, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.85;
}

.apit-why::after {
  content: "";
  position: absolute;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  top: -18%;
  right: -10%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.16) 0%, transparent 68%);
  animation: apit-why-glow 12s ease-in-out infinite alternate;
}

.apit-why-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.apit-why-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3.15rem;
}

.apit-why-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 61, 122, 0.14);
  background: rgba(10, 61, 122, 0.07);
  font-family: Mulish, sans-serif;
  font-size: clamp(0.65rem, 0.78vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a3d7a;
}

.apit-why-title {
  margin: 0;
  font-family: "General Sans", sans-serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.apit-why-title-brand {
  display: block;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 500;
}

.apit-why-title-accent {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 500;
}

.apit-why-support {
  margin: 1.15rem auto 0;
  max-width: 38rem;
  font-family: "General Sans", sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  font-weight: 400;
  line-height: 1.58;
  color: rgba(11, 27, 43, 0.68);
}

.apit-why-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.apit-why-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 2rem 1.1rem 1.85rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border: 1px solid rgba(10, 61, 122, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px rgba(10, 61, 122, 0.07);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.4s ease;
  animation: apit-why-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.apit-why-stat:nth-child(1) { animation-delay: 0.05s; }
.apit-why-stat:nth-child(2) { animation-delay: 0.14s; }
.apit-why-stat:nth-child(3) { animation-delay: 0.23s; }
.apit-why-stat:nth-child(4) { animation-delay: 0.32s; }

.apit-why-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--apit-logo-gradient, linear-gradient(90deg, #0a3d7a, #ff6a3d));
  background-size: 200% 100%;
  animation: apit-heading-flow 8s ease-in-out infinite;
}

.apit-why-stat::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  bottom: -55%;
  right: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 95, 191, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
  transition: transform 0.45s ease;
}

.apit-why-stat:nth-child(2)::after {
  background: radial-gradient(circle, rgba(240, 180, 41, 0.16), transparent 70%);
}

.apit-why-stat:nth-child(3)::after {
  background: radial-gradient(circle, rgba(255, 106, 61, 0.14), transparent 70%);
}

.apit-why-stat:nth-child(4)::after {
  background: radial-gradient(circle, rgba(10, 61, 122, 0.14), transparent 70%);
}

.apit-why-stat:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(10, 61, 122, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 28px 56px rgba(10, 61, 122, 0.12);
}

.apit-why-stat:hover::after {
  transform: scale(1.35) translate(-8%, -10%);
}

.apit-why-stat-value {
  margin: 0;
  font-family: "General Sans", sans-serif;
  font-size: clamp(2.65rem, 4.4vw, 3.65rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  background-image: var(--apit-logo-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: apit-heading-flow 8s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(26, 95, 191, 0.12));
}

.apit-why-stat-label {
  margin: 0;
  max-width: 11.5rem;
  font-family: "General Sans", sans-serif;
  font-size: clamp(0.88rem, 1vw, 0.98rem);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(11, 27, 43, 0.62);
}

@keyframes apit-why-glow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 6%, 0) scale(1.1);
  }
}

@keyframes apit-why-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023.98px) {
  .apit-why {
    padding: 3.5rem 1.25rem 3.9rem;
  }

  .apit-why-header {
    margin-bottom: 2.1rem;
  }

  .apit-why-title-brand {
    font-size: 1.45rem;
  }

  .apit-why-title-accent {
    font-size: 1.95rem;
  }

  .apit-why-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
  }

}

@media (max-width: 640px) {
  .apit-why-stats {
    grid-template-columns: 1fr;
  }

  .apit-why-stat-value {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apit-why::after,
  .apit-why-stat,
  .apit-why-stat::before,
  .apit-why-stat-value {
    animation: none;
  }

  .apit-why-stat:hover {
    transform: none;
  }
}
