/* --- GERAL & SETUP --- */
:root {
    --dark-bg: #0A0A12;
    --card-bg: #11111a;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-green: #00F5A0;
    --accent-blue: #4D94FF;
    --text-light: #F0F0F0;
    --text-muted: #A0A0B0;
    --font-primary: 'Poppins', sans-serif;
    --container-width: 1140px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

img, svg {
    max-width: 100%;
    display: block;
}

/* --- SCROLL PROGRESS BAR --- */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: background-color 0.3s, padding 0.3s, box-shadow 0.3s;
}

.main-header.scrolled {
    background-color: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: rotate(360deg);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-green);
    transition: width 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--text-light);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1001;
}

/* --- BOTÕES --- */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 2px solid transparent;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: #00e090;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}


/* --- SEÇÕES GERAIS --- */
section {
    padding: 6rem 0;
    overflow-x: hidden; /* Evita scroll horizontal por causa das animações */
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}


/* --- HERO SECTION --- */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}
.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.main-title span {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-visual svg {
    width: 100%;
    max-width: 450px;
}
.funnel-path {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: dash 5s linear infinite;
}
@keyframes dash {
    to { stroke-dashoffset: 0; }
}
.funnel-dot { animation: float 4s ease-in-out infinite; }
.dot1 { animation-delay: 0s; }
.dot2 { animation-delay: -1s; }
.dot3 { animation-delay: -2.5s; }
.dot-final { animation: final-pulse 2s infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes final-pulse {
    0%, 100% { r: 12; opacity: 1; }
    50% { r: 16; opacity: 0.7; }
}

/* --- AUTHORITY SECTION --- */
.authority-section {
    padding: 3rem 0;
    background-color: var(--card-bg);
}
.authority-section p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}
.authority-section strong {
    color: var(--text-light);
    font-weight: 600;
}
.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s;
}
.client-logos:hover {
    filter: grayscale(0%) opacity(1);
}
.logo-placeholder {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* --- BENEFITS SECTION --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.benefit-card {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-green);
}
.benefit-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}
.benefit-card svg { color: var(--dark-bg); }
.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}
.benefit-card p { color: var(--text-muted); }

/* --- PROCESS SECTION --- */
.process-section { background-color: var(--dark-bg); }
.process-visual {
    margin-top: 3rem;
    width: 100%;
    overflow-x: auto;
}
#process-svg { min-width: 800px; }
#animated-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}
.process-visual.is-visible #animated-path {
    animation: draw-line 2s ease-out forwards;
}
@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}
.process-step {
    opacity: 0;
    transform: translateY(20px);
}
.process-visual.is-visible .process-step {
    animation: fade-up 0.5s ease-out forwards;
}
.process-visual.is-visible #step1 { animation-delay: 0.2s; }
.process-visual.is-visible #step2 { animation-delay: 0.7s; }
.process-visual.is-visible #step3 { animation-delay: 1.2s; }
.process-visual.is-visible #step4 { animation-delay: 1.7s; }

/* --- CASES SECTION --- */
.cases-section { background-color: var(--card-bg); }
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.case-card {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.case-company { font-weight: 600; color: var(--text-light); }
.case-result { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.9rem; font-weight: 600; }
.case-result.success {
    background-color: rgba(0, 245, 160, 0.1);
    color: var(--accent-green);
}
.case-card h4 { color: var(--accent-blue); margin-bottom: 0.5rem; }
.case-card p { color: var(--text-muted); margin-bottom: 1rem; }
.case-card p:last-child { margin-bottom: 0; }

/* --- PLANS SECTION --- */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 4rem;
}
.plan-card {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.plan-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--accent-green);
}
.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: var(--dark-bg);
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
}
.plan-icon { color: var(--accent-blue); margin-bottom: 1rem; }
.plan-icon svg { width: 32px; height: 32px; margin: 0 auto; }
.plan-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.plan-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 48px;
}
.plan-price { font-size: 1.2rem; margin-bottom: 2rem; }
.plan-price span {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-light);
}
.plan-features {
    list-style: none;
    text-align: left;
    color: var(--text-muted);
    flex-grow: 1; /* Pushes button down */
    margin-bottom: 2.5rem;
}
.plan-features li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.plan-features svg { color: var(--accent-green); flex-shrink: 0; }
.plan-cta { width: 100%; margin-top: auto; }

/* --- TESTIMONIALS --- */
.testimonials-section { background-color: var(--card-bg); }
.testimonial-slider-wrapper { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; }
.testimonial-slider { display: flex; transition: transform 0.5s ease-in-out; }
.testimonial-slide {
    flex: 0 0 100%;
    background-color: var(--dark-bg);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}
.stars { color: #FFC107; font-size: 1.5rem; margin-bottom: 1rem; }
.quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.author { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.author img { width: 50px; height: 50px; border-radius: 50%; background-color: #333; }
.author-info strong { display: block; color: var(--text-light); }
.author-info span { color: var(--text-muted); font-size: 0.9rem; }
.slider-controls { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0; pointer-events: none; }
.slider-controls button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
    pointer-events: auto;
}
.slider-controls button.prev { margin-left: -20px; }
.slider-controls button.next { margin-right: -20px; }
.slider-controls button:hover { background: var(--accent-green); color: var(--dark-bg); }

/* --- FAQ SECTION --- */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question {
    width: 100%; background: none; border: none; padding: 1.5rem 0; text-align: left;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    font-family: var(--font-primary); font-size: 1.2rem; color: var(--text-light); font-weight: 600;
}
.faq-icon { font-size: 1.5rem; color: var(--accent-blue); transition: transform 0.3s; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}
.faq-answer p { color: var(--text-muted); padding-bottom: 1.5rem; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* --- FINAL CTA --- */
.final-cta-section { background-color: var(--dark-bg); }
.cta-container {
    background-color: var(--card-bg);
    border-radius: 15px; padding: 4rem 2rem; text-align: center;
    position: relative; overflow: hidden;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 30px rgba(77, 148, 255, 0.2), 0 0 50px rgba(0, 245, 160, 0.1) inset;
}
.cta-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.cta-title span { color: var(--accent-green); }
.cta-subtitle { max-width: 600px; margin: 0 auto 2rem auto; color: var(--text-muted); }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 0.75rem; background-color: #25D366; border-color: #25D366; color: white; }
.btn-whatsapp:hover { background-color: #128C7E; }
.whatsapp-icon { animation: whatsapp-pulse 1.5s infinite; }

@keyframes whatsapp-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* --- FOOTER --- */
.main-footer {
    padding: 2rem 0;
    background-color: var(--card-bg);
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.main-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ANIMATIONS (SCROLL REVEAL) --- */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
[data-animate="fade-in"] { transform: translateY(20px); }
[data-animate="fade-in-up"] { transform: translateY(40px); }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVIDADE (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
    .main-nav ul { gap: 1.5rem; }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-text { order: 2; }
    .hero-visual { order: 1; margin: 0 auto 2rem; }
    .subtitle { margin: 0 auto 2.5rem auto; }
    .hero-ctas { justify-content: center; }
    
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .plan-card.featured {
        transform: scale(1.05); /* Mantém destaque em tablet */
    }
    .plans-grid > .plan-card:last-child {
        grid-column: 1 / -1; /* O último card ocupa a largura total */
        max-width: 500px; /* Limita a largura do último card */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .section-title, .cta-title { font-size: 2.2rem; }
    .main-title { font-size: 2.8rem; }
    
    .cta-header { display: none; }
    #mobile-menu-toggle { display: block; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--card-bg);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease-in-out;
        padding-top: 6rem;
    }
    .main-nav.active { right: 0; }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }
    .plan-card, .plans-grid > .plan-card:last-child {
        max-width: 400px;
        margin: 0 auto;
        grid-column: auto;
    }
    .plan-card.featured { transform: scale(1.05); }

    .slider-controls button.prev { margin-left: -10px; }
    .slider-controls button.next { margin-right: -10px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    body {
        /* Para o menu mobile */
        overflow-x: hidden;
    }
    .container { padding: 0 1rem; }
    .main-title { font-size: 2.2rem; }
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .hero-ctas .btn { width: 100%; max-width: 300px; }
    .client-logos { gap: 2rem; }
    .testimonial-slide { padding: 2.5rem 1.5rem; }
    .quote { font-size: 1.1rem; }

    .slider-controls { display: none; } /* Ocultar setas em telas muito pequenas */
}