/* ============================================================
   3. WHY STYLD
   ============================================================ */
.why {
  background: var(--bg-soft);
  padding: var(--sec-pad-y) 0;
}
.why__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter);
}
.why__head { margin-bottom: var(--sec-head-mb); }
.why__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: var(--eyebrow-mb);
  text-transform: uppercase;
}
.why__eyebrow-bar {
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand-grad);
}
.why__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--title-size);
  line-height: var(--title-lh);
  letter-spacing: var(--title-track);
  color: var(--ink);
}
.why__title-accent {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.why__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 32px;
  border: 1px solid rgba(10, 22, 56, 0.05);
  box-shadow: 0 1px 2px rgba(10, 22, 56, 0.03), 0 6px 18px rgba(10, 22, 56, 0.04);
  will-change: transform, box-shadow;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(58, 80, 191, 0.18);
  box-shadow: 0 2px 4px rgba(10, 22, 56, 0.04), 0 20px 44px -8px rgba(58, 80, 191, 0.18);
}

.why-card__icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 32px;
  overflow: hidden;
}
.why-card__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f1f3f5;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 1;
}
.why-card__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-grad);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
}
.why-card:hover .why-card__icon::before { opacity: 0; }
.why-card:hover .why-card__icon::after  { opacity: 1; }

.why-card__icon-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-card__icon-svg svg {
  width: 28px;
  height: 28px;
  stroke: #1f2937;
  transition: stroke 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.why-card:hover .why-card__icon-svg svg {
  stroke: #ffffff;
  transform: scale(1.06);
}

.why-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
  transition: font-weight 0.3s ease;
}
.why-card__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  transition: font-weight 0.3s ease;
}
.why-card:hover .why-card__title { font-weight: 700; }
.why-card:hover .why-card__desc  { font-weight: 500; }

/* Auto-cycling "featured" card (driven by JS); also kicks in on hover */
.why-card.is-active .why-card__icon::before,
.why-card:hover    .why-card__icon::before { opacity: 0; }
.why-card.is-active .why-card__icon::after,
.why-card:hover    .why-card__icon::after  { opacity: 1; }
.why-card.is-active .why-card__icon-svg svg { stroke: #fff; transform: scale(1.06); }
.why-card.is-active .why-card__title { font-weight: 700; }
.why-card.is-active .why-card__desc  { font-weight: 500; }
.why-card.is-active {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(10, 22, 56, 0.04), 0 14px 32px rgba(58, 80, 191, 0.12);
}

/* Hover refinement: subtle icon tilt */
.why-card:hover .why-card__icon-svg svg { transform: scale(1.08) rotate(-4deg); }

/* Scroll-in stagger */
.why__head,
.why-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.why.is-in .why__head    { opacity: 1; transform: translateY(0); }
.why.is-in .why-card     { opacity: 1; transform: translateY(0); }
.why.is-in .why-card:nth-child(1) { transition-delay: 0.10s; }
.why.is-in .why-card:nth-child(2) { transition-delay: 0.22s; }
.why.is-in .why-card:nth-child(3) { transition-delay: 0.34s; }
/* keep the active lift while still allowing the entry transform */
.why.is-in .why-card.is-active { transform: translateY(-4px); }

