/* ============================================
   CONTROLE FINANCEIRO 360 - Landing Page Pro
   Design Philosophy: Clean, Dynamic, Tech-forward, Brand-centric
   ============================================ */

:root {
    --color-background: #ffffff;
    --color-foreground: #1a1a1a;
    --color-primary: #1F2B3F; /* Azul Escuro da Marca */
    --color-primary-foreground: #ffffff;
    --color-secondary: #f3f4f6;
    --color-secondary-foreground: #374151;
    --color-secondary-blue: #F8FAFC; /* Azul Gelo ultra-leve para quebrar o branco */
    --color-muted-foreground: #6b7280;
    --color-border: #e5e7eb;
    --color-accent: #C3A25D; /* Dourado da Marca */
    --radius: 0.65rem;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: var(--color-background);
    color: var(--color-foreground);
    overflow-x: hidden; 
}

/* ================= UTILITIES & ANIMATIONS ================= */
.w-full { width: 100%; }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(31, 43, 63, 0.1), 0 10px 10px -5px rgba(31, 43, 63, 0.04); }
.shadow-gold-intense { box-shadow: 0 20px 25px -5px rgba(195, 162, 93, 0.2), 0 10px 10px -5px rgba(195, 162, 93, 0.1); }
.rounded-lg { border-radius: 12px; }
.text-center { text-align: center; }
.bg-secondary-blue { background-color: var(--color-secondary-blue); }
.border-y { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.accent-text { color: var(--color-accent) !important; }

/* Animação Inicial no Hero */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Lógica de Movimento no Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* Barra de Progresso Dourada */
.progress-bar-container { position: fixed; top: 0; left: 0; width: 4px; height: 100%; z-index: 999; }
.progress-bar { height: 0%; background-color: var(--color-accent); width: 100%; transition: height 0.1s; }

/* ================= 1. HERO SECTION (Dark Premium) ================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-primary); /* Fundo Azul Escuro! */
}

/* Grid com linhas brancas translúcidas para aparecer no escuro */
.grid-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 76%, transparent 77%, transparent);
    background-size: 40px 40px;
}

.grid-background.opacity-low { opacity: 0.15; }

.grid-mask {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.15) 25%, rgba(255, 255, 255, 0.15) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.15) 75%, rgba(255, 255, 255, 0.15) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 0.15) 25%, rgba(255, 255, 255, 0.15) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.15) 75%, rgba(255, 255, 255, 0.15) 76%, transparent 77%, transparent);
    background-size: 40px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    mask-image: radial-gradient(circle 300px at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(circle 300px at 50% 50%, black, transparent);
}

.grid-mask.active { opacity: 1; }

/* Bolhas de Gradiente: Azul neon e dourado criando brilho no fundo escuro */
.gradient-blobs { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); animation: blobAnimation 15s infinite alternate; }
.blob-gold { width: 45%; height: 45%; right: -10%; top: -10%; background: rgba(195, 162, 93, 0.4); animation-delay: 2s;}
.blob-dark { width: 45%; height: 45%; left: -10%; bottom: -20%; background: rgba(59, 130, 246, 0.3); } 

@keyframes blobAnimation {
    0% { transform: scale(1) translateY(0); opacity: 0.5; }
    50% { transform: scale(1.1) translateY(-30px); opacity: 0.8; }
    100% { transform: scale(0.9) translateY(20px); opacity: 0.5; }
}

/* Typography & Content do Hero (Ajustado para o escuro) */
.content-wrapper { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; pointer-events: none; }
.content { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem; max-width: 54rem; margin: 0 auto; gap: 1.5rem; }

.hero-section .badge { 
    background: rgba(195, 162, 93, 0.15); 
    color: #E5C37A; 
    border: 1px solid rgba(195, 162, 93, 0.3); 
    box-shadow: 0 0 15px rgba(195, 162, 93, 0.1);
    padding: 0.5rem 1rem; border-radius: 20px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
}
.hero-section .title { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; color: #ffffff; text-shadow: 0 4px 12px rgba(0,0,0,0.3); line-height: 1.05; }
.hero-section .subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: #cbd5e1; line-height: 1.6; max-width: 85%; }

/* Botões do Hero (Dourado e Vidro Fosco) */
.buttons-group { display: flex; gap: 1.2rem; pointer-events: auto; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.btn { padding: 1rem 2.5rem; font-size: 1rem; font-weight: 700; border: none; border-radius: calc(var(--radius)); cursor: pointer; transition: all 0.2s ease; }
.btn:active { transform: scale(0.98); }

.hero-section .btn-primary { background-color: var(--color-accent); color: white; box-shadow: 0 4px 15px rgba(195, 162, 93, 0.3); }
.hero-section .btn-primary:hover { background-color: #b29150; box-shadow: 0 6px 20px rgba(195, 162, 93, 0.5); }
.hero-section .btn-secondary { background-color: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(8px); }
.hero-section .btn-secondary:hover { background-color: rgba(255,255,255,0.15); }

/* ================= UTILITIES P/ SEÇÕES ADICIONAIS (Fundo Claro) ================= */
.page-section { padding: 8rem 1.5rem; }
.max-width-container { max-width: 1200px; margin: 0 auto; }
.section-header { max-width: 750px; margin: 0 auto 5rem auto; }
.section-header h2 { font-size: clamp(2.2rem, 5vw, 3rem); color: var(--color-primary); margin-bottom: 1.2rem; letter-spacing: -0.02em; font-weight: 800; line-height: 1.1;}
.section-header p { font-size: 1.15rem; color: var(--color-muted-foreground); line-height: 1.6; }

/* Botões Padrão para o resto da página */
.btn-primary { background-color: var(--color-primary); color: var(--color-primary-foreground); box-shadow: 0 4px 6px rgba(31, 43, 63, 0.2); }
.btn-primary:hover { background-color: #2d3e57; box-shadow: 0 10px 15px rgba(31, 43, 63, 0.3); }
.btn-secondary { background-color: var(--color-secondary); color: var(--color-secondary-foreground); border: 1px solid var(--color-border); }
.btn-secondary:hover { background-color: #e5e7eb; }
.btn-accent { background-color: var(--color-accent); color: white; }
.btn-accent:hover { background-color: #b29150; }

/* ================= 2. NOVO: SHOWCASE DO MOCKUP (Browser) ================= */
.mockup-container { background: white; border-radius: 12px; overflow: hidden; border: 1px solid var(--color-border); max-width: 1000px; margin: 0 auto; transition: transform 0.5s ease; }
.mockup-container:hover { transform: scale(1.02); }
.mockup-header { background: #f3f4f6; padding: 12px; border-bottom: 1px solid var(--color-border); display: flex; }
.mockup-header .dots { display: flex; gap: 8px; }
.mockup-header .dots span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.dots .red { background: #ff5f56; }
.dots .yellow { background: #ffbd2e; }
.dots .green { background: #27c93f; }
.mockup-img { width: 100%; height: auto; display: block; max-height: 600px; object-fit: cover; object-position: top;}

/* ================= 3. RECURSOS LAYOUT ALTERNADO ================= */
.feature-row { display: flex; align-items: center; gap: 5rem; margin-bottom: 8rem; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; text-align: left;}
.feature-image { flex: 1.2; display: flex; justify-content: center;}
.feature-image img { width: 100%; max-width: 550px; height: auto; border: 1px solid var(--color-border);}

.icon-box { width: 50px; height: 50px; background: rgba(195, 162, 93, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--color-accent);}
.feature-text h3 { font-size: 1.8rem; color: var(--color-primary); margin-bottom: 1rem; letter-spacing: -0.01em; font-weight: 700; }
.feature-text p { color: var(--color-muted-foreground); line-height: 1.6; font-size: 1.05rem; }

/* ================= 4. CONFIANÇA/SEGURANÇA GRID ================= */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.trust-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem; }
.trust-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; opacity: 0.9;}
.trust-card h4 { font-size: 1.2rem; color: var(--color-primary); margin-bottom: 0.7rem; font-weight: 700; }
.trust-card p { color: var(--color-muted-foreground); font-size: 0.95rem; line-height: 1.5; max-width: 280px; }

/* ================= 5. PREÇOS GRID & CARDS ================= */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; max-width: 900px; margin: 0 auto; }
.pricing-card { background: white; padding: 4rem 2.5rem; border-radius: 1.5rem; border: 1px solid var(--color-border); position: relative; display: flex; flex-direction: column; align-items: center; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.02);}
.pricing-card:hover { border-color: #d1d5db; transform: translateY(-5px); }

.pricing-card h3 { font-size: 1.3rem; color: var(--color-muted-foreground); margin-bottom: 1rem; font-weight: 600; }
.pricing-card .price { font-size: 4rem; font-weight: 800; color: var(--color-primary); display: flex; align-items: flex-start; line-height: 1; margin-bottom: 0.5rem; }
.price .currency { font-size: 1.8rem; margin-top: 0.5rem; margin-right: 0.25rem; }
.price .period { font-size: 1.1rem; color: var(--color-muted-foreground); font-weight: 500; align-self: flex-end; margin-bottom: 0.6rem; margin-left: 0.25rem; }
.billing-info { font-size: 0.9rem; color: var(--color-muted-foreground); margin-bottom: 2.5rem; }

.pricing-features { list-style: none; width: 100%; margin-bottom: 3rem; flex: 1;}
.pricing-features li { padding: 1rem 0; border-bottom: 1px solid #f1f1f1; color: var(--color-secondary-foreground); font-size: 0.98rem; text-align: left; display: flex; align-items: center; }
.pricing-features li li::before { content: '✓'; color: var(--color-accent); font-weight: bold; margin-right: 12px;}
.pricing-features li:last-child { border-bottom: none; }

/* Destaque Anual Dourado */
.pricing-card.highlight { border: 2.5px solid var(--color-accent); transform: scale(1.03); }
.highlight-badge { position: absolute; top: -18px; background: var(--color-accent); color: white; padding: 0.6rem 1.3rem; border-radius: 20px; font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; box-shadow: 0 4px 6px rgba(195, 162, 93, 0.3); whitespace-nowrap: nowrap; }
.shadow-glow { box-shadow: 0 4px 20px rgba(195, 162, 93, 0.5); }
.shadow-glow:hover { box-shadow: 0 6px 25px rgba(195, 162, 93, 0.7); }

/* ================= FOOTER ================= */
.footer { text-align: center; padding: 4rem 2rem; border-top: 1px solid var(--color-border); color: var(--color-muted-foreground); font-size: 0.9rem; background: #fafafa; }
.flex { display: flex; }
.gap-4 { gap: 1rem; }
.justify-center { justify-content: center; }
.mt-2 { margin-top: 0.5rem; }
.text-xs { font-size: 0.75rem; }
.opacity-60 { opacity: 0.6; }

/* ================= RESPONSIVO ================= */
@media (max-width: 960px) {
    .feature-row { flex-direction: column !important; gap: 3rem; text-align: center; }
    .feature-text { text-align: center; display: flex; flex-direction: column; align-items: center;}
    .feature-row:last-child { margin-bottom: 0rem; }
}

@media (max-width: 768px) {
    .pricing-card.highlight { transform: scale(1); margin-top: 1.5rem; }
    .page-section { padding: 5rem 1.2rem; }
    .section-header { margin-bottom: 3rem; }
    .hero-section .badge { font-size: 0.8rem; padding: 0.4rem 0.8rem;}
    .grid-background { background-size: 30px 30px; }
}

/* ================= HEADER & LOGO ================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

/* Classe ativada via JavaScript quando o usuário rolar a página */
.main-header.scrolled {
    background-color: rgba(31, 43, 63, 0.95); /* Azul escuro da marca com transparência */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 60px; /* Ajuste a altura conforme a sua imagem */
    width: auto;
    background-color: #e5e7eb;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.btn-login {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}