/* =========================================
   1. IDENTIDADE VISUAL TECH (V3 - FINAL)
   ========================================= */
:root {
    --bg-deep: #020612;       /* Preto Azulado Profundo */
    --bg-card: #081026;       /* Azul Tech */
    
    --primary: #003366;       
    --neon: #00e0ff;          /* Ciano Elétrico */
    --neon-dark: #009abb;
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;    /* Cinza Tech */
    
    /* FONTES */
    --font-title: 'Outfit', sans-serif; 
    --font-body: 'Inter', sans-serif;      
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
html { scroll-behavior: smooth; height: 100%; }
body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; }

/* =========================================
   2. HEADER & UTILS
   ========================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.header-tech {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(2, 6, 18, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }

.nav-desktop a { 
    color: #fff; text-decoration: none; margin: 0 20px; 
    font-family: var(--font-title); font-weight: 600; font-size: 0.9rem;
    letter-spacing: 0.5px; transition: 0.3s;
}
.nav-desktop a:hover { color: var(--neon); }

.btn-header {
    background: var(--neon); color: #000; font-weight: 800;
    padding: 10px 25px; border-radius: 4px; text-decoration: none;
    font-family: var(--font-title); font-size: 0.85rem;
    transition: 0.3s; text-transform: uppercase;
}
.btn-header:hover { background: #fff; box-shadow: 0 0 15px var(--neon); }

/* --- MENU SUSPENSO MOBILE --- */
.mobile-toggle {
    display: none; font-size: 1.5rem; color: #fff; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2); padding: 5px 10px; border-radius: 4px;
}
.mobile-dropdown {
    display: none; flex-direction: column;
    background: rgba(2, 6, 18, 0.98); border-bottom: 1px solid var(--neon);
    padding: 20px; position: absolute; top: 100%; left: 0; width: 100%;
    backdrop-filter: blur(15px); box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 999;
}
.mobile-dropdown.active { display: flex; animation: slideDown 0.3s ease; }

.mobile-link {
    color: #fff; text-decoration: none; padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-family: var(--font-title); font-size: 1.1rem;
}
.mobile-cta {
    background: var(--neon); color: #000; text-align: center;
    padding: 15px; margin-top: 20px; text-decoration: none;
    font-weight: 800; border-radius: 4px; font-family: var(--font-title);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   3. HERO SECTION (CORRIGIDO PARA VÍDEO)
   ========================================= */
.hero-wrapper {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    overflow: hidden; 
    /* CORREÇÃO: Removi a cor sólida do fundo para o vídeo aparecer */
    /* Fica apenas o gradiente suave por cima */
    background: radial-gradient(circle at 70% 20%, rgba(0, 224, 255, 0.08), transparent 50%);
}

/* O VÍDEO NO FUNDO */
.video-bg {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: -2; /* Atrás de tudo */
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

/* MÁSCARA ESCURA */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 18, 0.75); /* Escurece o vídeo para ler o texto */
    z-index: -1;
}

.hero-grid {
    display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 60px;
    align-items: center; position: relative; z-index: 1;
}

h1 { font-family: var(--font-title); font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.hero-title { font-size: 3.8rem; margin-bottom: 25px; text-transform: uppercase; }
.hero-title span { color: var(--neon); }

.hero-description {
    font-size: 1.15rem; color: var(--text-muted); line-height: 1.7;
    margin-bottom: 40px; border-left: 4px solid var(--neon);
    padding-left: 25px; max-width: 90%;
}

/* =========================================
   4. FORMULÁRIO & LGPD
   ========================================= */
.form-tech-card {
    background: rgba(11, 18, 33, 0.9); /* Transparência leve */
    border: 1px solid #1e293b; border-radius: 8px; padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); position: relative;
    backdrop-filter: blur(5px);
}
.form-tech-card::before {
    content:''; position: absolute; top:0; left:0; width: 100%; height: 4px;
    background: var(--neon); border-radius: 8px 8px 0 0;
}

.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: #fff; margin-bottom: 8px; text-transform: uppercase; font-family: var(--font-title); }
.input-group { margin-bottom: 18px; }

.form-control {
    width: 100%; background: #020612; border: 1px solid #334155;
    padding: 14px; color: #fff; border-radius: 4px;
    font-family: var(--font-body); transition: 0.3s;
}
.form-control:focus { border-color: var(--neon); outline: none; }

.btn-submit {
    width: 100%; background: var(--neon); color: #000;
    font-family: var(--font-title); font-weight: 800; text-transform: uppercase;
    padding: 18px; border: none; border-radius: 4px; cursor: pointer;
    font-size: 1.1rem; letter-spacing: 1px; margin-top: 10px; transition: 0.3s;
}
.btn-submit:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0,224,255,0.4); }

/* CHECKBOX LGPD */
.lgpd-check {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 20px; margin-top: 5px;
}
.lgpd-check input[type="checkbox"] {
    accent-color: var(--neon); width: 18px; height: 18px;
    cursor: pointer; margin-top: 2px; flex-shrink: 0;
}
.lgpd-check label { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; cursor: pointer; }
.lgpd-check a { color: var(--neon); text-decoration: underline; }

/* =========================================
   5. SEÇÕES & CONTEÚDO
   ========================================= */
.section-tech { padding: 80px 0; border-top: 1px solid #1e293b; background: var(--bg-deep); }
.bg-darker { background: #01040a; }

.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; color: #fff; }
.section-title p { color: var(--text-muted); max-width: 700px; margin-bottom: 50px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card-tech {
    background: #081026; padding: 40px; border: 1px solid #1e293b;
    border-radius: 6px; transition: 0.3s;
}
.card-tech:hover { border-color: var(--neon); transform: translateY(-5px); }
.card-tech i { font-size: 2.5rem; color: var(--neon); margin-bottom: 25px; }
.card-tech h3 { font-family: var(--font-title); font-size: 1.5rem; margin-bottom: 15px; color: #fff; }
.card-tech p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

.section-note { text-align: center; color: var(--text-muted); margin-top: 40px; }

/* Alternância de cor entre seções: escuro (padrão) → claro → azul da marca */
.section-light { background: #f4f7fb; border-top: 0; }
.section-light .section-title h2,
.section-light h2 { color: #0b1530; }
.section-light .section-title p,
.section-light .section-note { color: #475569; }
.section-light h2 span { color: #00718c !important; } /* ciano escurecido: o neon some no fundo claro */
.section-light .card-tech {
    background: #ffffff; border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(2, 6, 18, 0.06);
}
.section-light .card-tech:hover { border-color: #00718c; }
.section-light .card-tech i { color: #00718c; }
.section-light .card-tech h3 { color: #0b1530; }
.section-light .card-tech p { color: #475569; }

.section-brand { background: linear-gradient(135deg, #003366 0%, #04224a 100%); border-top: 0; }
.section-brand .section-title p { color: #c7d6ea; }
.section-brand .card-tech { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); }
.section-brand .card-tech p { color: #c7d6ea; }

/* =========================================
   6. COOKIE, FOOTER & WHATSAPP
   ========================================= */
footer { flex-shrink: 0; }

.cookie-card {
    position: fixed; bottom: 30px; left: 30px; width: 340px;
    background: rgba(2, 6, 18, 0.95); border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--neon); border-radius: 8px; padding: 25px;
    z-index: 10000; display: none; flex-direction: column; gap: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6); backdrop-filter: blur(10px);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cookie-title { font-family: var(--font-title); color: #fff; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.cookie-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cookie-actions { display: flex; align-items: center; gap: 15px; margin-top: 5px; }
.btn-cookie-accept { background: var(--neon); color: #000; font-weight: 800; padding: 8px 20px; border: none; cursor: pointer; border-radius: 4px; text-transform: uppercase; font-size: 0.8rem; }
.btn-cookie-close { background: transparent; border: none; color: #666; font-size: 0.75rem; cursor: pointer; text-decoration: underline; }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }

/* BOTÃO WHATSAPP (GLOBAL) */
.whatsapp-float {
    position: fixed; bottom: 40px; right: 40px; width: 70px; height: 70px;
    background-color: #25d366 !important; color: #fff !important;
    border-radius: 50%; text-align: center; font-size: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4); z-index: 10002;
    display: flex !important; align-items: center; justify-content: center;
    text-decoration: none; transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}
.whatsapp-float:hover { background-color: #128c7e !important; transform: scale(1.1); color: #fff; }
@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   7. MEDIA QUERIES (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    /* Menu */
    .nav-desktop, .desktop-only { display: none; } 
    .mobile-toggle { display: block; }
    
    /* Hero & Vídeo */
    .hero-wrapper { padding-top: 130px !important; padding-bottom: 60px; min-height: auto; height: auto; }
    .video-bg { height: 100%; width: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
    .hero-grid { grid-template-columns: 1fr !important; gap: 40px; text-align: center; display: flex; flex-direction: column; }

    /* Textos e Form */
    .hero-content { order: 1; width: 100%; padding: 0 10px; }
    .hero-title { font-size: 2.5rem; line-height: 1.2; }
    .hero-description { border-left: none; border-top: 2px solid var(--neon); padding-left: 0; padding-top: 20px; margin: 20px auto 30px auto; }
    .hero-proof { justify-content: center !important; }
    .hero-form { order: 2; width: 100%; margin-top: 10px; }
    .form-tech-card { padding: 25px 20px; }

    /* Geral */
    .section-tech { padding: 50px 0; }
    .grid-3 { grid-template-columns: 1fr; padding: 0 10px; }
    .container[style*="display: flex"] { flex-direction: column; gap: 30px; }
    div[style*="flex: 1"] { width: 100%; }

    /* Footer, Cookie e Whats */
    .footer-links { flex-direction: column; gap: 15px; }
    .cookie-card { width: 90%; left: 5%; bottom: 20px; padding: 20px; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 60px; height: 60px; font-size: 32px; }
    
    /* BLINDAGEM CONTRA ESTOURO DE TELA NO MOBILE */
html, body {
    overflow-x: hidden; /* Corta o excedente lateral */
    width: 100%;
    position: relative; /* Garante estabilidade */
}