/**
 * MhSys OS - Enterprise B2B SaaS Landing Page Design System (v2.5 Refined)
 * CSS Modular de Alta Performance, 60 FPS, Glassmorphism, Micro-interações & Dark/Light Mode
 */

/* ==========================================================================
   1. TOKENS VISUAIS & PALETA ENTERPRISE
   ========================================================================== */
:root {
    --mh-bg-dark: #070B14;
    --mh-bg-darker: #030712;
    --mh-surface-dark: #0F172A;
    --mh-surface-card: rgba(15, 23, 42, 0.75);
    --mh-surface-card-hover: rgba(22, 33, 62, 0.9);
    --mh-border-glass: rgba(255, 255, 255, 0.08);
    --mh-border-glass-hover: rgba(37, 99, 235, 0.45);
    --mh-border-cyan: rgba(6, 182, 212, 0.35);
    
    --mh-primary-blue: #2563EB;
    --mh-primary-blue-hover: #1D4ED8;
    --mh-accent-cyan: #06B6D4;
    --mh-accent-cyan-light: #22D3EE;
    --mh-accent-purple: #8B5CF6;
    --mh-accent-emerald: #10B981;
    --mh-accent-amber: #F59E0B;
    --mh-accent-rose: #F43F5E;
    
    --mh-text-white: #FFFFFF;
    --mh-text-light: #F8FAFC;
    --mh-text-body: #CBD5E1;
    --mh-text-muted: #94A3B8;
    --mh-text-subtle: #64748B;
    
    --mh-accent-glow: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(6, 182, 212, 0.12) 50%, transparent 75%);
    --mh-glow-cyan: 0 0 35px rgba(6, 182, 212, 0.25);
    --mh-glow-blue: 0 0 45px rgba(37, 99, 235, 0.30);
}

/* Light Mode Overrides */
body.light-mode {
    --mh-bg-dark: #F8FAFC;
    --mh-bg-darker: #F1F5F9;
    --mh-surface-dark: #FFFFFF;
    --mh-surface-card: #FFFFFF;
    --mh-surface-card-hover: #FFFFFF;
    --mh-border-glass: rgba(0, 0, 0, 0.08);
    --mh-border-glass-hover: rgba(37, 99, 235, 0.35);
    --mh-text-white: #0F172A;
    --mh-text-light: #1E293B;
    --mh-text-body: #334155;
    --mh-text-muted: #64748B;
    --mh-text-subtle: #94A3B8;
    --mh-accent-glow: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(6, 182, 212, 0.03) 50%, transparent 75%);
}

/* ==========================================================================
   2. AMBIENT BACKGROUND & MESH GRID
   ========================================================================== */
body {
    background-color: var(--mh-bg-dark);
    background-image: radial-gradient(circle at 50% -20%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
                      linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    background-position: 0 0, 0 0, 0 0;
    color: var(--mh-text-light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background-color: #F8FAFC;
    background-image: radial-gradient(circle at 50% -20%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
                      linear-gradient(to right, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    color: #1E293B;
}

.mhsys-glow-backdrop {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 850px;
    height: 520px;
    background: var(--mh-accent-glow);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: pulse-ambient-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-ambient-glow {
    0% { transform: translateX(-50%) scale(0.95); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

/* ==========================================================================
   3. HEADER & NAVBAR TRANSLÚCIDA ULTRA-MODERNA (GLASSMORPHIC STICKY HEADER)
   ========================================================================== */
.mhsys-main-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(7, 11, 20, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mhsys-main-navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 8, 16, 0.90);
    border-bottom: 1px solid rgba(37, 99, 235, 0.28);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.1);
}

body.light-mode .mhsys-main-navbar {
    background: rgba(255, 255, 255, 0.84) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
}

body.light-mode .mhsys-main-navbar.scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom-color: rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(0, 0, 0, 0.04) !important;
}

.mhsys-nav-capsule {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

body.light-mode .mhsys-nav-capsule {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.07);
}

.nav-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 9999px;
    color: var(--mh-text-muted);
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-pill-link i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.nav-pill-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.nav-pill-link:hover i {
    transform: scale(1.15);
}

.nav-pill-link.active {
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(6, 182, 212, 0.25) 100%);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
    font-weight: 700;
}

body.light-mode .nav-pill-link {
    color: #64748B;
}

body.light-mode .nav-pill-link:hover {
    color: #0F172A;
    background: #F1F5F9;
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

body.light-mode .nav-pill-link.active {
    color: #0284C7;
    background: #E0F2FE;
    border-color: #BAE6FD;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

/* Botões da Navbar */
.btn-nav-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #34D399;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-nav-whatsapp:hover {
    color: #FFFFFF;
    background: #10B981;
    border-color: #10B981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 700;
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-nav-login:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

body.light-mode .btn-nav-login {
    color: #1E293B;
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .btn-nav-login:hover {
    background: #F8FAFC;
    border-color: rgba(0, 0, 0, 0.2);
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 20px;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
}

.btn-nav-cta:hover {
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(6, 182, 212, 0.45);
}

/* Mobile Drawer Translúcido */
.mhsys-mobile-drawer {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 11, 20, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mhsys-mobile-drawer.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.light-mode .mhsys-mobile-drawer {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   EFEITOS DE REVELAÇÃO DINÂMICA POR SEÇÃO (SCROLL REVEAL & INTERSECTION OBSERVER)
   ========================================================================== */
.mhsys-reveal {
    opacity: 0;
    transform: translateY(36px);
    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;
}

.mhsys-reveal.mhsys-revealed {
    opacity: 1;
    transform: translateY(0);
}

.mhsys-reveal-left {
    opacity: 0;
    transform: translateX(-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;
}

.mhsys-reveal-left.mhsys-revealed {
    opacity: 1;
    transform: translateX(0);
}

.mhsys-reveal-right {
    opacity: 0;
    transform: translateX(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;
}

.mhsys-reveal-right.mhsys-revealed {
    opacity: 1;
    transform: translateX(0);
}

.mhsys-reveal-scale {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.mhsys-reveal-scale.mhsys-revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Efeito de Stagger Sequencial em Grids e Listas */
.mhsys-reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.mhsys-reveal-stagger.mhsys-revealed > * {
    opacity: 1;
    transform: translateY(0);
}

.mhsys-reveal-stagger.mhsys-revealed > *:nth-child(1) { transition-delay: 0.05s; }
.mhsys-reveal-stagger.mhsys-revealed > *:nth-child(2) { transition-delay: 0.12s; }
.mhsys-reveal-stagger.mhsys-revealed > *:nth-child(3) { transition-delay: 0.19s; }
.mhsys-reveal-stagger.mhsys-revealed > *:nth-child(4) { transition-delay: 0.26s; }
.mhsys-reveal-stagger.mhsys-revealed > *:nth-child(5) { transition-delay: 0.33s; }
.mhsys-reveal-stagger.mhsys-revealed > *:nth-child(6) { transition-delay: 0.40s; }

/* Micro-efeito de brilho nos cards ao passar o mouse */
.glass-card,
.plan-card,
.mockup-ui-card {
    position: relative;
    overflow: hidden;
}

.glass-card::before,
.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-20deg);
    transition: 0.75s;
    pointer-events: none;
}

.glass-card:hover::before,
.plan-card:hover::before {
    left: 150%;
}

/* ==========================================================================
   4. UTILITÁRIOS TIPOGRÁFICOS E GRADIENTES ENTERPRISE
   ========================================================================== */
.font-outfit {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mhsys-gradient-text {
    background: linear-gradient(135deg, #FFFFFF 20%, #93C5FD 65%, #06B6D4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

body.light-mode .mhsys-gradient-text {
    background: linear-gradient(135deg, #0F172A 20%, #2563EB 70%, #0891B2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mhsys-gradient-cyan {
    background: linear-gradient(135deg, #22D3EE 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.mhsys-gradient-emerald {
    background: linear-gradient(135deg, #34D399 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   5. BOTÕES E CTAS DE ALTA CONVERSÃO (CRO)
   ========================================================================== */
.btn-enterprise-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 50%, #06B6D4 100%);
    background-size: 200% auto;
    color: #FFFFFF !important;
    font-weight: 700;
    letter-spacing: -0.2px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px -8px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-enterprise-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    animation: btn-shine-sweep 4.5s infinite;
}

@keyframes btn-shine-sweep {
    0%, 75% { left: -150%; }
    100% { left: 180%; }
}

.btn-enterprise-primary:hover {
    background-position: right center;
    transform: translateY(-2.5px);
    box-shadow: 0 18px 40px -8px rgba(37, 99, 235, 0.7), 0 0 25px rgba(6, 182, 212, 0.45);
}

.btn-enterprise-whatsapp {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34D399 !important;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-decoration: none;
}

.btn-enterprise-whatsapp:hover {
    background: rgba(16, 185, 129, 0.24);
    border-color: rgba(16, 185, 129, 0.7);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(16, 185, 129, 0.35);
}

body.light-mode .btn-enterprise-whatsapp {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #059669 !important;
}

body.light-mode .btn-enterprise-whatsapp:hover {
    background: #D1FAE5;
    color: #047857 !important;
}

/* Banner de Chamada Final */
.mhsys-final-cta-banner {
    border-radius: 28px;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.4) 50%, rgba(6, 182, 212, 0.25) 100%);
    border: 1px solid rgba(6, 182, 212, 0.35);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(6, 182, 212, 0.15);
}

body.light-mode .mhsys-final-cta-banner {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 50%, #EEF2FF 100%) !important;
    border: 1.5px solid rgba(37, 99, 235, 0.25) !important;
    box-shadow: 0 20px 45px -10px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.1) !important;
}

/* ==========================================================================
   6. MOLDURA DO BROWSER MOCKUP REALISTA (3D PIXEL PERFECT)
   ========================================================================== */
.mhsys-browser-mockup {
    position: relative;
    background: #0B0F19;
    border: 1px solid var(--mh-border-glass);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.85), 0 0 50px rgba(6, 182, 212, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.mhsys-browser-mockup:hover {
    box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.95), 0 0 60px rgba(37, 99, 235, 0.25);
}

.mhsys-browser-header {
    background: #070B14;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--mh-border-glass);
}

.mhsys-browser-header img,
.mhsys-browser-mockup .mhsys-browser-header img {
    height: 18px !important;
    max-height: 18px !important;
    width: auto !important;
    max-width: 90px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.h-4 {
    height: 1rem !important;
    max-height: 1rem !important;
}
.w-auto {
    width: auto !important;
}

.mhsys-browser-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.mhsys-browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.mhsys-browser-dot.red { background: #EF4444; }
.mhsys-browser-dot.yellow { background: #F59E0B; }
.mhsys-browser-dot.green { background: #10B981; }

.mhsys-browser-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    padding: 4px 18px;
    font-size: 0.72rem;
    color: var(--mh-text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.light-mode .mhsys-browser-mockup {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

body.light-mode .mhsys-browser-header {
    background: #F8FAFC;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .mhsys-browser-bar {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
    color: #64748B;
}

/* ==========================================================================
   7. CARROSSEL CONTÍNUO DE PROVA SOCIAL (MARQUEE)
   ========================================================================== */
.marquee-container {
    overflow: hidden;
    position: relative;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 2.5rem;
    animation: marquee-scroll 35s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-client-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.marquee-client-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-1px);
}

body.light-mode .marquee-client-item {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    opacity: 0.85;
}

body.light-mode .marquee-client-item:hover {
    opacity: 1;
    border-color: rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   8. SELETOR DE MÓDULOS EM ABAS INTERATIVAS (TABS)
   ========================================================================== */
.mhsys-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--mh-border-glass);
    color: var(--mh-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.mhsys-tab-btn:hover {
    background: rgba(30, 41, 59, 0.7);
    color: var(--mh-text-white);
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateX(4px);
}

.mhsys-tab-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(6, 182, 212, 0.15) 100%) !important;
    border: 1px solid rgba(6, 182, 212, 0.6) !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.35), 0 0 25px rgba(6, 182, 212, 0.2) !important;
}

.mhsys-tab-btn.active .tab-icon-box {
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    color: #FFFFFF;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.5);
}

.tab-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mhsys-tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mhsys-tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

body.light-mode .mhsys-tab-btn {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.06);
    color: #64748B;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.light-mode .mhsys-tab-btn:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: rgba(37, 99, 235, 0.25);
}

body.light-mode .mhsys-tab-btn.active {
    background: #FFFFFF !important;
    border-color: #2563EB !important;
    color: #0F172A !important;
    box-shadow: 0 8px 25px -5px rgba(37, 99, 235, 0.18), 0 0 0 1px #2563EB !important;
}

/* ==========================================================================
   9. MOCKUP CARDS & UI ELEMENTS
   ========================================================================== */
.mockup-ui-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
    transition: all 0.3s ease;
}

.mockup-ui-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.85);
}

body.light-mode .mockup-ui-card {
    background: #F8FAFC;
    border-color: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   10. GLASS CARDS GLOBAIS & ERP FEATURE CARDS
   ========================================================================== */
.glass-card {
    background: var(--mh-surface-card);
    border: 1px solid var(--mh-border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(37, 99, 235, 0.15);
}

body.light-mode .glass-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

body.light-mode .glass-card:hover {
    border-color: rgba(37, 99, 235, 0.35) !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.2) !important;
}

/* Feature Tag Badge (Substitui texto cru nas cartas de recursos) */
.feature-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.1px;
    transition: all 0.2s ease;
}

/* Plano Mais Escolhido / Popular */
.plan-card.border-cyan-500\/40 {
    border: 1.5px solid rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 25px 60px -15px rgba(6, 182, 212, 0.2), 0 0 35px rgba(37, 99, 235, 0.25) !important;
}

body.light-mode .plan-card.border-cyan-500\/40 {
    border: 2px solid #2563EB !important;
    box-shadow: 0 20px 45px -10px rgba(37, 99, 235, 0.2), 0 0 0 1px #2563EB !important;
}

/* ==========================================================================
   11. FOOTER CORPORATIVO REFINADO (UX ENTERPRISE & GRID LADO A LADO)
   ========================================================================== */
footer {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 1.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tablet (>= 640px e < 1024px) */
@media screen and (min-width: 640px) and (max-width: 1023px) {
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

/* Desktop (>= 1024px) - 5 Colunas Lado a Lado */
@media screen and (min-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: 3.2fr 2fr 2fr 2fr 2.4fr;
        gap: 2rem 2.5rem;
        align-items: start;
    }
}

/* Large Desktop (>= 1280px) */
@media screen and (min-width: 1280px) {
    .footer-main-grid {
        grid-template-columns: 3.4fr 2fr 2fr 2fr 2.4fr;
        gap: 2rem 3rem;
    }
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col-brand p {
    color: var(--mh-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
    margin: 0;
}

.footer-badges-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.footer-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.footer-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    width: fit-content;
}

.footer-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -5px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.footer-column-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #FFFFFF;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.light-mode .footer-column-title {
    color: #0F172A !important;
}

.footer-corporate-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.footer-corporate-list li {
    margin-bottom: 0.65rem;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
}

.footer-corporate-list li::before {
    display: none !important;
    content: "" !important;
}

.footer-corporate-list a {
    color: var(--mh-text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.footer-corporate-list a:hover {
    color: var(--mh-accent-cyan-light);
    transform: translateX(4px);
}

.footer-col-matriz {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-matriz-info {
    font-size: 0.8125rem;
    color: var(--mh-text-muted);
    line-height: 1.5;
}

.footer-matriz-info strong {
    color: #FFFFFF;
    display: block;
    font-weight: 600;
}

.footer-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: var(--mh-text-muted);
}

.footer-contacts-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contacts-list a:hover {
    color: var(--mh-accent-cyan-light);
}

.footer-bottom-bar {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--mh-text-muted);
    font-size: 0.75rem;
}

@media screen and (min-width: 768px) {
    .footer-bottom-bar {
        flex-direction: row;
        text-align: left;
    }
}

.footer-bottom-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

@media screen and (min-width: 640px) {
    .footer-bottom-info {
        flex-direction: row;
        gap: 0.75rem;
        text-align: left;
    }
}

.footer-bottom-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Light Mode Overrides */
body.light-mode footer {
    background-color: #F8FAFC !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .footer-main-grid {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .footer-col-brand p,
body.light-mode .footer-matriz-info,
body.light-mode .footer-contacts-list,
body.light-mode .footer-bottom-bar {
    color: #64748B !important;
}

body.light-mode .footer-matriz-info strong {
    color: #0F172A !important;
}

body.light-mode .footer-contacts-list {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .footer-corporate-list a {
    color: #64748B;
}

body.light-mode .footer-corporate-list a:hover {
    color: #2563EB;
}

body.light-mode .footer-contacts-list a:hover {
    color: #2563EB;
}

/* ==========================================================================
   12. RESPONSIVIDADE, MOBILE UX & BLINDAGEM ANTI-ZOOM NO IPHONE (iOS SAFARI)
   ========================================================================== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

/* Previne zoom involuntário no iOS Safari ao manter tamanho mínimo de 16px em inputs e formulários */
@media screen and (max-width: 768px) {
    input, 
    select, 
    textarea, 
    .form-control,
    #theme-toggle,
    .nicho-tab-btn,
    .resource-badge,
    .cycle-btn {
        font-size: 16px !important;
    }

    button, 
    a, 
    .nav-pill-link,
    .nicho-tab-btn,
    .resource-badge,
    .cycle-btn,
    .faq-accordion-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .mhsys-browser-header {
        padding: 10px 12px;
    }
    .mhsys-browser-bar {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
    .mhsys-tab-btn {
        padding: 12px 14px;
        font-size: 0.875rem;
    }
    .tab-icon-box {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    .mhsys-final-cta-banner {
        padding: 2.25rem 1.25rem;
    }
    .mhsys-glow-backdrop {
        width: 320px;
        height: 300px;
    }
}

/* ==========================================================================
   WHATSAPP FLUTUANTE & MODAL POPOVER DE CAPTURA DE LEAD (CRO & CRM INTEGRADO)
   ========================================================================== */

/* 1. Botão Flutuante */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    outline: none;
}

.whatsapp-floating-btn.wa-pos-direita {
    right: 28px;
    left: auto;
}

.whatsapp-floating-btn.wa-pos-esquerda {
    left: 28px;
    right: auto;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6), 0 6px 18px rgba(0, 0, 0, 0.35);
    color: #ffffff !important;
}

.whatsapp-floating-btn:active {
    transform: scale(0.95);
}

.whatsapp-floating-btn i {
    line-height: 1;
}

/* Efeito de Pulso Suave */
@keyframes waPulseMhSys {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-floating-btn.wa-pulse {
    animation: waPulseMhSys 2.6s infinite;
}

/* 2. Backdrop do Popover em Mobile */
.wa-lead-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    transition: opacity 0.25s ease;
}

/* 3. Card do Popover (Dark Mode por padrão) */
.wa-lead-popover-card {
    position: fixed;
    bottom: 100px;
    width: 350px;
    max-width: calc(100vw - 32px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(37, 211, 102, 0.25);
    z-index: 1001;
    overflow: hidden;
    color: #ffffff;
    animation: waPopoverFadeInMh 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-lead-popover-card.wa-pos-direita {
    right: 28px;
    left: auto;
}

.wa-lead-popover-card.wa-pos-esquerda {
    left: 28px;
    right: auto;
}

@keyframes waPopoverFadeInMh {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-lead-popover-card-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-lead-popover-card-title {
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    letter-spacing: -0.01em;
}

.wa-lead-popover-card-close {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s, transform 0.2s;
}

.wa-lead-popover-card-close:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: rotate(90deg);
}

.wa-lead-popover-card-body {
    padding: 18px 20px 22px;
}

.wa-lead-popover-card-desc {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 16px;
    line-height: 1.5;
}

.wa-lead-card-group {
    margin-bottom: 14px;
    text-align: left;
}

.wa-lead-card-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 6px;
}

.wa-lead-card-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.wa-lead-card-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
    background: rgba(255, 255, 255, 0.09);
}

.wa-lead-card-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.wa-lead-popover-card-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.wa-lead-popover-card-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.wa-lead-popover-card-submit:active {
    transform: translateY(0);
}

.wa-lead-popover-card-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   LIGHT MODE ADAPTATION (Acompanha perfeitamente o tema claro da LP MhSys)
   ========================================================================== */
body.light-mode .wa-lead-popover-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(37, 211, 102, 0.25);
    color: #0F172A;
}

body.light-mode .wa-lead-popover-card-desc {
    color: #64748B;
}

body.light-mode .wa-lead-card-group label {
    color: #334155;
}

body.light-mode .wa-lead-card-input {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #0F172A;
}

body.light-mode .wa-lead-card-input:focus {
    background: #FFFFFF;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

body.light-mode .wa-lead-card-input::placeholder {
    color: #94A3B8;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .whatsapp-floating-btn {
        bottom: 20px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
    .whatsapp-floating-btn.wa-pos-direita {
        right: 18px;
    }
    .whatsapp-floating-btn.wa-pos-esquerda {
        left: 18px;
    }
    .wa-lead-popover-card {
        bottom: 82px;
        width: calc(100vw - 36px);
    }
    .wa-lead-popover-card.wa-pos-direita {
        right: 18px;
    }
    .wa-lead-popover-card.wa-pos-esquerda {
        left: 18px;
    }
}

