/* 1. VARIÁVEIS E RESET */
:root {
    --p: #00ffaa;         /* Verde Cajee */
    --bg: #050505;        /* Fundo Ultra Dark */
    --surface: #111113;   /* Cards Dark */
    --accent: #1d1d1f;    /* Elementos de destaque */
    --text: #ffffff;      /* Texto principal */
    --sub: #86868b;       /* Textos secundários estilo Apple */
    --green: #25D366;     /* Verde Sucesso/WhatsApp */
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

html {
    scroll-behavior: smooth;
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.5; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden;
}

.container { 
    max-width: 1240px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* 2. NAVBAR (GLASSMORPHISM) */
.glass-nav { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    padding: 20px 0; 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    background: rgba(8, 8, 10, 0.8); 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

.nav-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-size: 26px; 
    font-weight: 800; 
    letter-spacing: -1.5px; 
}

.logo span { color: var(--p); }

nav a { 
    color: var(--sub); 
    text-decoration: none; 
    margin-right: 35px; 
    font-size: 14px; 
    font-weight: 500; 
    transition: 0.3s; 
}

nav a:hover { color: white; }

.btn-sm {
    background: var(--p);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* 3. HERO SECTION */
.hero-premium { 
    padding: 180px 0 100px; 
    background: radial-gradient(at 0% 0%, rgba(0, 191, 255, 0.08) 0%, transparent 50%); 
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr 460px; 
    gap: 60px; 
    align-items: center; 
}

.badge { 
    background: rgba(0, 255, 170, 0.1); 
    color: var(--p); 
    padding: 8px 16px; 
    border-radius: 100px; 
    font-size: 11px; 
    font-weight: 700; 
    letter-spacing: 1px; 
}

h1 { 
    font-size: clamp(40px, 6vw, 72px); 
    font-weight: 800; 
    letter-spacing: -3px; 
    line-height: 0.95; 
    margin: 30px 0; 
}

h1 span { color: var(--sub); }

/* 4. SIMULADOR (FINTECH STYLE) */
.sim-card-main { 
    background: var(--surface); 
    padding: 45px; 
    border-radius: 40px; 
    border: 1px solid rgba(255,255,255,0.06); 
    box-shadow: 0 50px 100px rgba(0,0,0,0.8); 
}

.intent-selector { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
    margin-bottom: 30px; 
}

.intent-btn { 
    background: var(--accent); 
    border: 1px solid transparent; 
    color: var(--sub); 
    padding: 15px; 
    border-radius: 16px; 
    cursor: pointer; 
    transition: 0.3s; 
    font-weight: 600; 
}

.intent-btn.active { 
    border-color: var(--p); 
    color: white; 
    background: rgba(0, 255, 170, 0.05); 
}

.display-container { 
    text-align: center; 
    margin: 30px 0; 
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 20px;
}

.display-container small { 
    font-size: 10px; 
    color: var(--p); 
    letter-spacing: 2px; 
    font-weight: 800; 
}

.display-container h2 { 
    font-size: 44px; 
    font-weight: 800; 
    margin-top: 5px; 
}

/* --- DESIGN DO SLIDER (MELHORADO) --- */
input[type=range].slider-fintech {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    background-image: linear-gradient(var(--p), var(--p));
    background-size: 0% 100%; /* JS controla isso */
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 6px;
}

input[type=range].slider-fintech::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--p);
    margin-top: -9px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: 0.2s;
}

input[type=range].slider-fintech:active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(0, 191, 255, 0.2);
}

.predictive-box { 
    display: flex; 
    justify-content: space-between; 
    background: rgba(255,255,255,0.02); 
    padding: 20px; 
    border-radius: 20px; 
    margin-bottom: 30px; 
}

.predict-item span { 
    display: block; 
    font-size: 11px; 
    color: var(--sub); 
    margin-bottom: 5px; 
}

.predict-item strong { font-size: 15px; }
.green-text { color: var(--green); }

.btn-main-gradient { 
    width: 100%; 
    padding: 22px; 
    border: none; 
    border-radius: 20px; 
    background: linear-gradient(135deg, #00bfff 0%, #00ffaa91 100%); 
    color: white; 
    font-weight: 800; 
    font-size: 14px; 
    cursor: pointer; 
    transition: 0.4s; 
}

/* 5. BLOG SECTION */
.blog-section { padding: 80px 24px; }
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 50px; text-align: center; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.blog-card { 
    background: var(--surface); 
    border-radius: 24px; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.05); 
    text-decoration: none; 
    color: white; 
    transition: 0.3s; 
}
.blog-card:hover { transform: translateY(-10px); border-color: var(--p); }
.blog-img { height: 160px; background-size: cover; background-position: center; }
.blog-content { padding: 20px; }
.blog-tag { color: var(--p); font-size: 10px; font-weight: 800; text-transform: uppercase; }

/* 6. MODAL PREMIUM REVOLUCIONÁRIO */
.modal-overlay { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.95); 
    backdrop-filter: blur(30px); 
    z-index: 9999; 
    place-items: center; 
}

.modal-premium { 
    background: white; 
    width: 95%; 
    max-width: 950px; 
    height: 580px; 
    border-radius: 48px; 
    display: flex; 
    position: relative; 
    overflow: hidden; 
    color: #000; 
}

.modal-visual { 
    flex: 1.4; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    padding: 60px; 
    display: flex; 
    align-items: flex-end; 
    transition: background-image 0.5s ease-in-out;
    background-size: cover;
    background-position: center center; /* Garante que o objeto principal da foto fique no meio */
}

.modal-visual::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 80%); 
}

.visual-content { position: relative; z-index: 2; color: white; }

.modal-form-area { 
    flex: 1; 
    padding: 60px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.modal-form-area input { 
    width: 100%; 
    padding: 20px; 
    margin-bottom: 15px; 
    border-radius: 16px; 
    border: 1px solid #e1e1e1; 
    font-size: 16px; 
    background: #f9f9f9; 
}

/* BOTÃO FECHAR PREMIUM */
.close-premium { 
    position: absolute; 
    top: 25px; 
    right: 25px; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    border: none; 
    background: white; 
    cursor: pointer; 
    transition: 0.3s; 
    z-index: 100; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    color: #000;
}
.close-premium:hover { background: var(--p); color: white; transform: rotate(90deg); }

/* 7. RESPONSIVIDADE */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .modal-premium { flex-direction: column; height: auto; border-radius: 32px; }
    .modal-visual { height: 250px; padding: 30px; }
    .modal-form-area { padding: 40px 30px; }
}
/* --- SLIDER LUXO CAJEE --- */
input[type=range].slider-fintech {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    background-image: linear-gradient(var(--p), var(--p)); /* Cor do preenchimento */
    background-repeat: no-repeat;
    background-size: 0% 100%; /* Controlado pelo JS */
    border-radius: 10px;
    cursor: pointer;
    margin: 30px 0;
}

input[type=range].slider-fintech::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--p);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-top: -9px;
    transition: 0.2s ease;
}

input[type=range].slider-fintech:active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(238, 49, 36, 0.2);
}

/* --- MODAL COM BACKGROUND DINÂMICO --- */
.modal-premium {
    background: white;
    width: 95%;
    max-width: 950px;
    height: 580px;
    border-radius: 40px;
    display: flex;
    position: relative;
    overflow: hidden;
    color: #000;
}

.modal-visual {
    flex: 1.4;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 60px;
    display: flex;
    align-items: flex-end;
    /* A imagem é injetada via JS com o degradê integrado */
}

/* --- BOTÃO FECHAR PREMIUM (X flutuante) --- */
.close-premium {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    color: #333;
    transition: 0.3s;
}

.close-premium:hover {
    background: var(--p);
    color: white;
    transform: rotate(90deg);
}
/* --- ESTILIZAÇÃO DAS PÁGINAS DE CONTEÚDO (ARTIGOS) --- */

.article-page {
    background-color: var(--bg);
    color: var(--text);
    padding-top: 100px; /* Espaço para a navbar fixa */
}

.article-page .py-5 {
    padding: 80px 0;
    max-width: 800px; /* Largura ideal para leitura */
    margin: 0 auto;
}

.article-page a {
    color: var(--p);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.article-page a:hover {
    opacity: 0.8;
}

.article-page h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.article-page .lead {
    font-size: 20px;
    color: var(--sub);
    margin-bottom: 40px;
    line-height: 1.4;
}

.content-text {
    font-size: 18px;
    line-height: 1.8;
    color: #e1e1e1;
}

.content-text p {
    margin-bottom: 25px;
}

.content-text h3 {
    color: white;
    font-size: 24px;
    margin: 40px 0 20px;
}

.content-text ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.content-text li {
    margin-bottom: 12px;
}

.comparison-box {
    border-left: 4px solid var(--p);
    background: rgba(255,255,255,0.03) !important;
    color: white !important;
}

.comparison-box h3 {
    margin-top: 0 !important;
    color: var(--p) !important;
}

/* Ajuste do botão dentro das páginas de conteúdo */
.cta-internal-box {
    margin-top: 60px;
    border-radius: 30px;
}

.cta-internal-box .btn-main-gradient {
    max-width: 300px;
    margin: 20px auto 0;
    color: #ffffff;
}

/* Responsividade para Artigos */
@media (max-width: 768px) {
    .article-page .py-5 {
        padding: 40px 20px;
    }
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 170, 0.2) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.174);
}

/* ==========================================================================
   7. RESPONSIVIDADE E OTIMIZAÇÃO PARA CELULAR (MOBILE FIRST / ADAPTATIVO)
   ========================================================================== */

@media (max-width: 960px) {
    /* Ajustes Gerais de Container e Tipografia */
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 2.2rem !important;
        letter-spacing: -1px;
        line-height: 1.1;
        margin: 20px 0;
    }

    /* Hero Section */
    .hero-premium {
        padding: 120px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .trust-indicators {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
        font-size: 0.85rem;
    }
    
    .trust-indicators br {
        display: none; /* Transforma as quebras em linha única no mobile */
    }

    /* O Simulador no Mobile */
    .sim-card-main {
        padding: 24px 16px;
        border-radius: 24px;
    }

    .intent-selector {
        grid-template-columns: repeat(2, 1fr); /* Mantém 2x2 bem ajustado */
        gap: 8px;
    }

    .intent-btn {
        padding: 12px 8px;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    .display-container h2 {
        font-size: 2rem;
    }

    .predictive-box {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    /* MODAL PREMIUM (O maior problema no mobile) */
    .modal-overlay {
        align-items: flex-start; /* Permite rolar o modal se a tela for muito pequena */
        padding: 10px;
        overflow-y: auto;
    }

    .modal-premium {
        flex-direction: column;
        height: auto; /* Destrava a altura fixa de 580px */
        max-height: 90vh;
        border-radius: 24px;
        overflow-y: auto; /* Permite scroll interno se necessário */
    }

    .modal-visual {
        flex: none;
        height: 160px; /* Reduz a imagem para focar no formulário */
        padding: 20px;
        align-items: center;
        text-align: center;
    }

    .modal-visual::after {
        background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
    }

    .visual-content h2 {
        font-size: 1.3rem !important;
        margin-top: 5px;
    }

    .modal-form-area {
        padding: 30px 20px;
    }

    .modal-form-area h3 {
        font-size: 1.3rem;
    }

    .modal-form-area input {
        padding: 16px;
        font-size: 15px;
        border-radius: 12px;
    }

    .close-premium {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 600px) {
    /* Páginas de Artigo / Blog interno */
    .hero-article {
        padding: 100px 0 40px 0 !important;
    }

    .hero-article h1 {
        font-size: 1.8rem !important;
    }

    .hero-article br {
        display: none;
    }

    .article-page .py-5 {
        padding: 30px 16px;
    }

    .comparison-box {
        padding: 20px !important;
        border-radius: 16px !important;
        margin: 25px 0 !important;
    }

    .comparison-box div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important; /* Transforma o comparativo lado a lado em empilhado */
        gap: 15px !important;
    }

    .cta-internal-box {
        padding: 30px 16px !important;
        border-radius: 24px !important;
    }

    .cta-internal-box h2 {
        font-size: 1.6rem !important;
    }

    /* Ajuste do botão flutuante do WhatsApp para não tampar conteúdo */
    #whatsapp-flutuante {
        bottom: 20px;
        right: 20px;
    }
    
    #whatsapp-flutuante div {
        width: 55px;
        height: 55px;
    }
}