/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --primary-blue: #008cff;
    --dark-bg: #000000;
    --card-bg: #111111;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    scroll-behavior: smooth;
    padding-top: 80px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- SISTEMA DE ANIMAÇÃO (VIA JS) --- */
section, 
.solution-card, 
.lp-card, 
footer {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* --- HEADER FIXO --- */
header {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    border-bottom: 1px solid #222;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img { height: 50px; }

nav ul { display: flex; list-style: none; }
nav ul li { margin-right: 30px; }
nav ul li a { 
    text-decoration: none; 
    color: var(--text-light); 
    transition: 0.3s; 
}
nav ul li a:hover { color: var(--primary-blue); }

/* --- BOTÃO HEADER COM GLOW --- */
.btn-top {
    position: relative;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    z-index: 1;
    transition: 0.3s;
    border: 1px solid rgba(0, 140, 255, 0.3);
}

.btn-top::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), #00d4ff, #0044ff, var(--primary-blue));
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    border-radius: 7px;
    animation: move-glow 8s linear infinite;
    opacity: 0.8;
}

@keyframes move-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-top:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-blue);
}

/* --- HERO SECTION --- */
.hero { 
    padding: 100px 0; 
    background: radial-gradient(circle at top right, #001a33, #000); 
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    align-items: center; 
}

h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
.highlight { color: var(--primary-blue); }

.hero-text p { 
    color: var(--text-gray); 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
}

.btn-main { 
    background: var(--primary-blue); 
    color: #fff; 
    padding: 15px 30px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.3s; 
    display: inline-block;
}

.btn-main:hover { 
    background: #005fbd; 
    box-shadow: 0 0 20px var(--primary-blue); 
}

/* --- LOGO COM ANIMAÇÃO FADE-IN + DELAY (WEB/DESKTOP) --- */
#logoprincipal img { 
    width: 60%; 
    max-width: 450px; 
    display: block; 
    margin-left: auto; 
    opacity: 0; 
    animation: surgirLogo 3s ease-out forwards !important;
    animation-delay: 1s !important; /* Aguarda 2 segundos antes de começar */
}

/* --- SOLUÇÕES E LANDING PAGES --- */
.solutions, .lp-section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2rem; }

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

.solution-card, .lp-card { 
    background: var(--card-bg); 
    padding: 40px; 
    border-radius: 10px; 
    border-left: 4px solid var(--primary-blue); 
    transition: 0.3s; 
}

.solution-card:hover { transform: translateY(-10px); }

.lp-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
}

.lp-card { 
    border-left: none; 
    border-bottom: 4px solid var(--primary-blue); 
}

/* --- FOOTER CENTRALIZADO --- */
footer { 
    background-color: #000; 
    padding: 60px 0 20px; 
    border-top: 1px solid #222; 
    text-align: center; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 40px; 
    justify-items: center; 
}

footer h4 { margin-bottom: 20px; color: var(--primary-blue); }

footer p, footer a { 
    display: block; 
    color: var(--text-gray); 
    text-decoration: none; 
    margin-bottom: 10px; 
}

.footer-link-email:hover { 
    color: var(--primary-blue); 
}

.social-icons { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
}

.social-icons a { 
    color: var(--text-light); 
    font-size: 1.8rem; 
    transition: 0.3s; 
}

/* AJUSTE FINAL DO RODAPÉ */
.footer-bottom { 
    text-align: center; 
    padding-top: 20px; 
    border-top: 1px solid #111; 
    color: #555; 
    font-size: 0.75rem; 
}

.footer-studio-link {
    color: #555 !important; 
    text-decoration: underline !important;
    display: inline !important;
}

.footer-studio-link:hover {
    color: var(--primary-blue) !important;
}

/* --- KEYFRAMES DA ANIMAÇÃO DO LOGO --- */
@keyframes surgirLogo {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    body { padding-top: 140px; }
    .nav-container { flex-direction: column; gap: 15px; }
    .desktop-nav { display: none; }

    .header-cta { 
        width: 100%; 
        padding: 0 5%; 
        display: flex;
        justify-content: center;
    }

    .btn-top { 
        display: block; 
        width: 100%; 
        text-align: center;
        padding: 12px 0;
    }
    
    .hero-grid, .lp-grid, .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }

    .hero-text h1 {
        font-size: 2.2rem;
        max-width: 90%;
        margin: 0 auto 20px auto;
    }

    .hero-text p {
        max-width: 85%;
        margin: 0 auto 30px auto;
    }

    /* LOGO RESPONSIVO COM DELAY */
    #logoprincipal img { 
        margin: 30px auto 0; 
        width: 70% !important; 
        max-width: none;
        opacity: 0; 
        animation: surgirLogo 3s ease-out forwards !important;
        animation-delay: 2s !important; /* Aguarda 2 segundos antes de começar */
    }
}