/* =========================================
   1. VARIÁVEIS GLOBAIS E RESET
   ========================================= */
:root {
    --bg-color: #050505;
    /* Preto Profundo */
    --grid-line: #1a1a1a;
    /* Cor da Linha da Grade */
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #00ff88;
    /* Verde Neon/Tech */
    --accent-dark: #006B47;
    /* Verde Institucional Z3 */
    --accent-glow: rgba(0, 255, 136, 0.2);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: #333;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    scroll-behavior: smooth;
    /* Rolagem suave ao clicar em âncoras */
}

body {
    background-color: transparent;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* =========================================
   2. EFEITOS DE FUNDO (BACKGROUND)
   ========================================= */

/* 2. O Brilho Verde no Topo */
.green-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: -1;
    pointer-events: none;
}

/* --- FUNDO DINÂMICO (PARTICLES) --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #050505;
    /* Cor de fundo base (Preto) */
    z-index: -10;
    /* Garante que fique atrás de absolutamente tudo */
}

/* Se quiser manter o brilho verde no topo, mantenha a classe .green-glow */
/* Se achar que ficou muita informação, pode remover a .green-glow */

/* =========================================
   3. TICKER (FAIXA EM MOVIMENTO)
   ========================================= */
.ticker-wrapper {
    width: 100%;
    height: 40px;
    background: radial-gradient(circle, #006B47 0%, #004F34 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2000;
    /* Acima do menu */
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-ticker 30s linear infinite;
}

.ticker-content {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-right: 50px;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   4. CABEÇALHO (HEADER) E NAVEGAÇÃO
   ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;

    /* Configuração Sticky (Gruda ao rolar) */
    position: sticky;
    top: 20px;
    /* Fica 10px abaixo do topo da janela */
    margin: 0 auto;
    /* Centraliza horizontalmente */
    z-index: 1000;

    /* Estilo "Pílula de Vidro" */
    width: 90%;
    max-width: 1280px;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    /* Ajustado para caber bem na pílula */
    width: auto;
    display: block;
}

/* Menu Desktop */
nav.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #aaaaaa;
    font-size: 0.9rem;
    transition: color 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a:hover {
    color: #ffffff;
}

.arrow-down {
    font-size: 0.6rem;
    opacity: 0.7;
}

/* Botão CTA do Header */
.btn-create-account {
    text-decoration: none;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
}

.btn-create-account:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* Ícone Menu Mobile (Escondido no Desktop) */
.mobile-menu-icon {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.4s;
}

/* =========================================
   5. SEÇÃO HERO
   ========================================= */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text img" "btn img";
    align-items: center;
    padding: 80px 8%;
    min-height: 80vh;
    /* Ocupa boa parte da tela */
    gap: 20px;
}

.hero-text-group {
    grid-area: text;
    max-width: 600px;
}

.hero-image {
    grid-area: img;
    display: flex;
    justify-content: flex-end;
}

.hero-btn-container {
    grid-area: btn;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: -20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.text-highlight {
    color: #cccccc;
    /* Ou use var(--accent) se quiser verde */
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 480px;
    line-height: 1.6;
}

.hero-graph-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    border: 1px solid #222;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    display: inline-block;
    background: radial-gradient(circle, #006B47 0%, #004F34 100%);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent);
}

/* =========================================
   6. CARDS E SOLUÇÕES
   ========================================= */
.audience-section,
.solutions {
    padding: 100px 8%;
    text-align: center;
    background-color: #080808;
}

.audience-header h2,
.solutions-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 60px;
}

.audience-grid,
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Estilo Unificado dos Cards */
.glass-card-audience,
.solution-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.glass-card-audience:hover,
.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.icon-glow {
    margin-bottom: 25px;
    color: var(--accent-dark);
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 5px var(--accent-dark));
}

.glass-card-audience h3,
.solution-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.glass-card-audience p,
.solution-card p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
}

.audience-action {
    margin-top: 50px;
}

.btn-pill {
    display: inline-block;
    background-color: #006B47;
    color: #fff;
    padding: 12px 40px;
    border-radius: 50px;
    border: 1px solid var(--accent-dark);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-pill:hover {
    background-color: var(--accent-dark);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* =========================================
   7. STACK TECNOLÓGICO
   ========================================= */
.tech-section {
    padding: 80px 8%;
    text-align: center;
    border-top: 1px solid #111;
}

.tech-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tech-header p {
    color: var(--accent-dark);
    margin-bottom: 50px;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tech-card {
    background: #0e0e0e;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px 30px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.tech-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.tech-icon {
    width: 40px;
    height: 40px;
    color: #555;
    transition: color 0.3s;
}

.tech-card:hover .tech-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent));
}

/* =========================================
   8. CONTATO E FOOTER
   ========================================= */
.contact-section {
    padding: 100px 8%;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at 50% 100%, #111 0%, var(--bg-color) 70%);
}

.contact-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
}

.btn-submit {
    background-color: var(--accent-dark);
    color: #fff;
    border: none;
    padding: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: var(--accent);
    color: #000;
}

footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.footer-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0;
}

.social-links a {
    color: #888;
    margin: 0 10px;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent);
}

html {
    scroll-behavior: smooth;
}

/* Container do Formulário com efeito de Vidro */
.contact-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    /* Novo estilo Vidro */
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Inputs mais modernos */
input,
select,
textarea {
    width: 100%;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fundo mais escuro */
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

/* O "Pulo do Gato": Brilho Verde ao clicar (Foco) */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    /* Verde da marca */
    background-color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    /* Glow suave */
    transform: scale(1.01);
    /* Leve aumento */
}

.btn-submit {
    width: 100%;
    background: linear-gradient(45deg, #006241, #00ff88);
    /* Gradiente */
    color: #000;
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

.btn-submit:hover {
    transform: translateY(-3px);
    /* Sobe um pouco */
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    /* Sombra aumenta */
    filter: brightness(1.1);
    /* Fica mais brilhante */
}

/* --- MENSAGEM DE SUCESSO --- */
.success-box {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--accent);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--accent);
}

.success-box h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.success-box p {
    color: #888;
    margin-bottom: 20px;
}

.btn-reset {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
}

.btn-reset:hover {
    border-color: #fff;
    color: #fff;
}

/* --- ANIMAÇÃO DE ENTRADA (SCROLL REVEAL) --- */

/* Estado inicial: Invisível e deslocado para baixo */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    /* Empurrado 30px para baixo */
    transition: all 0.8s ease;
    /* Tempo da animação (0.8s) */
}

/* Estado final: Visível e na posição original */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- CUSTOM SCROLLBAR (Chrome, Edge, Safari) --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    /* Fundo da barra */
}

::-webkit-scrollbar-thumb {
    background: #333;
    /* A barra em si */
    border-radius: 5px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    /* Fica verde ao passar o mouse */
}

/* --- COR DE SELEÇÃO DE TEXTO --- */
::selection {
    background-color: var(--accent);
    /* Verde */
    color: #000;
    /* Texto preto */
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 80px 10%;
    background-color: #050505;
    text-align: center;
}

.faq-header h2 {
    margin-bottom: 40px;
    color: #fff;
    font-size: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.05);
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    list-style: none;
    /* Remove a setinha padrão feia */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cria um "+" personalizado */
summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: 0.3s;
}

details[open] summary::after {
    transform: rotate(45deg);
    /* Vira um X */
}

.faq-item p {
    padding: 0 20px 20px;
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   ESTILOS Z3 DATALAB (Blog/Projetos)
   ========================================= */

.lab-hero {
    padding: 150px 8% 60px;
    text-align: center;
}

.lab-header h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.lab-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.lab-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--accent);
    margin-bottom: 20px;
    display: inline-block;
}

/* Grid do Lab */
.lab-grid-section {
    padding: 0 8% 100px;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Card do Projeto */
.lab-card {
    background: rgba(15, 15, 15, 0.6);
    /* Mais escuro que os outros */
    border: 1px solid #333;
    border-radius: 24px;
    /* Mais arredondado estilo Google Labs */
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lab-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(30, 30, 30, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.lab-card-content {
    padding: 40px;
}

.lab-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #fff;
    background: #222;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #444;
}

.lab-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.3;
}

.lab-card p {
    color: #999;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.lab-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.lab-link:hover {
    text-decoration: underline;
    color: #fff;
}

/* CTA Final do Lab */
.lab-cta {
    text-align: center;
    padding: 80px 8%;
    border-top: 1px solid #222;
    background: linear-gradient(to top, rgba(0, 255, 136, 0.05), transparent);
}

.lab-cta h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #fff;
}

/* =========================================
   9. MOBILE RESPONSIVO (FINAL E LIMPO)
   ========================================= */
@media (max-width: 768px) {

    /* HEADER */
    header {
        width: 95%;
        /* Um pouco mais largo no celular */
        padding: 10px 20px;
    }

    /* Ícone Hamburguer Aparece */
    .mobile-menu-icon {
        display: block;
        z-index: 1001;
    }

    /* Menu Deslizante */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        /* Escondido à esquerda */
        width: 80%;
        /* Ocupa 80% da tela */
        height: 100vh;
        background-color: #000;
        border-right: 1px solid #333;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: 0.3s ease-in-out;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    }

    /* Classe ativada pelo JS */
    .nav-menu.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 30px;
    }

    nav a {
        font-size: 1.2rem;
        color: #fff;
    }

    /* Animação do Ícone X */
    .mobile-menu-icon.open .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-icon.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-icon.open .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* HERO MOBILE */
    .hero {
        display: flex;
        flex-direction: column;
        padding: 40px 5%;
        text-align: left;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        justify-content: center;
        margin-bottom: 20px;
    }

    .hero-btn-container {
        width: 100%;
        justify-content: center;
    }

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

    /* HERO MOBILE */
    .hero {
        display: flex;
        flex-direction: column;
        padding: 40px 5%;
        text-align: left;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        justify-content: center;
        margin-bottom: 20px;
    }

    .hero-btn-container {
        width: 100%;
        justify-content: center;
    }

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

    /* Responsivo Lab */
    .lab-header h1 {
        font-size: 3rem;
    }

    .lab-grid {
        grid-template-columns: 1fr;
    }

    .lab-card-content {
        padding: 30px;
    }
}