/* “Why Esender?” — Telegram-style light band + animated SVG vignettes */

.why-esender {
  position: relative;
  z-index: 2;
  background: #ffffff;
  color: #1f2937;
  padding: 4.5rem 1.5rem 5rem;
  margin: 0;
}

.why-esender a {
  color: #26bbfc;
}

.why-esender__inner {
  max-width: min(1180px, 100%);
  margin: 0 auto;
}

.why-esender__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.why-esender__lead {
  text-align: center;
  max-width: min(50rem, 100%);
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #6b7280;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 2rem;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 1.5rem;
  }
}

@media (max-width: 520px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.why-card {
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

.why-card__viz {
  height: 132px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.why-card__viz svg {
  width: 128px;
  height: 128px;
  overflow: visible;
}

.why-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #26bbfc;
  letter-spacing: -0.02em;
}

.why-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4b5563;
}

/* —— Shared motion —— */
@keyframes why-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes why-ripple {
  0% {
    transform: scale(0.35);
    opacity: 0.65;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes why-check-draw {
  0%,
  100% {
    stroke-dashoffset: 22;
    opacity: 0.45;
  }
  45%,
  55% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes why-float {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-6px) rotate(6deg);
  }
}

@keyframes why-zap {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.65;
    transform: scaleY(1.15);
  }
}

@keyframes why-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes why-shield-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(38, 187, 252, 0));
  }
  50% {
    filter: drop-shadow(0 4px 14px rgba(38, 187, 252, 0.45));
  }
}

@keyframes why-slide {
  0% {
    transform: translate(-18px, 6px);
    opacity: 0.85;
  }
  50% {
    transform: translate(18px, -4px);
    opacity: 1;
  }
  100% {
    transform: translate(-18px, 6px);
    opacity: 0.85;
  }
}

@keyframes why-stagger-a {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-5px);
    opacity: 0.85;
  }
}

@keyframes why-stagger-b {
  0%,
  100% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

@keyframes why-stagger-c {
  0%,
  100% {
    transform: translateY(3px);
    opacity: 0.95;
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-card__viz * {
    animation: none !important;
  }
}

/* Per-card hooks */
.why-card--simple .why-bubble {
  animation: why-bob 2.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.why-card--simple .why-plane {
  animation: why-slide 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.why-card--private .why-lock-body {
  animation: why-bob 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.why-card--private .why-lock-shine {
  animation: why-zap 2s ease-in-out infinite;
  opacity: 0.4;
}

.why-card--synced .why-ring {
  transform-box: fill-box;
  transform-origin: 64px 64px;
  animation: why-ripple 2.4s ease-out infinite;
}

.why-card--synced .why-ring--2 {
  animation-delay: 0.55s;
}

.why-card--synced .why-ring--3 {
  animation-delay: 1.1s;
}

.why-card--fast .why-bolt {
  animation: why-zap 0.9s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.why-card--fast .why-trail {
  animation: why-slide 1.8s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.why-card--powerful .why-icon-a {
  animation: why-stagger-a 2.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.why-card--powerful .why-icon-b {
  animation: why-stagger-b 2.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.why-card--powerful .why-icon-c {
  animation: why-stagger-c 2.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.why-card--everywhere .why-phone-l {
  animation: why-bob 2.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.why-card--everywhere .why-phone-r {
  animation: why-bob 2.6s ease-in-out 0.35s infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.why-card--everywhere .why-beam {
  animation: why-zap 1.6s ease-in-out infinite;
  opacity: 0.85;
}

.why-card--secure .why-shield {
  animation: why-shield-pulse 2.5s ease-in-out infinite;
}

.why-card--secure .why-check {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: why-check-draw 2.8s ease-in-out infinite;
}

.why-card--social .why-avatar {
  animation: why-float 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.why-card--social .why-avatar--2 {
  animation-delay: 0.4s;
}

.why-card--social .why-avatar--3 {
  animation-delay: 0.8s;
}

.why-card--expressive .why-sparkle-ring {
  transform-box: fill-box;
  transform-origin: 64px 64px;
  animation: why-orbit 12s linear infinite;
}

.why-card--expressive .why-dot {
  animation: why-zap 1.4s ease-in-out infinite;
}

.why-card--expressive .why-dot--2 {
  animation-delay: 0.25s;
}

.why-card--expressive .why-dot--3 {
  animation-delay: 0.5s;
}
