/* ========================================== */
/* 1. FONTES E VARIÁVEIS                      */
/* ========================================== */

/* Conectando os arquivos da fonte que você baixou */
@font-face {
    font-family: 'RetraviFont';
    src: url('_next/static/media/19752a5264a5bb90-s.p.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'RetraviFont';
    src: url('_next/static/media/2df2ea0d36a5c5dd-s.p.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'RetraviFont';
    src: url('_next/static/media/47a2a43b94f84c86-s.p.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'RetraviFont';
    src: url('_next/static/media/e182744b7ddae381-s.p.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-purple: #8c52ff;
    --dark-bg: #15161A;
    --text-dark: #1C1D23;
    --text-grey: #6E707A;
    --border-color: rgba(0, 0, 0, 0.05);
    --white: #ffffff;
    --bg-page: #ffffff; 
    --success-color: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Agora a fonte principal foi chamada aqui! */
    font-family: 'RetraviFont', 'Poppins', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================== */
/* 2. UTILITÁRIOS & UI KIT                    */
/* ========================================== */
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--bg-page); }
.bg-dark { background-color: var(--dark-bg); }
.text-white { color: var(--white) !important; }
.text-light-grey { color: #A0A3B1 !important; }
.text-center { text-align: center; }
.w-100 { width: 100%; padding: 16px !important; font-size: 1.05rem !important; }

.section-tag {
    display: inline-block;
    background: rgba(140, 82, 255, 0.06);
    color: var(--primary-purple);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.tag-light {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.btn-custom {
    background: var(--primary-purple);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px; /* Canto mais moderno */
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-custom:hover {
    background: #7a42ea;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(140, 82, 255, 0.2);
}

/* Utilitário específico para o botão da Navbar */
.btn-nav {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    box-shadow: none;
}

.card-box {
    background: var(--white);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}

.fallback-logo {
    font-weight: 600; 
    font-size: 1.2rem; 
    color: var(--primary-purple);
    letter-spacing: -0.5px;
}

/* ========================================== */
/* 3. NAVBAR INSTITUCIONAL                    */
/* ========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.04); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03); 
    z-index: 1000;
    transition: 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand img {
    height: 48px; 
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-custom) {
    color: #4A4B53; 
    text-decoration: none;
    font-weight: 400;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.nav-links a:not(.btn-custom):hover {
    color: var(--primary-purple);
}

.btn-nav {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    font-weight: 500;
}

/* Ajustes da Navbar exclusivos para Mobile */
@media (max-width: 768px) {
    .nav-container { 
        /* AQUI: Aumentamos de 0.8rem para 1.2rem para dar mais "corpo" à barra */
        padding: 1.2rem 1.2rem; 
    }
    
    .brand img { 
        height: 32px; 
    }
    
    .nav-links a:not(.btn-custom) { 
        display: none; 
    }
    
    .btn-nav {
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }
}

/* ========================================== */
/* 4. HERO SECTION                            */
/* ========================================== */
.hero {
    position: relative;
    padding: 12rem 2rem 8rem;
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; /* Fundo azul escuro limpo e liso */
    overflow: hidden; 
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
}

.badge-hero {
    background: rgba(140, 82, 255, 0.15); 
    color: #001737; /* Lilás claro para contrastar no fundo escuro */
    border: 1px solid #001737;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.8rem;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    color: #001737; /* Texto em branco absoluto */
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #001737; /* Cinza claro suave para leitura fácil */
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 680px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Botão secundário ajustado para fundos escuros */
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #001737;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #001737;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================== */
/* 5. SEÇÕES GERAIS                           */
/* ========================================== */
.section {
    padding: 7rem 2rem;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* ========================================== */
/* 6. SEÇÃO: BNCC                             */
/* ========================================== */
.bncc-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.bncc-text { 
    flex: 1; 
}

/* Título alterado para NEGRITO forte */
.bncc-text h2 { 
    font-size: 2.3rem; 
    font-weight: 700; /* Negrito (Bold) */
    color: var(--text-dark);
    margin-bottom: 1.5rem; 
    letter-spacing: -0.5px; 
}

.bncc-text p { 
    color: var(--text-grey); 
    margin-bottom: 2rem; 
    font-weight: 300; 
}

.bncc-list { 
    list-style: none; 
}

.bncc-list li { 
    margin-bottom: 1rem; 
    color: var(--text-dark); 
    font-weight: 400; 
    font-size: 0.95rem; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.bncc-image { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
}

/* Selo transformado em um elemento pequeno, delicado e de bordas arredondadas */
.bncc-image img { 
    max-width: 160px; /* Metade do tamanho original para focar no minimalismo */
    width: 100%; 
    background-color: #ffffff; /* Fundo garante que o arredondamento apareça mesmo em PNGs sem fundo */
    padding: 1.5rem; /* Margem interna para respirar */
    border-radius: 24px; /* Bordas bem arredondadas */
    border: 1px solid rgba(0,0,0,0.03); /* Borda clarinha */
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); /* Sombra bem de leve, super elegante */
}

/* ========================================== */
/* 7. SEÇÃO: SHOWCASE PLATAFORMA              */
/* ========================================== */
.platform-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

/* Novo: Título específico desta seção em negrito */
#plataforma .section-header h2 {
    font-weight: 700; /* Negrito adicionado */
    color: var(--text-dark);
}

.browser-mockup {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.browser-header {
    background: #F4F5F7;
    padding: 14px 18px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.platform-img { width: 100%; display: block; height: auto; }

/* ========================================== */
/* 8. SEÇÃO: BENTO GRID (SOLUÇÕES)            */
/* ========================================== */

/* Título principal da seção Ecossistema em negrito */
#solucoes .section-header h2 {
    font-weight: 700;
    color: var(--text-dark);
}

.bento-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-item {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
}

.bento-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(140, 82, 255, 0.08);
    border-color: rgba(140, 82, 255, 0.2);
}

.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }
.bg-purple-light { background: linear-gradient(135deg, #f9f6ff 0%, #ffffff 100%); border-color: #ede4ff; }

/* Títulos internos de cada card em negrito forte */
.bento-content h3 { 
    font-size: 1.3rem; 
    font-weight: 700; /* Alterado para 700 (bold) */
    margin-bottom: 1rem; 
    letter-spacing: -0.3px; 
}

.highlight-text { color: var(--primary-purple); }
.bento-content p { color: var(--text-grey); font-size: 0.95rem; font-weight: 300; line-height: 1.6; }

/* ========================================== */
/* 9. SEÇÃO: CARROSSEL DE LIVROS (AUTOMÁTICO) */
/* ========================================== */
.minimalist-carousel {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    /* Máscara de gradiente: faz as laterais do carrossel sumirem em um blur branco maravilhoso */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.auto-scroll-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    padding: 1rem 0 3rem; /* Espaço inferior para a sombra não cortar */
    /* Animação contínua que não pausa mais */
    animation: scrollBooks 35s linear infinite;
}

@keyframes scrollBooks {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); } 
}

.book-cover {
    flex: 0 0 auto;
    width: 170px;
    height: 245px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: #f8f9fa;
    cursor: pointer;
}

.book-cover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(140, 82, 255, 0.12);
}

.carousel-btn {
    display: none !important;
}

/* ========================================== */
/* 10. SEÇÃO: EVOLUA 360 E FALE CONOSCO       */
/* ========================================== */
.evolua-container {
    max-width: 1200px;
    margin: 0 auto;
}

.evolua-propaganda {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.evolua-logo {
    height: 60px; /* Ajuste o tamanho da logo do Evolua se necessário */
    margin-bottom: 1.5rem;
    display: block;
}

.evolua-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.evolua-desc {
    font-size: 1.05rem;
    color: var(--text-grey);
    font-weight: 300;
    line-height: 1.6;
}

/* Efeito Cascata de Livros */
.evolua-books-composition {
    position: relative;
    height: 480px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.evolua-book {
    position: absolute;
    width: 220px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

/* Livro da Esquerda - Mais inclinado e atrás */
.evolua-book.book-left {
    left: 8%;
    transform: rotate(-10deg) scale(0.9) translateY(20px);
    z-index: 1;
}

/* Livro Central - Fica em destaque na frente */
.evolua-book.book-center {
    z-index: 3;
    transform: translateY(-20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Livro da Direita - Mais inclinado e atrás */
.evolua-book.book-right {
    right: 8%;
    transform: rotate(10deg) scale(0.9) translateY(20px);
    z-index: 2;
}

/* Animação espetacular quando o mouse passa na composição */
.evolua-books-composition:hover .evolua-book.book-left {
    transform: rotate(-14deg) scale(0.92) translateX(-30px);
}
.evolua-books-composition:hover .evolua-book.book-center {
    transform: translateY(-40px) scale(1.05);
}
.evolua-books-composition:hover .evolua-book.book-right {
    transform: rotate(14deg) scale(0.92) translateX(30px);
}

/* Card Clean: Fale Conosco */
.contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Fundo branco com levíssima textura lilás nas bordas para destacar */
    background: linear-gradient(135deg, #ffffff 0%, #faf8ff 100%);
    border: 1px solid rgba(140, 82, 255, 0.15);
    padding: 3.5rem 4rem;
}

.contact-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.contact-content p {
    color: var(--text-grey);
    font-weight: 300;
    font-size: 1.05rem;
    max-width: 600px;
}

.contact-action {
    flex-shrink: 0;
    margin-left: 3rem;
}

/* Responsividade específica da seção */
@media (max-width: 992px) {
    .evolua-propaganda {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .evolua-logo {
        margin: 0 auto 1.5rem auto;
    }
    
    .evolua-books-composition {
        margin-top: 2rem;
        height: 400px;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 2rem;
    }
    
    .contact-action {
        margin-left: 0;
        width: 100%;
    }
    
    .contact-action .btn-custom {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .evolua-book { width: 140px; }
    .evolua-book.book-left { left: 0; }
    .evolua-book.book-right { right: 0; }
    .evolua-title { font-size: 2.2rem; }
}

/* ========================================== */
/* 11. FOOTER & TOAST SYSTEM                  */
/* ========================================== */
.footer { 
    background: var(--white); 
    border-top: 1px solid var(--border-color); 
    padding: 4rem 2rem 3rem; 
    text-align: center; 
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Novo container flex para alinhar texto e logo na mesma linha */
.footer-brand-group {
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço delicado entre o texto e a imagem */
    margin-bottom: 1.5rem;
}

.footer-powered {
    font-size: 0.75rem;
    letter-spacing: 1.2px;
    color: #A0A3B1;
    font-weight: 300;
}

.footer-logo { 
    height: 20px; /* Reduzida drasticamente para ficar do tamanho de um ícone/texto */
    display: block;
    opacity: 0.7; /* Suave para não roubar muita atenção */
    transition: opacity 0.3s ease; 
}

.footer-logo:hover { 
    opacity: 1; 
}

.footer p { 
    color: var(--text-grey); 
    font-size: 0.85rem; 
    font-weight: 300; 
}

#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.toast {
    background: var(--dark-bg); color: white; padding: 16px 24px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); opacity: 0; transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); font-size: 0.9rem; font-weight: 400;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success-color); }

/* ========================================== */
/* 12. RESPONSIVIDADE                         */
/* ========================================== */
@media (max-width: 992px) {
    .span-8, .span-4 { grid-column: span 12; }
    .bncc-container { flex-direction: column; text-align: center; }
    .bncc-list li { justify-content: center; }
    .hero-title { font-size: 3rem; }
    .card-box { padding: 2.5rem; }
}

@media (max-width: 768px) {
    /* Ajustes da Navbar no Mobile */
    .nav-container { 
        padding: 0.6rem 1.2rem; /* Barra bem fininha no mobile */
    }
    
    .brand img { 
        height: 32px; /* Logo delicada no mobile para não ocupar a tela */
    }
    
    .nav-links a:not(.btn-custom) { 
        display: none; 
    }
    
    /* Botão deixa de ser gigante no mobile */
    .btn-nav {
        padding: 8px 14px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }

    /* Ajustes do Hero no Mobile */
    /* Ajustes do Hero no Mobile */
    .hero { padding: 9rem 1.5rem 5rem; min-height: 70vh; }
    .hero-title { font-size: 2.5rem; letter-spacing: -1px; }
    .form-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .carousel-btn { display: none; }
    .section { padding: 5rem 1.5rem; }
}