/* ==========================================================================
   LANDING PAGE - DARK NEON THEME (CORREÇÃO DEFINITIVA)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&display=swap');

:root {
    --lp-bg: #0a0a12;
    --lp-card-bg: #151521;
    --lp-text-main: #ffffff;
    --lp-text-sec: #9ca3af;
    --lp-primary: #3b82f6;
    --lp-secondary: #f59e0b;
    --lp-accent: #10b981;
    --lp-neon-blue: rgba(59, 130, 246, 0.7);
    --lp-neon-orange: rgba(245, 158, 11, 0.7);
    --lp-grad-blue: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --lp-grad-orange: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --lp-font-main: 'Outfit', sans-serif;
    --lp-font-display: 's', sans-serif; 
}

/* --- RESET GLOBAL (CRÍTICO PARA NÃO VAZAR) --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Garante que nada saia lateralmente */
    scroll-behavior: smooth;
    background-color: var(--lp-bg);
    font-family: var(--lp-font-main);
    color: var(--lp-text-main);
}

/* --- Typography --- */
h1, h2, h3 { font-family: var(--lp-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.gradient-text-blue { background: var(--lp-grad-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 20px var(--lp-neon-blue); }
.gradient-text-orange { background: var(--lp-grad-orange); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 20px var(--lp-neon-orange); }

/* --- Header --- */
.lp-header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 15px 5%; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.4s ease; background: rgba(10, 10, 18, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo-img { height: 50px; width: auto; filter: drop-shadow(0 0 5px var(--lp-neon-blue)); }

.lp-nav-links { display: flex; gap: 20px; }
.lp-nav-link {
    color: var(--lp-text-main); text-decoration: none; font-weight: 600; font-size: 0.85rem; text-transform: uppercase;
    transition: color 0.3s; position: relative;
}
.lp-nav-link:hover { color: var(--lp-primary); }

.lp-auth-buttons { display: flex; gap: 10px; align-items: center; }
.btn-login { color: white; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
.btn-register {
    background: var(--lp-grad-blue); color: white; text-decoration: none; padding: 8px 20px;
    border-radius: 30px; font-weight: 600; text-transform: uppercase; font-size: 0.9rem;
    box-shadow: 0 0 15px var(--lp-neon-blue); transition: 0.3s; white-space: nowrap;
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--lp-neon-blue); }
.mobile-menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section (CORRIGIDO) --- */
.lp-hero {
    position: relative;
    min-height: 100vh; /* Garante que ocupe a tela toda */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px;
    overflow: hidden;
    flex-wrap: wrap; /* Permite quebrar linha no mobile */
    gap: 40px;
}

/* Fundo da Hero */
.hero-bg-parallax {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Imagem de alta qualidade */
    background-image: url('https://images.unsplash.com/photo-1585747860715-2ba37e788b70?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: 0; /* Fica na base */
    filter: brightness(0.5); /* Aumentei o brilho para aparecer mais */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Gradiente para garantir leitura do texto */
    background: linear-gradient(90deg, rgba(10, 10, 18, 0.95) 0%, rgba(10, 10, 18, 0.7) 50%, rgba(10, 10, 18, 0.9) 100%);
    z-index: 1; /* Fica acima da imagem */
}

/* Conteúdo do Hero */
.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    position: relative;
    z-index: 2; /* Fica acima do overlay */
}

.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 10px; }
.hero-subheadline { font-size: clamp(1.2rem, 3vw, 1.8rem); color: white; margin-bottom: 20px; font-weight: 700; opacity: 0.9; }
.hero-subtitle { font-size: 1.1rem; color: var(--lp-text-sec); margin-bottom: 40px; line-height: 1.6; font-family: var(--lp-font-main); }

.btn-hero {
    display: inline-block; padding: 16px 40px; background: var(--lp-grad-orange); color: white;
    text-decoration: none; font-family: var(--lp-font-display); font-weight: 700;
    border-radius: 50px; box-shadow: 0 0 25px var(--lp-neon-orange); transition: 0.3s;
    text-align: center;
    font-size: 20px;
}
.btn-hero:hover { transform: scale(1.05); box-shadow: 0 0 40px var(--lp-neon-orange); }

/* Carousel Visual (Direita) */
.hero-visual {
    flex: 1;
    min-width: 600px;
    max-width: 1000px; /* Aumentei um pouco para ficar mais bonito */
    width: 100%; 
    
    /* A MÁGICA ACONTECE AQUI: */
    aspect-ratio: 16/9; /* Força o container a ser retangular igual uma TV/Monitor */
    height: auto; /* Remove altura fixa para respeitar a proporção acima */
    
    position: relative;
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 2;
    margin: 0 auto; /* Centraliza */
}

.neon-circle {
    position: absolute; 
    width: 110%; /* Um pouco maior que a caixa */
    height: 110%; 
    border-radius: 20px; /* Muda de círculo para retângulo arredondado */
    
    /* Ajuste do brilho para ficar atrás do retângulo */
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(0,0,0,0) 70%);
    
    animation: pulse 4s infinite; 
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-carousel {
    width: 100%; height: 100%; position: relative; border-radius: 20px;
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden; z-index: 1; background: #000;
}

.carousel-img {
    width: 100%;
    height: 100%;
    
    /* Garante que a imagem inteira apareça, adicionando bordas se necessário, mas sem cortar */
    object-fit: contain; 
    
    /* Cor de fundo caso a imagem seja menor que a caixa (mesma cor do card) */
    background-color: #151521; 
    
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 20px; /* Arredonda a imagem junto com a borda */
}

.carousel-img.active { opacity: 1; }

/* --- Sections Common --- */
.lp-features, .lp-testimonials, .lp-pricing, .lp-cta-final { padding: 100px 5%; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 2.5rem; margin-bottom: 15px; }
.section-subtitle { color: var(--lp-text-sec); font-size: 1.1rem; }

.features-grid, .pricing-grid, .gallery-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
}

.feature-card, .testimonial-card, .pricing-card {
    flex: 1; min-width: 280px; max-width: 380px;
    background: var(--lp-card-bg); padding: 30px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05); text-align: left;
    transition: 0.3s; position: relative;
}

/* Interatividade */
.interactive-card { cursor: pointer; }
.interactive-card:hover, .pricing-card:hover {
    transform: translateY(-10px); border-color: var(--lp-primary); box-shadow: 0 10px 30px rgba(59,130,246,0.15);
}

.icon-box {
    width: 50px; height: 50px; background: rgba(59,130,246,0.1); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    color: var(--lp-primary);
}
.click-hint {
    display: block; margin-top: 15px; font-size: 0.85rem; color: var(--lp-primary);
    font-weight: 600; opacity: 0; transition: 0.3s;
}
.interactive-card:hover .click-hint { opacity: 1; transform: translateX(5px); }

/* Pricing */
.pricing-card { text-align: center; }
.pricing-card.featured {
    border: 2px solid var(--lp-secondary); transform: scale(1.05); background: #13131a; z-index: 10;
}
.featured-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--lp-grad-orange);
    color: white; padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
}
.pricing-price { font-size: 3rem; font-weight: 700; color: var(--lp-primary); margin: 15px 0; }
.pricing-features { list-style: none; padding: 0; margin: 30px 0; text-align: left; }
.pricing-features li { margin-bottom: 10px; color: #d1d5db; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.btn-pricing {
    display: block; width: 100%; padding: 12px; background: var(--lp-grad-blue); color: white;
    text-decoration: none; font-weight: 700; border-radius: 10px; margin-top: 20px; text-transform: uppercase;
}
.btn-pricing:hover { box-shadow: 0 0 20px var(--lp-neon-blue); transform: translateY(-2px); }

/* Gallery Images */
.gallery-item {
    flex: 1; min-width: 300px; height: 250px; border-radius: 16px; overflow: hidden;
    position: relative; border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(59,130,246,0.6); opacity: 0; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; color: white; font-size: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Footer */
.lp-footer { background: #08080f; padding: 60px 5% 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--lp-text-sec); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: var(--lp-primary); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 40px; color: #666; font-size: 0.8rem;}

/* Modal (Lightbox) */
.modal-overlay {
    display: none; position: fixed; z-index: 2000; padding-top: 0; left: 0; top: 0;
    width: 100%; height: 100%; overflow: hidden; background-color: rgba(0,0,0,0.95);
    align-items: center; justify-content: center;
}
.modal-content {
    max-width: 90%; max-height: 90vh; margin: auto; display: block;
    border-radius: 5px; box-shadow: 0 0 30px var(--lp-neon-blue);
    object-fit: contain;
}
.close-modal {
    position: absolute; top: 20px; right: 30px; color: #f1f1f1; font-size: 40px; font-weight: bold;
    transition: 0.3s; cursor: pointer; z-index: 2001;
}
.close-modal:hover { color: var(--lp-primary); }

/* Animations */
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.05); opacity: 0.3; } 100% { transform: scale(1); opacity: 0.5; } }

/* --- RESPONSIVIDADE MOBILE --- */
@media (max-width: 900px) {
    .lp-hero { flex-direction: column; text-align: center; padding-top: 100px; gap: 50px; }
    .hero-content { max-width: 100%; }
    .hero-visual {
        width: 100%;
        /* Mantém a proporção mesmo no celular */
        aspect-ratio: 16/9; 
        height: auto; 
        min-height: auto;
        margin-top: 30px;
        min-width: 300px;
        max-width: 700px;
    }
    .btn-hero { font-size: 18px; padding: 14px 30px;  }
}

@media (max-width: 768px) {
    .lp-nav-links, .lp-auth-buttons { display: none; } /* Esconde menu desktop */
    .mobile-menu-toggle { display: block; }
    
    .hero-title { font-size: 2.2rem; }
    .hero-subheadline { font-size: 1.4rem; }
    .section-title { font-size: 2rem; }
    
    .lp-header { padding: 15px 5%; justify-content: space-between; }
    .logo-img { height: 35px; }
    
    .pricing-card.featured { transform: scale(1); }
    .btn-hero { font-size: 16px; padding: 12px 25px;  }
}


/* ==========================================================================
   FIX DO FUNDO (PARTÍCULAS)
   ========================================================================== */

#particles-js {
    position: fixed; /* CRÍTICO: Tira o elemento do fluxo e fixa na tela */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -10; /* Garante que fique atrás de ABSOLUTAMENTE tudo */
    background-color: var(--lp-bg); /* Garante a cor de fundo base */
    pointer-events: none; /* Garante que cliques passem através dele */
}

/* Garante que o canvas gerado pelo script também obedeça */
.particles-js-canvas-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}