/* ===================
   WHY
   =================== */
.why {
    padding: 0 20px;
    margin: 40px 0 80px;
}
.why__wrap {
    background: linear-gradient(135deg, #08081a, #0e0e28, #12123a);
    border-radius: var(--radius-lg);
    padding: 100px 48px;
    overflow: hidden;
    position: relative;
}

/* animated orbs */
.why__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}
.why__orb--a {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -80px;
    background: rgba(43, 127, 255, 0.14);
    animation: why-orb-drift 8s ease-in-out infinite alternate;
}
.why__orb--b {
    width: 400px;
    height: 400px;
    bottom: -120px;
    left: -80px;
    background: rgba(0, 212, 240, 0.08);
    animation: why-orb-drift 10s ease-in-out infinite alternate-reverse 2s;
}
.why__orb--c {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 40%;
    background: rgba(124, 92, 246, 0.06);
    animation: why-orb-drift 12s ease-in-out infinite alternate 4s;
}
@keyframes why-orb-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, -25px) scale(1.18);
    }
}

/* grid bg */
.why__grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(43, 127, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 127, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

/* particles */
.why__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.why__particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(43, 127, 255, 0.35);
    animation: why-particle-up linear infinite;
}
@keyframes why-particle-up {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-500px) translateX(50px);
        opacity: 0;
    }
}

.why__content {
    position: relative;
    z-index: 2;
}
.why__header {
    text-align: center;
    margin-bottom: 60px;
}
.why .section-tag {
    color: var(--blue-light);
}
.why .section-title {
    color: #fff;
}

/* stat cards */
.why__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.stat-card {
    padding: 40px 20px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    text-align: center;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(43, 127, 255, 0.06),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s;
}
.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(43, 127, 255, 0.15);
}
.stat-card:hover::before {
    opacity: 1;
}

.stat-card__ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}
.stat-card__ring svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}
.stat-card__ring circle {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
}
.stat-card__ring .stat-card__track {
    stroke: rgba(255, 255, 255, 0.06);
}
.stat-card__ring .stat-card__fill {
    stroke: url(#ringGrad);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card--animated .stat-card__fill {
    stroke-dashoffset: var(--offset);
}

.stat-card__value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Unbounded", sans-serif;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card__label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* quote */
.why__quote {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.why__quote p {
    font-size: 21px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
}
.why__quote strong {
    color: #fff;
    font-weight: 600;
}

/* text reveal */
.text-reveal span {
    display: inline;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-reveal--revealed span {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .why__stats {
        grid-template-columns: 1fr;
    }
    .why__wrap {
        padding: 56px 24px 64px;
    }
    .why__quote p {
        font-size: 18px;
    }
    .why__header {
        margin-bottom: 36px;
    }
}
@media (max-width: 600px) {
    .why {
        padding: 0 12px;
        margin: 80px 0 0;
    }
    .why__wrap {
        border-radius: 24px;
        padding: 48px 20px 56px;
    }
    .why .section-title {
        font-size: clamp(20px, 5.5vw, 28px);
    }
    .why__header {
        margin-bottom: 28px;
    }
    .why__stats {
        gap: 12px;
        margin-bottom: 32px;
    }
    .stat-card {
        padding: 24px 16px;
    }
    .stat-card__ring {
        width: 90px;
        height: 90px;
    }
    .stat-card__ring svg {
        width: 90px;
        height: 90px;
    }
    .stat-card__value {
        font-size: 20px;
    }
    .why__quote p {
        font-size: 16px;
    }
}
