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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --border: #1e1e2e;
    --text: #e4e4ed;
    --text-muted: #8888a0;
    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Space Grotesk', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav__logo {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.nav__logo-icon {
    font-size: 1.1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav__links {
    display: flex;
    gap: 32px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav__links a:hover { color: var(--text); }

/* Language switcher */
.nav__lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.nav__lang-item {
    padding: 5px 11px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    border-radius: 100px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    line-height: 1;
    font-family: var(--mono);
}

.nav__lang-item:hover:not(.nav__lang-item--active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav__lang-item--active {
    background: var(--gradient);
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero__content {
    position: relative;
    text-align: center;
    max-width: 800px;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-1);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero__title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ORBS */
.hero__visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero__orb--1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.hero__orb--2 {
    width: 300px;
    height: 300px;
    background: var(--accent-2);
    top: 30%;
    right: 10%;
    animation-delay: -3s;
}

.hero__orb--3 {
    width: 200px;
    height: 200px;
    background: #06b6d4;
    bottom: 20%;
    left: 40%;
    animation-delay: -5s;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn--primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.45);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.link-arrow {
    color: var(--accent-1);
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.link-arrow:hover { opacity: 0.8; }

/* ===== FEATURED ===== */
.featured {
    padding: 100px 0;
}

.featured__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card--large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.card--large .card__img {
    min-height: 300px;
}

.card__img {
    min-height: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
}

.card__tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card__body {
    padding: 28px;
}

.card__date {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
    font-family: var(--mono);
}

.card__title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card__excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 60px 0 100px;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.cat-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.cat-card:hover::before { opacity: 1; }

.cat-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    opacity: 0.8;
}

.cat-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cat-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.cat-card__count {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent-1);
    font-weight: 500;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    padding: 80px 0;
}

.newsletter__inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.newsletter__inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    filter: blur(150px);
    opacity: 0.1;
    pointer-events: none;
}

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

.newsletter__content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.newsletter__form {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.newsletter__input {
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    width: 280px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter__input:focus {
    border-color: var(--accent-1);
}

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

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.6fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer__col--guides a {
    line-height: 1.4;
    padding: 6px 0;
}

.footer__brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer__col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer__col a:hover { color: var(--text); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.footer__bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--mono);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
    50% { box-shadow: 0 0 20px 4px rgba(99, 102, 241, 0.15); }
}

/* ===== ARTICLE PAGE ===== */
.article {
    padding: 100px 0 60px;
}

.article__container {
    max-width: 820px;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-family: var(--mono);
}

.breadcrumb a {
    color: var(--accent-1);
    transition: opacity 0.2s;
}

.breadcrumb a:hover { opacity: 0.8; }

.article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 24px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

.article__meta time {
    white-space: nowrap;
}

.article__meta-sep {
    opacity: 0.4;
}

.article__tag {
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-1);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.article__intro {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.article__content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 48px 0 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article__content h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.article__content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 32px 0 16px;
}

.article__content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text);
}

.article__content a {
    color: var(--accent-1);
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.article__content a:hover {
    text-decoration-color: var(--accent-1);
}

.article__content ul,
.article__content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article__content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article__content strong {
    color: #fff;
    font-weight: 600;
}

.article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.article__content thead {
    background: rgba(99, 102, 241, 0.1);
}

.article__content th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.article__content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

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

.article__content tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

.article__content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--accent-1);
    background: var(--bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-muted);
    font-style: italic;
}

/* FAQ */
.faq {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.faq h2 {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.faq__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq__question {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent-1);
    transition: transform 0.3s;
}

.faq__answer {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== ENRICHED ARTICLE CONTENT ===== */

/* Lead paragraph (first p after h1 / first p of an h2 section) */
.article__content > p.lead,
.article__content > p:first-of-type {
    font-size: 1.18rem;
    line-height: 1.75;
    color: var(--text);
    padding: 0 0 8px;
    margin-bottom: 28px;
}

.article__content > p.lead::first-line {
    font-weight: 500;
}

/* Table wrapper for horizontal scroll on mobile */
.table-wrap {
    margin: 28px 0;
    border-radius: var(--radius);
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.table-wrap table {
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    min-width: 540px;
}

.article__content .table-wrap th {
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.12));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.78rem;
    color: #fff;
    padding: 16px 18px;
}

.article__content .table-wrap td {
    padding: 14px 18px;
    color: var(--text);
}

.article__content .table-wrap tbody tr:nth-child(even) td {
    background: rgba(255,255,255,0.015);
}

.article__content .table-wrap tbody tr:hover td {
    background: rgba(99,102,241,0.08);
}

.article__content .table-wrap td strong {
    color: #fff;
}

/* Callouts (info / tip / warning / verdict) */
.callout {
    margin: 28px 0;
    padding: 20px 24px 20px 56px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-1);
    position: relative;
    line-height: 1.7;
}

.callout::before {
    position: absolute;
    left: 20px;
    top: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.callout--tip {
    border-left-color: #10b981;
    background: linear-gradient(90deg, rgba(16,185,129,0.08), var(--bg-card) 60%);
}
.callout--tip::before { content: '★'; color: #10b981; }

.callout--warning {
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, rgba(245,158,11,0.08), var(--bg-card) 60%);
}
.callout--warning::before { content: '!'; color: #f59e0b; }

.callout--verdict {
    border-left-color: #8b5cf6;
    background: linear-gradient(90deg, rgba(139,92,246,0.10), var(--bg-card) 60%);
}
.callout--verdict::before { content: '✓'; color: #8b5cf6; }

.callout--info {
    border-left-color: #06b6d4;
    background: linear-gradient(90deg, rgba(6,182,212,0.08), var(--bg-card) 60%);
}
.callout--info::before { content: 'i'; color: #06b6d4; font-style: italic; }

.callout strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Key highlight inline */
.article__content mark,
.highlight {
    background: linear-gradient(180deg, transparent 60%, rgba(99,102,241,0.35) 60%);
    color: #fff;
    padding: 0 2px;
    border-radius: 2px;
}

/* Pros / Cons grid */
.proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

.proscons__col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.proscons__col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.proscons__col--pros { border-top: 3px solid #10b981; }
.proscons__col--pros h4 { color: #10b981; }
.proscons__col--cons { border-top: 3px solid #ef4444; }
.proscons__col--cons h4 { color: #ef4444; }

.proscons__col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.proscons__col li {
    padding: 8px 0 8px 26px;
    position: relative;
    line-height: 1.6;
    color: var(--text);
}

.proscons__col--pros li::before {
    content: '+';
    position: absolute;
    left: 4px;
    top: 8px;
    color: #10b981;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

.proscons__col--cons li::before {
    content: '−';
    position: absolute;
    left: 4px;
    top: 8px;
    color: #ef4444;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 720px) {
    .proscons { grid-template-columns: 1fr; }
}

/* Score badge inline (e.g. "Note : 9/10" detection) */
.score-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    font-family: var(--mono);
    margin: 0 4px;
    vertical-align: middle;
}

/* Anchor links from h2/h3 */
.article__content h2,
.article__content h3 {
    scroll-margin-top: 100px;
}

/* TOC (table of contents) */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 0 0 40px;
}

.toc__title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.toc ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    counter-reset: toc;
}

.toc li {
    counter-increment: toc;
    padding: 6px 0 6px 36px;
    position: relative;
    line-height: 1.5;
}

.toc li::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 6px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent-1);
    font-weight: 600;
}

.toc a {
    color: var(--text);
    text-decoration: none !important;
    transition: color 0.2s;
}

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

/* FAQ — accordion-friendly (works with native <details>) */
.faq__item details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq__item summary {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent-1);
    transition: transform 0.3s;
    line-height: 1;
}

.faq__item details[open] summary::after {
    transform: rotate(45deg);
}

.faq__item .faq__answer {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 200;
    transition: width 0.1s linear;
    width: 0;
}

/* Infographic SVG */
.infographic {
    margin: 32px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    overflow-x: auto;
}

.infographic__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.comparison-bar__label {
    min-width: 120px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
}

.comparison-bar__track {
    flex: 1;
    height: 28px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.comparison-bar__fill {
    height: 100%;
    border-radius: 6px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    min-width: 40px;
}

/* Score cards */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.score-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.score-card__value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-card__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Category page */
.category {
    padding: 100px 0 60px;
}

.category__header {
    margin-bottom: 48px;
}

.category__header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.category__header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.category__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .featured__grid {
        grid-template-columns: 1fr;
    }

    .card--large {
        grid-template-columns: 1fr;
    }

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

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .newsletter__inner {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .newsletter__form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter__input {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .nav__links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav__links.open {
        display: flex;
    }

    .nav__menu {
        display: flex;
    }

    /* Lang switcher stays visible on mobile, just smaller */
    .nav__lang {
        margin-left: 0;
    }
    .nav__lang-item {
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .hero__title {
        letter-spacing: -1px;
    }

    .categories__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ----------------------------------------------------------------
   Homepage new blocks (search, latest, newsletter) + a11y helpers
   ---------------------------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Search bar --- */
.search {
    padding: 40px 0 20px;
}

.search__form {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: border-color 0.2s, background 0.2s;
}

.search__form:focus-within {
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.search__input {
    flex: 1;
    padding: 14px 20px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

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

.search__button {
    padding: 12px 28px;
    border-radius: 100px;
    white-space: nowrap;
}

/* --- Latest articles section --- */
.latest {
    padding: 80px 0;
}

/* --- Newsletter block --- */
.newsletter {
    padding: 80px 0 100px;
}

.newsletter__box {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter__box::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
}

.newsletter__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    position: relative;
}

.newsletter__subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.newsletter__form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto 14px;
    position: relative;
}

.newsletter__input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter__input:focus {
    border-color: var(--accent-1);
}

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

.newsletter__button {
    padding: 12px 28px;
    border-radius: 100px;
    white-space: nowrap;
}

.newsletter__note {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--mono);
    position: relative;
}

@media (max-width: 720px) {
    .search__form,
    .newsletter__form {
        flex-direction: column;
        border-radius: 18px;
        padding: 10px;
    }

    .search__input,
    .newsletter__input {
        border-radius: 12px;
    }

    .search__button,
    .newsletter__button {
        border-radius: 12px;
        width: 100%;
    }

    .newsletter__box {
        padding: 40px 24px;
    }
}

/* ----------------------------------------------------------------
   404 error page
   ---------------------------------------------------------------- */

.error-page {
    padding: 100px 0 120px;
    min-height: 60vh;
}

.error-page__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.error-page__code {
    font-family: var(--mono);
    font-size: clamp(6rem, 18vw, 10rem);
    font-weight: 700;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    letter-spacing: -4px;
}

.error-page__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.3;
}

.error-page__text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.error-page__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.error-page__links {
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.error-page__links h2 {
    font-size: 0.85rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.error-page__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.error-page__links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
    display: block;
}

.error-page__links a:hover {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.08);
}
