/* ==========================================================================
   Zona de Crescimento - Estilo Principal RESPONSIVO
   Mobile-first • Clean • Disciplinado
   ========================================================================== */

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

:root {
    --verde-zc: #00ff41;
    --verde-escuro: #00cc33;
    --preto: #0f0f0f;
    --cinza-escuro: #1a1a1a;
    --cinza: #aaaaaa;
    --branco: #f5f5f5;
    --vermelho: #ff3366;
    --azul: #007bff;

    --fonte: 'Montserrat', system-ui, -apple-system, sans-serif;
    --radius: 10px;
    --transition: all 0.3s ease;
}

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

body {
    background: var(--preto);
    color: var(--branco);
    font-family: var(--fonte);
    line-height: 1.55;
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER RESPONSIVO ==================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.12);
    padding: 15px 0;
}

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

.logo img {
    width: 15%;

}


/* Menu Hamburguer para mobile */
.menu-hamburguer {
    display: none;
    background: none;
    border: none;
    color: var(--cinza);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.menu-hamburguer:hover {
    color: var(--verde-zc);
}

.menu-principal {
    transition: var(--transition);
}

.menu-principal ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.menu-principal a {
    color: var(--cinza);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.25s;
    white-space: nowrap;
}

.menu-principal a:hover,
.menu-principal a.active {
    color: var(--verde-zc);
}

#btn-login {
    background: var(--verde-zc);
    color: black !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600 !important;
}

#btn-login:hover {
    background: var(--verde-escuro);
    transform: translateY(-1px);
}

/* ==================== TIPOGRAFIA RESPONSIVA ==================== */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    margin-bottom: 0.8rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    margin-bottom: 2rem;
    color: var(--verde-zc);
    text-align: center;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.section-diferente {
    background: var(--cinza-escuro);
}

/* ==================== HERO RESPONSIVO ==================== */
.hero {
    text-align: center;
    padding: clamp(80px, 15vw, 140px) 0 clamp(100px, 15vw, 160px);
    background: linear-gradient(to bottom, rgba(0, 255, 65, 0.04), transparent 60%);
}

.hero .lead {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--cinza);
    max-width: 640px;
    margin: 1rem auto 2rem;
    padding: 0 20px;
}

.frase-guia {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--verde-zc);
    opacity: 0.9;
    margin: 1.5rem 0;
}

.frase-guia.grande {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: clamp(14px, 3vw, 16px) clamp(28px, 4vw, 36px);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: clamp(0.95rem, 2vw, 1rem);
    text-align: center;
}

.btn-primary {
    background: var(--verde-zc);
    color: black;
}

.btn-primary:hover {
    background: var(--verde-escuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 65, 0.2);
}

.btn-large {
    padding: clamp(16px, 4vw, 20px) clamp(36px, 6vw, 48px);
    font-size: clamp(1rem, 3vw, 1.2rem);
}

/* ==================== CARDS RESPONSIVOS ==================== */
.grid-funcionalidades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 5px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.1);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 32px) clamp(20px, 3vw, 24px);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    border-color: var(--verde-zc);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 255, 65, 0.1);
}

.card h3 {
    color: var(--verde-zc);
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

/* ==================== NOTIFICAÇÕES ==================== */
.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.notification-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-color);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.notification-item.unread:hover {
    background: rgba(var(--primary-rgb), 0.12) !important;
}

/* ==================== LISTA NÃO É ==================== */
.lista-nao-e {
    list-style: none;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--cinza);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.lista-nao-e li {
    margin: 1rem 0;
    padding-left: 30px;
    position: relative;
}

.lista-nao-e li::before {
    content: "× ";
    color: var(--vermelho);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: 0;
}

/* ==================== MANIFESTO ==================== */
.texto-manifesto {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--cinza);
    padding: 0 20px;
}

.texto-manifesto p {
    margin: 1.5rem 0;
}

.texto-manifesto .destaque {
    color: var(--branco);
    font-weight: 600;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.btn-wrapper {
    margin-top: 4vh;
}

/* ==================== MODAIS ==================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    background: linear-gradient(145deg, #111111 0%, #0f0f0f 100%);
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 65, 0.14);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--verde-zc);
    background: rgba(0, 255, 65, 0.1);
    transform: rotate(90deg);
}

/* Modal de Login */
.modal-login .modal-content {
    padding: clamp(30px, 6vw, 48px) clamp(20px, 4vw, 40px);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-logo img {
    height: clamp(32px, 5vw, 42px);
    margin-bottom: 1.5rem;
    width: 20%;
}

.modal-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: #888;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 1.1rem;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.18);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--verde-zc);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.15);
    background: rgba(30, 30, 30, 0.9);
}

/* Opções */
.form-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--verde-zc);
}

.forgot-password {
    color: var(--verde-zc);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Botão login */
.btn-login {
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Divisor */
.modal-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    color: #555;
}

.modal-divider span {
    background: var(--cinza-escuro);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
}

.modal-divider::before,
.modal-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(0, 255, 65, 0.12);
}

.modal-divider::before {
    left: 0;
}

.modal-divider::after {
    right: 0;
}

/* WhatsApp */
.alternative-actions {
    text-align: center;
}

.alternative-actions p {
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 15px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-whatsapp:hover {
    background: #20b858;
    transform: translateY(-2px);
}

/* Modal de Mensagem */
.modal-mensagem .modal-content {
    padding: clamp(40px, 8vw, 60px) clamp(30px, 6vw, 50px);
    text-align: center;
}

.modal-mensagem .modal-icon {
    font-size: clamp(3rem, 10vw, 4rem);
    color: var(--verde-zc);
    margin-bottom: 1.5rem;
}

.modal-mensagem h3 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 1rem;
    color: var(--branco);
}

.modal-mensagem p {
    color: var(--cinza);
    margin-bottom: 2rem;
    font-size: clamp(1rem, 3vw, 1.1rem);
}

.modal-mensagem .btn {
    min-width: 150px;
}

/* ==================== FOOTER ==================== */
footer {
    padding: clamp(50px, 8vw, 80px) 0 clamp(40px, 6vw, 60px);
    text-align: center;
    border-top: 1px solid rgba(0, 255, 65, 0.08);
}

.copyright {
    margin-top: 2em;
    color: #555;
    font-size: 0.9rem;
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== MEDIA QUERIES ==================== */

/* Tablets */
@media (max-width: 768px) {
    .menu-hamburguer {
        display: block;
    }

    .menu-principal {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0, 255, 65, 0.1);
        padding: 20px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .menu-principal.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .menu-principal ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .menu-principal a {
        font-size: 1rem;
        padding: 10px 0;
        display: block;
        width: 100%;
        text-align: center;
    }

    #btn-login {
        margin-top: 10px;
        width: 100%;
    }

    .grid-funcionalidades {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .modal-content {
        margin: 10px;
        padding: 30px 20px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Smartphones Pequenos */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-login .modal-content {
        padding: 25px 20px;
    }

    .btn-whatsapp span {
        display: none;
    }

    .btn-whatsapp {
        justify-content: center;
    }
}

/* Desktop Grandes */
@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
}

/* Orientação Paisagem em Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .modal-content {
        max-height: 80vh;
        overflow-y: auto;
    }

    .hero {
        padding: 60px 0;
    }

    .section {
        padding: 40px 0;
    }

}

/* ==================== AJUSTES DE RESPONSIVIDADE GLOBAL ==================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        bottom: -100%;
        /* Escondido em baixo */
        left: 0;
        right: 0;
        top: auto;
        /* Remove o top fixo */
        background: var(--bg-primary, #0a0a0a);
        z-index: 1000;
        transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: block !important;
        max-height: 80vh;
        /* Limita a altura */
        border-radius: 24px 24px 0 0;
        /* Estilo Bottom Sheet */
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
        padding-bottom: 30px;
        /* Espaço extra no fundo */
    }

    .main-navigation.active {
        bottom: 0;
    }

    .nav-menu {
        flex-direction: column;
        padding: 30px 20px 20px 20px;
    }

    /* Indicador de "Puxar" opcional visual */
    .main-navigation::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--border-color);
        border-radius: 2px;
    }
}

/* ============================================
   GLOBAL RESPONSIVENESS PATCH (ALL PAGES 100%)
   ============================================ */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

* {
    max-width: 100vw;
}

img,
video,
iframe,
canvas,
svg {
    max-width: 100% !important;
    height: auto !important;
}

@media (max-width: 768px) {

    .container,
    .main-content,
    .wrapper,
    section,
    footer {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Header e container precisam de overflow visible para o menu mobile dropdown aparecer */
    header,
    header .container {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Auto wrap flex containers to prevent overflow */
    .d-flex,
    .flex,
    [style*="display: flex"],
    [style*="display:flex"] {
        flex-wrap: wrap !important;
    }

    /* Reset huge margins/widths */
    .card,
    .box,
    .panel {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}