/* ==================================================================== */
/* 1. Variáveis de Cores e Configurações Globais (ROOT)                  */
/* ==================================================================== */
:root {
    --primary: #c40a1b;
    --primary-dark: #66040b;
    --secondary: #ff4d4d;
    --dark: #1a1d28;
    --dark-light: #2a2f3d;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --success: #28a745;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
    --radius: 8px;
}

/* ==================================================================== */
/* 2. Reset e Base Typography                                           */
/* ==================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Correção extra para garantir que o padding não cause overflow */
    min-width: 0;
}

/* CORREÇÃO AGRESSIVA E FINAL CONTRA OVERFLOW LATERAL */
html, body {
    width: 100%;
    max-width: 100vw; 
    overflow-x: hidden; 
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}
/* FIM DA CORREÇÃO DE OVERFLOW */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================================================== */
/* 3. Botões (Buttons)                                                  */
/* ==================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* ==================================================================== */
/* 4. Estrutura de Seção                                                */
/* ==================================================================== */
.section {
    background-color: #2e2e2e;
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    color: var(--light);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--light);
    max-width: 700px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ==================================================================== */
/* 5. Navbar (Barra de Navegação)                                       */
/* ==================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw; /* Garantia */
    background-color: #000000;
    box-shadow: #ff0000 0px 0px 5px 2px;
    z-index: 1000;
    transition: var(--transition);
    padding: 0;
}

.navbar.scrolled {
    background-color: #000000;
    box-shadow: #ff0000 0px 0px 5px 2px;
    padding: 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.5em;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-top: 7px;
}

.navbar-brand img {
    height: 75px;
    margin-right: 7px;
}

.navbar-brand span,
.nav-link,
.navbar-nav .nav-item {
    color: var(--light) !important;
}

.navbar-brand span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--light);
}

.navbar-nav {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
    position: relative;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 21px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 30px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--light);
    cursor: pointer;
}

/* ==================================================================== */
/* 6. Hero Section                                                      */
/* ==================================================================== */
.hero {
    background: linear-gradient(315deg, rgba(196, 10, 27, 0.85), rgba(26, 31, 40, 0.96)), url('https://img.freepik.com/fotos-gratis/colaboracao-em-grupo-em-torno-de-um-portatil-em-um-espaco-de-trabalho-criativo_24972-2944.jpg') no-repeat center center;
    background-size: cover;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden; 
    padding-top: 3.5em;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: #2e2e2e;
    transform: skewY(-4deg);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease;
    text-align: center;
}

.hero-content .subtitle-hero {
    font-size: 36px;
    color: white;
    font-weight: 700;
    margin-top: -10px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* ==================================================================== */
/* 7. Features (Vantagens)                                              */
/* ==================================================================== */
.features {
    background-color: #2b2b2b;
    color: var(--dark);
}

.features .section-title h2,
.features .section-title p {
    color: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    color: var(--dark);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    color: white;
    font-size: 32px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: #000000;
}

/* ==================================================================== */
/* 8. Plans (Planos)                                                    */
/* ==================================================================== */
.plans {
    background-color: #2e2e2e;
    color: var(--light);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    color: var(--dark);
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.plan-header {
    padding: 30px;
    text-align: center;
    background-color: var(--dark);
    color: white;
    position: relative;
}

.plan-popular .plan-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.plan-popular-badge {
    position: absolute;
    top: 20px;
    right: -60px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 60px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 600;
    /* CORREÇÃO DO BADGE */
    max-width: 100vw; 
    box-sizing: border-box;
}

.plan-name {
    font-size: 22px;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.plan-price span {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
}

.plan-period {
    font-size: 14px;
    opacity: 0.8;
}

.plan-body {
    padding: 30px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    margin-right: 10px;
    color: var(--success);
}

.plan-footer {
    padding: 0 30px 30px;
    text-align: center;
}

/* ==================================================================== */
/* 9. Demo (Vídeo)                                                      */
/* ==================================================================== */
.demo {
    background-color: #2e2e2e;
}
.demo h2, .demo p, .demo h3 {
    color: var(--light);
}

.demo-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.demo-content {
    flex: 1;
}

.demo-video {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.demo-video iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ==================================================================== */
/* 10. App Showcase                                                     */
/* ==================================================================== */
.app-showcase {
    background-color: var(--dark);
    color: white;
}

.app-showcase .section-title h2,
.app-showcase .section-title p {
    color: white;
}

.app-showcase .section-title::after {
    background: linear-gradient(to right, var(--secondary), white);
}

.app-slider {
    margin-top: 50px;
    position: relative;
}

.app-slide {
    background-color: var(--dark-light);
    color: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.app-slide img {
    border-radius: var(--radius);
    transition: var(--transition);
}

.app-slide:hover img {
    transform: scale(1.02);
}

/* ==================================================================== */
/* 11. Reseller (Revendedor)                                            */
/* ==================================================================== */
.reseller {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.reseller .section-title h2,
.reseller .section-title p {
    color: white;
}

.reseller .section-title::after {
    background: linear-gradient(to right, white, var(--secondary));
}

.reseller-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.reseller-step {
    background-color: white;
    color: var(--dark);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.reseller-step:hover {
    background-color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.reseller-step h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    color: white;
    font-size: 32px;
    font-weight: 700;
}

/* ==================================================================== */
/* 12. Support (Suporte)                                                */
/* ==================================================================== */
.support {
    background-color: #2b2b2b;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.support-card {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.support-card h3 {
    margin-bottom: 15px;
}

.support-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    color: white;
    font-size: 32px;
}

/* ==================================================================== */
/* 13. Contact (Contato)                                                */
/* ==================================================================== */
.contact {
    background-color: #2e2e2e;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.contact-item {
    background-color: var(--light);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 20px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(196, 10, 27, 0.1);
    border-radius: 50%;
}

.contact-text h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333333;
    font-weight: 600;
}

.contact-text a {
    display: block;
    font-size: 1rem;
    color: var(--gray);
    text-decoration: none;
}

.contact-form {
    background-color: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 10, 27, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ==================================================================== */
/* 14. Footer (Rodapé)                                                   */
/* ==================================================================== */
.footer {
    background-color: #000000;
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: var(--light);
}

/* ==================================================================== */
/* 15. Animações                                                        */
/* ==================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================================================== */
/* 16. Responsividade (Media Queries) - CORREÇÕES DE LAYOUT MOBILE      */
/* ==================================================================== */

/* Tablet e Telas Médias (max-width: 992px) */
@media (max-width: 992px) {
    .demo-container {
        flex-direction: column; 
        gap: 30px;
    }
    .demo-content {
        text-align: center;
    }
    .demo-video {
        width: 100%;
    }
    .demo-video iframe {
        height: 350px;
    }
    .hero h1 {
        font-size: 36px;
    }
}

/* Celular (max-width: 768px) */
@media (max-width: 768px) {
    /* Navbar e Menu Mobile */
    .mobile-menu-btn {
        display: block;
    }
    .navbar-nav {
        position: fixed;
        top: 3.5em;
        left: -100%;
        width: 100%;
        height: calc(100vh - 3.5em);
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    .navbar-nav.active {
        left: 0;
    }
    .nav-item {
        margin: 15px 0;
    }
    .nav-link {
        color: var(--dark) !important;
        font-size: 18px;
    }
    .nav-link::after {
        background-color: var(--primary) !important;
    }
    .nav-cta {
        margin: 30px auto 0;
    }
    .nav-cta a.btn {
        width: 70%;
    }

    /* Seções */
    .section {
        padding: 50px 0;
    }
    .section-title {
        margin-bottom: 40px;
    }
    .section-title h2 {
        font-size: 28px;
    }

    /* Layout Grids - FORÇA 1 COLUNA */
    .features-grid,
    .plans-grid,
    .reseller-steps,
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contato */
    .contact-container {
        grid-template-columns: 1fr;
    }
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Rodapé */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Celular Pequeno (max-width: 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section - Ajuste de Altura e Espaçamento */
    .hero {
        height: auto; 
        min-height: 550px; 
        padding: 100px 0 150px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    .hero-content .subtitle-hero {
        font-size: 24px;
        margin-top: 0;
        margin-bottom: 15px; 
    }
    .hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .hero-btns {
        flex-direction: column; 
        gap: 15px;
    }
    .btn {
        width: 100%;
    }

    /* Títulos de Seção */
    .section-title h2 {
        font-size: 26px;
    }

    /* Demo */
    .demo-video iframe {
        height: 250px;
    }
    
    /* Contato */
    .contact-info {
        grid-template-columns: 1fr;
    }
}