/* =========================================
   Variáveis CSS & Temas (Dark/Light)
   ========================================= */
:root {
    /* Cores Primárias Comuns */
    --primary: #3b82f6;      /* Azul Royal */
    --primary-hover: #2563eb;
    --secondary: #10b981;    /* Verde Esmeralda (Sucesso/Estabilidade) */
    --accent: #0ea5e9;       /* Azul Claro */

    --container-width: 1200px;
    --transition: all 0.3s ease;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Tema Dark (Padrão) */
[data-theme="dark"] {
    --bg-main: #0B1120;
    --bg-alt: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.5);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --bg-glass: rgba(11, 17, 32, 0.7);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.3);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Tema Light */
[data-theme="light"] {
    --bg-main: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.8);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    
    --border-color: #e2e8f0;
    --border-hover: rgba(59, 130, 246, 0.4);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Reset e Base
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}
.section-padding { padding: 120px 0; }
.bg-alt { background-color: var(--bg-alt); }

/* =========================================
   Tipografia
   ========================================= */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 24px; letter-spacing: -0.02em; }
h2.section-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 20px; letter-spacing: -0.01em; }
h2 span, h1 span { color: var(--primary); }

.section-header { text-align: center; max-width: 750px; margin: 0 auto 70px; }
.section-header p { color: var(--text-muted); font-size: 1.15rem; }

/* =========================================
   Botões
   ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 28px; border-radius: 8px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
    border: none; font-size: 1rem;
}
.btn-primary {
    background-color: var(--primary); color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.btn-secondary {
    background-color: transparent; color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background-color: var(--bg-alt); border-color: var(--text-muted); }
.btn-large { padding: 18px 36px; font-size: 1.1rem; }

/* =========================================
   Header & Navegação
   ========================================= */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 0; transition: var(--transition); background-color: transparent;
}
.header.scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 15px 0; border-bottom: 1px solid var(--border-color);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); letter-spacing: -0.02em; }
.logo-ph { background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 6px; line-height: 1; }

.nav-controls { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-weight: 500; font-size: 0.95rem; position: relative; color: var(--text-main); }
.nav-link:not(.btn-nav):hover { color: var(--primary); }

.btn-nav { border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 8px; }
.btn-nav:hover { background-color: var(--primary); border-color: var(--primary); color: #fff; }

.theme-toggle {
    background: none; border: 1px solid var(--border-color); border-radius: 50%;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-main); transition: var(--transition);
}
.theme-toggle:hover { background-color: var(--bg-alt); }
.theme-toggle .icon-light { display: none; }
[data-theme="light"] .theme-toggle .icon-dark { display: none; }
[data-theme="light"] .theme-toggle .icon-light { display: block; color: #f59e0b; }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-main); font-size: 1.8rem; cursor: pointer; }

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative; padding: 180px 0 120px; min-height: 90vh;
    display: flex; align-items: center; overflow: hidden; text-align: center;
}
.hero-bg-glow {
    position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
    width: 80vw; height: 80vw; max-width: 1000px; max-height: 1000px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(16,185,129,0.05) 40%, rgba(0,0,0,0) 70%);
    z-index: -1;
}
.hero-content { max-width: 900px; margin: 0 auto; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    background-color: var(--bg-alt); border: 1px solid var(--border-color);
    border-radius: 30px; font-size: 0.9rem; font-weight: 500; margin-bottom: 24px;
}
.pulse-dot {
    width: 8px; height: 8px; background-color: var(--secondary); border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: pulse 2s infinite;
}
.hero-text p { color: var(--text-muted); font-size: 1.25rem; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; }

/* =========================================
   O Que Resolvemos (Pain Points)
   ========================================= */
.pain-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.pain-card {
    background-color: var(--bg-card); border: 1px solid var(--border-color);
    padding: 30px; border-radius: 16px; transition: var(--transition);
}
.pain-card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.pain-icon {
    font-size: 2.5rem; color: #ef4444; margin-bottom: 20px;
}
.pain-card:nth-child(2) .pain-icon { color: #f59e0b; }
.pain-card:nth-child(3) .pain-icon { color: var(--primary); }
.pain-card:nth-child(4) .pain-icon { color: var(--secondary); }
.pain-content h3 { margin-bottom: 12px; font-size: 1.25rem; }
.pain-content p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================
   Serviços
   ========================================= */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px;
}
.service-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 40px; border-radius: 16px; transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-8px); border-color: var(--primary); background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
}
.service-card .icon-wrapper {
    width: 60px; height: 60px; background: rgba(59, 130, 246, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 2rem; margin-bottom: 24px; transition: var(--transition);
}
.service-card:hover .icon-wrapper { background: var(--primary); color: #fff; }
.service-card h3 { margin-bottom: 15px; font-size: 1.35rem; }
.service-card p { color: var(--text-muted); font-size: 1rem; }

/* =========================================
   Nossa Metodologia (Timeline)
   ========================================= */
.timeline {
    position: relative; max-width: 800px; margin: 0 auto;
}
.timeline::before {
    content: ''; position: absolute; top: 0; left: 24px; height: 100%; width: 2px;
    background: var(--border-color);
}
.timeline-item {
    position: relative; padding-left: 70px; margin-bottom: 50px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
    position: absolute; left: 0; top: 0; width: 50px; height: 50px;
    background: var(--bg-main); border: 2px solid var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--primary); font-size: 1.2rem;
    box-shadow: 0 0 0 4px var(--bg-alt);
}
.timeline-item:hover .timeline-marker { background: var(--primary); color: #fff; }
.timeline-content h3 { font-size: 1.4rem; margin-bottom: 12px; }
.timeline-content p { color: var(--text-muted); }

/* =========================================
   Sobre / Especialistas
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.about-features { margin-top: 30px; }
.about-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-weight: 500; }
.about-features i { color: var(--secondary); font-size: 1.25rem; }

.about-stats { display: flex; flex-direction: column; gap: 20px; }
.stat-card {
    display: flex; align-items: center; gap: 20px; padding: 24px;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
}
.stat-card i { font-size: 2.5rem; color: var(--primary); }
.stat-info { display: flex; flex-direction: column; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--text-main); line-height: 1; font-family: var(--font-heading); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* =========================================
   Cases de Sucesso
   ========================================= */
.case-card {
    display: grid; grid-template-columns: 2fr 3fr; gap: 40px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 20px; align-items: center; transition: var(--transition);
    padding: 30px;
}
.case-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); }
.case-image { display: flex; justify-content: center; align-items: center; height: 100%; }
.case-image img { width: 100%; height: auto; max-height: 400px; object-fit: cover; border-radius: 12px; }
.case-content { padding: 0; display: flex; flex-direction: column; justify-content: center; }
.case-badge {
    display: inline-block; padding: 6px 12px; background: rgba(16, 185, 129, 0.1);
    color: var(--secondary); border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px;
}
.case-content h3 { font-size: 2rem; margin-bottom: 16px; }
.case-content p { color: var(--text-muted); margin-bottom: 24px; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tech-stack li { background: var(--bg-alt); border: 1px solid var(--border-color); padding: 4px 12px; border-radius: 6px; font-size: 0.85rem; color: var(--text-muted); }

/* =========================================
   CTA Section
   ========================================= */
.cta-inner {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-radius: 24px; padding: 70px 40px; text-align: center; color: #fff;
}
.cta-inner h2 { color: #fff; font-size: 2.5rem; margin-bottom: 20px; }
.cta-inner p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-inner .btn-primary { background: #fff; color: var(--primary); }
.cta-inner .btn-primary:hover { background: #f8fafc; transform: translateY(-2px); }

/* =========================================
   Contato
   ========================================= */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.contact-box {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 40px 30px; border-radius: 16px; text-align: center; transition: var(--transition);
    display: flex; flex-direction: column; align-items: center;
}
.contact-box:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.icon-circle {
    width: 70px; height: 70px; background: rgba(59,130,246,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    color: var(--primary); margin-bottom: 20px;
}
.contact-box h3 { margin-bottom: 10px; }
.contact-box p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.1rem; }
.action-link { color: var(--primary); font-weight: 600; margin-top: auto; }

/* =========================================
   Footer
   ========================================= */
.footer { background-color: var(--bg-alt); border-top: 1px solid var(--border-color); padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--text-muted); margin-top: 20px; max-width: 350px; }
.footer-links h4, .footer-social h4 { margin-bottom: 20px; font-family: var(--font-heading); }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul a { color: var(--text-muted); }
.footer-links ul a:hover { color: var(--primary); }
.social-icons { display: flex; gap: 15px; }
.social-icons a {
    width: 40px; height: 40px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--text-muted); transition: var(--transition);
}
.social-icons a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; }

/* =========================================
   Animações
   ========================================= */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active, .reveal-right.active { opacity: 1; transform: translate(0); }
.mt-4 { margin-top: 1rem; }

/* =========================================
   Responsividade
   ========================================= */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .about-grid, .case-card, .footer-top { grid-template-columns: 1fr; text-align: center; }
    .case-image { order: -1; }
    .about-features li { justify-content: center; }
    .stat-card { justify-content: center; text-align: left; }
    .hero { padding-top: 140px; padding-bottom: 80px; min-height: auto; }
}

@media (max-width: 600px) {
    .timeline::before { left: 19px; }
    .timeline-marker { width: 40px; height: 40px; font-size: 1rem; }
    .timeline-item { padding-left: 60px; }
}
