/* ==========================================================================
   VARIABLES & SYSTEM DESIGN (DARK HIGH-END THEME)
   ========================================================================== */
:root {
    --bg-dark: #07090e;
    --bg-surface: #0e131f;
    --bg-surface-elevated: #161d2f;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(37, 99, 235, 0.3);

    --primary-blue: #2563eb;
    --primary-blue-glow: rgba(37, 99, 235, 0.4);
    --accent-cyan: #00d2ff;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --success: #10b981;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Corrigido de border-border-box */
}

body, html {
    max-width: 100vw;
    overflow-x: hidden; /* Elimina qualquer rolagem horizontal fantasma */
}

/* Evita que títulos e textos estourem o container */
h1, h2, h3, h4, h5, h6, p, a, span {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* LAYOUT CONTAINER */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.gap-3 { gap: 24px; }
.gap-4 { gap: 48px; }
.align-center { align-items: center; }

.section-padding {
    padding: clamp(60px, 8vw, 120px) 0;
}

.bg-surface {
    background-color: var(--bg-surface);
}

/* GLASSMORPHISM CARDS */
.glass-card {
    background: rgba(14, 19, 31, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-blue-glow);
}

/* TYPOGRAPHY & HEADERS */
.section-header {
    margin-bottom: 48px;
}
.section-header.center {
    text-align: center;
}
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 12px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-blue-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-blue-glow);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}
.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* NAVBAR HORIZONTAL */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}
.navbar-header.scrolled {
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-glass);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-moderno {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icone {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
}
.logo-texto {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
}
.logo-texto .destaque {
    color: var(--accent-cyan);
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-blue-glow) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 0.85rem;
    margin-bottom: 24px;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
}
.hero-title {
    font-size: clamp(1.6rem, 7vw, 3.5rem); /* Diminui dinamicamente em telas pequenas */
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    width: 100%;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 100%;
    width: 100%;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* HERO MOCKUP GRAPHIC */
.hero-mockup { position: relative; }
.mockup-card {
    padding: 24px;
    background: rgba(14, 19, 31, 0.8);
    border-radius: var(--radius-lg);
}
.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.mockup-title { font-size: 0.8rem; color: var(--text-muted); margin-left: 8px; }
.mockup-body { position: relative; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }

.stat-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(22, 29, 47, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
.float-1 { top: 0; left: 0; }
.float-2 { top: 60px; right: 0; }

.chart-visual {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
    margin-top: 100px;
}
.bar { flex: 1; background: var(--primary-blue); border-radius: 4px; }
.bar-1 { height: 40%; }
.bar-2 { height: 70%; }
.bar-3 { height: 50%; }
.bar-4 { height: 90%; background: linear-gradient(0deg, var(--primary-blue), var(--accent-cyan)); }

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.stat-item {
    padding: 24px;
    text-align: center;
}
.stat-item h3 {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-cyan);
}
.stat-item .plus {
    display: inline-block;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    font-weight: 800;
}
.stat-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* CARDS DE SERVIÇOS */
.service-card {
    padding: 32px;
}
.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-cyan);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* TECH / ESPECIALIDADES BADGES */
.badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.tech-badge {
    padding: 12px 20px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.tech-badge:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* CONTATO CARDS */
.contact-card {
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}
.contact-icon.wpp { background: rgba(37, 211, 102, 0.1); color: #25d366; }
.contact-icon.insta { background: rgba(225, 48, 108, 0.1); color: #e1306c; }
.contact-icon.mail { background: rgba(37, 99, 235, 0.1); color: var(--accent-cyan); }

/* FOOTER */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-dark);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer p { color: var(--text-muted); font-size: 0.9rem; }

/* BOTÕES FLUTUANTES */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 44px;
    height: 44px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
/* ==========================================================================
   RESPONSIVIDADE OTIMIZADA PARA DISPOSITIVOS MÓVEIS
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 32px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-mockup {
        display: none;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .gap-4 {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px; /* Reduz ligeiramente o padding para dar mais espaço útil ao texto */
    }

    /* Ajuste da estrutura do Hero */
    .hero-section {
        padding: 110px 0 50px;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .badge-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
        max-width: 100%;
        text-align: center;
    }

    .hero-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Posição dos botões flutuantes para não tapar o botão do site */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 20px;
        right: 16px;
    }

    .back-to-top {
        bottom: 20px;
        right: 74px;
        width: 40px;
        height: 40px;
    }
}
    
    .logo-moderno {
        justify-content: center;
    }

    /* Menu Horizontal com Scroll Suave no Mobile */
    .nav-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        gap: 16px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none; /* Chrome, Safari e Opera */
    }

    .nav-link {
        font-size: 0.88rem;
        padding: 4px 8px;
        flex-shrink: 0;
    }

    .nav-actions {
        display: none; /* Oculta botão secundário do topo para economizar espaço */
    }

    /* Tipografia e Espaçamentos Ajustados */
    .hero-section {
        padding: 130px 0 60px;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Posição dos Botões Flutuantes no Mobile */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 80px;
        width: 40px;
        height: 40px;
    }
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px; /* Mantém os cantos arredondados do ícone */
}

/* Correção do tamanho da imagem da logo */
.logo-moderno .logo-img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}