/**
 * Precatorize Enterprise - Home & Conversion Design V8.6
 * Localização: assets/css/home.css
 * Estilo: Institutional Fintech / High-Performance UI
 */

/* --- 1. HERO SECTION & SHARED NAVY BACKGROUND --- */
.hero-premium {
    background: radial-gradient(circle at top right, #0f172a 0%, #002d5e 100%) !important;
    padding-top: 180px !important;
    padding-bottom: 200px !important;
    position: relative;
    overflow: hidden;
}

/* Efeito de iluminação suave (Bloom) */
.hero-premium::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(0, 86, 179, 0.12);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

.hero-premium h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -2.5px;
    font-weight: 800;
}

/* --- 2. STATS BAR (METRICS OVERLAP) --- */
.stats-bar {
    margin-top: -70px;
    position: relative;
    z-index: 40;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.stats-bar h3 {
    letter-spacing: -1.5px;
    font-size: 1.8rem;
}

/* --- 3. REVEAL ON SCROLL ENGINE --- */
.reveal {
    position: relative;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- 4. BLOCOS DE CONTEÚDO (THE CATCH) --- */
.card-premium {
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}

/* Janela de Oportunidade - Ajuste de Ícone e Texto */
.bg-dark {
    background-color: #0f172a !important;
}

.bg-dark h4 {
    letter-spacing: -1px;
}

/* --- 5. SIMULADOR DINÂMICO (INTERFACE SWAP) --- */
#simulador {
    padding-top: 120px;
    padding-bottom: 120px;
}

#simulador .card-premium {
    border: 1px solid #f1f5f9;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

#simulador .form-control-lg, 
#simulador .form-select-lg {
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    font-size: 1.05rem;
    font-weight: 600;
    background-color: #f8fafc;
    border: 2px solid #edf2f7;
    transition: all 0.3s ease;
}

#simulador .form-control-lg:focus, 
#simulador .form-select-lg:focus {
    background-color: #ffffff;
    border-color: #0056b3;
    box-shadow: 0 0 0 6px rgba(0, 86, 179, 0.08);
}

/* Resultado da Simulação (Estado 2) */
.border-dashed {
    border-style: dashed !important;
}

#valor_estimado {
    letter-spacing: -3px;
    line-height: 1;
}

/* --- 6. DIFERENCIAIS (ICON CIRCLES) --- */
.icon-circle {
    width: 84px;
    height: 84px;
    background: rgba(0, 86, 179, 0.05);
    color: #0056b3;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-box:hover .icon-circle {
    background: #0056b3;
    color: #ffffff;
    transform: rotate(-8deg) scale(1.1);
}

/* --- 7. PROVA SOCIAL (FINTECH AVATARS) --- */
.avatar-squircle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.05) !important;
}

/* --- 8. ANIMAÇÕES & RESPONSIVIDADE --- */
.animate-pulse {
    animation: pulse-blue 2.5s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.4); }
    70% { box-shadow: 0 0 0 18px rgba(0, 86, 179, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0); }
}

@media (max-width: 991.98px) {
    .hero-premium {
        padding-top: 140px !important;
        padding-bottom: 160px !important;
        text-align: center;
    }
    
    .stats-bar {
        margin-top: -50px;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .stats-bar .border-start, 
    .stats-bar .border-end {
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    #simulador .card-premium {
        margin-top: -80px;
    }
    
    #valor_estimado {
        font-size: 2.5rem;
    }
}