/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    /* Colors - Dark/Tech Theme */
    --bg-primary: #0f1115;
    --bg-secondary: #161921;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    /* Brand Colors based on "Alta Performance" */
    --color-primary: #10b981; /* Vibrant green */
    --color-primary-hover: #059669;
    --color-accent: #34d399; /* Lighter green */
    
    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Layout */
    --container-width: 1200px;
    --section-spacing: 5rem;
    --border-radius: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-spacing) 0;
}

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

.text-center { text-align: center; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-12 { margin-bottom: 3rem; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

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

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* =========================================
   UI COMPONENTS
   ========================================= */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 1rem;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-base);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-img {
    height: 60px;
    filter: brightness(1.2) contrast(1.1); 
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, rgba(15,17,21,0) 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    text-align: left;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Hero Visual (Abstract) */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-sphere {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(52, 211, 153, 0.1));
    filter: blur(40px);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.floating-card {
    position: absolute;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.floating-card.c1 { top: 15%; left: 0%; animation: float1 6s ease-in-out infinite; z-index: 2; }
.floating-card.c2 { top: 45%; right: -5%; animation: float2 7s ease-in-out infinite reverse; z-index: 3; }
.floating-card.c3 { bottom: 15%; left: 10%; animation: float3 8s ease-in-out infinite; z-index: 2; }
.floating-card.c4 { top: 5%; right: 10%; animation: float4 9s ease-in-out infinite reverse; z-index: 1; transform: scale(0.9); }
.floating-card.c5 { bottom: 5%; right: 20%; animation: float5 7.5s ease-in-out infinite; z-index: 1; transform: scale(0.85); }

@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, -15px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(15px, -10px); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, 15px); } }
@keyframes float4 { 0%, 100% { transform: scale(0.9) translate(0, 0); } 50% { transform: scale(0.9) translate(10px, 15px); } }
@keyframes float5 { 0%, 100% { transform: scale(0.85) translate(0, 0); } 50% { transform: scale(0.85) translate(-15px, -10px); } }

.pulse-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}
.pulse-dot.green {
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

/* =========================================
   SOBRE
   ========================================= */
.lead-text {
    font-size: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-primary);
}

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

.sobre-card {
    padding: 2rem;
    transition: var(--transition-base);
}

.sobre-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* =========================================
   SOLUÇÕES
   ========================================= */
.solucoes-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.solucao-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    flex: 0 1 calc(33.333% - 1.35rem);
    min-width: 300px;
    max-width: 450px;
}

.solucao-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.solucao-card h3 {
    margin-bottom: 1rem;
}

.solucao-card p {
    margin-bottom: 0;
    flex-grow: 1; /* Faz os cards terem a mesma altura útil */
}

/* Removemos o lg-span pois agora o Flexbox centraliza a última linha perfeitamente */

.lg-span {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) {
    .lg-span {
        max-width: 800px;
        margin: 0 auto;
    }
}

.solucao-icon {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

/* =========================================
   CRM HIGHLIGHT
   ========================================= */
.crm-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-list li::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

/* CSS Mockup Dashboard - Super light visual */
.dashboard-mockup {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.1);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.dot:nth-child(1) { background: #ef4444; }
.dot:nth-child(2) { background: #eab308; }
.dot:nth-child(3) { background: #22c55e; }

.mockup-search {
    width: 150px;
    height: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.mockup-body {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.mockup-sidebar {
    width: 20%;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-stats {
    display: flex;
    gap: 1rem;
    height: 60px;
}

.stat-card {
    flex: 1;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(16,185,129,0.2);
}

.mockup-kanban {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.kanban-col {
    flex: 1;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kanban-item {
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

/* =========================================
   WHATSAPP & JORNADA
   ========================================= */
.wa-container {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.wa-features ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.wa-features li {
    background: rgba(255,255,255,0.03);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-size: 0.9rem;
    border: 1px solid var(--border-glass);
}

/* Timeline (Como funciona) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-glass);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.tl-step {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    z-index: 2;
}

/* =========================================
   SPLIT GRID (ATUAÇÃO)
   ========================================= */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.icon-accent {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.check-list li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: bold;
}

/* =========================================
   EMPRESA & DOCS
   ========================================= */
.dados-box {
    padding: 4rem 2rem;
}

.docs-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.doc-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}
.divider { color: var(--text-muted); }

/* =========================================
   FOOTER (UNBOXED & PREMIUM)
   ========================================= */
.footer {
    background-color: #050608;
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bg-glow {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(16,185,129,0.15) 0%, rgba(15,17,21,0) 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-hero {
    margin-bottom: 6rem;
}

.footer-mega-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    margin-bottom: 4rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 1 1 300px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: brightness(1.2);
}

.footer-navs {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
}

.footer-links-group h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-group ul li {
    margin-bottom: 1rem;
}

.footer-links-group ul a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links-group h4, .footer-corporate h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links-group ul li {
    margin-bottom: 0.75rem;
}

.footer-links-group a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-corporate p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

/* =========================================
   SCROLL ANIMATIONS (Intersection Observer)
   ========================================= */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-in {
    opacity: 0;
    transition: opacity 1s ease-out;
    will-change: opacity;
}

.animate-up.visible, .animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay classes for cascading animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* =========================================
   RESPONSIVE (MOBILE-FIRST ADAPTATIONS)
   ========================================= */
@media (max-width: 992px) {
    .crm-layout, .split-grid, .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }
    
    .solucoes-grid {
        /* No tablet, ajusta para 2 colunas */
    }
    
    .solucao-card {
        flex: 0 1 calc(50% - 1rem);
    }

    .footer-main {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .solucoes-grid {
        /* No mobile, ajusta para 1 coluna */
    }
    .solucao-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .menu-toggle { display: block; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: rgba(15, 17, 21, 0.95);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--border-glass);
        padding: 2rem;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .main-nav.active {
        display: flex;
    }
    
    .footer {
        padding: 5rem 0 2rem;
    }
    
    .footer-mega-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .footer-navs {
        gap: 2.5rem;
        flex-direction: column;
    }
    
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .wa-container { padding: 2rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 60px; }
    .tl-step { width: 40px; height: 40px; font-size: 0.875rem; }
}

/* =========================================
   FLOATING WHATSAPP & LGPD
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.floating-whatsapp img {
    width: 35px;
    height: 35px;
}
.mobile-only-wa {
    display: none;
}

.lgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}
.lgpd-banner.show {
    transform: translateY(0);
}
.lgpd-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.lgpd-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #a0aabf;
}
.lgpd-content a {
    color: #25D366;
    text-decoration: underline;
}
.lgpd-content a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .floating-whatsapp { display: none; }
    .mobile-only-wa { display: block; }
    .mobile-only-wa a {
        color: #25D366 !important;
        font-weight: 600;
    }
    .lgpd-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
