/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --bg-color: #0A0A0A;
    --surface-color: rgba(22, 22, 22, 0.5);
    --text-primary: #FFFFFF;
    --text-secondary: #a1a1a1;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --highlight-gradient: linear-gradient(90deg, #8A2BE2, #007AFF);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 650px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* --- EFEITO DE FUNDO AURORA --- */
.aurora-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 112, 243, 0.15), transparent 40%);
    transition: background 0.3s ease-out;
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(10,10,10, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease-in-out;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-left, .nav-right { flex: 1; }
.nav-right { display: flex; justify-content: flex-end; }
.nav-left ul, .nav-right ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}
.nav-left a, .nav-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}
.nav-left a:hover, .nav-right a:hover { color: var(--text-primary); }

/* --- HERO --- */
.hero { min-height: 90vh; display: flex; align-items: center; text-align: center; padding-top: 100px; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: radial-gradient(150px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--text-primary) 20%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.2s;
}
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 2.5rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1.5rem; }

/* --- BOTÕES --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--highlight-gradient);
    color: var(--text-primary);
}
.btn-primary:hover {
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
    transform: translateY(-3px);
}
.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* --- CLIENTS SECTION --- */
.clients-section { padding: 40px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.clients-title { text-align: center; font-size: 0.9rem; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 2rem; }
.clients-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 2rem; }
.clients-grid img {
    max-height: 80px;
    opacity: 0.7;
    transition: var(--transition);
}
.clients-grid img:hover { opacity: 1; }

/* --- GRÁFICOS DE PERFORMANCE --- */
.charts-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.chart-card { border: 1px solid var(--glass-border); background: var(--surface-color); border-radius: 12px; padding: 2rem; backdrop-filter: blur(10px); }
.chart-card h4 { text-align: center; font-weight: 500; color: var(--text-secondary); margin-bottom: 2.5rem; }
.bar-group { display: grid; grid-template-columns: 100px 1fr 1fr; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.bar-label { font-size: 0.9rem; color: var(--text-secondary); }
.bar-wrapper { background-color: rgba(255, 255, 255, 0.05); border-radius: 4px; width: 100%; }
.bar-common { background-color: #444; height: 20px; border-radius: 4px; color: var(--text-primary); text-align: right; padding: 0 8px; line-height: 20px; font-size: 0.8rem; font-weight: 600; width: 0%; }
.bar-codetrax { background: var(--highlight-gradient); height: 20px; border-radius: 4px; color: var(--text-primary); text-align: right; padding: 0 8px; line-height: 20px; font-size: 0.8rem; font-weight: 600; width: 0%; }
.chart-legend { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; font-size: 0.9rem; color: var(--text-secondary); }
.chart-legend > div { display: flex; align-items: center; gap: 0.5rem; }
.dot-common, .dot-codetrax { width: 10px; height: 10px; border-radius: 50%; }
.dot-common { background-color: #444; }
.dot-codetrax { background: var(--highlight-gradient); }

/* --- CARDS (GLASSMORPHISM) & SOLUÇÕES --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 0.2);
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.services-grid .glass-card { text-align: center; }
.card-icon {
    width: 60px; height: 60px; margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
}
.card-icon svg { width: 28px; height: 28px; color: var(--text-primary); }
.services-grid h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.services-grid p { color: var(--text-secondary); }

/* --- SEÇÃO PORTFÓLIO PRÉVIA --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.portfolio-item { padding: 0; overflow: hidden; position: relative; text-decoration: none; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: var(--text-primary); }

/* --- WORKFLOW --- */
.workflow-steps { display: flex; justify-content: center; align-items: center; }
.step { text-align: center; }
.step span { display: block; width: 40px; height: 40px; line-height: 40px; border: 1px solid var(--glass-border); border-radius: 50%; margin: 0 auto 1rem; }
.step h3 { font-size: 1.1rem; }
.connector { flex-grow: 1; height: 1px; background: var(--glass-border); max-width: 200px; margin: 0 1rem; position: relative; top: -1rem; }

/* --- CTA --- */
.cta { text-align: center; }
.cta-content { background: var(--surface-color); border: 1px solid var(--glass-border); border-radius: 12px; padding: 4rem 2rem; backdrop-filter: blur(10px); }
.cta h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta p { color: var(--text-secondary); margin-bottom: 2rem; }

/* --- FOOTER --- */
.site-footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}
.site-footer .logo { position: static; transform: none; display: inline-block; margin-bottom: 1rem; }
.site-footer p { color: var(--text-secondary); margin-bottom: 1rem; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; }
.social-links a { color: var(--text-secondary); }
.social-links a:hover { color: var(--text-primary); }

/* --- NAVEGAÇÃO MOBILE --- */
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1001; }
.hamburger-line { display: block; width: 25px; height: 2px; background-color: var(--text-primary); margin: 5px 0; transition: all 0.3s ease-in-out; }
.mobile-nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(15px); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mobile-nav a { color: var(--text-primary); text-decoration: none; font-size: 1.5rem; font-weight: 600; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }

body.mobile-open .mobile-nav { display: flex; }
body.mobile-open .mobile-nav a { opacity: 1; transform: translateY(0); }
body.mobile-open .mobile-nav a:nth-child(1) { transition-delay: 0.2s; }
body.mobile-open .mobile-nav a:nth-child(2) { transition-delay: 0.3s; }
body.mobile-open .mobile-nav a:nth-child(3) { transition-delay: 0.4s; }
body.mobile-open .mobile-nav a:nth-child(4) { transition-delay: 0.5s; }
body.mobile-open .mobile-nav-toggle .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
body.mobile-open .mobile-nav-toggle .hamburger-line:nth-child(2) { opacity: 0; }
body.mobile-open .mobile-nav-toggle .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .nav-left, .nav-right { display: none; }
    .mobile-nav-toggle { display: block; position: relative; z-index: 1001; }
    .logo { position: relative; left: 0; transform: none; }
    .site-header .container { justify-content: space-between; align-items: center; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .services-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .charts-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    .cta-buttons { flex-direction: column; gap: 1rem; }
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .workflow-steps { flex-direction: column; }
    .connector { display: none; }
    .step { margin-bottom: 2rem; }
    .bar-group { grid-template-columns: 80px 1fr 1fr; }
}