/* --- 1. VARIÁVEIS DE TEMA (DARK / LIGHT) --- */
:root {
    /* DARK MODE (Padrão) */
    --bg-body: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --bg-input: #111;
    --bg-header: rgba(5, 5, 5, 0.95); /* Mais opaco para leitura */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #333;
    --primary: #00e054;
    --primary-hover: #00ff62;
    --grid-color: rgba(0, 224, 84, 0.05);
    --shadow-glow: 0 0 20px rgba(0, 224, 84, 0.1);
}

[data-theme="light"] {
    --bg-body: #f8f9fa;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-input: #fff;
    --bg-header: rgba(255, 255, 255, 0.95);
    --text-main: #1a252f;
    --text-muted: #555;
    --border-color: #ddd;
    --primary: #0a6c37;
    --primary-hover: #0d8a46;
    --grid-color: rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- 2. RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; transition: background 0.3s, color 0.3s, border 0.3s; }

body { 
    /* ESPAÇO PARA NÃO FICAR EMBAIXO DO MENU FIXO */
    padding-top: 110px; 
    
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden;
    background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- 3. BARRA DE STATUS (CORRIGIDA) --- */
.system-status-bar { 
    background: #000; 
    color: #fff; 
    padding: 0; 
    font-size: 0.75rem; 
    border-bottom: 1px solid #222; 
    
    /* FIXAÇÃO NO TOPO ABSOLUTO */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px; 
    z-index: 2000; 
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-flex { 
    display: flex; 
    justify-content: flex-end; 
    gap: 20px; 
    width: 100%;
    white-space: nowrap;
}

/* --- 4. HEADER & MENU (CORRIGIDOS) --- */
header { 
    background: var(--bg-header); 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid var(--border-color); 
    
    /* FIXADO LOGO ABAIXO DA BARRA DE STATUS */
    position: fixed; 
    top: 35px; 
    left: 0;
    width: 100%; 
    height: 75px; 
    z-index: 1000; 
    
    display: flex;
    align-items: center;
}

/* FORÇA O ALINHAMENTO HORIZONTAL (LOGO - MENU - BOTOES) */
header .container { 
    display: flex !important; 
    justify-content: space-between; 
    align-items: center; 
    flex-direction: row !important; /* Essencial */
    width: 100%;
}

.brand-logo { 
    font-size: 1.4rem; 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--text-main); 
    flex-shrink: 0; /* Impede a logo de amassar */
}
.brand-logo i { color: var(--primary); font-size: 1.6rem; }

/* MENU DE LINKS (TEXTO) */
nav { flex: 1; display: flex; justify-content: center; } /* Centraliza o menu */

nav ul { 
    display: flex !important; 
    gap: 25px; 
    align-items: center; 
    flex-direction: row !important; /* Garante horizontal */
}

nav a { font-weight: 600; font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; }
nav a:hover { color: var(--primary); }

/* ÁREA DOS BOTÕES (DIREITA) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Impede botões de amassar */
}

/* Toggle Switch (Sol/Lua) */
.theme-switch { cursor: pointer; font-size: 1.1rem; color: var(--text-main); width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; background: transparent; }
.theme-switch:hover { background: var(--bg-card); color: var(--primary); }

/* --- 5. COMPONENTES GERAIS --- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--text-main); font-weight: 800; letter-spacing: -1px; }
.section-header p { color: var(--text-muted); }

/* Botões */
.btn { padding: 10px 25px; font-weight: 700; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.9rem; border: none; white-space: nowrap; }
.btn-green { background: var(--primary); color: #000; box-shadow: var(--shadow-glow); }
[data-theme="light"] .btn-green { color: #fff; }
.btn-green:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--border-color); color: var(--text-main); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Cards Glass */
.card-glass { background: var(--bg-card); border: 1px solid var(--border-color); backdrop-filter: blur(10px); border-radius: 16px; padding: 30px; transition: 0.3s; transform-style: preserve-3d; }
.card-glass:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow-glow); }

/* --- SEÇÕES ESPECÍFICAS (HERO, CARROSSEL, ETC) --- */
.hero { padding: 40px 0 100px; }
.carousel-wrapper { height: 600px; border-radius: 24px; overflow: hidden; position: relative; border: 1px solid var(--border-color); box-shadow: var(--shadow-glow); }
.slide { position: absolute; top:0; left:0; width:100%; height:100%; opacity:0; transition: 1s; }
.slide.active { opacity: 1; z-index: 1; }
.slide-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); transform: scale(1.05); }
.slide-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 85%; z-index: 2; color: #fff; }
.slide-content h2 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.carousel-indicators { z-index: 3; position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--primary); transform: scale(1.2); }

/* Cursor & Marquee */
.cursor { animation: blink 1s infinite; color: var(--primary); font-weight: 800; }
@keyframes blink { 50% { opacity: 0; } }
.tech-marquee { padding: 30px 0; background: var(--bg-card); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; }
.tech-item { display: inline-flex; align-items: center; gap: 10px; margin: 0 40px; font-size: 1.5rem; font-weight: 700; color: var(--text-muted); opacity: 0.5; transition: 0.3s; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sliders e Grids */
.comparison-section { padding: 80px 0; }
.img-comp-wrapper { position: relative; height: 500px; border-radius: 20px; overflow: hidden; border: 2px solid var(--border-color); }
.img-comp-wrapper img { width: 100%; height: 100%; object-fit: cover; position: absolute; }
.img-comp-before { width: 50%; border-right: 3px solid var(--primary); z-index: 2; overflow: hidden; }
.slider-handle { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; background: var(--primary); border-radius: 50%; z-index: 10; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; color: #000; pointer-events: none; }
.slider-input { width: 100%; height: 100%; position: absolute; z-index: 20; opacity: 0; cursor: col-resize; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: -80px; position: relative; z-index: 10; }
.icon-box { width: 60px; height: 60px; background: rgba(0,224,84,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; }

/* CEO & Calculadora */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 100px 0; }
.ceo-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 40px; border-radius: 20px; position: relative; }
.highlight-text { border-left: 3px solid var(--primary); padding-left: 20px; margin: 20px 0; color: var(--text-muted); font-style: italic; }
.auth-grid { display: flex; gap: 20px; margin-top: 30px; }
.auth-item { display: flex; align-items: center; gap: 10px; color: var(--text-main); font-weight: 600; font-size: 0.9rem; }
.auth-item i { color: var(--primary); font-size: 1.2rem; }
.calc-wrapper { max-width: 600px; margin: 0 auto; background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid var(--border-color); box-shadow: var(--shadow-glow); }
.calc-input { width: 100%; padding: 15px; background: var(--bg-input); color: var(--text-main); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 20px; outline: none; }
.result-box { background: rgba(0, 224, 84, 0.1); border: 1px solid var(--primary); padding: 20px; border-radius: 10px; text-align: center; display: none; animation: fadeIn 0.5s; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 40px; }
.review-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 30px; border-radius: 16px; }
.user-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.avatar { width: 45px; height: 45px; background: var(--border-color); color: var(--text-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); border: 1px solid #333; }
.stars { color: #fbbc04; font-size: 0.9rem; margin-bottom: 15px; }
.review-text { font-size: 0.95rem; color: var(--text-muted); font-style: italic; }
.review-actions { margin-top: 60px; display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.btn-review-google { background: linear-gradient(135deg, #0a6c37, #4caf50); color: white; padding: 16px 40px; border-radius: 50px; font-weight: 800; font-size: 1rem; border: none; cursor: pointer; box-shadow: 0 10px 25px rgba(10, 108, 55, 0.3); transition: all 0.3s ease; display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.btn-see-all { background: transparent; color: var(--text-main); padding: 16px 40px; border-radius: 50px; font-weight: 700; font-size: 1rem; border: 2px solid var(--text-main); cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 12px; }

/* FAQ & Form */
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 15px; overflow: hidden; }
.faq-question { padding: 20px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; color: var(--text-main); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: 0.3s; color: var(--text-muted); border-top: 1px solid var(--border-color); }
.faq-item.active .faq-answer { padding: 20px; max-height: 200px; }
.form-input { width: 100%; padding: 15px; background: var(--bg-input); color: var(--text-main); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 20px; outline: none; }
footer { padding: 50px 0; border-top: 1px solid #222; text-align: center; color: #666; font-size: 0.9rem; }
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; z-index: 1000; box-shadow: 0 0 20px rgba(37,211,102,0.4); }

/* --- 6. MOBILE (CORREÇÕES CRÍTICAS) --- */
@media (max-width: 992px) {
    /* Esconde o menu de texto no celular para não quebrar */
    nav { display: none !important; }
    
    .status-flex { 
        justify-content: center; /* Centraliza a barra de status */
        font-size: 0.65rem; /* Letra menor */
        gap: 15px;
    }
    
    /* Hero em coluna */
    .hero .container { display: block; }
    .hero-content { margin-bottom: 30px; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    
    /* Carrossel menor no mobile */
    .carousel-wrapper { height: 400px; }
    .slide-content h2 { font-size: 1.8rem; }
    
    /* Grids em coluna */
    .services-grid, .about-grid, .reviews-grid, .auth-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .services-grid { margin-top: 30px; }
    
    .auth-grid { flex-wrap: wrap; justify-content: center; }
}

/* --- NOVA HERO IMERSIVA --- */
.hero-immersive {
    position: relative;
    height: 90vh; /* Ocupa 90% da altura da tela */
    min-height: 600px; /* Altura mínima para não esmagar */
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -35px; /* Compensa a status bar para colar no topo */
}

/* 1. Carrossel de Fundo */
.hero-carousel-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.slide-img-bg {
    width: 100%; height: 100%;
    object-fit: cover; /* Cobre tudo sem distorcer */
    /* Efeito de Zoom lento (Ken Burns) */
    animation: zoomEffect 20s infinite alternate;
}
@keyframes zoomEffect {
    from { transform: scale(1); } to { transform: scale(1.1); }
}
/* Máscara Escura (Essencial para ler o texto) */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(5,5,5,0.9) 30%, rgba(5,5,5,0.6) 100%);
    z-index: 1;
}

/* 2. Conteúdo Flutuante */
.hero-container-floating {
    position: relative;
    z-index: 10; /* Fica na frente de tudo */
    height: 100%;
    display: flex;
    align-items: center; /* Centraliza verticalmente */
}

.hero-card-glass {
    background: rgba(20, 20, 20, 0.7); /* Vidro mais escuro */
    backdrop-filter: blur(20px); /* Desfoque forte no fundo */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary); /* Detalhe verde neon */
    padding: 50px;
    border-radius: 24px;
    max-width: 650px; /* Largura máxima do card */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Títulos e Textos */
.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

/* CORREÇÃO DO TYPEWRITER (Cursor não quebra) */
.typewriter-wrapper {
    display: inline-block; /* Garante que fiquem juntos */
    white-space: nowrap; /* Impede quebra de linha entre texto e cursor */
}
#typewriter {
    display: inline; /* Garante que é texto corrido */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Botões Grandes */
.hero-buttons { display: flex; gap: 20px; }
.btn-lg { padding: 15px 35px; font-size: 1.1rem; }

/* Indicadores (Bolinhas) */
.carousel-indicators-hero {
    position: absolute; bottom: 30px; left: 50%; z-index: 20;
    transform: translateX(-50%); display: flex; gap: 12px;
}
.carousel-indicators-hero .dot {
    width: 12px; height: 12px; background: rgba(255,255,255,0.3);
    border-radius: 50%; cursor: pointer; transition: 0.3s;
}
.carousel-indicators-hero .dot.active {
    background: var(--primary); transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary);
}

/* --- RESPONSIVO (MOBILE) --- */
@media (max-width: 992px) {
    .hero-immersive { height: auto; padding: 100px 0 60px; align-items: flex-start; }
    .hero-card-glass {
        padding: 30px;
        background: rgba(20, 20, 20, 0.85); /* Mais escuro no mobile para leitura */
        backdrop-filter: blur(10px);
        margin: 0 15px; /* Margem lateral */
        border-radius: 20px;
    }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    /* Botões um embaixo do outro no celular */
    .hero-buttons { flex-direction: column; gap: 15px; }
    .btn-lg { width: 100%; justify-content: center; }
    /* Esconde bolinhas no mobile para limpar */
    .carousel-indicators-hero { display: none; }
}

/* --- NOVA HERO IMERSIVA --- */
.hero-immersive {
    position: relative;
    height: 90vh; /* Ocupa 90% da altura da tela */
    min-height: 600px; /* Altura mínima para não esmagar */
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -35px; /* Compensa a status bar para colar no topo */
}

/* 1. Carrossel de Fundo */
.hero-carousel-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.slide-img-bg {
    width: 100%; height: 100%;
    object-fit: cover; /* Cobre tudo sem distorcer */
    /* Efeito de Zoom lento (Ken Burns) */
    animation: zoomEffect 20s infinite alternate;
}
@keyframes zoomEffect {
    from { transform: scale(1); } to { transform: scale(1.1); }
}
/* Máscara Escura (Essencial para ler o texto) */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(5,5,5,0.9) 30%, rgba(5,5,5,0.6) 100%);
    z-index: 1;
}

/* 2. Conteúdo Flutuante */
.hero-container-floating {
    position: relative;
    z-index: 10; /* Fica na frente de tudo */
    height: 100%;
    display: flex;
    align-items: center; /* Centraliza verticalmente */
}

.hero-card-glass {
    background: rgba(20, 20, 20, 0.7); /* Vidro mais escuro */
    backdrop-filter: blur(20px); /* Desfoque forte no fundo */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary); /* Detalhe verde neon */
    padding: 50px;
    border-radius: 24px;
    max-width: 650px; /* Largura máxima do card */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Títulos e Textos */
.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

/* CORREÇÃO DO TYPEWRITER (Cursor não quebra) */
.typewriter-wrapper {
    display: inline-block; /* Garante que fiquem juntos */
    white-space: nowrap; /* Impede quebra de linha entre texto e cursor */
}
#typewriter {
    display: inline; /* Garante que é texto corrido */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Botões Grandes */
.hero-buttons { display: flex; gap: 20px; }
.btn-lg { padding: 15px 35px; font-size: 1.1rem; }

/* Indicadores (Bolinhas) */
.carousel-indicators-hero {
    position: absolute; bottom: 30px; left: 50%; z-index: 20;
    transform: translateX(-50%); display: flex; gap: 12px;
}
.carousel-indicators-hero .dot {
    width: 12px; height: 12px; background: rgba(255,255,255,0.3);
    border-radius: 50%; cursor: pointer; transition: 0.3s;
}
.carousel-indicators-hero .dot.active {
    background: var(--primary); transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary);
}

/* --- RESPONSIVO (MOBILE) --- */
@media (max-width: 992px) {
    .hero-immersive { height: auto; padding: 100px 0 60px; align-items: flex-start; }
    .hero-card-glass {
        padding: 30px;
        background: rgba(20, 20, 20, 0.85); /* Mais escuro no mobile para leitura */
        backdrop-filter: blur(10px);
        margin: 0 15px; /* Margem lateral */
        border-radius: 20px;
    }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    /* Botões um embaixo do outro no celular */
    .hero-buttons { flex-direction: column; gap: 15px; }
    .btn-lg { width: 100%; justify-content: center; }
    /* Esconde bolinhas no mobile para limpar */
    .carousel-indicators-hero { display: none; }
}