/* Variáveis Globais */
:root {
    --bg-dark: #0a0f0d;
    --bg-darker: #060a08;
    --primary-green: #00ff88;
    --primary-green-glow: rgba(0, 255, 136, 0.4);
    --secondary-green: #00cc6a;
    --text-main: #f0fdf4;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s ease-in-out;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

/* Helpers */
.mb-2 { margin-bottom: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 40px; }

/* Chips */
.chip {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary-green);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.border-chip {
    background: transparent;
    border: 1px solid var(--primary-green);
}

/* Utilitários - Botoes */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px var(--primary-green-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.highlight {
    color: var(--primary-green);
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* Header / Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 13, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-text {
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-main);
    opacity: 0.8;
    transition: var(--transition);
}

.nav-links li a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: url('green-bg-hero.jpg') center/cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(6, 10, 8, 0.7);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-background {
    display: none;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--primary-green);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid var(--glass-border);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3.2rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Provas Sociais (Métricas) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.metric-card {
    padding: 40px;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 136, 0.3);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
}

.metric-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0,255,136,0.3);
}

.metric-value {
    font-size: 2rem;
    margin-bottom: 5px;
}

.metric-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Como Funciona / Fluxograma */
.fluxo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.fluxo-step {
    text-align: center;
    flex: 1;
    z-index: 2;
}

.fluxo-icon-wrapper {
    width: 100px;
    height: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}

/* Glow behind icon */
.fluxo-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-green);
    filter: blur(25px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

.fluxo-content h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.fluxo-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 250px;
    margin: 0 auto;
}

.fluxo-arrow {
    font-size: 2rem;
    color: var(--glass-border);
    flex: 0.2;
    text-align: center;
}

/* Caixa de Segurança Jurídica */
.seguranca-box {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(0,255,136,0.05) 100%);
    border-left: 4px solid var(--primary-green);
}

.seguranca-box i {
    font-size: 3rem;
    color: var(--primary-green);
}

.seguranca-text h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.seguranca-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Beneficios Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-list li {
    display: flex;
    gap: 20px;
}

.feature-list i {
    font-size: 2rem;
    color: var(--primary-green);
    background: rgba(0, 255, 136, 0.1);
    padding: 15px;
    border-radius: 12px;
    height: fit-content;
}

.feature-list h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.feature-list p {
    color: var(--text-muted);
}

.mockup-placeholder {
    height: 500px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(0,255,136,0.05) 100%);
    border: 2px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.mockup-icon {
    font-size: 6rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
}

.mockup-content {
    text-align: center;
    padding: 20px;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--glass-bg);
}

.faq-question {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-muted);
}

/* Formulário e CTA */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 50px;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-details p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-details p i {
    color: var(--primary-green);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form h3 {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.form-messages {
    margin-top: 10px;
    font-size: 0.95rem;
    text-align: center;
}

.success-msg {
    color: var(--primary-green);
}

/* WhatsApp Floater */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animações CSS p/ JS Observer */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Timeline / Origem (Para a Página APN) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-green);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.3;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary-green);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary-green);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 24px;
}

.timeline-content h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

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

.card {
    padding: 30px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
}

.text-center { text-align: center; }

/* Media Queries (Responsividade) */
@media (max-width: 992px) {
    .hero-content, .split-layout, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .timeline::after { left: 31px; }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) { left: 0%; }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 23px;
    }

    
    .hero-text h1 {
        font-size: 3rem;
    }

    .fluxo-container {
        flex-direction: column;
        gap: 30px;
    }

    .fluxo-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .contact-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(6, 10, 8, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        border-bottom: 1px solid var(--glass-border);
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-links li a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
    }
    .hamburger { display: block; }
    .nav-btn { display: none; }

    .hero { padding-top: 100px; text-align: center;}
    .hero-actions { justify-content: center; }

    .seguranca-box {
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--primary-green);
    }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2.2rem; }
    .btn-large { width: 100%; }
}

/* Slide-in Animations (Timeline APN) */
.slide-in-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-in-left.visible { opacity: 1; transform: translateX(0); }

.slide-in-right { opacity: 0; transform: translateX(60px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-in-right.visible { opacity: 1; transform: translateX(0); }

/* Select Styling (APN Form) */
.input-group select {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300ff88' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.input-group select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.input-group select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

/* Footer Links Hover */
.footer-links a:hover {
    color: var(--primary-green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in, .fade-in-up, .fade-in-left, .fade-in-right,
    .slide-in-left, .slide-in-right {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-background {
        animation: none;
    }
    .whatsapp-float {
        animation: none;
    }
}

/* ============================================
   SECTION BACKGROUNDS
   ============================================ */
#como-funciona {
    position: relative;
    background: url('green-bg-comofunciona.jpg') center/cover no-repeat;
}

#como-funciona::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(6, 10, 8, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
}

#como-funciona > .container {
    position: relative;
    z-index: 1;
}

#beneficios {
    position: relative;
    background: url('green-bg-beneficios.jpg') center/cover no-repeat;
}

#beneficios::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(6, 10, 8, 0.87);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
}

#beneficios > .container {
    position: relative;
    z-index: 1;
}

#proposta {
    position: relative;
    background: url('green-bg-proposta.jpg') center/cover no-repeat;
}

#proposta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(6, 10, 8, 0.8);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 0;
}

#proposta > .container {
    position: relative;
    z-index: 1;
}
