/* ================================================================
   CLOUDSEG VIDA - SYSTEM DESIGN V10 (UNIFICADO)
   ----------------------------------------------------------------
   - FIX: Compatibilidade Safari (-webkit-backdrop-filter).
   - FIX: Correção de min-height para Firefox antigo.
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- PALETA DE CORES (Identidade Portal) --- */
    --primary-dark: #0D2050;    
    --primary-light: #183678;   
    --accent-cyan: #00C2CB;     
    --accent-blue: #00A8E8;     
    
    /* --- TEXTOS --- */
    --text-main: #0D2050;
    --text-muted: #556987;
    --text-light: #F4F7FA;

    /* --- BACKGROUNDS --- */
    --bg-body: #F4F7FA;
    --bg-white: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.95);

    /* --- DEGRADÊS & EFEITOS --- */
    --gradient-main: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    
    --shadow-soft: 0 15px 35px rgba(13, 32, 80, 0.06);
    --shadow-hover: 0 25px 50px rgba(0, 194, 203, 0.12);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);

    --radius: 24px;
    --header-height: 90px;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    padding-top: var(--header-height);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; position: relative; }
section { padding: 100px 0; position: relative; }
a { text-decoration: none; color: inherit; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
img { max-width: 100%; display: block; }

/* --- TIPOGRAFIA REFINADA --- */
h1 { 
    font-size: 54px; font-weight: 800; line-height: 1.15; 
    letter-spacing: -1.5px; margin-bottom: 25px; color: var(--primary-dark); 
}
h2 { 
    font-size: 40px; font-weight: 700; margin-bottom: 20px; 
    color: var(--primary-dark); letter-spacing: -0.5px; 
}
h3 { font-size: 28px; font-weight: 700; margin-bottom: 15px; color: var(--primary-dark); }
h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--primary-dark); }
p { 
    font-size: 18px; color: var(--text-muted); margin-bottom: 25px; 
    font-weight: 400; line-height: 1.6;
}

.text-light { color: var(--text-light) !important; }
.text-accent { color: var(--accent-cyan) !important; }
.subtitulo, .subtitulo-simple { max-width: 600px; margin: 0 auto 40px auto; text-align: center; }
.subtitulo-simple { font-size: 18px; color: rgba(255,255,255,0.8); margin-top: -10px; }

/* --- BOTÕES (Estilo Portal) --- */
.btn-cta, .btn-cta-hero, .btn-glow {
    background: var(--gradient-accent); 
    color: white; font-weight: 700; border: none; 
    border-radius: 50px; cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block; text-align: center;
    box-shadow: 0 5px 15px rgba(0, 194, 203, 0.3);
}
.btn-cta { padding: 14px 32px; font-size: 16px; }
.btn-cta-hero { padding: 18px 42px; font-size: 18px; }
.btn-glow { padding: 14px 30px; font-size: 15px; } 

.btn-cta:hover, .btn-cta-hero:hover, .btn-glow:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 25px rgba(0, 194, 203, 0.5); 
}


/* ================================================================
   1. HEADER & NAV
=================================================================== */
#main-header { 
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; 
    padding: 15px 0; transition: 0.3s; 
}

.glass-nav { 
    background: rgba(255, 255, 255, 0.9); 
    -webkit-backdrop-filter: blur(15px); /* FIX SAFARI */
    backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.8); 
    border-radius: 100px; 
    padding: 0 40px; 
    display: flex; justify-content: space-between; align-items: center; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.02); 
    height: 75px; 
}

.logo img { height: 100px; width: auto; }

.nav-links { 
    display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; 
    align-items: center; height: 100%; 
}
.nav-link-main { 
    font-weight: 600; color: var(--primary-dark); font-size: 15px; 
    display: flex; align-items: center; gap: 8px; height: 100%; cursor: pointer;
}
.nav-link-main:hover { color: var(--accent-cyan); }
.arrow-icon { font-size: 11px; transition: 0.3s; margin-top: 2px; }

/* Dropdown System */
.dropdown-item { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-item:hover .arrow-icon { transform: rotate(180deg); }

.glass-dropdown, .dropdown-menu { 
    position: absolute; top: 100%; left: 50%; 
    transform: translateX(-50%) translateY(20px); 
    background: rgba(255, 255, 255, 0.98); 
    border: 1px solid #f0f0f0; padding: 20px; border-radius: 20px; 
    min-width: 320px; 
    box-shadow: var(--shadow-soft); 
    opacity: 0; visibility: hidden; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column; gap: 10px; 
    z-index: 9999;
}

.dropdown-item:hover .glass-dropdown,
.dropdown-item:hover .dropdown-menu { 
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(12px); 
}

.dropdown-link { 
    display: flex; align-items: center; gap: 15px; 
    padding: 12px; border-radius: 12px; transition: 0.2s; 
}
.dropdown-link:hover { background: #f4fbff; }

.dd-icon { 
    width: 42px; height: 42px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    background: #e0f7fa; color: var(--accent-blue); 
    font-size: 18px; flex-shrink: 0; 
}
.gradient-icon { background: linear-gradient(135deg, #e3f2fd, #ffffff); }
.dd-text strong { display: block; font-size: 15px; color: var(--primary-dark); }
.dd-text span { font-size: 13px; color: #888; }

.mobile-menu-icon { display: none; font-size: 24px; color: var(--primary-dark); cursor: pointer; }


/* ================================================================
   2. HERO & SECTIONS GERAIS
=================================================================== */
#hero { 
    background: radial-gradient(circle at 10% 10%, #fff, #f2f6fa); 
    padding: 100px 0 120px; 
    min-height: 0; /* FIX FIREFOX: 'auto' removido */
}
.hero-container { display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; text-align: left; }
.hero-image { flex: 1; perspective: 1000px; text-align: right; }
.hero-image img { 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-soft); 
    transform: rotateY(-5deg); transition: 0.6s ease-out; 
    max-width: 100%;
}
.hero-image:hover img { transform: rotateY(0deg); }

/* Page Template Hero (Páginas de Texto) */
.page-hero-simple {
    background: var(--primary-dark); color: white;
    padding: 80px 0; text-align: center;
}
.hero-icon-simple { font-size: 40px; color: var(--accent-cyan); margin-bottom: 20px; }
.page-hero-simple h1 { color: white; margin-bottom: 15px; }

/* Social Proof */
.social-proof { 
    margin-top: 35px; background: white; padding: 12px 25px; 
    border-radius: 50px; display: inline-flex; align-items: center; gap: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}
.estrelas { color: #ffc107; font-size: 14px; }
.social-proof p { margin: 0; font-size: 14px; font-weight: 700; color: var(--primary-dark); }

/* Lista de Vantagens */
.vantagens-container { display: flex; align-items: center; gap: 80px; }
.vantagens-texto ul { list-style: none; margin-top: 30px; }
.vantagens-texto li { 
    background: white; padding: 18px 24px; border-radius: 16px; margin-bottom: 15px; 
    display: flex; align-items: center; font-weight: 600; color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: 0.3s;
}
.vantagens-texto li:hover { transform: translateX(5px); box-shadow: var(--shadow-soft); }
.vantagens-texto li i { color: var(--accent-cyan); margin-right: 15px; font-size: 20px; }
.vantagens-imagem img { border-radius: var(--radius); box-shadow: var(--shadow-hover); }


/* ================================================================
   3. SOLUÇÕES E CARDS
=================================================================== */
.solucoes-grupos-wrapper { display: flex; gap: 40px; margin-top: 50px; }
.solucoes-grupo { 
    flex: 1; background: white; padding: 40px; border-radius: var(--radius); 
    border: 1px solid #f5f5f5; box-shadow: var(--shadow-soft); 
}
.solucoes-grid { display: grid; gap: 20px; margin-top: 30px; }
.card-solucao { 
    display: flex; align-items: flex-start; gap: 18px; 
    background: #f9fbfd; padding: 25px; border-radius: 16px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    border: 1px solid transparent;
}
.card-solucao:hover { 
    background: white; 
    box-shadow: var(--shadow-hover); 
    border-color: rgba(0, 194, 203, 0.3); 
    transform: translateY(-5px); 
}
.card-solucao i { 
    color: var(--accent-blue); font-size: 26px; margin-top: 2px; 
    background: #e0f7fa; width: 50px; height: 50px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-solucao h4 { font-size: 18px; margin-bottom: 5px; color: var(--primary-dark); }
.card-solucao p { font-size: 15px; margin: 0; color: var(--text-muted); line-height: 1.5; }


/* ================================================================
   4. TIMELINE / PASSO A PASSO
=================================================================== */
.passos-container, .visual-steps-container { 
    display: flex; justify-content: space-between; align-items: flex-start; 
    gap: 30px; margin-top: 80px; position: relative; padding: 0 40px;
}

.passos-container::before, .visual-steps-container::before {
    content: ''; position: absolute; 
    top: 35px; 
    left: 80px; right: 80px; 
    height: 3px; background: #eef2f6; 
    z-index: 0; 
}

.passo, .visual-step { flex: 1; text-align: center; position: relative; z-index: 1; }

.passo-numero, .visual-step-icon { 
    width: 70px; height: 70px; background: white; 
    border: 2px solid #eef2f6; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 25px auto; 
    font-size: 24px; font-weight: 800; color: var(--accent-blue); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: 0.3s;
    position: relative; z-index: 2;
}

.visual-step.is-emphasized .visual-step-icon, 
.visual-step:hover .visual-step-icon, 
.passo:hover .passo-numero {
    border-color: var(--accent-cyan); color: var(--accent-cyan);
    transform: scale(1.1); box-shadow: 0 15px 35px rgba(0, 194, 203, 0.2);
}

.passo h3, .visual-step h4 { font-size: 20px; margin-bottom: 10px; color: var(--primary-dark); }
.passo p, .visual-step p { font-size: 15px; max-width: 280px; margin: 0 auto; line-height: 1.5; }


/* ================================================================
   5. PÁGINAS INTERNAS (LANDING PAGES VIDA)
=================================================================== */
.lp-hero { 
    background: radial-gradient(circle at top right, #f4fbff, #ffffff); 
    padding: 100px 0; 
}
.hero-tag { 
    display: inline-block; background: #e0f7fa; color: var(--accent-blue); 
    padding: 8px 18px; border-radius: 50px; font-size: 13px; 
    font-weight: 700; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px;
}
.hero-tag.blue { background: #e3f2fd; color: var(--primary-dark); }
.hero-tag i { margin-right: 8px; }

.lp-problem-section { background: var(--primary-dark); color: white; padding: 120px 0; }
.lp-problem-section.dark-accent { background: #0b1a3f; }

.lp-problem-text h2 { color: white; margin-bottom: 5px; }
.lp-problem-text p { color: rgba(255,255,255,0.85); font-size: 19px; max-width: 700px; margin-top: 20px; }

.lp-problem-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 70px; 
}
.lp-problem-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    padding: 35px; border-radius: 20px; transition: 0.3s;
}
.lp-problem-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-8px); }
.lp-problem-card i { font-size: 32px; color: var(--accent-cyan); margin-bottom: 25px; display: block; }
.lp-problem-card h4 { color: white; font-size: 20px; margin-bottom: 10px; }
.lp-problem-card p { color: rgba(255,255,255,0.7); font-size: 15px; margin: 0; line-height: 1.6; }

.split-container { display: flex; align-items: center; gap: 80px; }
.split-container.reverse { flex-direction: row-reverse; }
.split-content, .split-image { flex: 1; }
.split-image img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }

.benefits-list { margin-top: 40px; }
.benefit-item { display: flex; gap: 20px; margin-bottom: 30px; }
.benefit-item i { color: var(--accent-cyan); font-size: 24px; margin-top: 5px; flex-shrink: 0; }
.benefit-item h4 { margin-bottom: 5px; font-size: 18px; color: var(--primary-dark); }
.benefit-item p { font-size: 16px; margin: 0; color: var(--text-muted); }

.lp-data-section { background: #f9fbfd; text-align: center; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.stat-card { 
    background: white; padding: 40px 25px; border-radius: 20px; 
    box-shadow: var(--shadow-soft); border-bottom: 4px solid var(--accent-cyan); 
}
.stat-card h3 { font-size: 48px; color: var(--primary-dark); margin-bottom: 10px; font-weight: 800; }
.stat-card p { font-size: 16px; margin: 0; line-height: 1.6; }

.lp-testimonial-section { background: var(--gradient-main); color: white; text-align: center; padding: 120px 0; }
.lp-testimonial-section i { font-size: 40px; color: var(--accent-cyan); opacity: 0.6; margin-bottom: 30px; }
.lp-testimonial-section blockquote { 
    font-size: 26px; font-weight: 400; font-style: italic; 
    max-width: 900px; margin: 0 auto 30px auto; line-height: 1.5; 
}
.lp-testimonial-section cite { font-weight: 700; font-style: normal; color: var(--accent-cyan); font-size: 16px; }


/* ================================================================
   6. PARCEIROS (Logos)
=================================================================== */
.light-section { background: white; border-bottom: 1px solid #f5f5f5; }
.parceiros-logos-container { 
    display: flex; justify-content: center; align-items: center; 
    gap: 60px; flex-wrap: wrap; margin-top: 50px; 
}
.parceiro-logo {
    background: white; padding: 20px 30px; border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid #f0f0f0;
    transition: 0.3s; display: flex; align-items: center; justify-content: center;
    height: 100px; width: 200px; 
}
.parceiro-logo img { 
    max-height: 180px; width: auto; filter: grayscale(100%); 
    opacity: 0.6; transition: 0.3s; object-fit: contain;
}
.parceiro-logo:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: var(--accent-cyan); }
.parceiro-logo:hover img { filter: grayscale(0); opacity: 1; }


/* ================================================================
   7. FAQ & FOOTER (Unificado)
=================================================================== */
.faq-container { margin-bottom: 50px; }
.faq-item { margin-bottom: 20px; }
.faq-pergunta { 
    background: white; padding: 22px 30px; border-radius: 16px; 
    font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; 
    align-items: center; transition: 0.3s; border: 1px solid #eee; color: var(--primary-dark);
}
.faq-pergunta:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); background: #f9fbfd; }
.faq-resposta { max-height: 0; overflow: hidden; transition: 0.4s ease; }
.faq-resposta p { 
    padding: 25px 30px; margin: 0; color: var(--text-muted); 
    font-size: 16px; background: white; border-radius: 0 0 16px 16px; border-top: 1px solid #f9f9f9; 
}

#cta-final { 
    background: var(--gradient-main); color: white; 
    border-radius: 40px 40px 0 0; padding: 120px 0; text-align: center; margin: 60px 40px 0; 
}
.cta-container h2 { color: white; font-size: 46px; }
.cta-container p { color: rgba(255,255,255,0.9); margin-bottom: 40px; font-size: 20px; }

#footer { background-color: var(--primary-dark); color: #ccc; padding: 80px 0 0 0; text-align: left; }
.footer-container-original { 
    display: grid; grid-template-columns: 3fr 1.5fr 1.5fr 1.5fr; gap: 40px; 
    padding-bottom: 60px; margin: 0 auto; max-width: 1240px; padding-left: 40px; padding-right: 40px;
}
.footer-sobre .logo a { color: white; font-size: 26px; font-weight: 800; display: block; margin-bottom: 20px; }
.footer-coluna h4 { color: white; font-size: 18px; margin-bottom: 25px; position: relative; font-weight: 700; }
.footer-coluna h4::after { content: ''; display: block; width: 30px; height: 3px; background-color: var(--accent-cyan); margin-top: 10px; }
.footer-coluna ul { list-style: none; padding: 0; }
.footer-coluna li { margin-bottom: 12px; }
.footer-coluna a { color: #b0b8c4; font-size: 14px; transition: 0.3s; }
.footer-coluna a:hover { color: var(--accent-cyan); padding-left: 5px; }
.social-links { margin-top: 25px; display: flex; gap: 15px; }
.social-links a { color: white; font-size: 20px; transition: 0.3s; }
.social-links a:hover { color: var(--accent-cyan); transform: translateY(-3px); }
.footer-legal { background-color: #081535; text-align: center; padding: 25px 20px; font-size: 12px; color: #667; border-top: 1px solid rgba(255,255,255,0.05); }


/* ================================================================
   8. ANIMAÇÕES & RESPONSIVIDADE
=================================================================== */
.animar { opacity: 0; transform: translateY(30px); transition: 0.7s ease-out; }
.animar.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Mobile & Tablet */
@media (max-width: 992px) {
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    
    .hero-container, .vantagens-container, .split-container, .solucoes-grupos-wrapper { 
        flex-direction: column; text-align: center; gap: 50px; 
    }
    .split-container.reverse { flex-direction: column; }
    .hero-image { order: -1; margin-bottom: 20px; }
    
    .passos-container, .visual-steps-container { flex-direction: column; align-items: center; }
    .passos-container::before, .visual-steps-container::before { 
        width: 3px; height: 80%; left: 50%; top: 0; transform: translateX(-50%); 
    }
    
    .footer-container-original { grid-template-columns: 1fr 1fr; text-align: center; }
    .footer-coluna h4::after { margin: 10px auto 0 auto; }
    .social-links { justify-content: center; }
    
    .lp-problem-grid, .stat-grid, .solucoes-grid { grid-template-columns: 1fr; }
    
    /* Menu Mobile */
    .nav-links { 
        position: fixed; top: 90px; left: 0; width: 100%; background: white; 
        flex-direction: column; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: none; border-top: 1px solid #eee;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-icon { display: block; }
    .header-cta { display: none; }
}

@media (max-width: 480px) {
    .footer-container-original { grid-template-columns: 1fr; }
    #cta-final { margin: 40px 20px 0; border-radius: 30px 30px 0 0; padding: 80px 0; }
    .container { padding: 0 25px; }
}