:root {
    --bg: #fafafa;
    --surface: #fff;
    --surface-2: #f3f4f6;
    --border: #e5e7eb;
    --text: #111827;
    --text-dim: #6b7280;
    --text-muted: #9ca3af;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --cta: #dc2626;
    --cta-hover: #b91c1c;
    --success: #059669;
    --sans: 'IBM Plex Sans', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --max-width: 1100px;
}

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

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

/* NAV */
.nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.logo {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.btn-cta {
    background: var(--cta) !important;
    color: #fff !important;
    padding: 0.4rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
}
.btn-cta:hover { background: var(--cta-hover) !important; }

/* LAYOUT */
.container { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1.5rem; }
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}
.content-main { min-width: 0; }
.content-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* HERO */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.hero-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}
.hero-search input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    border: none;
    font-size: 1rem;
    font-family: var(--sans);
    outline: none;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}
.hero-stat-num { font-family: var(--mono); font-size: 1.75rem; font-weight: 700; }
.hero-stat-label { font-size: 0.8rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text);
    transition: all 150ms ease;
    box-shadow: var(--shadow);
}
.card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.card p { font-size: 0.85rem; color: var(--text-dim); }
.card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-family: var(--mono);
    background: var(--surface-2);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* ARTICLE */
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 0.5rem; }
.article-meta { color: var(--text-dim); font-size: 0.85rem; }
.article-content h2 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.article-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 0 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.35rem; }

/* SPEC TABLE */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.spec-table th, .spec-table td {
    padding: 0.65rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.spec-table th {
    background: var(--surface-2);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: var(--surface-2); }

/* COMPARISON TABLE */
.compare-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.compare-table th, .compare-table td {
    padding: 0.65rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.compare-table th { background: var(--surface-2); font-weight: 600; }
.compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-winner { background: rgba(5,150,105,0.08); font-weight: 600; }

/* CTA BOX */
.cta-box {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}
.cta-box h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.cta-box p { opacity: 0.9; margin-bottom: 1rem; font-size: 0.95rem; }
.cta-box a {
    display: inline-block;
    background: #fff;
    color: var(--cta);
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}
.cta-box a:hover { background: #f3f4f6; }

/* SIDEBAR */
.sidebar-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.sidebar-box h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}
.sidebar-box ul { list-style: none; }
.sidebar-box li { padding: 0.3rem 0; }
.sidebar-box a { color: var(--accent); text-decoration: none; font-size: 0.9rem; }
.sidebar-box a:hover { text-decoration: underline; }

/* AD SLOT */
.ad-slot {
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.35rem; }

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 3rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-links { margin-top: 0.5rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; }
    .content-sidebar { order: -1; }
    .nav-links { gap: 0.75rem; font-size: 0.8rem; }
    .hero { padding: 2.5rem 1rem; }
    .hero-stats { gap: 1.5rem; }
    .card-grid { grid-template-columns: 1fr; }
}
