/* ============================================================
   Quantum Audit Blog — Stylesheet (v2)
   Design: dark glassmorphism, modern typography, calm hierarchy
   No HTML changes required — all existing class names preserved.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
    /* Brand */
    --bg:           #030005;
    --bg-2:         #07020c;
    --bg-3:         #0a0418;

    --surface:      rgba(20,10,30,0.55);
    --surface-2:    rgba(30,15,45,0.7);
    --surface-3:    rgba(40,20,60,0.85);

    --border:       rgba(255,255,255,0.07);
    --border-2:     rgba(255,255,255,0.13);
    --hairline:     rgba(255,255,255,0.05);

    --accent:       hsl(260, 100%, 65%);    /* purple */
    --accent-h:     hsl(265, 100%, 70%);
    --accent2:      #06b6d4;                /* cyan */
    --accent2-h:    #22d3ee;
    --green:        #00fa9a;

    --text:         #ffffff;
    --text-2:       #e2e2ea;
    --text-muted:   #a0a0b0;
    --muted-2:      #707080;
    --muted-3:      #4a4a55;

    /* Tag colors */
    --tag-guide:    #4ade80;
    --tag-security: #f87171;
    --tag-analysis: #fb923c;
    --tag-pricing:  #a78bfa;

    /* Layout */
    --radius-sm:    8px;
    --radius:       14px;
    --radius-lg:    20px;
    --radius-xl:    28px;

    --max-w:        780px;       /* article reading column */
    --max-w-grid:   1180px;      /* index/grid */

    --ease:         cubic-bezier(.4, 0, .2, 1);

    --shadow-sm:    0 1px 2px rgba(0,0,0,.3);
    --shadow:       0 8px 32px rgba(0,0,0,.45);
    --shadow-lg:    0 24px 60px rgba(0,0,0,.6);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%,    rgba(124,58,237,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 90% 100%,  rgba(6,182,212,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 30%,   rgba(138,43,226,0.05) 0%, transparent 70%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: "ss01", "cv11";
    font-variant-numeric: tabular-nums;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--accent2); text-decoration: none; transition: color .2s var(--ease), opacity .2s var(--ease); }
a:hover { color: var(--accent2-h); }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(10,10,15,.6); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,.35); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,.55); }

/* ═══════════════════════════════════════════════════════════════
   NAV (preserved structure — same classes, refined visuals)
   ═══════════════════════════════════════════════════════════════ */
.blog-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3,0,5,0.78);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}
.blog-nav-inner {
    max-width: var(--max-w-grid);
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.blog-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.015em;
    color: var(--text);
    white-space: nowrap;
}
.blog-logo:hover { color: var(--text); }
.blog-logo img {
    width: 56px; height: 56px;
    filter: drop-shadow(0 0 12px rgba(138,43,226,.5));
    transition: transform .25s var(--ease);
}
.blog-logo:hover img { transform: scale(1.06) rotate(-3deg); }
.blog-logo-sep { color: var(--border-2); margin: 0 2px; font-weight: 300; }
.blog-logo-tag {
    color: var(--accent2);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.blog-nav-links { display: flex; gap: 28px; align-items: center; }
.blog-nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s var(--ease);
}
.blog-nav-links a:hover { color: var(--text); }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent), hsl(275,100%,68%));
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .005em;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(124,58,237,.35);
    transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.nav-cta:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(124,58,237,.5);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), hsl(275,100%,68%));
    color: #fff;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.005em;
    box-shadow: 0 6px 24px rgba(124,58,237,.32);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .15s;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '→';
    transition: transform .2s var(--ease);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(124,58,237,.45);
    filter: brightness(1.06);
}
.btn-primary:hover::after { transform: translateX(3px); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,58,237,0.05);
    border: 1.5px solid rgba(124,58,237,0.45);
    color: var(--text) !important;
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all .2s var(--ease);
}
.btn-outline:hover {
    color: var(--text) !important;
    background: rgba(124,58,237,0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   HERO (blog index)
   ═══════════════════════════════════════════════════════════════ */
.blog-hero {
    padding: 96px 24px 88px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 720px; height: 360px;
    background:
        radial-gradient(ellipse 60% 50%, rgba(124,58,237,.25) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 70% 50%, rgba(6,182,212,.12) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}
.blog-hero > * { position: relative; z-index: 1; }
.blog-hero h1 {
    font-size: clamp(34px, 6vw, 60px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.04em;
    margin: 22px auto 22px;
    max-width: 900px;
    background: linear-gradient(135deg, #fff 0%, #d8b4fe 60%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.blog-hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.65;
    font-weight: 400;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(6,182,212,0.10);
    border: 1px solid rgba(6,182,212,0.28);
    color: var(--accent2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
}
.hero-badge::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 8px var(--accent2);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .55; transform: scale(.85); }
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE GRID (blog index)
   ═══════════════════════════════════════════════════════════════ */
.blog-container {
    max-width: var(--max-w-grid);
    margin: 0 auto;
    padding: 72px 24px 32px;
}
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-label::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 10px var(--accent2);
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-2), transparent);
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}
.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: border-color .25s var(--ease),
                background .25s var(--ease),
                transform .25s var(--ease),
                box-shadow .25s var(--ease);
    position: relative;
    overflow: hidden;
}
.article-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,.4), transparent);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.article-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(124,58,237,.06), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.article-card:hover {
    border-color: rgba(124,58,237,0.42);
    background: var(--surface-2);
    transform: translateY(-4px);
    box-shadow: 0 18px 46px rgba(0,0,0,.35), 0 0 0 1px rgba(124,58,237,.18);
}
.article-card:hover::before, .article-card:hover::after { opacity: 1; }

/* Featured first card: spans 2 columns on wide screens */
.article-grid > .article-card:first-child {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    padding: 36px 36px 32px;
}
.article-grid > .article-card:first-child h2 {
    font-size: clamp(22px, 2.5vw, 28px);
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.article-grid > .article-card:first-child p {
    font-size: 15px;
    max-width: 640px;
}
.article-grid > .article-card:first-child::before {
    opacity: .7;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(124,58,237,0.14);
    border: 1px solid rgba(124,58,237,0.22);
    color: #c4b5fd;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 100px;
    margin-bottom: 16px;
    width: fit-content;
}
.article-tag.tag-security { background: rgba(248,113,113,0.10); border-color: rgba(248,113,113,0.25); color: var(--tag-security); }
.article-tag.tag-guide    { background: rgba(74,222,128,0.10); border-color: rgba(74,222,128,0.25); color: var(--tag-guide); }
.article-tag.tag-analysis { background: rgba(251,146,60,0.10); border-color: rgba(251,146,60,0.25); color: var(--tag-analysis); }

.article-card h2 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -.018em;
    margin-bottom: 12px;
}
.article-card h2 a {
    color: var(--text);
    transition: color .2s var(--ease);
}
.article-card h2 a:hover { color: var(--accent2); }

.article-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.65;
    flex: 1;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
    font-size: 12.5px;
    color: var(--muted-2);
    font-variant-numeric: tabular-nums;
}
.meta-dot { color: var(--muted-3); }
.meta-read {
    margin-left: auto;
    color: var(--accent2);
    font-weight: 600;
    transition: transform .25s var(--ease);
}
.article-card:hover .meta-read { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════
   ARTICLE HERO (single post)
   ═══════════════════════════════════════════════════════════════ */
.article-hero {
    padding: 72px 24px 56px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.article-hero::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 280px;
    background: radial-gradient(ellipse, rgba(124,58,237,0.16) 0%, transparent 70%);
    filter: blur(24px);
    pointer-events: none;
}
.article-hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.breadcrumb {
    font-size: 13px;
    color: var(--muted-2);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--muted-2);
    transition: color .2s var(--ease);
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep {
    color: var(--muted-3);
    font-size: 12px;
}

.article-hero h1 {
    font-size: clamp(28px, 4.4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin: 14px 0 22px;
    color: var(--text);
}
.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 13.5px;
    color: var(--muted-2);
}
.article-hero-meta > span:not(.article-tag) {
    position: relative;
}
.article-hero-meta .article-tag { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════
   ARTICLE BODY — typography-first reading experience
   ═══════════════════════════════════════════════════════════════ */
.article-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 64px 24px 96px;
}
.article-body {
    font-size: 17px;
    line-height: 1.78;
    color: var(--text-2);
}
.article-body > p:first-child {
    font-size: 19px;
    line-height: 1.65;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 28px;
    letter-spacing: -.005em;
}
.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.025em;
    margin: 56px 0 18px;
    color: var(--text);
    scroll-margin-top: 88px;
    position: relative;
    padding-left: 18px;
}
.article-body h2::before {
    content: '';
    position: absolute;
    left: 0; top: 9px; bottom: 9px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
}
.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.015em;
    margin: 38px 0 14px;
    color: var(--text);
    scroll-margin-top: 88px;
}
.article-body p {
    color: var(--text-muted);
    margin-bottom: 22px;
}
.article-body ul, .article-body ol {
    color: var(--text-muted);
    margin: 0 0 24px 4px;
    padding-left: 24px;
}
.article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
    padding-left: 4px;
}
.article-body ul li::marker { color: var(--accent); }
.article-body ol li::marker { color: var(--accent2); font-weight: 600; }

.article-body strong {
    color: var(--text);
    font-weight: 600;
}
.article-body em {
    color: #c4b5fd;
    font-style: italic;
}
.article-body a {
    color: var(--accent2);
    border-bottom: 1px solid rgba(6,182,212,0.3);
    transition: color .2s, border-color .2s, background .2s;
    padding: 0 1px;
}
.article-body a:hover {
    color: var(--accent2-h);
    border-color: var(--accent2-h);
    background: rgba(6,182,212,0.08);
}

/* Inline code */
.article-body code {
    background: rgba(124,58,237,0.10);
    border: 1px solid rgba(124,58,237,0.22);
    padding: 2px 7px;
    border-radius: 5px;
    font-family: 'Geist Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 0.86em;
    color: #d8b4fe;
    font-weight: 500;
}

/* Code blocks */
.article-body pre {
    background: linear-gradient(180deg, #08071a, #050310);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    overflow-x: auto;
    margin: 28px 0;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.03);
    position: relative;
}
.article-body pre::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,.3), transparent);
}
.article-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: #e2e2ea;
    font-weight: 400;
}

/* Blockquote */
.article-body blockquote {
    border-left: 3px solid var(--accent);
    margin: 32px 0;
    padding: 20px 26px;
    background:
        linear-gradient(135deg, rgba(124,58,237,0.08), rgba(6,182,212,0.03));
    border-radius: 0 12px 12px 0;
    color: var(--text-2);
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    position: relative;
}
.article-body blockquote::before {
    content: '"';
    position: absolute;
    left: 18px; top: -2px;
    font-size: 60px;
    line-height: 1;
    color: rgba(124,58,237,.25);
    font-family: Georgia, serif;
    font-style: normal;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   CALLOUT BOXES
   ═══════════════════════════════════════════════════════════════ */
.callout {
    border-radius: 12px;
    padding: 18px 22px 18px 56px;
    margin: 30px 0;
    font-size: 15px;
    line-height: 1.65;
    position: relative;
    backdrop-filter: blur(8px);
}
.callout::before {
    position: absolute;
    left: 18px; top: 18px;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.callout strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: inherit;
}
.callout-info {
    background: linear-gradient(135deg, rgba(6,182,212,0.10), rgba(6,182,212,0.04));
    border: 1px solid rgba(6,182,212,0.28);
    color: #a5f3fc;
}
.callout-info::before {
    content: 'i';
    background: rgba(6,182,212,.25);
    color: #67e8f9;
    font-family: Georgia, serif;
    font-style: italic;
}
.callout-warning {
    background: linear-gradient(135deg, rgba(251,191,36,0.09), rgba(251,191,36,0.03));
    border: 1px solid rgba(251,191,36,0.30);
    color: #fde68a;
}
.callout-warning::before {
    content: '!';
    background: rgba(251,191,36,.25);
    color: #fcd34d;
}
.callout-danger {
    background: linear-gradient(135deg, rgba(239,68,68,0.10), rgba(239,68,68,0.03));
    border: 1px solid rgba(239,68,68,0.30);
    color: #fca5a5;
}
.callout-danger::before {
    content: '×';
    background: rgba(239,68,68,.25);
    color: #fca5a5;
    font-size: 18px;
}
.callout-success {
    background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(34,197,94,0.03));
    border: 1px solid rgba(34,197,94,0.28);
    color: #86efac;
}
.callout-success::before {
    content: '✓';
    background: rgba(34,197,94,.25);
    color: #86efac;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}
.article-body th {
    text-align: left;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(124,58,237,0.10), rgba(124,58,237,0.04));
    color: var(--text);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-2);
    white-space: nowrap;
}
.article-body td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--hairline);
    color: var(--text-muted);
    vertical-align: top;
    line-height: 1.6;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tbody tr:hover {
    background: rgba(124,58,237,0.04);
}

/* ═══════════════════════════════════════════════════════════════
   IN-ARTICLE CTA
   ═══════════════════════════════════════════════════════════════ */
.article-cta {
    background:
        linear-gradient(135deg, rgba(124,58,237,0.14) 0%, rgba(6,182,212,0.06) 100%),
        var(--surface);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    text-align: center;
    margin: 56px 0;
    position: relative;
    overflow: hidden;
}
.article-cta::before {
    content: '';
    position: absolute;
    top: -2px; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
    opacity: .65;
}
.article-cta h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 12px;
    color: var(--text);
}
.article-cta p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-note {
    font-size: 12.5px !important;
    color: var(--muted-2) !important;
    margin-top: 18px !important;
    margin-bottom: 0 !important;
    letter-spacing: .01em;
}

/* ═══════════════════════════════════════════════════════════════
   RELATED ARTICLES
   ═══════════════════════════════════════════════════════════════ */
.related-section {
    margin-top: 72px;
    padding-top: 52px;
    border-top: 1px solid var(--border);
}
.related-section h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--accent2);
    display: flex;
    align-items: center;
    gap: 12px;
}
.related-section h3::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 10px var(--accent2);
}
.related-section h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-2), transparent);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.related-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color .2s var(--ease), background .2s, transform .2s;
}
.related-card:hover {
    border-color: rgba(124,58,237,0.4);
    background: var(--surface-2);
    transform: translateY(-2px);
}
.related-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    letter-spacing: -.01em;
}
.related-card h4 a {
    color: var(--text);
    transition: color .2s var(--ease);
}
.related-card h4 a:hover { color: var(--accent2); }
.related-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — точная копия стиля webapp_test
   ═══════════════════════════════════════════════════════════════ */
.blog-footer {
    background: rgba(3, 0, 5, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(138, 43, 226, 0.12);
    padding: 1.5rem 1.6rem 2.5rem;
    margin-top: 32px;
}
.blog-footer-inner {
    max-width: var(--max-w-grid);
    margin: 0 auto;
}

/* Top row: brand left, socials right */
.blog-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 12px;
}
.blog-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-footer-brand img {
    width: 52px;
    height: 52px;
    opacity: 0.85;
    flex-shrink: 0;
}
.blog-footer-brand-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.2px;
}
.blog-footer-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: all 0.2s ease;
}
.blog-footer-social:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.3);
    color: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
}

/* Divider */
.blog-footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent);
    margin-bottom: 1rem;
}

/* Nav links */
.blog-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem 1rem;
    margin-bottom: 0.75rem;
}
.blog-footer-links a {
    font-size: 0.74rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.32);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}
.blog-footer-links a:hover { color: rgba(255, 255, 255, 0.65); }

.blog-footer-copy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
    user-select: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
    .article-grid > .article-card:first-child { grid-column: span 1; padding: 28px 28px 24px; }
    .article-grid > .article-card:first-child h2 { font-size: 19px; }
}
@media (max-width: 720px) {
    .blog-nav-links { display: none; }
    .blog-nav-inner { height: 60px; }
    .blog-hero { padding: 64px 20px 56px; }
    .blog-hero h1 { font-size: 32px; }
    .blog-hero p { font-size: 16px; }
    .blog-container { padding: 56px 18px 24px; }
    .article-grid { grid-template-columns: 1fr; gap: 16px; }
    .article-card { padding: 22px; }

    .article-hero { padding: 52px 20px 44px; }
    .article-hero h1 { font-size: 26px; }
    .article-layout { padding: 44px 20px 64px; }
    .article-body { font-size: 16px; line-height: 1.72; }
    .article-body > p:first-child { font-size: 17px; }
    .article-body h2 { font-size: 22px; margin: 44px 0 14px; }
    .article-body h3 { font-size: 18px; margin: 30px 0 12px; }
    .article-body pre { padding: 16px 18px; font-size: 13px; }

    .article-cta { padding: 28px 22px; margin: 44px 0; }
    .article-cta h3 { font-size: 20px; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn-primary, .cta-buttons .btn-outline { justify-content: center; }

    .related-grid { grid-template-columns: 1fr; }
    .table-wrap { margin: 24px -4px; border-radius: 10px; }
    .article-body th, .article-body td { padding: 11px 14px; }

    .blog-footer-top { justify-content: center; }
    .blog-footer-brand { justify-content: center; }
    .blog-footer { padding: 40px 20px 32px; }
}
@media (max-width: 420px) {
    .blog-logo-tag { display: none; }
    .blog-nav { padding: 0 16px; }
    .blog-hero h1 { font-size: 28px; }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY & MOTION PREFERENCES
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-badge::before { animation: none; }
}

/* Focus styles for keyboard navigation */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Print */
@media print {
    .blog-nav, .nav-cta, .blog-footer, .article-cta, .related-section { display: none; }
    body { background: #fff; color: #000; }
    .article-body { font-size: 12pt; line-height: 1.5; color: #000; }
    .article-body h2, .article-body h3, .article-body strong { color: #000; }
    .article-body p, .article-body li { color: #222; }
}
