/* PALETA DE CORES ATUALIZADA */
:root {
    --cor-primaria: #00238C; 
    --cor-secundaria: #0036D9;
    --cor-destaque: #00B22D; /* Verde Destaque Atualizado */
    --cor-destaque-hover: #009927; /* Verde Escuro para Hover */
    --texto-escuro: #1E293B; 
    --texto-suave: #475569; 
    --texto-claro: #FFFFFF;
    --bg-principal: #F8FAFC; 
    --bg-cards: #FFFFFF;
    --sombra-card: rgba(0, 122, 255, 0.08);
    --sombra-card-hover: rgba(0, 122, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-principal);
    color: var(--texto-escuro);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* SISTEMA DE ANIMAÇÕES AO SCROLL (GERAL) */
.scroll-anim {
    opacity: 0;
    transform: translateY(70px); /* Padrão: de baixo para cima */
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scroll-anim.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ANIMAÇÃO ESPECÍFICA PARA A SEÇÃO HERO (DIREITA PARA A ESQUERDA) */
.hero .scroll-anim {
    transform: translateX(80px); /* Inicia 80px à direita */
}
.hero .scroll-anim.is-visible {
    transform: translateX(0); /* Move para a esquerda até a posição 0 */
}

/* DELAYS EM CASCATA */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* NAVEGAÇÃO E HEADER CLARO */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 102px;
    width: auto;
    object-fit: contain;
    display: block;
}

nav a {
    color: var(--texto-escuro);
    text-decoration: none;
    margin: 0 18px;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--cor-primaria);
}

/* BOTÃO SMALL */
.btn-cta-sm {
    background-color: var(--cor-destaque);
    color: var(--texto-claro);
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}
.btn-cta-sm:hover {
    background-color: var(--cor-destaque-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* SEÇÃO HERO COM VÍDEO 100% E CAMADAS CORRETAS */
.hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 180px 5% 120px;
    overflow: hidden;
}

/* VÍDEO DE FUNDO 100% WIDTH E HEIGHT */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* OVERLAY PARA CONTRASTE DOS TEXTOS */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 23, 90, 0.5); /* Sobreposição leve para legibilidade */
    z-index: 2;
    pointer-events: none;
}

/* CONTAINER DOS TEXTOS E BOTÕES GARANTINDO QUE FIQUEM EM CIMA DO VÍDEO */
.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    max-width: 1100px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--texto-claro);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero h1 span.highlight {
    color: #E0F2FE;
}
.hero p {
    font-size: 1.35rem;
    max-width: 750px;
    margin-bottom: 45px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* BOTÃO LARGE */
.btn-cta-lg {
    background-color: var(--cor-destaque);
    color: var(--texto-claro);
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}
.btn-cta-lg:hover {
    background-color: var(--cor-destaque-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* BARRA DE CONFIANÇA */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    padding: 50px 5%;
    background: var(--bg-cards);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    z-index: 10;
}
.trust-item h4 {
    font-size: 2.8rem;
    color: var(--cor-primaria);
    margin-bottom: 5px;
    font-weight: 800;
}
.trust-item p {
    font-size: 1rem;
    color: var(--texto-suave);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* SEÇÃO DE PRODUTOS */
.produtos {
    padding: 120px 5%;
    background: var(--bg-principal);
}
.section-header {
    text-align: center;
    margin-bottom: 70px;
}
.section-header h2 {
    font-size: 3.2rem;
    color: var(--texto-escuro);
    font-weight: 800;
}
.section-header h2 span {
    color: var(--cor-primaria);
}
.section-header p {
    color: var(--texto-suave);
    font-size: 1.25rem;
    margin-top: 15px;
    max-width: 700px;
    margin-inline: auto;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
}
.card {
    background: var(--bg-cards);
    border: none;
    border-radius: 20px;
    padding: 45px 35px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px var(--sombra-card);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--cor-secundaria);
}
.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px var(--sombra-card-hover);
    border-bottom-color: var(--cor-primaria);
}
.tag {
    background: rgba(45, 0, 178, 0.1);
    color: var(--cor-primaria);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    margin-bottom: 20px;
}
.tag.alerta { background: rgba(0, 178, 45, 0.1); color: var(--cor-destaque); }
.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--texto-escuro);
    font-weight: 800;
}
.card p {
    color: var(--texto-suave);
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 1.1rem;
}
.vantagens-titulo {
    font-size: 0.95rem;
    color: var(--cor-primaria);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 800;
}
.card ul {
    list-style-type: none;
}
.card ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    font-size: 1rem;
    color: var(--texto-escuro);
    font-weight: 500;
}
.card ul li::before {
    content: '✔';
    color: var(--cor-secundaria);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* TECNOLOGIA E SEGURANÇA (SVG ALTA PERFORMANCE ANIMADO) */
@keyframes tech-bg-move {
    0% { background-position: 0 0, center; }
    100% { background-position: 400px 400px, center; }
}

.tecnologia {
    padding: 100px 5%;
    background-color: var(--cor-primaria);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1.5'%3E%3Cpath d='M0,100 L400,100 M0,200 L400,200 M0,300 L400,300 M100,0 L100,400 M200,0 L200,400 M300,0 L300,400' stroke-dasharray='4 8'/%3E%3Cpath d='M50,50 L150,50 L150,150 M250,250 L350,250 L350,350' stroke='rgba(255,255,255,0.2)' stroke-width='2'/%3E%3Ccircle cx='150' cy='150' r='5' fill='rgba(255,255,255,0.5)'/%3E%3Ccircle cx='350' cy='350' r='5' fill='rgba(255,255,255,0.5)'/%3E%3Cpath d='M150,150 L200,200 M350,350 L400,400' stroke='rgba(0,178,45,0.5)' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--cor-secundaria) 0%, var(--cor-primaria) 100%);
    background-size: 400px 400px, cover;
    animation: tech-bg-move 12s linear infinite;
    text-align: center;
    color: var(--texto-claro);
    position: relative;
}

.tecnologia::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(45, 0, 178, 0.5) 100%);
    pointer-events: none;
}

.tecnologia > * {
    position: relative;
    z-index: 1;
}

.tecnologia .section-header h2, .tecnologia .section-header p {
    color: var(--texto-claro);
}
.tecnologia .section-header h2 span {
    color: #E0F2FE;
}

.tec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
}
.tec-item {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}
.tec-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
}
.tec-item h4 {
    color: var(--texto-claro);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}
.tec-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* FRANQUEADO */
.franqueado {
    padding: 120px 5%;
    background: #0B1121;
    position: relative;
    overflow: hidden;
}

.franqueado::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: var(--cor-primaria);
    filter: blur(180px);
    opacity: 0.3;
    top: -200px;
    right: -200px;
    border-radius: 50%;
    pointer-events: none;
}

.franqueado-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.franqueado-texto {
    flex: 1;
    text-align: left;
}

.franqueado-texto h2 {
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.franqueado-texto h2 span {
    color: var(--cor-destaque);
}

.franqueado-texto p {
    font-size: 1.25rem;
    color: #94A3B8;
    margin-bottom: 45px;
    max-width: 500px;
}

.franqueado-beneficios {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.beneficio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 35px 30px;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    transition: all 0.4s ease;
}

.beneficio-card:hover {
    transform: translateX(-15px);
    border-color: var(--cor-destaque);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.beneficio-icon {
    background: rgba(0, 178, 45, 0.15);
    color: var(--cor-destaque);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    border: 1px solid rgba(0, 178, 45, 0.3);
}

.beneficio-content h4 {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.beneficio-content p {
    color: #94A3B8;
    font-size: 1rem;
    line-height: 1.6;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 50px 20px;
    background: #F1F5F9;
    color: var(--texto-suave);
    font-size: 1rem;
    font-weight: 500;
}
footer span {
    color: var(--cor-primaria);
    font-weight: 800;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.8rem; }
    .franqueado-texto h2 { font-size: 3rem; }
}

@media (max-width: 992px) {
    .franqueado-container {
        flex-direction: column;
        text-align: center;
    }
    .franqueado-texto {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .beneficio-card {
        text-align: left;
    }
    .beneficio-card:hover {
        transform: translateY(-10px) translateX(0);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
        position: relative;
    }
    nav {
        margin: 20px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    nav a { margin: 0; font-size: 1rem; }

    .btn-cta-sm { width: 100%; text-align: center; }

    .hero { padding: 80px 5% 100px; min-height: auto; }
    .hero h1 { font-size: 2.6rem; }
    .hero p { font-size: 1.15rem; }

    .trust-bar { flex-direction: column; gap: 30px; text-align: center; }
    .section-header h2 { font-size: 2.6rem; }
    .franqueado-texto h2 { font-size: 2.5rem; }

    .tec-grid, .grid-cards {
        grid-template-columns: 1fr;
    }
}