:root {
    --primary: #8A4FFF;
    --secondary: #CCFF00;
    --bg: #1D1D1D;
    --card-bg: #252525;
    --text: #F4F4F4;
    --color-kodos-green: #00ff87;
    --color-kodos-dark: #0f172a;
    
    --absolute-white: #FFFFFF;
    --absolute-dark: #1D1D1D;
    --whatsapp-color: #25D366;
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.9);
    --overlay-hero: rgba(0, 0, 0, 0.6);
    --overlay-parallax: rgba(0, 0, 0, 0.7);

    --nav-bg: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0.85) 80%, rgba(0,0,0,0.4) 100%);
    --border: #333;
}

.light-mode {
    --bg: var(--absolute-white);
    --card-bg: #F0F0F0;
    --text: var(--absolute-dark);
    --nav-bg: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.4) 40%, rgba(255,255,255,0.98) 55%, rgba(255,255,255,0.98) 95%, rgba(255,255,255,0.3) 100%);
    --border: #DDD;
}

.icon-moon { color: var(--absolute-white); } /* Lua branca (Ativa) */
.icon-sun { color: rgba(255, 255, 255, 0.3); } /* Sol apagado (Inativo) */
.light-mode .icon-moon { color: rgba(0, 0, 0, 0.3); } /* Lua apagada */
.light-mode .icon-sun { color: var(--primary); } /* Sol roxo (Ativo) */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 6.25rem;
}

body { background-color: var(--bg); color: var(--text); transition: 0.3s; overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: auto; }

 /*--------*/
/* Navbar */
#navbar { 
    background: var(--nav-bg); 
    padding: 1rem 0;
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid var(--border); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.logo-nav { height: 65px; }
#navbar ul { display: flex; list-style: none; align-items: center; }
/* Links do Menu */
#navbar ul li a { 
    color: var(--text); 
    text-decoration: none; 
    margin-left: 1.25rem;
    font-weight: 600; 
    transition: 0.3s; 
    position: relative;
}

#navbar ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0; /* Começa com tamanho 0 */
    height: 1px; /* Espessura da linha */
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s ease-in-out;
}

#navbar ul li a:hover::after,
#navbar ul li a.active::after {
    width: 100%;
}


#navbar ul li a.active { 
    color: var(--primary); 
}

#theme-toggle { 
    background: var(--primary); 
    color: var(--absolute-white);
    border: none; 
    padding: 0.625rem; 
    border-radius: 50%; 
    cursor: pointer; 
    margin-left: 1.25rem; 
    width: 2.5rem; 
    height: 2.5rem; 
}


 /*------------------*/
/* Sanduiche mobile */
.menu-float { 
    position: fixed; 
    bottom: 6rem;
    right: 2.2rem; 
    background: var(--primary); 
    color: var(--absolute-white); 
    width: 3rem; 
    height: 3rem; 
    border-radius: 50%; 
    display: none; /* Fica escondido no PC */
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.mobile-theme-item { 
    display: flex; 
    align-items: center; 
    justify-content: center; /* Centraliza perfeitamente o toggle */
    margin-top: 2rem; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 2rem; 
}

.theme-label { 
    color: var(--absolute-white); 
    font-size: 1.2rem; 
    font-weight: bold; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* O "trilho" do switch */
.theme-switch-wrapper { 
    position: relative; 
    width: 80px; 
    height: 40px; 
    background: rgba(0, 0, 0, 0.5); 
    border-radius: 30px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 10px; 
    cursor: pointer; 
    border: 1px solid var(--border); 
    transition: background 0.3s;
}

.theme-switch-wrapper i { 
    z-index: 1; 
    font-size: 1.2rem; 
    transition: 0.3s;
}

.theme-switch-indicator { 
    position: absolute; 
    top: 3px; 
    left: 4px; 
    width: 32px; 
    height: 32px; 
    background: var(--absolute-dark); /* Fundo escuro por padrão */
    border-radius: 50%; 
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), background 0.3s; 
    z-index: 0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.light-mode .theme-switch-indicator { 
    transform: translateX(40px); 
    background: var(--absolute-white);
}

.light-mode .theme-switch-wrapper {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.63);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-overlay.active {
    transform: translateY(0); 
}

.close-menu {
    position: absolute;
    top: auto; 
    bottom: 6rem; 
    right: 2.2rem;
    background: var(--primary);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--absolute-white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-light);
}

/* Links do Menu Overlay */
.mobile-nav { list-style: none; text-align: center; }
.mobile-nav li { margin: 2rem 0; }
.mobile-nav a {
    color: var(--absolute-white);
    font-size: 2rem;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.mobile-nav a:hover { color: var(--secondary); }

/* Esconder navbar normal e mostrar sanduíche apenas no celular */
@media (max-width: 768px) {
    #navbar ul { display: none; } /* Esconde links e botão de tema originais */
    .menu-float { display: flex; } /* Revela o botão sanduíche flutuante */
    .logo-nav { height: 50px; } /* Ajuste fino do logo para mobile */
}


 /*----------------*/
/* Hero Video Fix */
.hero { 
    position: relative; 
    height: 100vh; 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}
.hero-video { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    z-index: -1; 
}
.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--overlay-hero);
    z-index: 0; 
}
.hero-content { 
    position: relative; 
    z-index: 1; 
    text-align: center; 
    color: var(--absolute-white);
}
.hero-content h1 { 
    font-size: 4rem; 
    color: var(--secondary); 
    margin-bottom: 3.5rem; 
    line-height: 1.2;
    padding: 0 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}
.apps-section {
    padding-bottom: 4rem;
}

 /*------------*/
/* Ecosistema */
.section-title { 
    text-align: center; 
    font-size: 2.5rem;
    padding: 0 1rem;
    margin: 2rem 0 1rem 0; 
    color: var(--text); 
}
.white-text { color: var(--absolute-white) !important; }

.grid-apps { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; 
    margin-top: 3rem;
}

.card { 
    background: var(--card-bg);
    padding: 2rem; 
    border-radius: 1rem; 
    text-align: center; 
    border-bottom: 4px solid var(--border); 
    transition: 0.3s; 
}
.card:hover { 
    transform: translateY(-0.5rem); 
    border-bottom-color: var(--primary);
}
.card i { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    color: var(--primary);
}
.card p {
    margin-bottom: 1.5rem; 
    line-height: 1.5;
}
.btn-card {
    background: var(--primary);
    color: var(--absolute-white);
    padding: 0.6rem 1.25rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    font-size: 0.875rem;
    transition: 0.3s ease; 
    border: none;
}
.btn-card:hover {
    background: var(--secondary);
    color: var(--absolute-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


 /*------------*/
/* Quem somos */
/* Container de segurança para o conteúdo sobre o parallax */
.relative-z { position: relative; z-index: 1; }

/* Manifesto */
.manifesto { text-align: center; margin-bottom: 4rem; }
.highlight-text { color: var(--secondary); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.manifesto-body { 
    max-width: 800px; 
    margin: 2rem auto; 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: var(--absolute-white); /* No escuro permanece branco */
}

/* Grid de DNA (Missão/Visão/Valores) */
.dna-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 4rem; }

.dna-card {
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px);
    border: 1px solid var(--border); 
    padding: 2.5rem; 
    border-radius: 1.5rem;
    transition: 0.4s;
}

/* Garante ontraste no Modo Claro */
.light-mode .dna-card {
    background: var(--card-bg);
    border-color: var(--border);
}

/* Muda de verde para roxo no modo claro */
.light-mode .dna-card h3 {color: var(--primary);}
 /* Garante que o ícone acompanhe o título */
.light-mode .dna-icon {color: var(--primary);}
/* Opcional: muda o "Bem-vindo à precisão" para roxo também */
.light-mode .highlight-text {color: var(--primary);}

.light-mode .manifesto-body, 
.light-mode .sobre-footer {color: var(--text);}
/* Mantém os rótulos dos valores em roxo para melhor leitura */
.light-mode .val strong {color: var(--primary);}

.dna-card:hover { border-color: var(--primary); background: rgba(138, 79, 255, 0.05); }

.dna-card h3 { color: var(--secondary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.dna-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }

/* Valores em destaque */
.dna-card.full-width { grid-column: 1 / -1; border-left: 4px solid var(--primary); }
.values-flex { display: flex; gap: 2rem; margin-top: 1rem; flex-wrap: wrap; }
.val { flex: 1; min-width: 200px; font-size: 0.95rem; line-height: 1.4; }
.val strong { color: var(--primary); display: block; margin-bottom: 5px; }

.sobre-footer { 
    text-align: center; 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 2rem; 
    border-top: 1px solid var(--border);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--absolute-white); /* No escuro permanece branco */
}

/* Responsividade */
@media (max-width: 768px) {
    .dna-grid { grid-template-columns: 1fr; }
    .values-flex { flex-direction: column; gap: 1.5rem; }
    .hero h1 {font-size: 2.2rem;}
    .section-title {font-size: 1.8rem;}

}

 /*--------*/
/* Planos */ 
.planos-section { padding: 4rem 0; background: var(--bg); }

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Premium maior que o Light */
    gap: 1.5rem;
    align-items: stretch;
}

.plan-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card.highlight {
    border: 2px solid var(--primary);
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(138, 79, 255, 0.1) 100%);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary);
    color: var(--absolute-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.price { margin: 1.5rem 0; }
.old-price { display: block; text-decoration: line-through; color: #888; font-size: 0.9rem; }
.current-price { font-size: 2.5rem; font-weight: 800; color: var(--primary); }

.bonus-box {
    background: rgba(204, 255, 0, 0.1);
    border-left: 4px solid var(--secondary);
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) { .bento-grid { grid-template-columns: 1fr; } }


 /*---------------*/
/* FAQ & Contato */
.accordion-item { 
    background: var(--card-bg); 
    margin-bottom: 0.625rem; 
    border-radius: 0.625rem; 
    border: 1px solid var(--border); /* (Linhas de separação estritas) */
}

.accordion-header { 
    width: 100%; 
    padding: 1.25rem; 
    background: none; 
    border: none; 
    color: var(--text); 
    text-align: left; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    font-weight: bold; 
}

.accordion-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: 0.3s ease; 
}
    .accordion-content p { 
        padding: 1.25rem; 
        color: var(--text); 
    }

#contact-form { max-width: 600px; margin: auto; display: flex; flex-direction: column; gap: 15px; }
    #contact-form input, #contact-form textarea { 
        padding: 1rem; 
        background: var(--card-bg); 
        border: 1px solid var(--border); /* (Borda de input form) */
        color: var(--text); 
        border-radius: 0.5rem; 
    }

.btn-primary { 
    background: var(--primary); 
    color: white; 
    padding: 1rem 2rem; 
    border-radius: 2rem; 
    text-decoration: none; 
    font-weight: bold; 
    border: none; 
    cursor: pointer; 
    display: inline-block;
    transition: 0.3s ease; 
}
    .btn-primary:hover {
        background: var(--secondary);
        color: var(--absolute-dark);
        transform: translateY(-3px);
        box-shadow: 0 4px 15px var(--shadow-light);
    }

/* Botões Flutuantes */
.whatsapp-float { 
    position: fixed; 
    bottom: 2rem; 
    right: 2rem; 
    background: var(--whatsapp-color);
    color: var(--absolute-white);
    width: 3.75rem; 
    height: 3.75rem; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2rem; 
    z-index: 1000; 
    text-decoration: none; 
}
.back-to-top { 
    position: fixed; 
    bottom: 10rem; 
    right: 2.2rem; 
    background: var(--primary); 
    color: var(--absolute-white);
    width: 3rem; 
    height: 3rem; 
    border-radius: 50%; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
    text-decoration: none; 
}


 /*----------------------------------------*/
/* Sistema de notificações (Toast Banner) */


/* Escurece a tela inteira */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.notification-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* O Banner que desliza */
.notification-banner {
    position: fixed;
    top: -6rem; /* Começa escondido lá em cima */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 40rem;
    height: 3.5rem;
    background-color: var(--color-kodos-green);
    color: var(--color-kodos-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 255, 135, 0.3);
    z-index: 9999;
    font-weight: bold;
    font-size: 1rem;
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Efeito elástico/deslizante */
}

.notification-banner.show {
    top: 2rem; /* Posição final na tela */
}

/* Estilo para quando der erro (Fica vermelho) */
.notification-banner.error {
    background-color: #ff4757;
    color: white;
    box-shadow: 0 0.5rem 1.5rem rgba(255, 71, 87, 0.3);
}

/* Botão X com fundo redondo e destacado */
.close-notification {
    position: absolute;
    right: 0.75rem; /* Alinhado à direita */
    width: 2.2rem;
    height: 2.2rem;
    background-color: rgba(15, 23, 42, 0.15); /* Fundo escuro sutil e redondo */
    border: none;
    color: var(--color-kodos-dark);
    font-size: 1.4rem;
    border-radius: 50%; /* Faz o fundo ficar redondo */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 0;
}

/* Efeito ao passar o mouse no X */
.close-notification:hover {
    background-color: var(--color-kodos-dark);
    color: var(--color-kodos-green);
    transform: scale(1.1);
}

/* Ajuste para o banner de erro (X branco no fundo vermelho) */
.notification-banner.error .close-notification {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}