/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-bg: #0a0a0f;
    --color-surface: #12121a;
    --color-surface-2: #1a1a26;
    --color-surface-3: #22222e;
    --color-text: #e8e8ed;
    --color-text-secondary: #9898a6;
    --color-text-muted: #6b6b7b;
    --color-primary: #6c5ce7;
    --color-primary-light: #a29bfe;
    --color-primary-glow: rgba(108, 92, 231, 0.15);
    --color-accent: #00cec9;
    --color-accent-glow: rgba(0, 206, 201, 0.15);
    --color-gradient-1: #6c5ce7;
    --color-gradient-2: #00cec9;
    --color-gradient-3: #fd79a8;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-light: rgba(255, 255, 255, 0.1);
    --color-success: #00b894;
    --color-warning: #fdcb6e;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.1);
    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a { color: var(--color-primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === Animated gradient background === */
.gradient-blur {
    position: fixed;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: float-1 20s ease-in-out infinite;
}
.gradient-blur-2 {
    position: fixed;
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: float-2 25s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(100px, 80px); }
    66% { transform: translate(-50px, 120px); }
}
@keyframes float-2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-80px, -60px); }
    66% { transform: translate(60px, -100px); }
}

/* === Header === */
.site-header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.5px;
}
.logo span {
    background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo:hover { color: var(--color-text); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}
.nav-links a {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all var(--transition);
}
.nav-links a:hover {
    color: var(--color-text);
    background: var(--color-surface-2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    padding: 8px;
}

/* === Hero === */
.hero {
    position: relative;
    padding: 60px 24px 48px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.12) 0%, rgba(0, 206, 201, 0.05) 40%, transparent 70%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary-glow);
    border: 1px solid rgba(108, 92, 231, 0.2);
    color: var(--color-primary-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}
.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -1.5px;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2), var(--color-gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.2px;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--color-gradient-1), #8b7cf7);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(108, 92, 231, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.btn-ghost {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-light);
    color: var(--color-text);
}
.btn-ghost:hover {
    background: var(--color-surface-3);
    border-color: rgba(255,255,255,0.15);
    color: var(--color-text);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), #00e6b0);
    color: #0a0a0f;
    box-shadow: 0 4px 20px rgba(0, 206, 201, 0.25);
}
.btn-accent:hover {
    box-shadow: 0 6px 28px rgba(0, 206, 201, 0.4);
    transform: translateY(-1px);
    color: #0a0a0f;
}

/* === Sections === */
.section {
    padding: 48px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* === Article Grid === */
.article-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: calc(33.333% - 16px);
    min-width: 300px;
    max-width: 420px;
    flex-grow: 1;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gradient-1), var(--color-gradient-2));
    opacity: 0;
    transition: opacity var(--transition);
}
.card:hover {
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

/* Category-specific hover colors */
[data-category="ai"]::before { background: var(--color-primary-light); }
[data-category="ai"]:hover { border-color: rgba(99, 132, 255, 0.3); box-shadow: 0 0 20px rgba(99, 132, 255, 0.1); }

[data-category="creative"]::before { background: #fd79a8; }
[data-category="creative"]:hover { border-color: rgba(253, 121, 168, 0.3); box-shadow: 0 0 20px rgba(253, 121, 168, 0.1); }

[data-category="hosting"]::before { background: var(--color-accent); }
[data-category="hosting"]:hover { border-color: rgba(0, 206, 209, 0.3); box-shadow: 0 0 20px rgba(0, 206, 209, 0.1); }

[data-category="productivity"]::before { background: var(--color-warning); }
[data-category="productivity"]:hover { border-color: rgba(253, 203, 110, 0.3); box-shadow: 0 0 20px rgba(253, 203, 110, 0.1); }

[data-category="marketing"]::before { background: var(--color-success); }
[data-category="marketing"]:hover { border-color: rgba(0, 184, 148, 0.3); box-shadow: 0 0 20px rgba(0, 184, 148, 0.1); }

[data-category="business"]::before { background: #5b7fdb; }
[data-category="business"]:hover { border-color: rgba(91, 127, 219, 0.3); box-shadow: 0 0 20px rgba(91, 127, 219, 0.1); }

.card-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.card-badge.ai { background: var(--color-primary-glow); color: var(--color-primary-light); }
.card-badge.creative { background: rgba(253, 121, 168, 0.12); color: #fd79a8; }
.card-badge.hosting { background: var(--color-accent-glow); color: var(--color-accent); }
.card-badge.productivity { background: rgba(253, 203, 110, 0.12); color: var(--color-warning); }
.card-badge.marketing { background: rgba(0, 184, 148, 0.12); color: var(--color-success); }
.card-badge.business { background: rgba(45, 80, 180, 0.12); color: #5b7fdb; }

.card h3 { font-size: 1.18rem; margin-bottom: 12px; line-height: 1.4; letter-spacing: -0.3px; }
.card h3 a { color: var(--color-text); }
.card-link:hover [data-category="ai"] h3 { color: var(--color-primary-light); }
.card-link:hover [data-category="creative"] h3 { color: #fd79a8; }
.card-link:hover [data-category="hosting"] h3 { color: var(--color-accent); }
.card-link:hover [data-category="productivity"] h3 { color: var(--color-warning); }
.card-link:hover [data-category="marketing"] h3 { color: var(--color-success); }
.card-link:hover [data-category="business"] h3 { color: #5b7fdb; }

.card p { color: var(--color-text-secondary); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.card-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-surface-2);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    transition: all var(--transition);
}
.card:hover .card-arrow {
    color: #fff;
    transform: translateX(2px);
}
[data-category="ai"]:hover .card-arrow { background: var(--color-primary-light); }
[data-category="creative"]:hover .card-arrow { background: #fd79a8; }
[data-category="hosting"]:hover .card-arrow { background: var(--color-accent); }
[data-category="productivity"]:hover .card-arrow { background: var(--color-warning); }
[data-category="marketing"]:hover .card-arrow { background: var(--color-success); }
[data-category="business"]:hover .card-arrow { background: #5b7fdb;
}

/* Featured card (first/main article) */
.card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.card-featured .card-visual {
    background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2));
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}
.card-featured .card-visual::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.card-featured .card-visual h2 {
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}
.card-featured .card-visual p {
    color: rgba(255,255,255,0.8);
    margin-top: 12px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}
.card-featured .card-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* === Category Grid === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gradient-1), var(--color-gradient-2));
    opacity: 0;
    transition: opacity var(--transition);
}
.category-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    color: var(--color-text);
}
.category-card:hover::after { opacity: 1; }

.category-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}
.category-card h3 { font-size: 0.95rem; margin-bottom: 6px; font-weight: 600; }
.category-card p { font-size: 0.8rem; color: var(--color-text-muted); }

/* === Stats Bar === */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: 48px 24px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat { text-align: center; }
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* === Newsletter === */
.newsletter-section {
    position: relative;
    overflow: hidden;
}
.newsletter-box {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.newsletter-box::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.newsletter-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.newsletter-box p { color: var(--color-text-secondary); margin-bottom: 28px; font-size: 0.95rem; }

.newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 440px;
    margin: 0 auto;
}
.newsletter-form input {
    padding: 14px 20px;
    border: 1px solid var(--color-border-light);
    border-radius: 50px;
    font-size: 0.9rem;
    flex: 1;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: var(--color-text-muted); }
.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* === Footer === */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 28px 0 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    margin-bottom: 0;
    padding-bottom: 24px;
}

.footer-brand { max-width: 400px; }
.footer-brand p { font-size: 0.88rem; margin-top: 12px; margin-bottom: 4px; color: var(--color-text-muted); }

.footer-newsletter-label {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-newsletter {
    margin: 0;
    justify-content: flex-start;
    max-width: 360px;
}
.footer-newsletter input { max-width: 200px; }

.subscribe-msg {
    font-size: 0.82rem;
    margin-top: 6px;
}
.subscribe-msg.success { color: var(--color-accent); }
.subscribe-msg.error { color: var(--color-gradient-3); }

.footer-links { text-align: right; }
.footer-links h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 4px; }
.footer-links a { color: var(--color-text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--color-text); }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 16px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* === Article Page === */
/* Article Hero Image */
.article-hero {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}
.article-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(to top, var(--color-bg) 0%, var(--color-bg) 10%, rgba(10, 10, 15, 0.85) 35%, rgba(10, 10, 15, 0.4) 65%, transparent 100%);
    pointer-events: none;
}

.article-header {
    padding: 44px 24px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.article-hero + .article-header {
    margin-top: -80px;
    padding-top: 0;
}
.article-hero + .article-header::before {
    display: none;
}
.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.1) 0%, rgba(0, 206, 201, 0.04) 40%, transparent 70%);
    pointer-events: none;
}
.article-header .container { position: relative; z-index: 1; }
.article-header h1 {
    font-size: 2.2rem;
    max-width: 700px;
    margin: 0 auto 12px;
    line-height: 1.2;
    letter-spacing: -1px;
    font-weight: 800;
}
.article-meta {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.article-meta .divider { width: 4px; height: 4px; background: var(--color-text-muted); border-radius: 50%; }

/* === Article Body === */
.article-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 24px 48px;
    position: relative;
    z-index: 1;
}
.article-body h2 {
    font-size: 1.5rem;
    margin: 32px 0 14px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    letter-spacing: -0.3px;
    font-weight: 700;
}
.article-body h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.article-body h3 { font-size: 1.15rem; margin: 20px 0 10px; font-weight: 600; }
.article-body p { margin-bottom: 14px; color: var(--color-text-secondary); line-height: 1.7; }
.article-body ul, .article-body ol { margin-bottom: 14px; padding-left: 24px; color: var(--color-text-secondary); }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--color-text); }

/* Tool Card */
.tool-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gradient-1), var(--color-gradient-2));
}
.tool-card:hover {
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-glow);
}

.tool-card h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    color: var(--color-text);
    letter-spacing: -0.3px;
}
.tool-card .tool-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 18px;
    font-style: italic;
}
.tool-card .tool-details { margin-bottom: 18px; }
.tool-card .tool-details li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    padding: 4px 0;
}

.tool-card .tool-verdict {
    background: rgba(0, 184, 148, 0.08);
    border-left: 3px solid var(--color-success);
    padding: 14px 18px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--color-text-secondary);
}
.tool-card .tool-verdict strong { color: var(--color-success); }

.tool-card .btn { font-size: 0.85rem; padding: 11px 24px; }

/* Quick verdict box */
.verdict-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 32px;
}
.verdict-box h4 {
    color: var(--color-accent);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.verdict-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.verdict-box li {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    padding: 4px 0;
    line-height: 1.5;
}
.verdict-box li strong {
    color: var(--color-text);
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 32px;
    font-size: 0.88rem;
}
.comparison-table th {
    background: var(--color-surface-2);
    color: var(--color-text);
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}
.comparison-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}
.comparison-table tr:hover td {
    background: var(--color-surface);
}
.comparison-table td:first-child {
    color: var(--color-text);
    font-weight: 500;
}
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Related articles */
.related-articles {
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
    padding-top: 32px;
}
.related-articles h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--color-text);
}
.related-articles ul {
    list-style: none;
    padding: 0;
}
.related-articles li {
    margin-bottom: 10px;
}
.related-articles a {
    color: var(--color-primary-light);
    font-size: 0.95rem;
    transition: color var(--transition);
}
.related-articles a:hover {
    color: var(--color-accent);
}

/* Affiliate disclaimer */
.affiliate-notice {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.affiliate-notice strong { color: var(--color-text-secondary); }

/* Table of contents */
.toc {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin-bottom: 24px;
}
.toc h4 {
    font-size: 0.78rem;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    font-weight: 600;
}
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 8px; font-size: 0.9rem; }
.toc a { color: var(--color-text-secondary); }
.toc a:hover { color: var(--color-primary-light); }

/* === Filter Bar === */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}
.filter-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover {
    border-color: var(--color-border-light);
    color: var(--color-text);
    background: var(--color-surface-2);
}
.filter-btn.active {
    background: linear-gradient(135deg, var(--color-gradient-1), #8b7cf7);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.25);
}

/* Card hide/show animation */
.card.hidden,
a.card-link.hidden {
    display: none !important;
}

/* No articles message */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
        padding: 16px 24px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }
    .mobile-menu-btn { display: block; }

    .hero { padding: 40px 20px 32px; }
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }

    .card-link { width: 100%; max-width: 100%; }

    .card-featured {
        grid-template-columns: 1fr;
    }
    .card-featured .card-visual { min-height: 200px; padding: 32px; }
    .card-featured .card-visual h2 { font-size: 1.4rem; }

    .category-grid { grid-template-columns: repeat(2, 1fr); }

    .stats-bar { gap: 32px; flex-wrap: wrap; }
    .stat-number { font-size: 1.8rem; }

    .footer-content { flex-direction: column; gap: 32px; }
    .footer-links { text-align: left; }

    .newsletter-form { flex-direction: column; }
    .newsletter-form input { width: 100%; }

    .article-header h1 { font-size: 1.5rem; }
    .article-body { padding: 28px 16px 40px; }
    .article-hero img { height: 240px; }
    .article-hero + .article-header { margin-top: -50px; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; align-items: center; }
}
