/* ════════════════════════════════════════
   WHY CHOOSE US SECTION — Ink Splash Hover
   ════════════════════════════════════════ */

.why {
  position: relative;
  width: 100%;
  padding: 120px 0 100px;
  background: #F8FAFC;
  color: #05295E;
  overflow: hidden;
}

.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(5, 41, 94, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 41, 94, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.why::after {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(13, 86, 169, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

body.light .why {
  background: #F8FAFC;
  color: #05295E;
}

body.light .why::before {
  background-image:
    linear-gradient(rgba(5, 41, 94, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 41, 94, 0.02) 1px, transparent 1px);
}

body.light .why::after {
  background: radial-gradient(ellipse, rgba(13, 86, 169, 0.03) 0%, transparent 70%);
}

.why-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.why-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.why-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #0D56A9;
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease, color 0.5s ease;
}

.why-tag-line {
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #0D56A9, transparent);
  transition: background 0.5s ease;
}

.why-header h2 {
  font-size: 48px;
  font-weight: 800;
  margin: 22px 0 0;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: #05295E;
  opacity: 1;
  transform: translateY(0);
  transition: color 0.5s ease, opacity 0.7s ease, transform 0.7s ease;
}

body.light .why-header h2 { color: #05295E; }

.why-header p {
  font-size: 16px;
  color: #5F6B7A;
  line-height: 1.8;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: color 0.5s ease, opacity 0.7s ease, transform 0.7s ease;
}

body.light .why-header p { color: #5F6B7A; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ═══════════════════════════════
   CARD — Ink Splash Hover
═══════════════════════════════ */
.why-card {
  position: relative;
  padding: 30px 24px 28px;
  background: var(--card-bg, #FFFFFF);
  border: 1px solid var(--card-border, #E5E7EB);
  border-radius: 24px;
  cursor: default;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    border-color 0.6s ease;
}

/* ── Ink Fill ── */
.why-card .ink-fill {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #0D56A9, #072d5e);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  pointer-events: none;
}

.why-card:hover {
  border-color: rgba(13, 86, 169, 0.25);
}

.why-card:hover .ink-fill {
  height: 180%;
  width: 180%;
  border-radius: 42%;
}

/* ── Icon ── */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--card-bg, #FFFFFF);
  border: 1px solid var(--card-border, #E5E7EB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0D56A9;
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

/* .why-card:hover .card-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
} */

/* ── Text ── */
.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #05295E;
  position: relative;
  z-index: 3;
  line-height: 1.35;
  transition: color 0.6s ease;
}

body.light .why-card h3 { color: #05295E; }

.why-card p {
  font-size: 13px;
  color: #8A94A6;
  line-height: 1.7;
  position: relative;
  z-index: 3;
  transition: color 0.6s ease;
}

body.light .why-card p { color: #8A94A6; }

.why-card:hover h3 { color: #FFFFFF; }

.why-card:hover p { color: rgba(255, 255, 255, 0.78); }

/* ── Arrow ── */
.card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(13, 86, 169, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #8A94A6;
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

body.light .card-arrow {
  background: rgba(13, 86, 169, 0.04);
  color: #8A94A6;
}

.why-card:hover .card-arrow {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  transform: translate(2px, -2px) scale(1.1);
}

body.light .why-card:hover .card-arrow {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* ── Light Mode Base ── */
body.light .why-card {
  background: linear-gradient(165deg, #FFFFFF 0%, #F8FAFC 100%);
  border-color: rgba(5, 41, 94, 0.06);
}

body.light .card-icon {
  background: linear-gradient(135deg, rgba(13, 86, 169, 0.06) 0%, rgba(184, 152, 87, 0.03) 100%);
  border-color: rgba(13, 86, 169, 0.08);
}

/* ── Active ── */
.why-card:active {
  transform: scale(0.98);
  transition-duration: 0.12s;
}

/* ═══════════════════════════════
   SCROLL REVEAL
═══════════════════════════════ */
.why-hidden {
  opacity: 0 !important;
  transform: translateY(30px) !important;
}

.why-header.why-reveal .why-tag {
  opacity: 1; transform: translateY(0); transition-delay: 0s;
}
.why-header.why-reveal h2 {
  opacity: 1; transform: translateY(0); transition-delay: 0.1s;
}
.why-header.why-reveal p {
  opacity: 1; transform: translateY(0); transition-delay: 0.2s;
}

.why-card.why-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════
   RESPONSIVE
════════════════════════ */

@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .why-header h2 { font-size: 40px; }
  .why-container { padding: 0 30px; }
}

@media (max-width: 768px) {
  .why { padding: 80px 0 60px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .why-header { margin-bottom: 44px; }
  .why-header h2 { font-size: 32px; letter-spacing: -1px; }
  .why-header p { font-size: 14px; }
  .why-card { padding: 24px 20px 22px; border-radius: 16px; }
  .card-icon { width: 46px; height: 46px; font-size: 21px; border-radius: 12px; margin-bottom: 16px; }
  .why-card h3 { font-size: 14px; margin-bottom: 8px; }
  .why-card p { font-size: 12px; line-height: 1.65; }
  .card-arrow { width: 26px; height: 26px; font-size: 12px; bottom: 16px; right: 16px; }
  .why-container { padding: 0 6%; }
}

@media (max-width: 520px) {
  .why { padding: 60px 0 40px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-header { margin-bottom: 36px; }
  .why-header h2 { font-size: 26px; letter-spacing: -0.5px; }
  .why-header p { font-size: 13px; margin-top: 14px; }
  .why-tag { font-size: 11px; letter-spacing: 2px; }
  .why-tag-line { width: 28px; }
  .why-card { padding: 20px 16px 18px; border-radius: 14px; }
  .card-icon { width: 42px; height: 42px; font-size: 19px; border-radius: 11px; margin-bottom: 14px; }
  .why-card h3 { font-size: 13px; margin-bottom: 6px; }
  .why-card p { font-size: 11px; line-height: 1.6; }
  .card-arrow { width: 24px; height: 24px; font-size: 11px; bottom: 14px; right: 14px; }
  .why-container { padding: 0 5%; }
}

@media (max-width: 380px) {
  .why-grid { grid-template-columns: 1fr; gap: 10px; }
  .why-header h2 { font-size: 22px; }
  .why-card { padding: 18px 16px 16px; }
  .card-icon { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }
  .why-card h3 { font-size: 14px; }
  .why-card p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .why-tag, .why-header h2, .why-header p, .why-card, .card-icon, .card-arrow, .ink-fill {
    transition: none !important;
    animation: none !important;
  }
}