/* =======================================================
   IMPORTAÇÃO DAS FONTES PREMIUM (POPPINS E INTER)
   ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --gsi-navy: #0f172a;       /* Azul Marinho GSI */
    --gsi-blue: #0ea5e9;       /* Azul Claro (Cyan) */
    --gsi-red: #ef4444;        /* Vermelho Vibrante */
    --gsi-green: #10b981;      /* Verde Saúde */
    --gsi-light: #f4f4f5;      /* Cinza de Fundo */
    --gsi-border: #e4e4e7;
    --gsi-text: #3f3f46;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; /* Aplica Poppins em tudo por padrão */
}

html, body { 
    font-family: 'Poppins', sans-serif; /* TRAVA ANTI TIMES NEW ROMAN */
    scroll-behavior: smooth; 
    background-color: #fff; 
    color: var(--gsi-text); 
    line-height: 1.6; 
    overflow-x: hidden !important; /* Trava o espaço branco lateral */
    width: 100%; 
    max-width: 100vw; 
    position: relative;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER ACOLHEDOR */
header {
    position: fixed; top: 0; width: 100%; height: 90px;
    background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000; display: flex; align-items: center;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { height: 45px; }
/* Diminuímos a margem de 15px para 10px e a fonte para 14px para caberem todos os módulos */
nav a { text-decoration: none; color: var(--gsi-navy); font-weight: 500; margin: 0 10px; font-size: 14px; transition: 0.3s; }
nav a:hover { color: var(--gsi-blue); }

.btn-cta { 
    background: var(--gsi-red); color: white; padding: 12px 28px; border-radius: 50px; 
    font-weight: 600; text-decoration: none; transition: 0.3s; display: inline-block; border: none; cursor: pointer;
}
.btn-cta:hover { transform: translateY(-2px); background: #dc2626; box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3); }

.btn-blue { background: var(--gsi-blue); color: white; padding: 12px 28px; border-radius: 50px; font-weight: 600; text-decoration: none; display: inline-block; transition: 0.3s; }
.btn-blue:hover { filter: brightness(1.1); box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3); }

/* HERO SECTION (Blindado contra repetição) */
.hero-section { 
    padding: 140px 0 100px; 
    color: white; 
    position: relative; 
    background-size: cover !important; /* Faz a imagem esticar sem perder proporção */
    background-position: center !important; /* Centraliza a imagem */
    background-repeat: no-repeat !important; /* PROÍBE A REPETIÇÃO */
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-content h1 { font-size: 52px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero-content p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }

/* CARD FLUTUANTE (Igual ao seu Mockup) */
.floating-info { 
    background: white; border-radius: 20px; padding: 40px; margin-top: -60px; 
    position: relative; z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    display: flex; justify-content: space-around; text-align: center; border: 1px solid var(--gsi-border);
}
.info-item h4 { color: var(--gsi-navy); font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; justify-content: center; }
.info-item i { color: var(--gsi-blue); font-size: 24px; }
.info-item p { color: #71717a; font-size: 14px; margin-top: 5px; }

/* RECURSOS / MÓDULOS */
.features-section { padding: 80px 0; background: white; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.feature-card { padding: 30px; border-radius: 15px; border: 1px solid var(--gsi-border); transition: 0.3s; background: var(--gsi-light); text-align: left; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--gsi-blue); background: white; box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.icon-title { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.icon-box { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; }
.bg-blue { background: var(--gsi-blue); } .bg-red { background: var(--gsi-red); } .bg-green { background: var(--gsi-green); }
.feature-card h3 { color: var(--gsi-navy); font-size: 18px; font-weight: 700; }
.feature-card p { font-size: 14px; color: #52525b; }

/* BANNER VERMELHO (CTA) */
.banner-red { padding: 60px 0; background: var(--gsi-red); color: white; text-align: center; }
.banner-red h2 { font-size: 36px; font-weight: 700; margin-bottom: 15px; }
.banner-red p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }

/* ECOSISTEMA (Fundo Escuro) */
.ecosystem-section { padding: 100px 0; background: var(--gsi-navy); color: white; }
.ecosystem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.ecosystem-content h2 { font-size: 40px; font-weight: 700; color: var(--gsi-blue); margin-bottom: 20px; line-height: 1.2; }
.ecosystem-content p { font-size: 18px; color: #a1a1aa; margin-bottom: 30px; }
.eco-list { list-style: none; }
.eco-list li { margin-bottom: 15px; font-size: 16px; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.eco-list i { color: var(--gsi-green); font-size: 20px; }

/* BANNER AZUL (CTA) */
.banner-blue { padding: 60px 0; background: var(--gsi-blue); color: white; text-align: center; }
.banner-blue h2 { font-size: 32px; font-weight: 700; margin-bottom: 20px; }

/* PLANOS DE PREÇOS */
.pricing-section { padding: 100px 0; background: var(--gsi-light); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 38px; font-weight: 700; color: var(--gsi-navy); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.price-card { background: white; padding: 40px; border-radius: 20px; border: 1px solid var(--gsi-border); text-align: center; transition: 0.3s; position: relative; }
.price-card.featured { transform: scale(1.05); border: 2px solid var(--gsi-blue); box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15); z-index: 10; }
.popular-tag { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--gsi-blue); color: white; padding: 6px 20px; border-radius: 50px; font-size: 13px; font-weight: 700; }
.price-card h3 { font-size: 22px; color: var(--gsi-navy); font-weight: 700; margin-bottom: 10px; }
.price-value { font-size: 48px; font-weight: 800; color: var(--gsi-navy); margin-bottom: 25px; }
.price-card.featured .price-value { color: var(--gsi-blue); }
.price-value span { font-size: 16px; font-weight: 500; color: #71717a; }
.price-list { list-style: none; margin-bottom: 30px; text-align: left; }
.price-list li { margin-bottom: 12px; font-size: 15px; display: flex; align-items: center; gap: 10px; color: #52525b; }
.price-list i { color: var(--gsi-green); font-size: 18px; }

/* FAQ VERMELHO */
.faq-section { padding: 80px 0; background: var(--gsi-red); color: white; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.2); margin-bottom: 15px; padding-bottom: 15px; }
.faq-question { font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-answer { padding-top: 15px; font-size: 15px; line-height: 1.6; display: none; opacity: 0.9; }

/* BLOG E FOOTER */
.blog-section { padding: 100px 0; background: white; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: var(--gsi-light); border-radius: 15px; overflow: hidden; text-decoration: none; display: block; border: 1px solid var(--gsi-border); }
.blog-img { height: 180px; background-color: #d4d4d8; }
.blog-content { padding: 25px; }
.blog-card h4 { font-size: 16px; color: var(--gsi-navy); font-weight: 700; margin-bottom: 10px; }

footer { background: var(--gsi-navy); color: white; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 16px; font-weight: 600; margin-bottom: 20px; color: var(--gsi-blue); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #a1a1aa; text-decoration: none; font-size: 14px; }
.footer-col ul li a:hover { color: white; }

/* ==============================================================
   RESPONSIVIDADE GLOBAL (CELULARES E TABLETS - ATÉ 991PX)
   ============================================================== */

/* Esconde o botão do hambúrguer no PC */
.menu-toggle { display: none; }

@media (max-width: 991px) {
    /* 1. HEADER E MENU HAMBÚRGUER */
    .menu-toggle {
        display: flex !important; 
        align-items: center;
        gap: 8px;
        background: #0f172a !important; /* Fundo Azul Escuro Visível */
        color: white !important; /* Letra Branca */
        border: none;
        padding: 10px 15px !important;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
    }
    .btn-desktop-cta { display: none; /* Esconde o botão superior no celular */ }
    .btn-mobile-cta { display: none; } /* Esconde a versão mobile no computador */
    .btn-mobile-cta { display: inline-block !important; }
    
    .nav-menu {
        position: absolute; top: 90px; left: 0; width: 100%;
        background: white; flex-direction: column;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0; display: none; text-align: center;
    }
    .nav-menu.active { display: flex; /* Abre a gaveta */ }
    .nav-menu a { margin: 15px 0; font-size: 18px; display: block; }
    .nav-login {
        border-left: none !important; padding-left: 0 !important;
        border-top: 1px solid var(--gsi-border); padding-top: 20px !important;
        margin-top: 10px !important;
    }

    /* 2. GRIDS GERAIS (Tudo vira coluna única) */
    .hero-grid, .features-grid, .ecosystem-grid, .pricing-grid, .blog-grid, .steps-grid, .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    /* Ajuste fino extra para os cartões de testemunhos no mobile não ficarem muito altos */
    .testimonial-card {
        padding: 20px !important;
    }

    /* ==========================================
   TOGGLE ANUAL/MENSAL E PREÇOS (HOME & PLANOS)
   ========================================== */
.gsi-billing-toggle { display: flex; align-items: center; justify-content: center; margin-bottom: 40px; gap: 15px; font-weight: 600; color: #64748b; font-family: 'Inter', sans-serif;}
.gsi-billing-toggle .active { color: #0f172a; }
.gsi-discount-badge { background: #10b981; color: white; font-size: 11px; padding: 3px 8px; border-radius: 12px; margin-left: 8px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;}

.gsi-switch { position: relative; display: inline-block; width: 60px; height: 32px; }
.gsi-switch input { opacity: 0; width: 0; height: 0; }
.gsi-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 34px; }
.gsi-slider:before { position: absolute; content: ""; height: 24px; width: 24px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .gsi-slider { background-color: #0ea5e9; }
input:checked + .gsi-slider:before { transform: translateX(28px); }

/* Correção do tamanho do preço na Home */
.price-value { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.price-value .display-price { font-size: 48px !important; font-weight: 800 !important; color: #0f172a !important; letter-spacing: -2px; }
.price-value .period { font-size: 16px !important; color: #64748b !important; font-weight: 500 !important; }

/* Ajustes Responsivos do Toggle e Cards */
@media (max-width: 991px) {
    .pricing-grid { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 30px !important; padding: 0 15px !important; }
    .price-card { width: 100% !important; max-width: 400px !important; margin: 0 !important; box-sizing: border-box !important; }
    .price-value .display-price { font-size: 40px !important; }
    .section-title h2 { font-size: 28px !important; padding: 0 15px; text-align: center; }
    .section-title p { font-size: 16px !important; padding: 0 15px; text-align: center; }
    .gsi-billing-toggle { flex-wrap: wrap; padding: 0 10px; }
    /* 2. GRIDS GERAIS (Tudo vira coluna única no mobile) */
    .hero-grid, .features-grid, .ecosystem-grid, .pricing-grid, .blog-grid, .steps-grid, .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

    /* 3. HERO SECTION (Banner Principal) */
    .hero-section { padding: 120px 0 60px; text-align: center; }
    .hero-content h1 { font-size: 34px; }
    .hero-visual { order: -1; margin-bottom: 20px; } /* Joga a imagem do dashboard para cima */

    /* 4. CARDS FLUTUANTES (Embaixo do Banner) */
    .floating-info {
        flex-direction: column; gap: 20px; padding: 30px 20px;
    }
    .info-item[style*="border-left"] {
        border-left: none !important; border-right: none !important;
        padding: 20px 0 !important;
        border-top: 1px solid var(--gsi-border) !important;
        border-bottom: 1px solid var(--gsi-border) !important;
    }

    /* 5. TEXTOS E ALINHAMENTOS GERAIS */
    .section-title h2 { font-size: 28px; padding: 0 10px; }
    .banner-red h2, .banner-blue h2 { font-size: 26px; }
    
    .ecosystem-content { text-align: center; order: -1; }
    .eco-list li { justify-content: center; text-align: left; }

    /* 6. PLANOS DE PREÇO (Remove o zoom para não cortar a tela) */
    .price-card.featured { transform: scale(1); }
    .guilder-card.popular { transform: scale(1); }
    .guilder-card.popular:hover { transform: translateY(-8px); }

    /* 7. TOGGLE DE MENSAL/ANUAL */
    .gsi-billing-toggle { flex-wrap: wrap; padding: 0 10px; }
}

/* Ajustes Extras para Telas Muito Pequenas (iPhones antigos) */
@media (max-width: 480px) {
    .price-value { font-size: 40px !important; }
    .hero-content h1 { font-size: 28px; }
}