@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --navy-deep: #1A365D;       /* Dominante - Briefing */
    --navy-dark: #0F1E34;
    --gold-soft: #D69E2E;       /* Ações - Briefing */
    --gold-hover: #B58322;
    --off-white: #F8FAFC;       /* Fundo - Briefing */
    --white: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --shadow-premium: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--off-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Navbar */
header {
    background-color: var(--navy-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}
.brand-logo span { color: var(--gold-soft); }
.nav-menu a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    margin-left: 2rem;
    font-size: 0.95rem;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); }

/* ==========================================================================
   HERO SECTION - VERSÃO CORPORATIVA SIMÉTRICA (CONTÊINER TRAVADO)
   ========================================================================= */
.hero-section {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-dark) 100%);
    padding: 7rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

/* Coluna Esquerda Rígida */
.hero-text-content {
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex-shrink: 0;
}

.hero-tagline {
    color: var(--gold-soft);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title .highlight-text {
    color: var(--gold-soft);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    line-height: 1.7;
    text-align: left;
}

/* Grid de Cards Alinhada à Coluna */
.hero-cards-grid {
    display: flex;
    gap: 1.25rem;
    width: 100%;
}

.hero-card-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card-btn:hover, .hero-card-btn.active {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--gold-soft);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-icon { 
    font-size: 1.5rem; 
    line-height: 1;
    flex-shrink: 0;
}

.card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-text h3 { 
    font-size: 0.95rem; 
    font-weight: 700; 
    margin-bottom: 0.15rem; 
    color: var(--white); 
    white-space: nowrap;
}

.card-text p { 
    font-size: 0.8rem; 
    color: #cbd5e1; 
    white-space: nowrap;
}

/* Coluna Direita Rígida */
.hero-image-content {
    width: 100%;
    max-width: 440px;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.image-wrapper {
    position: relative;
    width: 100%;
}

.main-hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    display: block;
}

.floating-badge {
    position: absolute;
    bottom: 25px;
    left: -25px;
    background: var(--white);
    color: var(--text-main);
    padding: 0.85rem 1.15rem;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    display: flex;
    gap: 0.65rem;
    align-items: center;
    border: 1px solid var(--border-light);
}

.badge-icon {
    background: #10b981; color: var(--white);
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 0.8rem;
}
.badge-text h4 { font-size: 0.85rem; font-weight: 700; }
.badge-text p { font-size: 0.75rem; color: var(--text-muted); }

/* ==========================================================================
   BARRA DE MÉTRICAS E SEÇÃO DO VÍDEO
   ========================================================================= */
.metrics-bar { background: #1A365D; padding: 2rem 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.metrics-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; }
.metric-item { text-align: center; }
.metric-item h3 { color: #D69E2E; font-size: 1.8rem; font-weight: 800; }
.metric-item p { color: #cbd5e1; font-size: 0.85rem; margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.metric-divider { width: 1px; height: 35px; background: rgba(255,255,255,0.15); }

.video-section { padding: 5rem 2rem; background-color: var(--off-white); }
.video-section-container { max-width: 900px; margin: 0 auto; }
.video-header { text-align: center; margin-bottom: 3rem; }
.video-section-title { font-size: 2.1rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 1rem; }
.video-section-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; }
.video-wrapper-facade { width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(26, 54, 148, 0.2) 0%, rgba(15, 23, 44, 0.95) 100%); border-radius: 12px; position: relative; cursor: pointer; box-shadow: var(--shadow-premium); border: 1px solid var(--border-light); overflow: hidden; }
.video-thumbnail-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.25rem; }
.video-preview-text { color: var(--gold-soft); font-weight: 600; letter-spacing: 1px; font-size: 0.9rem; text-transform: uppercase; }
.video-play-btn { background: var(--white); color: var(--navy-deep); border: none; padding: 1rem 2rem; border-radius: 6px; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 0.65rem; box-shadow: 0 10px 25px rgba(0,0,0,0.2); cursor: pointer; }

/* ==========================================================================
   VITRINE DE INTELIGÊNCIA FISCAL - RITMO VISUAL ADAPTADO (CINZA GELO)
   ========================================================================= */
.blog-preview-section {
    background-color: #F1F5F9; /* Quebra estrutural amparada pela visão de design */
    padding: 6rem 5%;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}
.blog-grid-home {
    max-width: 1140px;
    margin: 3.5rem auto 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.blog-card-home {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(26, 54, 93, 0.06);
    border-color: rgba(214, 158, 46, 0.3);
}
.blog-card-img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 2.25rem; }
.blog-card-tag { color: var(--gold-soft); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; display: block; margin-bottom: 0.85rem; }
.blog-card-title { font-size: 1.35rem; color: var(--navy-deep); margin-bottom: 1rem; line-height: 1.4; font-weight: 700; }
.blog-card-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.6; }
.blog-card-link { color: var(--navy-deep); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.blog-card-link:hover { color: var(--gold-soft); }

/* ==========================================================================
   TABELA COMPARATIVA E FECHAMENTO
   ========================================================================= */
.comparativo-section { padding: 6rem 5%; background-color: var(--off-white); }
.tabela-comparativa-container { max-width: 1140px; margin: 0 auto; background: var(--white); border-radius: 12px; padding: 0.5rem; border: 1px solid var(--border-light); box-shadow: var(--shadow-premium); overflow-x: auto; }
.tabela-premium { width: 100%; border-collapse: separate; border-spacing: 0; }
.tabela-premium th, .tabela-premium td { padding: 1.15rem 1.35rem; text-align: left; }
.tabela-premium th { color: var(--navy-deep); font-weight: 700; border-bottom: 2px solid var(--border-light); }
.tabela-premium th.col-lichieri { color: #1E3A8A; font-weight: 800; }
.tabela-premium td { border-bottom: 1px solid var(--border-light); font-size: 0.95rem; }
.tabela-premium tr:last-child td { border-bottom: none; }
.feature-title { font-weight: 600; color: var(--text-main); }
.check-lichieri { color: #1E3A8A; font-weight: 500; background-color: rgba(26,54,93,0.01); }
.check-online { color: #94a3b8; }

.fechamento-section { padding: 5rem 2rem; background-color: var(--off-white); }
.form-card-container { max-width: 600px; margin: 0 auto; background: var(--white); padding: 3.5rem 3rem; border-radius: 14px; border: 1px solid var(--border-light); box-shadow: var(--shadow-premium); }
.form-header { text-align: center; margin-bottom: 2rem; }
.form-section-title { font-size: 1.85rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 0.5rem; }
.form-section-subtitle { color: var(--text-muted); font-size: 0.95rem; }
.premium-form .form-group { margin-bottom: 1.35rem; }
.premium-form label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; color: #475569; }
.premium-form input, .premium-form select { width: 100%; padding: 0.9rem 1.15rem; border: 1px solid #CBD5E1; border-radius: 6px; font-size: 0.95rem; background-color: #F8FAFC; color: var(--text-main); }
.premium-form input:focus, .premium-form select:focus { outline: none; border-color: var(--navy-deep); background-color: var(--white); box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.06); }
.btn-submit-form { width: 100%; background: var(--gold-soft); color: var(--navy-deep); border: none; padding: 1rem; border-radius: 6px; font-weight: 700; font-size: 0.95rem; cursor: pointer; margin-top: 0.75rem; transition: all 0.2s ease; }
.btn-submit-form:hover { background: var(--gold-hover); }

/* RESPONSIVIDADE SEGURA */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; gap: 2.5rem; }
    .hero-text-content { align-items: center; text-align: center; max-width: 100%; }
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { text-align: center; margin-right: auto; margin-left: auto; }
    .hero-image-content { justify-content: center; }
    .floating-badge { left: 10px; bottom: -10px; }
    .blog-grid-home { grid-template-columns: 1fr; }
    .form-card-container { padding: 2.5rem 1.5rem; }
    .metric-divider { display: none; }
    .metrics-container { flex-direction: column; gap: 20px; }
    .card-text h3, .card-text p { white-space: normal; }
}

@media (max-width: 576px) {
    .hero-cards-grid { flex-direction: column; }
}