:root {
    --bg: #0a0a0f;
    --fg: #e4e4e7;
    --accent: #22c55e;
    --accent-dim: #166534;
    --muted: #71717a;
    --border: #27272a;
    --card: #18181b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.7;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
nav {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav a:hover { color: var(--fg); }

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto 2rem;
}

/* Article grid */
.articles-section {
    padding: 2rem 0 4rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s, transform 0.2s;
}

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

.article-card .cat {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-card h2 a {
    color: var(--fg);
    text-decoration: none;
}

.article-card h2 a:hover {
    color: var(--accent);
}

.article-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Article page */
.article-content {
    padding-bottom: 4rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.article-meta time {
    color: var(--muted);
}

.reading-time {
    color: var(--muted);
}

.article-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.article-content h2 {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
    color: var(--fg);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--fg);
}

.article-content p {
    margin-bottom: 1rem;
    color: var(--fg);
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin: 0 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--fg);
}

.article-content a {
    color: var(--accent);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

/* Table of Contents */
.toc {
    list-style: none;
    margin: 0 0 2rem !important;
    padding: 0;
}

.toc li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
}

.toc a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}

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

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.comparison-table thead {
    background: var(--card);
}

.comparison-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-dim);
    color: var(--fg);
}

.comparison-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.comparison-table tbody tr:hover {
    background: var(--card);
}

/* Pro/Con box */
.pro-con-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pro-con-box .pro, .pro-con-box .con {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.pro-con-box .pro {
    border-left: 3px solid var(--accent);
}

.pro-con-box .con {
    border-left: 3px solid #a855f7;
}

.pro-con-box h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pro-con-box p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--muted);
}

/* Verdict box */
.verdict-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.verdict-box h3 {
    margin-top: 1.5rem;
    color: var(--accent);
}

.verdict-box h3:first-child {
    margin-top: 0;
}

.verdict-box ul {
    margin-bottom: 1.5rem;
}

/* Article footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.article-footer a {
    color: var(--accent);
}

/* Read more link */
.read-more {
    color: var(--accent) !important;
    font-size: 0.85rem;
}

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

/* Code blocks */
code {
    background: var(--card);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

pre {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .article-content h1 {
        font-size: 1.75rem;
    }

    .pro-con-box {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}
