/* ─────────────────────────────────────────
   SECTION WRAPPER
───────────────────────────────────────── */

.why-spark-section {
    position: relative;
    padding: 0px 7%;
    background: #000000;
    overflow: hidden;
}

.why-spark-section::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 65%);
    top: -200px;
    left: -200px;
    pointer-events: none;
}

.why-spark-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 65%);
    bottom: -150px;
    right: -100px;
    pointer-events: none;
}


/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */

.why-spark-header {
    text-align: center;
    margin-bottom: 90px;
    position: relative;
    z-index: 1;
}

.why-spark-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.why-spark-eyebrow::before,
.why-spark-eyebrow::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.why-spark-header h2 {
    font-size: clamp(48px, 7.5vw, 84px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.0;
    letter-spacing: -3.5px;
}

.why-spark-header h2 em {
    font-style: normal;
    color: rgb(255, 255, 255);
}

.why-spark-tagline {
    margin-top: 22px;
    font-size: 16px;
    color: rgb(255, 255, 255);
    font-weight: 400;
    letter-spacing: 0.2px;
}


/* ─────────────────────────────────────────
   GRID
───────────────────────────────────────── */

.why-spark-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


/* ─────────────────────────────────────────
   CARD BASE
───────────────────────────────────────── */

.why-card {
    position: relative;
    border-radius: 28px;
    padding: 54px 50px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
}

.why-card:hover {
    transform: translateY(-10px) scale(1.012);
}

.why-card:nth-child(1) {
    background: linear-gradient(145deg, #1d1d1d 0%, #121212 45%, #0b0b0b 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
}
.why-card:nth-child(1):hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.why-card:nth-child(2) {
    background: linear-gradient(150deg, #191919 0%, #232323 30%, #0f0f0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.why-card:nth-child(2):hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.why-card:nth-child(3) {
    background: linear-gradient(160deg, #1b1b1b 0%, #111111 50%, #090909 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
}
.why-card:nth-child(3):hover {
    border-color: rgba(255, 255, 255, 0.19);
}

.why-card:nth-child(4) {
    background: linear-gradient(135deg, #202020 0%, #141414 40%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
}
.why-card:nth-child(4):hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Top-right ambient orb */
.why-card::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    top: -90px;
    right: -90px;
    pointer-events: none;
}

.why-card:nth-child(1)::before {
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
}
.why-card:nth-child(2)::before {
    background: radial-gradient(circle, rgba(255,255,255,0.055) 0%, transparent 65%);
}
.why-card:nth-child(3)::before {
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
}
.why-card:nth-child(4)::before {
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
}

/* Bottom-left secondary orb */
.why-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    bottom: -70px;
    left: -50px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}


/* ─────────────────────────────────────────
   CARD NUMBER TAG
───────────────────────────────────────── */

.why-card-num {
    position: absolute;
    top: 30px;
    right: 38px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.12);
    z-index: 1;
}


/* ─────────────────────────────────────────
   ICON
───────────────────────────────────────── */

.why-icon {
    position: relative;
    z-index: 1;
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.why-card:hover .why-icon {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.18);
}

.why-icon svg {
    width: 28px;
    height: 28px;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ─────────────────────────────────────────
   CARD CONTENT
───────────────────────────────────────── */

.why-card h3 {
    position: relative;
    z-index: 1;
    font-size: 27px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.why-divider {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 2px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    margin: 20px 0;
    transition: width 0.35s ease, background 0.35s ease;
}

.why-card:hover .why-divider {
    width: 56px;
    background: rgba(255, 255, 255, 0.35);
}

.why-card p {
    position: relative;
    z-index: 1;
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.48);
    font-weight: 400;
}


/* ─────────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
───────────────────────────────────────── */

/* Initial hidden state */
.why-spark-section.reveal-on-scroll .why-spark-eyebrow,
.why-spark-section.reveal-on-scroll .why-spark-header h2,
.why-spark-section.reveal-on-scroll .why-spark-tagline,
.why-spark-section.reveal-on-scroll .why-card {
    opacity: 0;
}

/* Header sequence */
.why-spark-section.reveal-on-scroll.is-visible .why-spark-eyebrow {
    animation: why-spark-fade-up 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.1s;
}

.why-spark-section.reveal-on-scroll.is-visible .why-spark-header h2 {
    animation: why-spark-fade-up 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

.why-spark-section.reveal-on-scroll.is-visible .why-spark-tagline {
    animation: why-spark-fade-up 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

/* Staggered Card sequence */
.why-spark-section.reveal-on-scroll.is-visible .why-card:nth-child(1) {
    animation: why-spark-card-pop 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

.why-spark-section.reveal-on-scroll.is-visible .why-card:nth-child(2) {
    animation: why-spark-card-pop 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.why-spark-section.reveal-on-scroll.is-visible .why-card:nth-child(3) {
    animation: why-spark-card-pop 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

.why-spark-section.reveal-on-scroll.is-visible .why-card:nth-child(4) {
    animation: why-spark-card-pop 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.0s;
}

@keyframes why-spark-fade-up {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes why-spark-card-pop {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

@media (max-width: 900px) {
    .why-spark-grid {
        grid-template-columns: 1fr;
    }

    .why-spark-header h2 {
        font-size: clamp(40px, 10vw, 60px);
        letter-spacing: -2px;
    }

    .why-card {
        padding: 42px 36px;
    }
}

@media (max-width: 480px) {
    .why-spark-section {
        padding: 90px 5%;
    }

    .why-card {
        padding: 36px 28px;
        border-radius: 22px;
    }

    .why-spark-header h2 {
        font-size: 38px;
        letter-spacing: -1.5px;
    }
}