﻿/* ==== Base Final CTA Section ==== */
.final-cta-section {
    position: relative;
    padding: 6rem 2rem;
    background: #0a0a0a; /* softened from full radial */
    color: #ffffff;
    overflow: hidden;
    text-align: center;
    z-index: 1;
}

/* ==== Glowing Overlay Background (centered, limited span) ==== */
.cta-bg-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 255, 255, 0.06), transparent 70%);
    animation: glowPulse 6s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.05;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* ==== Content Wrapper ==== */
.cta-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==== Heading ==== */
.cta-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 1;
    visibility: visible !important;
    position: relative;
    z-index: 3;
    color: #ffffff !important;
    mix-blend-mode: normal !important;
    pointer-events: auto !important;
    text-shadow: 0 0 18px var(--accent, #00f7ff);
}

    /* IMPORTANT:
   Don't force chars hidden in CSS.
   Let GSAP handle "from" state only when the trigger runs. */
    .cta-title .char {
        opacity: 1;
        display: inline-block;
        transform: none;
        transition: none !important;
        animation: none !important; /* cancel splitting.css animation */
    }

/* ==== Subheading Rotator ==== */
.cta-rotator {
    font-size: 1.5rem;
    line-height: 1.4;
    min-height: 2.4rem;
    margin-bottom: 2.5rem;
    position: relative;
}

    /* 💬 Only hide the source spans, not the display element */
    .cta-rotator span {
        display: none !important;
    }

    .cta-rotator .typewriter-text {
        display: inline-block !important;
        white-space: nowrap;
        font-weight: 500;
        color: var(--accent-color, #00f7ff);
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 3;
    }

/* ==== CTA Button ==== */
.cta-button-wrapper {
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.2rem;
    background: #00f7ff;
    color: #000;
    font-weight: 700;
    border-radius: 50px; /* ✅ match Why CTA */
    text-transform: uppercase;
    letter-spacing: 1px; /* ✅ match Why CTA */
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.4);
}

    .cta-button:hover {
        transform: scale(1.05);
        background: rgba(0, 247, 255, 0.85);
    }

/* ==== Stat Cards ==== */
.cta-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.cta-stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    min-width: 200px;
    max-width: 300px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease-out;
}

    .cta-stat-card h3 {
        margin: 0 0 0.75rem 0;
        color: #fff;
        text-shadow: 0 0 10px var(--accent, #00f7ff);
    }

    .cta-stat-card p {
        margin: 0;
        color: rgba(255,255,255,0.85);
        line-height: 1.4;
    }

/* ============================
   MOBILE RESPONSIVE OVERRIDES
   ============================ */
@media (max-width: 480px) {
    .final-cta-section {
        padding: 4.5rem 1.25rem;
    }

    .cta-bg-overlay {
        width: 700px;
        height: 700px;
    }

    .cta-title {
        font-size: clamp(1.9rem, 8.5vw, 2.4rem);
        margin-bottom: 1.4rem;
    }

    .cta-rotator {
        font-size: 1.1rem;
        min-height: 2rem;
        margin-bottom: 1.6rem;
    }

        .cta-rotator .typewriter-text {
            white-space: normal; /* ✅ allow wrapping on small screens */
            text-align: center;
        }

    .cta-button {
        width: 100%;
        max-width: 320px;
        padding: 0.9rem 1.2rem;
    }

    .cta-stats {
        gap: 1rem;
        margin-top: 2rem;
    }

    .cta-stat-card {
        width: 100%;
        max-width: 360px;
        padding: 1.4rem;
    }
}
