/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --cor-fundo: #0a0a0a;       /* Preto profundo */
    --cor-secundaria: #151515;  /* Cinza muito escuro para cartões */
    --cor-destaque: #D4AF37;    /* Dourado Metálico */
    --cor-texto: #f0f0f0;       /* Branco suave */
    --fonte-titulo: 'Orbitron', sans-serif; /* Fonte Tecnológica */
    --fonte-corpo: 'Roboto', sans-serif;    /* Fonte Leitura */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: var(--fonte-corpo);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- FUNDO TECNOLÓGICO (CIRCUITO + LUZ) --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Desenho da placa de circuito */
    background-image: 
        radial-gradient(var(--cor-destaque) 1px, transparent 1px),
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 50px 50px;
    z-index: -2;
    opacity: 0.5;
}

body::after {
    content: "";
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    /* Feixe de luz passando */
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.0) 40%, rgba(212, 175, 55, 0.05) 50%, rgba(212, 175, 55, 0.0) 60%, transparent);
    z-index: -1;
    animation: conexao-passando 10s linear infinite;
    pointer-events: none;
}

@keyframes conexao-passando {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(50%) rotate(0deg); }
}

/* --- EFEITO DE LINHAS DE CIRCUITO (DADOS TRAFEGANDO) --- */
.linhas-circuito {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.linhas-circuito span {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--cor-destaque), transparent);
    opacity: 0;
}

/* Linhas Individuais */
.linhas-circuito span:nth-child(1) { top: 20%; left: -100%; width: 100%; height: 2px; animation: trafego-horizontal 3s linear infinite; animation-delay: 0s; }
.linhas-circuito span:nth-child(2) { top: 70%; left: -100%; width: 100%; height: 1px; animation: trafego-horizontal 6s linear infinite; animation-delay: 2s; }
.linhas-circuito span:nth-child(3) { top: -100%; left: 10%; width: 2px; height: 100%; background: linear-gradient(180deg, transparent, var(--cor-destaque), transparent); animation: trafego-vertical 4s linear infinite; animation-delay: 1s; }
.linhas-circuito span:nth-child(4) { top: -100%; left: 90%; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, var(--cor-destaque), transparent); animation: trafego-vertical 7s linear infinite; animation-delay: 3s; }

@keyframes trafego-horizontal {
    0% { left: -100%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; }
}

@keyframes trafego-vertical {
    0% { top: -100%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; }
}

/* --- CABEÇALHO --- */
header {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(5px);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px; /* Define a altura da logo para caber no menu */
    width: auto;  /* A largura ajusta-se automaticamente */
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05); /* Leve zoom quando passa o mouse na logo */
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5)); /* Brilho dourado */
}

nav ul { display: flex; gap: 25px; }
nav a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
nav a:hover { color: var(--cor-destaque); text-shadow: 0 0 10px var(--cor-destaque); }

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, transparent 0%, #000000 90%);
}

.hero h1 {
    font-family: var(--fonte-titulo);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero span { color: var(--cor-destaque); text-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }

.btn-cta {
    background-color: transparent;
    color: var(--cor-destaque);
    padding: 15px 35px;
    border-radius: 0;
    font-weight: bold;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--cor-destaque);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-cta:hover {
    background-color: var(--cor-destaque);
    color: #000;
    box-shadow: 0 0 20px var(--cor-destaque);
}

/* --- SEÇÕES --- */
section { padding: 100px 10%; }

h2 {
    font-family: var(--fonte-titulo);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    color: var(--cor-texto);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--cor-destaque);
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--cor-destaque);
}

.section-title-container { text-align: center; }

/* --- CARDS E SOLUÇÕES (VERSÃO FINAL COM VÍDEO) --- */
.grid-solucoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(20, 20, 20, 0.9);
    padding: 0; /* Importante para o vídeo encostar nas bordas */
    border: 1px solid #333;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: var(--cor-destaque);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.2);
    z-index: 10;
}

/* Video Styles */
.video-container {
    width: 100%;
    height: 200px;
    position: relative;
    background-color: #000;
    border-bottom: 1px solid #333;
}

.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s;
    filter: grayscale(80%);
}

.card:hover .video-preview { opacity: 1; filter: grayscale(0%); }

.overlay-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: var(--cor-destaque);
    pointer-events: none;
    transition: 0.3s;
    text-shadow: 0 0 10px black;
}

.card:hover .overlay-play { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }

/* Conteúdo do Card */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 { color: var(--cor-destaque); margin-bottom: 10px; font-family: var(--fonte-titulo); }
.card p { font-size: 0.9rem; color: #ccc; margin-bottom: 20px; }

/* Botão dentro do card */
.btn-demo {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--cor-destaque);
    border: 1px solid var(--cor-destaque);
    padding: 8px 15px;
    border-radius: 4px;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

.card:hover .btn-demo { background-color: var(--cor-destaque); color: #000; }

/* --- PREÇOS --- */
.tabela-precos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.plano {
    background: rgba(20, 20, 20, 0.9);
    padding: 50px 30px;
    border: 1px solid #333;
    width: 300px;
    text-align: center;
    position: relative;
}

.plano.destaque {
    border: 1px solid var(--cor-destaque);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

.plano h3 { font-family: var(--fonte-titulo); font-size: 1.4rem; margin-bottom: 15px; }
.preco { font-size: 2.5rem; color: var(--cor-destaque); font-weight: bold; margin-bottom: 30px; font-family: var(--fonte-titulo); }
.plano ul { text-align: left; margin-bottom: 30px; font-size: 0.95rem; color: #ccc; }
.plano li { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #222; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 50px;
    background-color: #050505;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #555;
}

/* --- WHATSAPP COM PULSO --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    z-index: 1000;
    transition: 0.3s;
    /* Sombra inicial + Animação */
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    animation: none; /* Para de pulsar quando passa o mouse */
}

/* A animação do radar */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); /* A sombra expande e fica transparente */
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- ANIMAÇÕES DE SCROLL (SCROLL REVEAL) --- */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    filter: blur(5px);
}

.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Atraso para elementos em grelha */
.card:nth-child(2) { transition-delay: 200ms; }
.card:nth-child(3) { transition-delay: 400ms; }