:root {
    --primary: #bfff00;
    --primary-glow: rgba(191, 255, 0, 0.4);
    --bg-dark: #0a0a0a;
    --bg-surface: #1a1a1a;
    --bg-card: rgba(26, 26, 26, 0.8);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 var(--primary-glow); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(191, 255, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(191, 255, 0, 0); }
}

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

.animate-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: #d4ff00;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header span {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Hero Section */
#hero {
    background: radial-gradient(circle at 80% 20%, rgba(191, 255, 0, 0.15), transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(191, 255, 0, 0.05), transparent 40%);
    padding: 70px 0;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* WhatsApp Floating */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

/* Benefits Section */
#benefits {
    padding: 70px 0;
    background: var(--bg-surface);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Plans Section */
#plans {
    padding: 70px 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.8rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    width: 100%;
}

.plan-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.plan-features li i {
    color: var(--primary);
    margin-right: 10px;
}

/* FAQ Section */
#faq {
    padding: 70px 0;
    background: var(--bg-surface);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    border-color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

/* Footer */
footer {
    padding: 70px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

/* Testimonials Marquee */
.testimonials-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 600px;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.testimonial-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-card {
    padding: 2rem !important;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.testimonial-card p {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.4;
}

.testimonial-card .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-card .avatar {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.testimonial-card .details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-card .details strong {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1;
}

.testimonial-card .details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-card .rating {
    color: #ffc107;
    font-size: 0.9rem;
    display: flex;
    gap: 3px;
}

/* Animations */
@keyframes scrollUp {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes scrollDown {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

.scroll-up {
    animation: scrollUp 40s linear infinite;
}

.scroll-down {
    animation: scrollDown 40s linear infinite;
}

.scroll-up:hover, .scroll-down:hover {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title { font-size: 3rem; }
    .hero h1 { font-size: 3.5rem; }
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Section Header Consistency */
.section-header h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header span {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Pix Payment Section */
#payment {
    background: rgba(191, 255, 0, 0.05);
    padding: 70px 0;
}

.payment-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.pix-logo {
    width: 80px;
    height: auto;
}

.pix-logo img {
    width: 100%;
    height: auto;
}

.payment-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.payment-text p {
    color: var(--text-muted);
}

/* P2P Plan Card */
.p2p-card {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 2rem;
    padding: 2.5rem !important;
}

.p2p-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.p2p-info p {
    color: var(--text-muted);
    max-width: 500px;
}

.p2p-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.p2p-actions .plan-price {
    margin: 0;
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    
    /* Unified Title System for Mobile */
    .hero-text h1, .section-header h2 { 
        font-size: 2.5rem !important; 
        line-height: 1.1 !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        -webkit-text-fill-color: #fff !important; 
        background: none !important;
    }
    
    .hero-text h1 span, .section-header h2 span { 
        font-size: 2.5rem !important;
        display: block !important;
        white-space: normal !important;
        word-break: break-word !important;
        color: var(--primary) !important;
        -webkit-text-fill-color: var(--primary) !important;
        text-shadow: 0 0 15px var(--primary-glow) !important;
        margin-top: 5px;
    }

    /* P2P Mobile Centering */
    .p2p-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-top: 4rem !important; /* Mais espaço para descolar dos cards de cima */
    }

    .p2p-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .p2p-info p {
        max-width: 100%;
    }

    /* Pix Mobile Centering */
    .payment-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero { padding: 60px 0 40px 0; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { font-size: 1.1rem; text-align: center; margin-bottom: 2rem; }

    /* Logo do header: tamanho pequeno como ícone */
    .logo img {
        height: 40px !important;
        width: auto !important;
        max-width: 120px !important;
    }

    /* Impede qualquer texto ou elemento de causar overflow horizontal */
    .hero-text h1,
    .section-header h2,
    .hero-text p,
    .section-header p {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }

    /* Hero: garante que nada escape do container */
    #hero .container {
        overflow: hidden !important;
    }
    
    .plans-grid { grid-template-columns: 1fr; padding: 0 15px; }
    .testimonials-wrapper { grid-template-columns: 1fr; height: 500px; }
    .testimonial-column:nth-child(2), .testimonial-column:nth-child(3) { display: none; }
    .faq-container { padding: 0 15px; }
    .container { padding: 0 1.2rem; }

    /* ── CORREÇÕES DE RESPONSIVIDADE MOBILE ── */

    /* Subtítulos das seções maiores e legíveis */
    .section-header p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        padding: 0 0.5rem;
    }

    /* Subtítulos (h3) dos cards de benefícios e planos */
    .benefit-item h3,
    .plan-card h3,
    .p2p-info h3 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }

    /* Texto dos cards de benefícios */
    .benefit-item p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* Imagem flutuante: canto direito sobreposição igual ao desktop, menor */
    .hero-video {
        position: relative !important;
        overflow: visible !important;
        padding-top: 0 !important;
        margin-top: 140px !important;
    }

    .hero-video > img:first-child {
        position: absolute !important;
        top: -130px !important;
        right: -10px !important;
        left: auto !important;
        width: 45% !important;
        max-width: 170px !important;
        margin: 0 !important;
        z-index: 10 !important;
        -webkit-animation: float 3s ease-in-out infinite !important;
        animation: float 3s ease-in-out infinite !important;
        animation-play-state: running !important;
    }

    /* Segunda imagem flutuante (x.webp) - lado esquerdo do vídeo */
    .hero-video > img:nth-child(2) {
        position: absolute !important;
        top: 0 !important;
        left: -10px !important;
        right: auto !important;
        width: auto !important;
        height: 70px !important;
        max-height: 70px !important;
        max-width: none !important;
        margin: 0 !important;
        z-index: 10 !important;
        -webkit-animation: float 3.5s ease-in-out infinite !important;
        animation: float 3.5s ease-in-out infinite !important;
        animation-delay: 0.8s !important;
        animation-play-state: running !important;
    }

    /* Impede o card "POPULAR" (featured) de causar overflow horizontal */
    .plan-card.featured {
        transform: scale(1) !important;
    }

    /* Garante que imagens dentro de cards não ultrapassem a tela */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* FAQ question: tamanho de fonte legível */
    .faq-question {
        font-size: 0.95rem !important;
    }
}

/* Cookie Consent Modal */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Conversion Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-container {
    background: white;
    max-width: 900px;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-popup:hover { background: rgba(0,0,0,0.2); transform: rotate(90deg); }

.popup-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.popup-image {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-text {
    padding: 3rem;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-text h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0a0a0a;
    text-transform: uppercase;
    font-weight: 800;
}

.popup-text p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.popup-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.popup-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1a1a1a;
}

.popup-benefits i { color: #2ecc71; }

.popup-action { text-align: center; }
.popup-action .btn-primary { width: 100%; font-size: 1.1rem; padding: 1.2rem; }
.popup-action .subtext { display: block; margin-top: 10px; font-size: 0.85rem; color: #9ca3af; }

@media (max-width: 900px) {
    .popup-content { grid-template-columns: 1fr; }
    .popup-image { height: 250px; }
    .popup-text { padding: 2rem; }
    .popup-text h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .popup-overlay {
        padding: 12px !important;
        align-items: flex-end !important;
    }
    .popup-container {
        border-radius: 20px 20px 0 0 !important;
        max-height: 92vh !important;
        overflow-y: auto !important;
        width: 100% !important;
    }
    .popup-image { height: 160px !important; }
    .popup-text {
        padding: 1.2rem !important;
    }
    .popup-text h2 {
        font-size: 1.3rem !important;
        margin-bottom: 0.8rem !important;
    }
    .popup-text p {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
    }
    .popup-benefits li {
        font-size: 0.9rem !important;
    }
    .popup-action .btn-primary {
        font-size: 1rem !important;
        padding: 1rem !important;
    }
    .close-popup {
        top: 12px !important;
        right: 12px !important;
    }
}

.cookie-modal {
    max-width: 450px;
    width: 100%;
    text-align: center;
    padding: 3rem !important;
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.cookie-modal h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cookie-modal p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cookie-modal a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-actions .btn-primary {
    width: 100%;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .cookie-modal {
        padding: 2rem !important;
    }
    .cookie-modal h3 {
        font-size: 1.5rem;
    }
}
