/* --- Variáveis Globais e Reset --- */
:root {
    --bg-color: #0F0F1A;
    --card-color: #181627;
    --accent-color: #A855F7;
    --accent-green: #00F5D4;
    --text-color: #F8FAFC;
    --text-muted: #CBD5E1;
    --header-bg: rgba(15, 15, 26, 0.92);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    --border-color: #2E2A4A;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Tema Claro (Light Mode) com Alto Contraste --- */
body.light-theme {
    --bg-color: #F8FAFC;
    --card-color: #FFFFFF;
    --accent-color: #6D28D9;      /* Roxo escuro legível */
    --accent-green: #047857;     /* Verde escuro legível */
    --text-color: #0F172A;       /* Preto/grafite profundo */
    --text-muted: #334155;      /* Cinza escuro para contraste excelente */
    --header-bg: rgba(248, 250, 252, 0.95);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-color: #CBD5E1;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Toggle Dark/Light --- */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 2000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    background-color: var(--card-color);
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}

.theme-toggle .theme-icon {
    transition: opacity 0.3s ease;
    line-height: 1;
}

body:not(.light-theme) .theme-toggle .sun { opacity: 0; }
body.light-theme .theme-toggle .moon { opacity: 0; }
body:not(.light-theme) .theme-toggle .moon { opacity: 1; }
body.light-theme .theme-toggle .sun { opacity: 1; }

/* --- Header & Branding --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

body:not(.light-theme) .light-logo { display: none; }
body:not(.light-theme) .dark-logo { display: block; }
body.light-theme .dark-logo { display: none; }
body.light-theme .light-logo { display: block; }

.main-header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-header nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.main-header nav a:hover {
    color: var(--accent-color);
}

main {
    padding-top: 85px;
}

/* --- Section Headings (CORREÇÃO DE SOBREPOSIÇÃO) --- */
.content-section {
    padding: 4.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2.8rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.6rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.08rem;
    margin: 0 auto;
    max-width: 780px;
    line-height: 1.6;
    font-weight: 500;
}

/* --- Hero Section --- */
.hero-section {
    padding: 4.5rem 1.5rem 3rem 1.5rem;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(168, 85, 247, 0.15);
    color: var(--accent-color);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--accent-color);
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.25;
    color: var(--text-color);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0 auto 2.2rem auto;
    max-width: 780px;
    line-height: 1.7;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.cta-button.primary {
    background-color: var(--accent-color);
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.cta-button.whatsapp {
    background-color: #10B981;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.link-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
}

/* --- Preview Image Container --- */
.preview-container {
    background-color: var(--card-color);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--card-shadow);
}

.preview-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* --- Cards Container & Author Card --- */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

.card {
    background-color: var(--card-color);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.6rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 500;
}

/* Author Profile Specifics */
.author-card {
    border-left: 4px solid var(--accent-color);
}
.author-profile {
    flex: 1;
    min-width: 240px;
    text-align: center;
}
.author-logo {
    height: 52px;
    width: auto;
    margin-bottom: 10px;
}
.author-role {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

footer a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 850px) {
    .hero-content h1 { font-size: 2.4rem; }
    .main-header nav { display: none; }
    .section-header h2 { font-size: 1.8rem; }
}
