:root {
    --primary: #7c3aed;         /* ZDS brand primary (violet) */
    --primary-light: #a855f7;   /* ZDS brand light (purple) */
    --primary-hover: #6d28d9;
    --primary-glow: rgba(124, 58, 237, 0.4);
    --secondary: #a855f7;       /* alias of primary-light: keeps existing primary->secondary gradients on-brand */
    --accent: #06b6d4;          /* ZDS secondary accent (cyan), used sparingly */
    --accent-glow: rgba(6, 182, 212, 0.3);
    --dark: #110e24;            /* ZDS surface */
    --darker: #0d0b1a;          /* ZDS page background */
    --light: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(139, 92, 246, 0.25);
    --bg-card: rgba(17, 14, 36, 0.8);
    --text-muted: #94a3b8;
    --text-purple: #c4b5fd;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --grid-line: rgba(255, 255, 255, 0.03);
}

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

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Effects */
.grid-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.45;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: rgba(124, 58, 237, 0.4); animation-duration: 22s; }
.blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: rgba(168, 85, 247, 0.3); animation-duration: 26s; animation-delay: -8s; }
.blob-3 { top: 40%; left: 30%; width: 40vw; height: 40vw; background: rgba(6, 182, 212, 0.2); animation-duration: 30s; animation-delay: -16s; }

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, -4%) scale(1.05); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    margin-top: 0;
}
.text-primary { color: var(--primary-light); }
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.small { font-size: 0.875rem; }
.w-100 { width: 100%; }
.d-block { display: block; }
.flex-wrap { flex-wrap: wrap; }
.ps-2 { padding-left: 0.5rem; }
.lead { font-size: 1.25rem; font-weight: 300; }

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease;
}

/* Navbar */
.navbar {
    padding: 1.2rem 0;
    background: rgba(13, 11, 26, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Outfit'; font-size: 1.5rem; font-weight: 800; display:flex; align-items:center; gap:0.6rem; cursor: pointer;}
.logo:hover { opacity: 0.9; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary-light);
}

/* Menu button (rendered by <site-navbar>): collapses the links into a drop-down
   panel once they no longer fit on one row */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }

/* 1180px: the widest nav (Telemetry's) needs ~1110px on one row */
@media (max-width: 1180px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1.25rem;
        background: var(--darker); /* opaque: the navbar's backdrop blur doesn't reach this panel */
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
    }
    .navbar.open .nav-links { display: flex; }
    .nav-links a {
        padding: 0.85rem 0.25rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links a.btn-primary {
        margin-top: 1rem;
        padding: 0.8rem 1rem;
        justify-content: center;
        text-align: center;
        color: white;
        border-bottom: none;
    }
}

/* Footer Styling */
footer a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
footer a:hover {
    color: white;
}
.hover-white:hover { color: white !important; }

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted) !important;
    font-size: 0.85rem;
}
.powered-by img {
    height: 22px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.5));
    transition: filter 0.2s ease;
}
.powered-by:hover {
    color: var(--text-purple) !important;
}
.powered-by:hover img {
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.8));
}
.powered-by strong {
    color: #ffffff;
    font-weight: 600;
}

/* Components */
.badge-premium {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(168,85,247,0.2) 100%);
    border: 1px solid rgba(168,85,247,0.3);
    color: var(--text-purple);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: var(--primary-hover);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Hero */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
}
.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}
.hero-actions { justify-content: center; }

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-glow);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.product-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}

.product-features li {
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--primary-light);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Tool Inventory Catalog styles */
.tool-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tool-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.2s;
}

.tool-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Pricing and Subscriptions */
.pricing-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    border: 1px solid rgba(168, 85, 247, 0.2);
    margin-top: 6rem;
}

.price-tag {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Outfit';
    margin: 1rem 0;
    color: var(--light);
}

.price-tag span {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* About Section */
.about-section {
    padding: 8rem 0;
}

.about-card {
    background: rgba(17, 14, 36, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 4rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-family: 'Outfit';
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Bento Grid Features */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-glow);
}

.text-muted { color: #cbd5e1; }

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Install/Console components */
.install-box {
    background: #000;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: inset 0 0 50px rgba(124,58,237,0.1);
}

.code-block {
    background: var(--dark);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 1.8rem;
    overflow-x: auto;
    position: relative;
}

.code-block pre { margin: 0; }

.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--accent);
    font-size: 1rem;
    line-height: 1.8;
}

.copy-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Legal Documents layout */
.legal-content {
    max-width: 900px;
    margin: 60px auto 120px;
    background: rgba(17, 14, 36, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem;
}

/* Micro Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-fade-in-up { animation: fadeIn 0.8s ease forwards; }

footer { padding: 2rem 0; border-top: 1px solid var(--border-subtle); }

/* ─── Billing Toggle ─── */
.billing-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
    margin-bottom: 1.5rem;
}
.billing-toggle-option {
    padding: 0.55rem 1.6rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    user-select: none;
    letter-spacing: 0.01em;
}
.billing-toggle-option:hover {
    color: #cbd5e1;
}
.billing-toggle-option.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 2px 12px var(--primary-glow);
}
.savings-badge {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-left: 0.5rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.02em;
}
.savings-badge.visible {
    opacity: 1;
    transform: translateY(0);
}
.price-amount-animated {
    transition: opacity 0.2s ease;
}
.price-amount-animated.changing {
    opacity: 0.3;
}

[v-cloak] { display: none; }

/* ─── Wiki ─── */
.wiki-hero {
    padding: 6rem 0 2.5rem;
    text-align: center;
}
.wiki-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.wiki-hero p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2.5rem;
}
.wiki-search {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    position: relative;
}
.wiki-search input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.1rem;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wiki-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.wiki-search i {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    max-width: fit-content;
    margin: 0 auto;
}
.cat-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-transform: capitalize;
}
.cat-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}
.cat-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}
.cat-tab .count {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.1rem 0.5rem;
    font-size: 0.72rem;
    font-family: var(--mono, 'JetBrains Mono', monospace);
}
.cat-tab.active .count {
    background: rgba(255, 255, 255, 0.25);
}
.wiki-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.wiki-card i.wiki-icon {
    font-size: 1.1rem;
    color: var(--primary-light);
    flex-shrink: 0;
}
.wiki-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wiki-external-icon {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.wiki-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.55;
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}
.tag-pill {
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 0.68rem;
    color: var(--text-purple, #c4b5fd);
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid var(--border);
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
}
.wiki-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--text-muted);
}
.wiki-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.wiki-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease forwards;
}
.wiki-modal {
    max-width: 640px;
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    position: relative;
    text-align: left;
}
.wiki-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease;
}
.wiki-modal-close:hover { background: rgba(255, 255, 255, 0.15); }
.wiki-modal-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-right: 2.5rem;
}
.wiki-modal-head i {
    font-size: 2.2rem;
    color: var(--primary-light);
}
.wiki-modal-head h2 {
    font-size: 1.5rem;
    margin: 0 0 0.3rem;
}
.wiki-qa {
    margin-bottom: 1.5rem;
}
.wiki-qa:last-child { margin-bottom: 0; }
.wiki-qa h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--primary-light);
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wiki-qa p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

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

/* ─── Blog (pages generated by scripts/build-blog.mjs) ─── */
.blog-index, .blog-post { max-width: 820px; margin: 0 auto; padding: 4rem 0 2rem; }
.blog-index-head { text-align: center; margin-bottom: 3rem; }
.blog-index-head h1 { font-size: 3rem; margin: 0 0 0.5rem; }
.blog-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.blog-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.6rem 1.8rem;
}
.blog-card:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.blog-card time, .blog-meta { color: var(--text-muted); font-size: 0.85rem; }
.blog-card h2 { font-size: 1.4rem; margin: 0.3rem 0 0.5rem; }
.blog-card p { color: #cbd5e1; margin: 0; }
.blog-empty { text-align: center; }
.blog-back a { color: var(--text-purple); font-size: 0.9rem; }
.blog-back a:hover { color: white; }
.blog-post header h1 { font-size: 2.6rem; line-height: 1.2; margin: 0.5rem 0; }
.blog-post header { margin-bottom: 2rem; }
.blog-body { font-size: 1.05rem; color: rgba(255, 255, 255, 0.88); line-height: 1.75; }
.blog-body h2 { font-size: 1.7rem; margin: 2.5rem 0 0.75rem; }
.blog-body h3 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.blog-body a { color: var(--primary-light); text-decoration: underline !important; text-underline-offset: 3px; }
.blog-body a:hover { color: white; }
.blog-body img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.1em 0.4em;
}
.blog-body pre {
    background: #0a0816;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    line-height: 1.55;
}
.blog-body pre code { background: none; padding: 0; font-size: 0.88rem; color: #e2e8f0; }
.blog-body blockquote {
    margin: 1.5rem 0;
    padding: 0.5rem 1.25rem;
    border-left: 3px solid var(--primary);
    background: rgba(124, 58, 237, 0.08);
    border-radius: 0 12px 12px 0;
}
.blog-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; display: block; overflow-x: auto; }
.blog-body th, .blog-body td { border: 1px solid var(--border-subtle); padding: 0.5rem 0.75rem; text-align: left; }
.blog-body th { background: rgba(255, 255, 255, 0.05); }

/* ─── Newsletter sign-up (<newsletter-signup> in components.js) ─── */
.newsletter-signup {
    max-width: 820px;
    margin: 2rem auto 4rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}
.newsletter-signup.compact { margin: 3rem auto 2rem; padding: 1.5rem; }
.newsletter-title { font-size: 1.35rem; margin: 0 0 0.5rem; }
.newsletter-consent { color: #cbd5e1; margin: 0 0 1rem; }
.newsletter-form { max-width: 480px; margin: 0 auto; }
.newsletter-row { display: flex; gap: 0.6rem; }
.newsletter-row input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: white;
    font: inherit;
    padding: 0.65rem 1.1rem;
}
.newsletter-row input:focus { outline: 2px solid var(--primary-light); outline-offset: 1px; }
.newsletter-row button { border: none; cursor: pointer; font: inherit; font-weight: 600; flex-shrink: 0; }
.newsletter-row button:disabled { opacity: 0.6; cursor: wait; }
.newsletter-turnstile:not(:empty) { margin-top: 0.75rem; display: flex; justify-content: center; }
.newsletter-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.newsletter-error { color: #fca5a5; font-size: 0.875rem; margin: 0.6rem 0 0; }
.newsletter-error:empty { display: none; }
.newsletter-fine { color: var(--text-muted); font-size: 0.8rem; margin: 0.9rem 0 0; }
.newsletter-fine a { color: var(--text-purple); }
.newsletter-done { margin: 0; }

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .blog-index-head h1 { font-size: 2.3rem; }
    .blog-post header h1 { font-size: 2rem; }
    .newsletter-row { flex-direction: column; }
    .newsletter-signup { padding: 1.5rem 1.1rem; }
    .product-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .billing-toggle { flex-direction: row; }
    .billing-toggle-option { padding: 0.45rem 1.2rem; font-size: 0.8rem; }
    .wiki-hero { padding: 5rem 0 2rem; }
    .category-tabs { max-width: 100%; }
}
