/**
 * ==============================================
 * CTA EPIC FINAL SECTION - CINEMATOGRÁFICO
 * ==============================================
 * 
 * Última seção para fechar a venda com IMPACTO MÁXIMO
 * Exaltando a liderança de Jonathan Silva e todo o time épico
 * 
 * @author Nuntius Team
 * @version 3.0.0 LEGENDARY FINAL
 */

/* ===== BASE SECTION ===== */
.cta-epic-final-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #05050f 0%, #0a0a1f 50%, #05050f 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CANVAS EPIC BACKGROUND ===== */
.cta-canvas-epic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

/* ===== DEPTH LAYERS ===== */
.cta-depth-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.cta-depth-layer.layer-1 {
    background: radial-gradient(circle at 30% 40%, rgba(88, 101, 242, 0.1) 0%, transparent 50%);
    z-index: 2;
    animation: ctaFloat1 20s ease-in-out infinite;
}

.cta-depth-layer.layer-2 {
    background: radial-gradient(circle at 70% 60%, rgba(254, 231, 92, 0.08) 0%, transparent 50%);
    z-index: 3;
    animation: ctaFloat2 25s ease-in-out infinite;
}

.cta-depth-layer.layer-3 {
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
    z-index: 4;
    animation: ctaFloat3 30s ease-in-out infinite;
}

@keyframes ctaFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes ctaFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 40px) scale(1.15); }
}

@keyframes ctaFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 30px) scale(1.08); }
}

/* ===== CINEMATIC SPOTLIGHT ===== */
.cta-cinematic-spotlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.15) 0%, transparent 70%);
    z-index: 5;
    animation: ctaSpotlightPulse 8s ease-in-out infinite;
}

@keyframes ctaSpotlightPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

/* ===== EPIC CONTAINER ===== */
.cta-epic-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

/* ===== JONATHAN SILVA - CEO FINAL ===== */
.cta-jonathan-epic {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.jonathan-final-spotlight {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.3) 0%, transparent 70%);
    animation: ctaJonathanGlow 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes ctaJonathanGlow {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.3); }
}

.jonathan-final-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-mega-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: ctaMegaRingSpin 8s linear infinite;
}

.avatar-mega-ring.ring-1 {
    width: 180px;
    height: 180px;
    border-color: rgba(88, 101, 242, 0.6) rgba(88, 101, 242, 0.2) rgba(88, 101, 242, 0.6) rgba(88, 101, 242, 0.2);
    animation-duration: 8s;
}

.avatar-mega-ring.ring-2 {
    width: 220px;
    height: 220px;
    border-color: rgba(254, 231, 92, 0.5) rgba(254, 231, 92, 0.1) rgba(254, 231, 92, 0.5) rgba(254, 231, 92, 0.1);
    animation-duration: 12s;
    animation-direction: reverse;
}

.avatar-mega-ring.ring-3 {
    width: 260px;
    height: 260px;
    border-color: rgba(114, 137, 218, 0.4) rgba(114, 137, 218, 0.1) rgba(114, 137, 218, 0.4) rgba(114, 137, 218, 0.1);
    animation-duration: 16s;
}

@keyframes ctaMegaRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.jonathan-avatar-final {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    box-shadow: 
        0 0 60px rgba(88, 101, 242, 0.6),
        0 0 120px rgba(88, 101, 242, 0.4),
        inset 0 0 40px rgba(254, 231, 92, 0.2);
    animation: ctaAvatarPulse 4s ease-in-out infinite;
    position: relative;
    z-index: 5;
}

@keyframes ctaAvatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.avatar-icon-mega {
    font-size: 4.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: ctaIconBounce 3s ease-in-out infinite;
}

@keyframes ctaIconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.avatar-text-mega {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.jonathan-crown-final {
    position: absolute;
    top: -35px;
    right: -20px;
    font-size: 3.5rem;
    filter: drop-shadow(0 0 20px rgba(254, 231, 92, 0.8));
    animation: ctaCrownSpin 4s ease-in-out infinite;
    z-index: 10;
}

@keyframes ctaCrownSpin {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.15); }
}

.jonathan-final-name {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #5865F2, #FEE75C, #5865F2);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ctaNameGradient 5s ease infinite;
    letter-spacing: 0.1em;
    text-shadow: 0 0 40px rgba(88, 101, 242, 0.5);
    margin: 0;
}

@keyframes ctaNameGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.jonathan-final-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FEE75C;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: -0.5rem 0 0 0;
}

/* ===== TITLE EPIC ===== */
.cta-title-epic-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-title-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(254, 231, 92, 0.2));
    border: 2px solid rgba(88, 101, 242, 0.5);
    border-radius: 50px;
    animation: ctaBadgePulse 3s ease-in-out infinite;
}

@keyframes ctaBadgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(88, 101, 242, 0.4); }
    50% { box-shadow: 0 0 40px rgba(88, 101, 242, 0.8); }
}

.badge-lightning {
    font-size: 1.5rem;
    animation: ctaLightningBlink 2s ease-in-out infinite;
}

@keyframes ctaLightningBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.badge-text {
    font-size: 1rem;
    font-weight: 800;
    color: #FEE75C;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.cta-title-mega {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.title-line-1 {
    color: #5865F2;
    text-shadow: 0 0 40px rgba(88, 101, 242, 0.8);
    animation: ctaTitleFloat 3s ease-in-out infinite;
}

.title-line-2 {
    color: #FEE75C;
    text-shadow: 0 0 40px rgba(254, 231, 92, 0.8);
    animation: ctaTitleFloat 3s ease-in-out 0.2s infinite;
}

.title-line-3 {
    color: #10b981;
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.8);
    animation: ctaTitleFloat 3s ease-in-out 0.4s infinite;
}

@keyframes ctaTitleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cta-subtitle-epic {
    max-width: 900px;
}

.subtitle-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.subtitle-highlight {
    color: #FEE75C;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(254, 231, 92, 0.5);
}

.subtitle-explosive {
    color: #FF1493;
    font-weight: 900;
    font-size: 1.5rem;
    text-shadow: 0 0 30px rgba(255, 20, 147, 0.8);
    animation: ctaExplosivePulse 2s ease-in-out infinite;
}

@keyframes ctaExplosivePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== TEAM SHOWCASE ===== */
.cta-team-showcase {
    width: 100%;
    text-align: center;
}

.team-showcase-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.showcase-icon {
    font-size: 2rem;
    animation: ctaShowcaseIconSpin 4s ease-in-out infinite;
}

@keyframes ctaShowcaseIconSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

.team-grid-epic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member-mini {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(16, 185, 129, 0.1));
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 20px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.team-member-mini:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(88, 101, 242, 0.5);
    border-color: rgba(254, 231, 92, 0.8);
}

.member-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 12px rgba(88, 101, 242, 0.6));
    animation: ctaMemberIconBounce 3s ease-in-out infinite;
}

@keyframes ctaMemberIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.member-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
}

.member-role {
    font-size: 0.9rem;
    font-weight: 900;
    color: #FEE75C;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== SERVICES RECAP ===== */
.cta-services-recap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.05), rgba(16, 185, 129, 0.05));
    border-radius: 20px;
    border: 2px solid rgba(88, 101, 242, 0.2);
}

.recap-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.recap-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.6));
}

.recap-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.08em;
}

.recap-divider {
    font-size: 2rem;
    color: #FEE75C;
    font-weight: 700;
}

/* ===== EPIC STATS ===== */
.cta-epic-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
    max-width: 900px;
}

.epic-stat {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(254, 231, 92, 0.1));
    border: 2px solid rgba(88, 101, 242, 0.4);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.epic-stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(88, 101, 242, 0.6);
    border-color: #FEE75C;
}

.stat-mega-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #5865F2, #FEE75C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.5rem 0;
}

.stat-mega-label {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
}

/* ===== FINAL MESSAGE ===== */
.cta-final-message {
    text-align: center;
    padding: 2rem;
}

.final-message-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.final-message-text strong {
    color: #FEE75C;
    font-size: 1.8rem;
    text-shadow: 0 0 30px rgba(254, 231, 92, 0.8);
}

/* ===== MEGA CTA BUTTONS ===== */
.cta-buttons-mega {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button-mega {
    position: relative;
    padding: 1.8rem 4rem;
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.cta-button-mega.primary {
    background: linear-gradient(135deg, #5865F2, #FEE75C);
    color: #05050f;
    box-shadow: 
        0 10px 40px rgba(88, 101, 242, 0.6),
        0 0 80px rgba(254, 231, 92, 0.4);
}

.cta-button-mega.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(88, 101, 242, 0.8),
        0 0 120px rgba(254, 231, 92, 0.6);
}

.cta-button-mega.secondary {
    background: transparent;
    border: 3px solid #5865F2;
    color: #ffffff;
}

.cta-button-mega.secondary:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: #FEE75C;
    transform: translateY(-5px);
}

.button-glow-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 60px;
    border: 2px solid rgba(254, 231, 92, 0.6);
    opacity: 0;
    animation: ctaButtonWave 3s ease-out infinite;
}

.button-glow-wave.wave-2 {
    animation-delay: 1s;
}

.button-glow-wave.wave-3 {
    animation-delay: 2s;
}

@keyframes ctaButtonWave {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.button-icon {
    font-size: 1.8rem;
}

.button-text {
    position: relative;
    z-index: 5;
}

.button-arrow {
    font-size: 1.8rem;
    transition: transform 0.4s ease;
}

.cta-button-mega:hover .button-arrow {
    transform: translateX(10px);
}

/* ===== GUARANTEE BADGE ===== */
.cta-guarantee-final {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(88, 101, 242, 0.2));
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 50px;
    animation: ctaGuaranteePulse 4s ease-in-out infinite;
}

@keyframes ctaGuaranteePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.8); }
}

.guarantee-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
}

.guarantee-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.guarantee-text strong {
    color: #FEE75C;
    font-weight: 700;
}

/* ===== EPIC PARTICLES ===== */
.cta-particles-epic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

.cta-particles-epic .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(254, 231, 92, 0.8), transparent);
    border-radius: 50%;
    animation: ctaParticleFloat 20s linear infinite;
}

.cta-particles-epic .particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 18s; }
.cta-particles-epic .particle:nth-child(2) { left: 25%; top: 40%; animation-delay: 2s; animation-duration: 22s; }
.cta-particles-epic .particle:nth-child(3) { left: 45%; top: 15%; animation-delay: 4s; animation-duration: 20s; }
.cta-particles-epic .particle:nth-child(4) { left: 60%; top: 50%; animation-delay: 1s; animation-duration: 24s; }
.cta-particles-epic .particle:nth-child(5) { left: 75%; top: 25%; animation-delay: 3s; animation-duration: 19s; }
.cta-particles-epic .particle:nth-child(6) { left: 85%; top: 60%; animation-delay: 5s; animation-duration: 21s; }
.cta-particles-epic .particle:nth-child(7) { left: 15%; top: 70%; animation-delay: 2.5s; animation-duration: 23s; }
.cta-particles-epic .particle:nth-child(8) { left: 35%; top: 80%; animation-delay: 4.5s; animation-duration: 18s; }
.cta-particles-epic .particle:nth-child(9) { left: 55%; top: 35%; animation-delay: 1.5s; animation-duration: 20s; }
.cta-particles-epic .particle:nth-child(10) { left: 90%; top: 45%; animation-delay: 3.5s; animation-duration: 22s; }

@keyframes ctaParticleFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100vh) translateX(50px) scale(0.5); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cta-epic-final-section {
        padding: 5rem 1.5rem;
    }

    .jonathan-final-avatar {
        transform: scale(0.8);
    }

    .jonathan-final-name {
        font-size: 2rem;
    }

    .jonathan-final-title {
        font-size: 1rem;
    }

    .cta-title-mega {
        font-size: 3rem;
    }

    .subtitle-text {
        font-size: 1.1rem;
    }

    .team-grid-epic {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .team-member-mini {
        padding: 1.5rem 0.8rem;
    }

    .member-icon {
        font-size: 2.5rem;
    }

    .member-name {
        font-size: 0.85rem;
    }

    .member-role {
        font-size: 0.75rem;
    }

    .cta-services-recap {
        flex-direction: column;
        gap: 1rem;
    }

    .recap-divider {
        transform: rotate(90deg);
    }

    .cta-epic-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-mega-number {
        font-size: 2.5rem;
    }

    .cta-buttons-mega {
        flex-direction: column;
        width: 100%;
    }

    .cta-button-mega {
        width: 100%;
        justify-content: center;
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
    }

    .cta-guarantee-final {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cta-title-mega {
        font-size: 2.2rem;
    }

    .subtitle-text {
        font-size: 1rem;
    }

    .subtitle-explosive {
        font-size: 1.2rem;
    }

    .team-grid-epic {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .team-showcase-title {
        font-size: 1.8rem;
    }

    .final-message-text {
        font-size: 1.2rem;
    }

    .final-message-text strong {
        font-size: 1.4rem;
    }
}
