html {
    scroll-behavior: smooth;
}

/* --- Estilos Globais e Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #0d1117; /* Azul bem escuro, quase preto */
    color: #c9d1d9; /* Cinza claro para o texto */
}

a {
    color: #58a6ff; /* Azul para links */
    text-decoration: none;
}

/* --- Cabeçalho --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #21262d;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 40px;
}

.logo-text {
    color: #c9d1d9;
    font-size: 1.2rem;
    font-weight: 600;
}

.menu-icon {
    font-size: 28px;
    cursor: pointer;
}

/* --- Seção Hero (Principal) --- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    padding: 20px;
    background-image: linear-gradient(rgba(13, 17, 23, 0.7), rgba(13, 17, 23, 0.7)), url('images/background.avif');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
}

/* --- Seção de Diferenciais (Features) --- */
.features {
    padding: 60px 40px;
    background-color: #010409; /* Um tom de preto ligeiramente diferente para contraste */
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: #0d1117; /* Mesmo fundo do body para os cards */
    border: 1px solid #21262d;
    border-radius: 8px;
    overflow: hidden; /* Garante que a imagem não ultrapasse as bordas arredondadas */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Garante que a imagem cubra o espaço sem distorcer */
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Seção do Painel Bot --- */
.panel-section {
    padding: 60px 40px;
    text-align: center;
}

.panel-container {
    max-width: 800px;
    margin: 0 auto;
}

.panel-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.panel-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.panel-btn {
    display: block;
    background-color: #21262d;
    color: #c9d1d9;
    padding: 15px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #30363d;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.panel-btn:hover {
    background-color: #30363d;
    transform: translateY(-2px);
    color: #ffffff;
}

/* --- Rodapé (Footer) --- */
footer {
    padding: 30px 40px;
    background-color: #010409; /* Mesmo fundo da seção de features */
    border-top: 1px solid #21262d;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Permite que as colunas se quebrem em telas menores */
    gap: 20px;
}

.footer-container p {
    font-size: 0.9rem;
    color: #8b949e; /* Um cinza um pouco mais escuro */
}

.footer-logo img {
    height: 30px;
    opacity: 0.8;
}

/* --- Estilos do Menu de Navegação (Mobile/Overlay) --- */
.nav-menu {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99; /* Fica abaixo do header, mas acima do resto */
}

.nav-menu.active {
    display: flex; /* Mostra o menu quando ativo */
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.nav-menu ul li {
    margin: 25px 0;
}

.nav-menu ul li a {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: #58a6ff;
}

/* --- Estilos da Página FAQ --- */
.faq-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.faq-item {
    background-color: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
    margin-bottom: 15px;
}

.faq-question {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #c9d1d9;
}

.faq-question::after {
    content: '+'; /* Símbolo de "mais" */
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg); /* Gira para "x" quando ativo */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    line-height: 1.7;
    color: #8b949e;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 400px; /* Aumentado para acomodar a lista */
}

.faq-answer ul {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* --- Estilos da Página de Contato --- */
.contact-section {
    padding: 80px 20px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-section h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.contact-section p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-buttons a {
    display: inline-block;
    background-color: #238636; /* Verde similar ao do WhatsApp */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-buttons a.telegram {
    background-color: #2AABEE; /* Azul do Telegram */
}

.contact-buttons a:hover {
    transform: scale(1.05);
}

/* --- Estilos da Página do Blog (Redesign) --- */
.blog-header {
    padding: 60px 20px 40px;
    text-align: center;
    background-color: #010409;
}

.blog-header h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 25px;
    border: 1px solid #30363d;
    background-color: #0d1117;
    color: #c9d1d9;
    font-size: 1rem;
}

.search-bar svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #8b949e;
}

.blog-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #0d1117;
    border: 1px solid #21262d;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-meta {
    font-size: 0.9rem;
    color: #8b949e;
    margin-bottom: 10px;
}

.article-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffffff;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    color: #58a6ff;
    font-weight: 600;
    margin-top: 20px;
    align-self: flex-start;
}

/* --- Estilos da Página de Artigo Individual (Redesign) --- */
.article-full {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #ffffff;
}

.article-meta {
    font-size: 0.9rem;
    color: #8b949e;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.article-full-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ffffff;
    border-bottom: 1px solid #30363d;
    padding-bottom: 10px;
}

/* Estilos para o Acordeão do Artigo */
.accordion {
    background-color: #0d1117;
    color: #c9d1d9;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: 1px solid #21262d;
    border-radius: 6px;
    text-align: left;
    outline: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion:hover, .accordion.active {
    background-color: #161b22;
}

.accordion::after {
    content: '+';
    font-size: 1.8rem;
    color: #8b949e;
    transition: transform 0.3s ease;
}

.accordion.active::after {
    transform: rotate(45deg);
}

.panel {
    padding: 0 18px;
    background-color: #0d1117;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border: 1px solid #21262d;
    border-top: 0;
    border-radius: 0 0 6px 6px;
}

.panel p {
    padding: 20px 0;
}

.back-to-blog {
    display: inline-block;
    margin-top: 40px;
    font-weight: 500;
}

/* --- Botão Flutuante do WhatsApp --- */
.floating-whatsapp-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
}

.floating-whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: #FFF;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: #0d1117;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #30363d;
    position: relative;
    max-width: 500px;
    width: 90%;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #8b949e;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Estilos para o componente Details/Summary nos Artigos --- */
.article-content details {
    background-color: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
    margin: 25px 0;
}

.article-content summary {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #58a6ff;
}

.article-content summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 400;
    color: #c9d1d9;
    transition: transform 0.3s ease;
}

.article-content details[open] > summary::after {
    transform: rotate(45deg);
}

.details-content {
    padding: 0 20px 20px 20px;
    line-height: 1.7;
    color: #8b949e;
}

/* --- Intro da Seção de Diferenciais --- */
.features-intro {
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.features-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.features-intro ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.features-intro li {
    margin-bottom: 10px;
    font-size: 1rem;
    padding-left: 25px;
    position: relative;
}

.features-intro li::before {
    content: '✓';
    color: #238636;
    position: absolute;
    left: 0;
    font-weight: 600;
}
