/* =========================================
   1. Variáveis e Reset
   ========================================= */
:root {
    /* Cores */
    --primary: #2E7BC4;
    --primary-dark: #1E5A96;
    --accent: #C74747;
    --dark: #05070f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --success: #10B981;
    --warning: #F59E0B;
    --whatsapp: #25D366;
    
    /* Cores de Canais */
    --c-whatsapp: #25D366;
    --c-instagram: #E1306C;
    --c-facebook: #1877F2;
    --c-ml: #FFE600;
    --c-webchat: #10B981;
    --c-olx: #6E36E0;

    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    
    /* Transições */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. Utilitários e Tipografia
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm { max-width: 800px; }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-accent { color: var(--accent); }

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--trans-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(46, 123, 196, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 123, 196, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: #fff;
}

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 700;
}

.btn-white:hover { background-color: #f8fafc; }

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.badge-hero, .badge-section {
    background: rgba(46, 123, 196, 0.1);
    color: var(--primary);
    border: 1px solid rgba(46, 123, 196, 0.2);
}

.section { padding: 5rem 0; position: relative; z-index: 1; }
.section-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.section-subtitle { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Acessibilidade */
.skip-link {
    position: absolute; top: -40px; left: 0; background: var(--primary); color: white; padding: 8px; z-index: 100;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* =========================================
   3. Navbar
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--header-height);
    background: rgba(5, 7, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 50;
    transition: background var(--trans-normal);
}

.navbar-container {
    height: 100%; display: flex; justify-content: space-between; align-items: center;
}

.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-svg { width: 40px; height: 40px; transition: transform var(--trans-normal); }
.logo:hover .logo-svg { transform: scale(1.05); }
.logo-text { font-size: 1.25rem; font-weight: 900; }

.desktop-menu { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 1.5rem; list-style: none; }
.nav-link {
    color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    transition: color var(--trans-fast);
}
.nav-link:hover { color: white; }

.mobile-toggle {
    display: none; background: none; border: none; color: white; cursor: pointer; padding: 0.5rem; z-index: 60;
}

/* Menu Mobile (Janela Sólida) */
.mobile-menu {
    position: fixed; top: var(--header-height); left: 0; width: 100%;
    background-color: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: translateY(-150%);
    transition: transform var(--trans-normal);
    z-index: 40;
    display: flex; flex-direction: column; align-items: center;
    padding: 2rem 0;
}

.mobile-menu.active { transform: translateY(0); }

.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; width: 100%; }
.mobile-link { font-size: 1.25rem; font-weight: 700; color: white; text-decoration: none; }
.mobile-link:hover { color: var(--primary); }

@media (max-width: 900px) {
    .desktop-menu { display: none; }
    .mobile-toggle { display: block; }
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}

.hero-title {
    font-size: 3.5rem; line-height: 1.1; font-weight: 800; margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 500px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { perspective: 1000px; }
.hero-image {
    width: 100%; height: auto; border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}
.hero-image:hover { transform: rotateY(0) rotateX(0); }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-image { transform: none; margin-top: 2rem; }
}

/* =========================================
   5. Authority
   ========================================= */
.authority-section {
    padding: 2rem 0; background: rgba(255,255,255,0.01); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

.authority-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

.auth-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: background var(--trans-fast);
}

.auth-card:hover { background: rgba(255,255,255,0.05); }

.auth-icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-icon span { font-size: 24px; }
.icon-google { background: rgba(66, 133, 244, 0.1); color: #4285F4; }
.icon-microsoft { background: rgba(0, 164, 239, 0.1); color: #00A4EF; }
.icon-gcp { background: rgba(52, 168, 83, 0.1); color: #34A853; }

.auth-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.auth-content p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.2; }

@media (max-width: 768px) {
    .authority-grid { grid-template-columns: 1fr; }
}

/* =========================================
   6. Canais
   ========================================= */
.channels-grid {
    display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
}

.channel-card {
    width: 160px; height: 160px; background: #000; border: 1px solid; border-radius: var(--radius-md);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: transform var(--trans-normal);
}
.channel-card:hover { transform: translateY(-5px); }

.channel-svg { width: 40px; height: 40px; fill: white; margin-bottom: 1rem; }
.channel-card h4 { font-size: 0.9rem; margin-bottom: 0.5rem; line-height: 1.2; font-weight: 700; }

.status-badge {
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 4px;
}

.card-whatsapp { border-color: var(--c-whatsapp); } .status-whatsapp { background: rgba(37,211,102,0.15); color: var(--c-whatsapp); }
.card-instagram { border-color: var(--c-instagram); } .status-instagram { background: rgba(225,48,108,0.15); color: var(--c-instagram); }
.card-facebook { border-color: var(--c-facebook); } .status-facebook { background: rgba(24,119,242,0.15); color: var(--c-facebook); }
.card-ml { border-color: var(--c-ml); } .status-ml { background: rgba(255,230,0,0.15); color: var(--c-ml); }
.card-webchat { border-color: var(--c-webchat); } .status-webchat { background: rgba(16,185,129,0.15); color: var(--c-webchat); }
.card-olx { border-color: var(--c-olx); } .status-olx { background: rgba(110,54,224,0.15); color: var(--c-olx); }

/* =========================================
   7. Segmentos
   ========================================= */
.segments-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
}

.segment-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 2rem; flex: 1 1 280px; max-width: 350px; text-align: center;
    transition: var(--trans-normal);
}
.segment-card:hover { border-color: var(--primary); transform: translateY(-5px); }

.segment-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.segment-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.segment-card p { font-size: 0.9rem; color: var(--text-muted); }

/* =========================================
   8. Recursos & Integrações
   ========================================= */
.features-grid, .integrations-grid {
    display: grid; gap: 1.5rem;
}
.features-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.integrations-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.feature-card, .integration-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.5rem;
    transition: var(--trans-normal); position: relative;
}
.feature-card:hover, .integration-card:hover { border-color: var(--primary); background: rgba(46, 123, 196, 0.05); }

.feature-icon, .integration-icon {
    color: var(--primary); margin-bottom: 1rem; display: inline-block;
}
.feature-icon span, .integration-icon span { font-size: 2rem; }

.integration-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.integration-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.badge-soon {
    position: absolute; top: 10px; right: 10px; font-size: 0.6rem; 
    background: rgba(245, 158, 11, 0.15); color: var(--warning); 
    padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(245, 158, 11, 0.3); font-weight: 700; text-transform: uppercase;
}

/* =========================================
   9. Preview
   ========================================= */
.browser-window {
    background: rgba(10, 14, 39, 0.8); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 1.5rem; box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}

.window-controls { display: flex; gap: 8px; margin-bottom: 1.5rem; }
.control { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #FF5F56; } .yellow { background: #FFBD2E; } .green { background: #27C93F; }

.preview-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.preview-main { grid-column: span 3; }
.preview-img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }

@media (max-width: 768px) {
    .preview-grid { display: flex; flex-direction: column; }
    .preview-main { grid-column: span 1; }
}

/* =========================================
   10. Pricing
   ========================================= */
.pricing-section { position: relative; border-top: 1px solid var(--border); }

.pricing-wrapper { overflow: hidden; }
.pricing-container {
    display: flex; gap: 2rem; overflow-x: auto; padding: 2rem 1rem;
    scrollbar-width: none; -ms-overflow-style: none;
    cursor: grab;
    scroll-snap-type: x mandatory;
}
.pricing-container::-webkit-scrollbar { display: none; }
.pricing-container.active { cursor: grabbing; scroll-snap-type: none; }

.pricing-card {
    flex: 0 0 320px;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 2.5rem; display: flex; flex-direction: column;
    scroll-snap-align: center; transition: transform var(--trans-normal); user-select: none;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); border-color: rgba(255,255,255,0.2); }

.card-featured {
    background: linear-gradient(180deg, rgba(46, 123, 196, 0.15), rgba(255,255,255,0.03));
    border-color: var(--primary); position: relative;
}

.badge-popular {
    position: absolute; top: 1rem; right: 1rem; background: var(--primary); color: white;
    font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; text-transform: uppercase;
}

.price { font-size: 2.5rem; font-weight: 800; margin: 1rem 0; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.plan-badge {
    background: rgba(255,255,255,0.1); display: inline-block; padding: 4px 12px;
    border-radius: 100px; font-size: 0.8rem; font-weight: 600; margin-bottom: 2rem;
}
.badge-primary { background: rgba(46, 123, 196, 0.2); color: white; }

.plan-features { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.plan-features li { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; color: var(--text-muted); font-size: 0.9rem; }

.scroll-arrow {
    position: absolute; top: 55%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1);
    border: 1px solid var(--border); color: white; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--trans-fast);
}
.scroll-arrow:hover { background: var(--primary); }
.left { left: 20px; } .right { right: 20px; }

@media (max-width: 1024px) { .scroll-arrow { display: none; } }

/* =========================================
   11. FAQ & CTA & Footer
   ========================================= */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden; transition: var(--trans-normal);
}
.faq-item[open] { border-color: var(--primary); background: rgba(46, 123, 196, 0.05); }

summary {
    padding: 1.5rem; font-weight: 600; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem;
}
summary::-webkit-details-marker { display: none; }
.icon-plus { font-size: 1.5rem; color: var(--primary); transition: transform var(--trans-normal); }
details[open] .icon-plus { transform: rotate(45deg); }
.faq-content { padding: 0 1.5rem 1.5rem; color: var(--text-muted); line-height: 1.6; }

.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 4rem 1.5rem; border-radius: var(--radius-lg); margin-bottom: 4rem;
}
.cta-card h2 { font-size: 2.5rem; margin-bottom: 1rem; color: white; font-weight: 800; }
.cta-card p { font-size: 1.25rem; margin-bottom: 2rem; color: rgba(255,255,255,0.9); }

.footer { padding: 4rem 0; border-top: 1px solid var(--border); background: #000; }
.logo-footer { justify-content: center; margin-bottom: 1.5rem; }
.footer-description { color: var(--text-muted); max-width: 500px; margin: 0 auto 2rem; font-size: 0.9rem; }
.footer-copy { border-top: 1px solid var(--border); padding-top: 2rem; color: rgba(255,255,255,0.3); font-size: 0.875rem; }

/* =========================================
   12. Elementos Flutuantes (Particles)
   ========================================= */
.particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1;
    background-image: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px), radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px);
    background-size: 550px 550px, 350px 350px; opacity: 0.4;
    animation: stars 60s linear infinite;
}
@keyframes stars { from { transform: translateY(0); } to { transform: translateY(-550px); } }

.bg-glow {
    position: fixed; width: 600px; height: 600px; border-radius: 50%; filter: blur(100px); opacity: 0.3; pointer-events: none; z-index: -1;
    animation: pulse 10s infinite alternate;
}
.glow-left { top: -100px; left: -100px; background: var(--accent); opacity: 0.2; }
.glow-right { top: -100px; right: -100px; background: var(--primary); opacity: 0.2; animation-delay: 5s; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.2; } 100% { transform: scale(1.1); opacity: 0.3; } }

.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px;
    background-color: var(--whatsapp); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 100;
    transition: transform var(--trans-fast); animation: bounce 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { fill: white; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* =========================================
   13. Language Switcher (Novo)
   ========================================= */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    height: 30px;
    position: relative;
    z-index: 100;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    opacity: 1; /* Visível */
    filter: none; /* Colorido */
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.lang-btn:hover { transform: scale(1.2); }
.lang-btn.active { transform: scale(1.2); filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); }

/* Mobile */
.mobile-lang-switcher {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
    z-index: 100;
}

.mobile-lang-switcher .lang-btn { font-size: 2.2rem; }

@media (max-width: 900px) {
    .lang-switcher.desktop-only { display: none; }
}