/* --- 1. GLOBAIS & VARIÁVEIS --- */
:root {
    --bg-color: #050505;    
    --primary: #8B5CF6;        
    --accent: #00E0FF;         
    --text-main: #ffffff;
    --text-muted: #94a3b8;     
    
    --font-display: 'Sora', sans-serif; 
    --font-body: 'Inter', sans-serif;   
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden; 
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

#particles-js {
    position: fixed;
    width: 100%; height: 100%;
    top: 0; left: 0;
    z-index: -1;
    pointer-events: none;
}

/* --- 2. NAVEGAÇÃO (MOBILE FIRST) --- */
.glass-nav {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%); 
    width: 95%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    
    background: rgba(11, 16, 33, 0.7); 
    backdrop-filter: blur(12px);       
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    z-index: 999;
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap; 
}
.logo .dot { color: var(--primary); }

.nav-btn {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap; 
    transition: all 0.3s ease;
}

/* --- 3. HERO SECTION --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px; 
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: #cebfff;
    margin-bottom: 2rem;
}
.status-dot {
    width: 6px; height: 6px;
    background-color: #00ff9d; 
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff9d;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.2rem; 
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.line-mask { overflow: hidden; display: block; }
.line-mask span { 
    display: block; 
    transform: translateY(100%); 
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0; 
}
.hero-desc strong { color: #fff; }

.hero-actions {
    display: flex;
    flex-direction: column; 
    gap: 1rem;
    width: 100%;
    opacity: 0;
}

.btn-primary {
    display: flex; justify-content: center; align-items: center;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

.btn-secondary {
    display: flex; justify-content: center; align-items: center;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    max-width: 600px; max-height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -2;
    pointer-events: none;
}

/* --- 4. SERVIÇOS (BENTO GRID) --- */
#servicos {
    padding: 80px 0;
    position: relative;
    z-index: 2; 
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0; 
    transform: translateY(20px);
}

.tag-small {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-desc { color: var(--text-muted); font-size: 1rem; }

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.3s;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    opacity: 0; 
}
.bento-card:hover { border-color: rgba(139, 92, 246, 0.5); }

.card-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    transition: 0.3s;
    transform: translateZ(20px);
}
.bento-card:hover .card-icon {
    background: var(--primary); color: #fff;
    box-shadow: 0 0 20px var(--primary);
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateZ(15px);
}
.bento-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    transform: translateZ(10px);
}

.card-ia {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), rgba(255,255,255,0.02));
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.card-ia .card-icon { color: var(--accent); background: rgba(139, 92, 246, 0.2); }

/* --- 5. PROCESSO (TIMELINE) - AJUSTE FINAL MOBILE --- */
#processo {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.03), transparent);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.line-container {
    position: absolute;
    left: 20px; 
    top: 0; bottom: 0;
    width: 2px; 
    height: 100%;
    z-index: 0; 
}

.line-bg { width: 100%; height: 100%; background: rgba(255, 255, 255, 0.1); }
.line-progress {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 0%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transition: height 0.1s linear;
}

.timeline-item {
    position: relative;
    padding-left: 60px; 
    margin-bottom: 4rem;
    opacity: 0.3;
    transition: opacity 0.5s;
    z-index: 10;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: 1px; 
    top: 0;
    width: 40px; height: 40px;
    
    background-color: var(--bg-color); 
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    
    z-index: 20; 
    transition: 0.3s;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}
.timeline-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline-item.active { opacity: 1; }
.timeline-item.active .timeline-marker {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    background-color: var(--bg-color);
}

/* --- SESSÃO 4: AUTORIDADE & CTA --- */
#autoridade {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.founder-grid {
    display: flex;
    flex-direction: column; 
    gap: 3rem;
    align-items: center;
}


.founder-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px; 
    border-radius: 30px;
    z-index: 2;
}

.founder-img {
    width: 100%;
    border-radius: 30px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.image-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    z-index: 1;
    animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.floating-badge {
    position: absolute;
    bottom: 30px; right: -20px;
    background: rgba(11, 16, 33, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 12px 20px;
    border-radius: 16px;
    display: flex; align-items: center; gap: 12px;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.badge-icon { font-size: 1.5rem; }
.badge-text strong { display: block; color: #fff; font-size: 0.9rem; }
.badge-text span { display: block; color: var(--accent); font-size: 0.75rem; text-transform: uppercase; font-weight: 700; }

.founder-content { text-align: center; }

.founder-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}
.founder-bio strong { color: #fff; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
}

.stat-item {
    position: relative;
    padding: 0 10px;
}

.stat-number {
    display: inline-block; 
    font-family: var(--font-display);
    font-size: 2.5rem; 
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-number::after { content: none; }

.stat-symbol {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent); 
    vertical-align: super; 
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}


.final-cta-box p { font-size: 1.1rem; color: #fff; margin-bottom: 1rem; font-weight: 600; }
.btn-large { width: 100%; padding: 1.2rem; font-size: 1.1rem; margin-bottom: 1rem; }
.final-cta-box small { color: #ef4444; font-size: 0.85rem; display: block; opacity: 0.8; }

/* --- SESSÃO 5: RODAPÉ (FOOTER) --- */
#footer {
    background-color: #020202; /* Um tom mais escuro que o body */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column; /* Mobile: Empilhado */
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Marca */
.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.6;
}

/* Redes Sociais */
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Rodapé Inferior */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.back-to-top {
    color: var(--primary);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.back-to-top:hover { color: #fff; }

.logo-desktop, .btn-text-desktop { display: none; }

@media (min-width: 768px) {
    /* Nav */
    .glass-nav {
        width: 85%;
        max-width: 1100px;
        top: 25px;
        padding: 1rem 2rem;
    }
    .logo { font-size: 1.2rem; }
    .nav-btn { font-size: 0.95rem; padding: 0.8rem 1.8rem; }
    .logo-mobile, .btn-text-mobile { display: none; }
    .logo-desktop, .btn-text-desktop { display: inline-block; }
    .nav-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
        transform: translateY(-2px);
    }

    /* Hero */
    .hero-title { font-size: 4rem; }
    .hero-actions { flex-direction: row; width: auto; }
    .btn-primary:hover { 
        transform: translateY(-3px); 
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.5); 
    }
    .btn-secondary:hover { background: rgba(255,255,255,0.05); }

    .line-container { left: 50%; transform: translateX(-50%); }
    
    .timeline-item { width: 50%; margin-bottom: 6rem; }
    
    .timeline-item:nth-of-type(odd) {
        left: 0;
        text-align: right;
        padding-right: 60px; padding-left: 0;
    }
    .timeline-item:nth-of-type(odd) .timeline-marker {
        right: -20px; left: auto; 
    }

    .timeline-item:nth-of-type(even) {
        left: 50%;
        text-align: left;
        padding-left: 60px; padding-right: 0;
    }
    .timeline-item:nth-of-type(even) .timeline-marker {
        left: -20px; right: auto; 
    }

    .bento-grid {
        grid-template-columns: repeat(3, 1fr); 
        grid-template-rows: auto auto; 
    }
    .card-ia {
        grid-column: span 2;
        grid-row: span 1;
        flex-direction: row; 
        align-items: center;
        gap: 2rem;
    }
    .card-ia .card-icon { width: 70px; height: 70px; margin-bottom: 0; }
    .card-ia h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
}

@media (min-width: 992px) {
    .founder-grid {
        flex-direction: row; /* Lado a lado */
        text-align: left;
        align-items: center;
        gap: 5rem;
    }
    
    .founder-content { text-align: left; }
    .founder-image-wrapper { margin-left: 2rem; }
    .stats-grid { gap: 3rem; }
    .btn-large { width: auto; display: inline-flex; }
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}