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

:root {
    --bg: #08080c;
    --bg-elevated: #0e0e14;
    --bg-card: #111118;
    --bg-card-hover: #17171f;
    --border: #1c1c28;
    --border-hover: #2a2a3a;
    --text: #d8d8e0;
    --text-bright: #f0f0f4;
    --text-dim: #6e6e84;
    --text-muted: #4a4a5e;
    --accent: #5b5bf0;
    --accent-bright: #7878ff;
    --accent-dim: rgba(91, 91, 240, 0.12);
    --green: #2dd4a0;
    --red: #f06060;
    --orange: #e8a040;
    --cyan: #40b8d8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

/* Nav */
nav {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.logo b { color: var(--text-bright); font-weight: 700; }
nav ul { list-style: none; display: flex; gap: 28px; }
nav a { color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.15s; }
nav a:hover { color: var(--text); }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.article .breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 28px; }
.article .breadcrumb a { color: var(--accent); text-decoration: none; }
.article .breadcrumb a:hover { text-decoration: underline; }
.article .tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-bright);
    background: var(--accent-dim);
    border: 1px solid rgba(91, 91, 240, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}
.article h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}
.article .subtitle {
    font-size: 17px;
    color: var(--text-dim);
    margin-bottom: 36px;
    line-height: 1.55;
}
.article h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 14px;
    color: var(--text-bright);
    letter-spacing: -0.01em;
}
.article h3 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; color: var(--text-bright); }
.article p { margin-bottom: 16px; color: var(--text); font-size: 15px; line-height: 1.7; }
.article ul, .article ol { margin: 0 0 16px 24px; }
.article li { margin-bottom: 6px; font-size: 15px; line-height: 1.6; }
.article code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.article pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    overflow-x: auto;
    margin: 14px 0 20px;
}
.article pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dim);
}
.article blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 18px;
    margin: 14px 0 20px;
    background: var(--bg-card);
    border-radius: 0 8px 8px 0;
}
.article blockquote p { color: var(--text-dim); margin-bottom: 0; }
.article a { color: var(--accent-bright); text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article strong { color: var(--text-bright); font-weight: 600; }

/* Impact box */
.impact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    margin: 20px 0;
}
.impact-box h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--orange); }
.impact-box p { font-size: 14px; margin-bottom: 6px; }
.impact-box p:last-child { margin-bottom: 0; }

/* CTA */
.article-cta {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    margin: 40px 0;
    text-align: center;
}
.article-cta h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-bright); }
.article-cta p { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.btn-primary {
    display: inline-block;
    padding: 11px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-bright); text-decoration: none; }

/* Prev/Next */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.article-nav a {
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
}
.article-nav a:hover { color: var(--text); }
.article-nav .next { text-align: right; margin-left: auto; }

/* Footer */
footer { padding: 28px 0; border-top: 1px solid var(--border); }
footer p { font-size: 12px; color: var(--text-muted); line-height: 1.9; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 40px;
}
.footer-links { display: flex; gap: 20px; flex-shrink: 0; }
.footer-links a { font-size: 12px; }

@media (max-width: 768px) {
    .article h1 { font-size: 26px; }
    .article { padding: 36px 20px 60px; }
    nav ul { gap: 16px; }
    .article-nav { flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 16px; }
}
