/* Why choose — 3D feature cube */
.why-choose--cube {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.why-choose--cube::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(234, 59, 6, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 40% at 88% 72%, rgba(233, 163, 6, 0.1), transparent 55%);
  pointer-events: none;
}

.why-bento-header .section-header {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.why-bento-header .section-header h2,
.why-bento-header .section-header p {
  text-align: center;
  unicode-bidi: plaintext;
}

.why-bento-stage {
  position: relative;
  width: 100%;
}

.why-bento-orbs {
  position: absolute;
  inset: -10% 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.why-bento-orbs::before,
.why-bento-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  animation: whyOrbFloat 14s ease-in-out infinite alternate;
}

.why-bento-orbs::before {
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  top: 8%;
  inset-inline-start: 6%;
  background: rgba(234, 59, 6, 0.35);
}

.why-bento-orbs::after {
  width: clamp(100px, 14vw, 180px);
  height: clamp(100px, 14vw, 180px);
  bottom: 6%;
  inset-inline-end: 8%;
  background: rgba(233, 163, 6, 0.28);
  animation-delay: -5s;
}

@keyframes whyOrbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(18px, -22px) scale(1.08); }
}

.why-bento-stage .container {
  position: relative;
  z-index: 1;
}

.why-cube-mount {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(280px, 52vw, 460px);
  padding: clamp(0.5rem, 2vw, 1.5rem) 0;
}

.why-cube-scene {
  --cube-size: min(72vw, 300px);
  position: relative;
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: clamp(900px, 120vw, 1400px);
  perspective-origin: 50% 42%;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.why-cube-scene.is-dragging {
  cursor: grabbing;
}

.why-cube-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12%;
  width: 72%;
  height: 18%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.42) 0%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.why-cube {
  position: relative;
  width: var(--cube-size);
  height: var(--cube-size);
  transform-style: preserve-3d;
  transform: rotateX(-16deg) rotateY(0deg);
  will-change: transform;
}

.why-cube-face {
  --why-accent: #ea3b06;
  --why-accent-soft: rgba(234, 59, 6, 0.22);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    linear-gradient(320deg, #141820 0%, #090b10 58%, #050608 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 28px rgba(0, 0, 0, 0.45);
}

.why-cube-face__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 45%, #000 20%, transparent 100%);
  pointer-events: none;
}

.why-cube-face__pattern::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.why-cube-face__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding: clamp(0.75rem, 2.2vw, 1.1rem);
  text-align: start;
}

.why-cube-face__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: auto;
  padding-bottom: 0.65rem;
}

.why-cube-face__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 9vw, 44px);
  height: clamp(36px, 9vw, 44px);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--why-accent-soft), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--why-accent);
  flex-shrink: 0;
}

.why-cube-face__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-cube-face__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  white-space: nowrap;
}

.why-cube-face h3 {
  margin: 0;
  font-size: clamp(0.82rem, 2.4vw, 1rem);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}

.why-cube-face .why-desc {
  margin: 0.35rem 0 0;
  font-size: clamp(0.68rem, 1.9vw, 0.78rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.why-cube-face__num {
  position: absolute;
  top: 0.55rem;
  inset-inline-end: 0.65rem;
  font-family: "Orbitron", "Cairo", sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
}

.why-cube-face--accent-gold { --why-accent: #e9a306; --why-accent-soft: rgba(233, 163, 6, 0.22); }
.why-cube-face--accent-coral { --why-accent: #ff6b3d; --why-accent-soft: rgba(255, 107, 61, 0.22); }
.why-cube-face--accent-amber { --why-accent: #f59e0b; --why-accent-soft: rgba(245, 158, 11, 0.22); }
.why-cube-face--accent-teal { --why-accent: #2dd4bf; --why-accent-soft: rgba(45, 212, 191, 0.22); }

.why-cube-face--front  { transform: rotateY(0deg) translateZ(calc(var(--cube-size) / 2)); }
.why-cube-face--right  { transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); }
.why-cube-face--back   { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.why-cube-face--left   { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.why-cube-face--top    { transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)); }
.why-cube-face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }

.why-cube-scene.is-paused .why-cube {
  animation-play-state: paused;
}

@media (max-width: 520px) {
  .why-choose--cube {
    padding: 2.5rem 0 2rem;
  }

  .why-cube-mount {
    min-height: clamp(240px, 68vw, 320px);
  }
}

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

  .why-cube {
    transform: rotateX(-14deg) rotateY(28deg) !important;
    transition: none;
  }
}
