:root {
    --primary-color: #0F172A; /* Azul noturno profundo */
    --secondary-color: #334155; /* Slate cinza */
    --accent-color: #10B981; /* Esmeralda para pontos positivos/ação */
    --accent-hover: #059669;
    --background-body: #F8FAFC; /* Cinza muito claro */
    --surface-white: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--background-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-color);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background-color: var(--surface-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

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

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    /* Imagem removida do CSS para favorecer LCP no HTML */
    color: var(--surface-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Cria novo contexto de empilhamento */
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sombra para legibilidade extra */
}

.hero p {
    font-size: 1.25rem;
    color: #CBD5E1; /* Levemente mais claro para contraste com o fundo escuro */
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.py-5 { padding-top: 4rem; padding-bottom: 4rem; }
.bg-white { background-color: var(--surface-white); }

/* Cards Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Carrossel Horizontal */
.carousel-wrapper {
    position: relative;
    margin: 2rem 0;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--border-light);
    padding-bottom: 1rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: calc(100% + 3rem);
    box-sizing: border-box;
    position: relative;
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    width: max-content;
}

.carousel-track .card {
    flex: 0 0 320px;
    width: 320px;
    min-width: 0;
    max-width: 320px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--surface-white);
    border: 2px solid var(--border-light);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.25rem;
    font-weight: 700;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.card {
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 200px;
    background-color: #CBD5E1; /* Placeholder color */
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--surface-white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--surface-white);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background-color: #F1F5F9;
    font-weight: 600;
    color: var(--text-main);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.score-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: #94A3B8;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--surface-white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #94A3B8;
}

.footer-col a:hover {
    color: var(--surface-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-wrapper { flex-direction: column; height: auto; padding: 1rem 0; }
    .main-nav ul { gap: 1rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
    
    .carousel-container {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        width: calc(100% + 2rem);
        box-sizing: border-box;
    }
    
    .carousel-track .card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
    }
    
    .carousel-nav {
        margin-top: 1rem;
    }
}

/* Article & Content Utilities (New SEO & Performance Improvements) */
.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    font-size: 1.125rem; /* 18px */
    line-height: 1.8;
}

.article-heading {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.article-link {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
}

.article-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-list li {
    margin-bottom: 0.5rem;
}

.article-product-card {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.article-product-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.article-product-card p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.article-cta-box {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

/* Utility Helpers */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.gap-1 { gap: 1rem; }

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.w-full-sm {
    width: 100%;
}

@media (min-width: 640px) {
    .w-auto-sm {
        width: auto;
        min-width: 200px; /* Consistent button width */
    }
}

.text-sm {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--text-muted);
}
