/* Home: "Why choose us" + stats bento (prefix agh-why-) */

.agh-why {
  background:
    radial-gradient(640px 320px at 0% 0%, var(--ag-glow), transparent 70%),
    var(--ag-bg-alt);
  overflow: clip;
}

.agh-why-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 992px) {
  .agh-why-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(48px, 5vw, 80px); }
}

/* ---------- Left: copy ---------- */
.agh-why-lead { max-width: 560px; margin: 0; }

.agh-why-feats {
  list-style: none; margin: 28px 0 34px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.agh-why-feat-cell { display: flex; margin: 0; }
.agh-why-feat {
  position: relative; flex: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--ag-surface);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-sm);
  box-shadow: 0 1px 2px rgba(2, 44, 34, .04);
  transition: transform .35s var(--ag-ease), box-shadow .35s var(--ag-ease), border-color .35s;
}
.agh-why-feat:hover {
  transform: translateY(-4px);
  border-color: var(--ag-brand-mid);
  border-color: color-mix(in srgb, var(--ag-brand) 45%, var(--ag-line));
  box-shadow: 0 16px 32px var(--ag-glow);
}
.agh-why-feat-icon {
  position: relative; isolation: isolate; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.25rem; line-height: 1;
  color: var(--ag-brand); background: var(--ag-brand-soft);
  transition: color .35s, transform .45s var(--ag-ease);
}
.agh-why-feat-icon::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ag-grad); opacity: 0; transition: opacity .35s;
}
.agh-why-feat:hover .agh-why-feat-icon { color: #fff; transform: rotate(-6deg) scale(1.06); }
.agh-why-feat:hover .agh-why-feat-icon::before { opacity: 1; }
.agh-why-feat-text { font-size: .95rem; font-weight: 600; line-height: 1.35; color: var(--ag-ink); }

.agh-why-btn i { transition: transform .3s var(--ag-ease); }
.agh-why-btn:hover i, .agh-why-btn:focus-visible i { transform: translateX(4px); }

/* ---------- Right: stats bento ---------- */
.agh-why-visual { position: relative; isolation: isolate; width: 100%; max-width: 600px; margin-inline: auto; }

.agh-why-blob {
  position: absolute; z-index: -1; pointer-events: none;
  width: 72%; aspect-ratio: 1; left: 14%; top: 10%;
  background: radial-gradient(circle at 32% 30%, #34D399 0%, #12A37A 45%, #05664F 80%);
  filter: blur(64px); opacity: .32;
  animation: ag-blob 18s ease-in-out infinite;
}

.agh-why-bento {
  position: relative;
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(150px, auto));
  grid-template-areas: "a b" "a c" "d c";
  padding-bottom: 34px; /* room for the offset right column */
}
.agh-why-cell { display: flex; min-width: 0; }
.agh-why-cell-a { grid-area: a; }
.agh-why-cell-b { grid-area: b; translate: 0 34px; }
.agh-why-cell-c { grid-area: c; translate: 0 34px; }
.agh-why-cell-d { grid-area: d; }

.agh-why-stat {
  position: relative; isolation: isolate; overflow: hidden; flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 22px;
  background: var(--ag-surface);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  box-shadow: var(--ag-shadow);
  transition: border-color .35s, box-shadow .35s var(--ag-ease);
}
.agh-why-stat[data-ag-spotlight]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--ag-mx, 50%) var(--ag-my, 50%), var(--ag-glow), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.agh-why-stat[data-ag-spotlight]:hover::before { opacity: 1; }
.agh-why-stat[data-ag-spotlight]:hover {
  border-color: var(--ag-brand-mid);
  border-color: color-mix(in srgb, var(--ag-brand) 40%, var(--ag-line));
  box-shadow: var(--ag-shadow-lg);
}

.agh-why-stat-icon {
  position: relative; z-index: 1; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  color: var(--ag-brand); background: var(--ag-brand-soft);
}
.agh-why-stat-body { position: relative; z-index: 1; }

.agh-why-num {
  margin: 0 0 6px;
  font-size: clamp(2.1rem, 3.4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ag-ink);
  background: var(--ag-grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.agh-why-label { margin: 0; font-size: .92rem; font-weight: 500; line-height: 1.35; color: var(--ag-muted); }

/* Brand card (A): gradient fill, sheen, rings */
.agh-why-stat-brand {
  background: var(--ag-grad);
  border-color: transparent;
  box-shadow: 0 26px 54px rgba(2, 44, 34, .3);
}
.agh-why-stat-brand::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  animation: ag-shimmer 6.5s ease-in-out infinite;
}
.agh-why-stat-brand .agh-why-stat-icon {
  color: #fff; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(6px);
}
.agh-why-stat-brand .agh-why-num {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #fff; -webkit-text-fill-color: #fff;
}
.agh-why-stat-brand .agh-why-label { color: rgba(255, 255, 255, .86); font-size: 1rem; }

.agh-why-ring {
  position: absolute; z-index: 0; pointer-events: none;
  width: 230px; height: 230px; right: -84px; top: -84px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 26px rgba(255, 255, 255, .03);
}
/* Inner ring: thin, solid and translucent, with a soft white sheen travelling slowly around it */
.agh-why-ring-in {
  width: 150px; height: 150px; right: -44px; top: -44px;
  border: 1px solid rgba(255, 255, 255, .24); box-shadow: none;
}
.agh-why-ring-in::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1.5px;
  background: conic-gradient(from 0deg, transparent 0deg 190deg, rgba(255, 255, 255, .22) 280deg, rgba(255, 255, 255, .85) 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ag-spin-slow 14s linear infinite;
}

/* Gentle float on two cards, out of phase */
.agh-why-float { animation: ag-float 7s ease-in-out infinite; }
.agh-why-float-late { animation-duration: 8.5s; animation-delay: -3.6s; }

/* Satisfaction meter (C) */
.agh-why-meter {
  display: block; margin-top: 16px; height: 6px; border-radius: 999px; overflow: hidden;
  background: var(--ag-brand-soft);
}
.agh-why-meter-fill {
  display: block; width: 100%; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #05664F, #12A37A, #6EE7B7);
  transform-origin: 0 50%; transform: scaleX(.98);
  transition: transform 1.6s var(--ag-ease) .55s;
}
html.ag-js .agh-why-cell:not(.is-in) .agh-why-meter-fill { transform: scaleX(0); }

/* Live support (D): headset tile with a soft pulse ring (two staggered solid rings, transform + opacity only) */
.agh-why-stat-icon--live { color: var(--ag-on-brand); background: var(--ag-brand); box-shadow: 0 8px 20px var(--ag-glow); }
.agh-why-stat-icon--live::before,
.agh-why-stat-icon--live::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1.5px solid var(--ag-brand-mid); opacity: 0;
  animation: agh-why-pulse 3.2s ease-out infinite;
}
.agh-why-stat-icon--live::after { animation-delay: 1.6s; }
@keyframes agh-why-pulse {
  0% { transform: scale(1); opacity: .55; }
  75%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Dark theme ---------- */
html[data-theme="dark"] .agh-why-feat { box-shadow: none; }
html[data-theme="dark"] .agh-why-stat-brand {
  border-color: rgba(110, 231, 183, .2);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(52, 211, 153, .06);
}
html[data-theme="dark"] .agh-why-blob { opacity: .24; }
html[data-theme="dark"] .agh-why-stat-icon--live { box-shadow: 0 8px 22px rgba(0, 0, 0, .35), 0 0 18px rgba(52, 211, 153, .22); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .agh-why-copy { max-width: 680px; }
}
@media (max-width: 575.98px) {
  .agh-why-grid { gap: 40px; }
  .agh-why-bento {
    gap: 12px; padding-bottom: 0;
    grid-template-rows: none; grid-template-areas: "a b" "c d";
  }
  .agh-why-cell-b, .agh-why-cell-c { translate: none; }
  .agh-why-stat { padding: 16px; gap: 14px; border-radius: 16px; }
  .agh-why-stat-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 1.1rem; }
  .agh-why-num, .agh-why-stat-brand .agh-why-num { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .agh-why-label, .agh-why-stat-brand .agh-why-label { font-size: .85rem; }
  .agh-why-ring { width: 150px; height: 150px; right: -60px; top: -60px; }
  .agh-why-ring-in { width: 96px; height: 96px; right: -30px; top: -30px; }
  .agh-why-float { animation-name: none; }
}
@media (max-width: 459.98px) {
  .agh-why-feats { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .agh-why-blob, .agh-why-ring-in::before, .agh-why-float, .agh-why-stat-brand::after,
  .agh-why-stat-icon--live::before, .agh-why-stat-icon--live::after { animation: none; }
  .agh-why-feat:hover, .agh-why-feat:hover .agh-why-feat-icon, .agh-why-btn:hover i { transform: none; }
  .agh-why-meter-fill { transform: scaleX(.98); transition: none; }
}
