/* ============================================================
   SoulCoreOS — State-based AI Operating System
   Visual language: blueprint / technical drawing / paper & ink
   ============================================================ */

:root {
    --bg: #0e1015;
    --bg-deep: #0a0c10;
    --bg-2: #13161d;
    --bg-card: #171b24;
    --bg-card-hover: #1d222d;
    --bg-glass: rgba(14, 16, 21, 0.82);

    --text: #eef0f5;
    --text-dim: #b6bcc8;
    --text-muted: #71798a;

    --blue: #a9b8cf;
    --sky: #b6c4da;
    --cyan: #93a6c2;
    --violet: #a89bcb;
    --green: #7ec9a4;
    --amber: #d9b36a;
    --red: #e08a8a;

    --accent: var(--blue);
    --accent-strong: #d3dcec;
    --accent-bright: var(--sky);
    --accent2: var(--green);
    --accent3: var(--amber);

    --grad-main: linear-gradient(135deg, #2c3342 0%, #3a4354 100%);
    --grad-deep: linear-gradient(135deg, #1e242f 0%, #2c3342 100%);
    --grad-text: linear-gradient(180deg, #ffffff 30%, #b6bcc8 100%);

    --border: rgba(169, 184, 207, 0.18);
    --border-hover: rgba(190, 202, 220, 0.42);
    --glow: rgba(169, 184, 207, 0.08);
    --glow-soft: rgba(169, 184, 207, 0.05);
    --glow-cyan: rgba(147, 166, 194, 0.08);

    --shadow-card: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 20px 44px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(190, 202, 220, 0.22);

    --font-main: 'Sora', -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Sora', sans-serif;
    --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Fira Code', monospace;

    --radius: 8px;
    --radius-sm: 5px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background:
        linear-gradient(rgba(169, 184, 207, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(169, 184, 207, 0.06) 1px, transparent 1px),
        var(--bg);
    background-size: 42px 42px;
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.03;
}

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

::selection { background: rgba(169, 184, 207, 0.28); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.5px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(169, 184, 207, 0.08);
    padding: 0 clamp(20px, 4vw, 60px);
    height: 76px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 16px);
    opacity: 0.4;
    pointer-events: none;
}

.nav-brand {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
    letter-spacing: 3px; text-transform: uppercase;
    color: #fff;
}

.nav-brand img {
    height: 44px; width: 44px;
    transition: var(--transition);
}

.nav-brand:hover img { transform: scale(1.05); }

/* Nav links — technical segmented control */
.nav-links {
    display: flex; gap: 4px; align-items: center;
    padding: 5px;
    background: transparent;
    border: none;
    border-radius: 7px;
}

.nav-links a {
    font-family: var(--font-mono); font-size: 0.76rem;
    color: var(--text-dim); padding: 9px 16px; border-radius: 4px;
    letter-spacing: 1px; font-weight: 600; text-transform: uppercase;
    transition: var(--transition); position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 3px;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--blue);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--blue);
    background: var(--glow-soft);
}
.nav-links a:hover::after { width: 55%; }

.nav-links a.active {
    color: #fff;
    background: var(--grad-main);
    font-weight: 700;
    box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.6);
}
.nav-links a.active::after { display: none; }

.nav-links .nav-sep {
    width: 1px; height: 20px;
    background: var(--border);
    margin: 0 6px;
}

.nav-lang {
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--blue); padding: 6px 12px;
    border: 1px solid var(--border); border-radius: 5px;
    letter-spacing: 1px; font-weight: 700;
    background: rgba(23, 27, 36, 0.7);
    transition: var(--transition);
}
.nav-lang:hover { background: var(--grad-main); border-color: transparent; color: #fff; }

.nav-admin {
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--text-muted); padding: 6px 12px;
    border: 1px dashed var(--border-hover); border-radius: 5px;
    transition: var(--transition);
}
.nav-admin:hover { border-color: var(--blue); color: var(--blue); background: var(--glow-soft); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav { height: 68px; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: rgba(10, 12, 16, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 22px;
        border: none;
        border-bottom: 1px solid var(--border);
        border-radius: 0 0 8px 8px;
        gap: 4px;
    }
    .nav-links.show { display: flex; }
    .nav-links a { padding: 12px 14px; }
    .nav-links a::after { display: none; }
    .nav-links .nav-sep { display: none; }
    .nav-brand img { height: 40px; width: 40px; }
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    background: var(--grad-main);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 6px 6px;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus { top: 0; outline: 3px solid var(--blue); outline-offset: 2px; }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(14, 16, 21, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-content {
    max-width: min(1400px, 70vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text h4 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.cookie-text p { color: var(--text-dim); font-size: 0.85rem; margin: 0; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ============================================================
   ACCESSIBILITY TOOLBAR
   ============================================================ */
.a11y-toolbar { position: fixed; right: 20px; bottom: 20px; z-index: 9998; }

.a11y-toggle {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--grad-main);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px -3px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}
.a11y-toggle:hover { transform: scale(1.1); box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.7); }

.a11y-menu {
    position: absolute;
    bottom: 60px; right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
    box-shadow: var(--shadow-card);
}
.a11y-menu.show { display: flex; }

.a11y-menu button {
    background: rgba(23, 27, 36, 0.7);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}
.a11y-menu button:hover { background: var(--glow-soft); border-color: var(--blue); }

/* ============================================================
   HIGH CONTRAST MODE
   ============================================================ */
body.high-contrast {
    --bg: #0a0a0a;
    --bg-card: #1a1a1a;
    --text: #fff;
    --text-dim: #d1d5db;
    --sky: #7dd3fc;
    --blue: #60a5fa;
    --cyan: #67e8f9;
    --green: #6ee7b7;
    --amber: #fde68a;
    --border: rgba(125, 211, 252, 0.3);
    --glow: rgba(96, 165, 250, 0.2);
}

/* ============================================================
   HERO — drawing board / technical sheet
   ============================================================ */
.hero-slider {
    min-height: 100vh;
    min-height: 100svh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 130px 20px 90px;
    position: relative;
    overflow: hidden;
    background-color: #11151d;
    background-image:
        linear-gradient(rgba(169, 184, 207, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(169, 184, 207, 0.09) 1px, transparent 1px),
        radial-gradient(ellipse 90% 70% at 50% 35%, rgba(70, 80, 100, 0.3) 0%, transparent 70%);
    background-size: 44px 44px, 44px 44px, 100% 100%;
}

.hero-slider::after {
    content: 'SOULCORE RUNTIME';
    position: absolute;
    top: 18px; right: 28px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 4px;
    color: rgba(190, 202, 220, 0.45);
    pointer-events: none;
    z-index: 1;
}

.hero-slider::before {
    content: 'REV 4.0 — STATEBUNDLE 768 · ΔSTATE';
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 2px;
    color: rgba(190, 202, 220, 0.4);
    pointer-events: none;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: opacity 0.6s ease;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 70% at 50% 42%, rgba(17, 21, 29, 0.55) 0%, rgba(17, 21, 29, 0.86) 100%),
        linear-gradient(to bottom, rgba(17, 21, 29, 0.9) 0%, rgba(17, 21, 29, 0.55) 50%, rgba(17, 21, 29, 0.94) 100%);
    pointer-events: none;
}

.hero-grid-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(169, 184, 207, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(169, 184, 207, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 100%);
}

/* Removed: hero-glow, hero-particles (neon AI-template clichés) */

/* Hero brand lockup — technical title block */
.hero-brand {
    position: relative;
    z-index: 1;
    display: flex; flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
}

.hero-brand-badge {
    display: flex; align-items: center; justify-content: center;
    background: none;
    border: none;
    box-shadow: none;
}

.hero-brand-badge img {
    width: clamp(180px, 32vw, 260px);
    height: auto;
}

.hero-brand-text { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.hero-brand-tag {
    font-family: var(--font-mono);
    font-size: clamp(0.6rem, 1.6vw, 0.72rem);
    color: #d6dcea;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(169, 184, 207, 0.1);
    border: 1px solid rgba(169, 184, 207, 0.3);
    padding: 6px 16px;
    border-radius: 3px;
}

.hero-slides {
    position: relative;
    width: 100%;
    max-width: 1100px;
    min-height: 240px;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.hero-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.hero-slide h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6.5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin-bottom: 18px;
    color: #ffffff;
}

.hero-slide p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: #cdd3de;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

.hero-dots { display: flex; gap: 10px; margin: 30px 0; z-index: 1; }

.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(169, 184, 207, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.hero-dot.active {
    background: #fff;
    transform: scale(1.35);
}
.hero-dot:hover { background: #d6dcea; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; z-index: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-family: var(--font-mono); font-size: 0.76rem;
    padding: 14px 28px; border-radius: 4px;
    letter-spacing: 1px; text-transform: uppercase;
    cursor: pointer; transition: var(--transition);
    border: 1px solid transparent; display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600;
}

.btn-sm { padding: 8px 16px; font-size: 0.7rem; border-radius: 4px; }

.btn-primary {
    background: var(--grad-main);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.6);
}
.btn-primary:hover {
    background: var(--grad-deep);
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.7);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background: rgba(23, 27, 36, 0.7);
    color: var(--blue);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--blue);
    background: var(--glow-soft);
    box-shadow: 0 0 0 1px var(--glow);
    transform: translateY(-1px);
    color: var(--blue);
}

/* ============================================================
   SECTIONS — technical sheets
   ============================================================ */
.section {
    padding: 100px clamp(20px, 4vw, 60px);
    max-width: min(1400px, 70vw);
    margin: 0 auto;
    position: relative;
}

.section-full {
    padding: 100px clamp(20px, 4vw, 60px);
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-full::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 22px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.section-full .section-header,
.section-full .feature-showcase,
.section-full .arch-diagram,
.section-full .card-grid,
.section-full .cta-content,
.section-full > p {
    max-width: min(1400px, 70vw);
    margin-left: auto;
    margin-right: auto;
}

.section > p { position: relative; z-index: 2; }

.section-header {
    text-align: center; margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h1,
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700; letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text);
}

.section-header p { color: var(--text-dim); max-width: 640px; margin: 0 auto; font-size: 1rem; }

.section-label {
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--blue); letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 14px;
    display: block;
    font-weight: 600;
}

.section-label::before { content: '// '; color: var(--text-muted); }

.section-label::before { content: '// '; color: var(--text-muted); }

/* ============================================================
   DECORATIVE DIVIDER — technical rule
   ============================================================ */
.section-divider {
    width: 96px; height: 3px;
    background: var(--blue);
    margin: 0 auto 34px;
    position: relative;
}
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%; right: -14px;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: var(--blue);
    transform-origin: center;
}

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.section-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.section-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(14, 16, 21, 0.66) 0%, rgba(14, 16, 21, 0.32) 50%, rgba(14, 16, 21, 0.72) 100%);
    pointer-events: none;
    z-index: 1;
}

.section-clarification { position: relative; overflow: hidden; }
.section-clarification > .section-bg + .section-bg-overlay ~ * { position: relative; z-index: 2; }

/* ============================================================
   ARCHITECTURE DIAGRAM
   ============================================================ */
.arch-diagram { position: relative; z-index: 2; }

.arch-diagram-placeholder {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.arch-diagram-placeholder:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--blue);
    transform: translateY(-2px);
}

.arch-diagram-placeholder img { width: 100%; height: auto; display: block; }

.arch-diagram-zoom-hint {
    position: absolute;
    bottom: 16px; right: 16px;
    background: rgba(23, 27, 36, 0.92);
    backdrop-filter: blur(6px);
    color: var(--blue);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 6px 14px;
    border-radius: 4px;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 2;
    border: 1px solid var(--border);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 12, 24, 0.96);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 40px;
    animation: lightboxFadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}
.lightbox.active { display: flex; }

.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.5rem;
    width: 44px; height: 44px;
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.14); border-color: #93a3bf; }

@keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   ARCHITECTURE FLOW
   ============================================================ */
.arch-flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin: 40px 0;
    position: relative;
}

.arch-flow-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 14px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.arch-flow-step::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: var(--blue);
    opacity: 0;
    transition: var(--transition);
}

.arch-flow-step:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.arch-flow-step:hover::before { opacity: 1; }

.arch-flow-step .step-icon { font-size: 2rem; margin-bottom: 10px; display: block; filter: grayscale(1); opacity: 0.85; }

.arch-flow-step .step-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    font-weight: 600;
}

.arch-flow-step .step-name { font-size: 0.85rem; color: var(--text); margin-top: 4px; display: block; font-weight: 400; }
.arch-flow-arrow { display: none; }

/* ============================================================
   STATS — technical data strip
   ============================================================ */
.stats-section {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px clamp(20px, 4vw, 60px);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 3px;
    background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 18px);
    opacity: 0.3;
    pointer-events: none;
}

.stats-grid {
    max-width: min(1400px, 70vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
}

.stat-item { position: relative; padding: 12px 0; }

.stat-item::after {
    content: '';
    position: absolute;
    right: 0; top: 12%;
    height: 76%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border-hover), transparent);
}
.stat-item:last-child::after { display: none; }

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================================
   FEATURE SHOWCASE
   ============================================================ */
.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin: 60px 0;
    position: relative;
    z-index: 2;
}

.feature-showcase.reverse { direction: rtl; }
.feature-showcase.reverse > * { direction: ltr; }

.feature-showcase-text h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.feature-showcase-text p {
    color: var(--text-dim);
    font-size: 0.96rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-showcase-text .feature-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 18px;
    background: rgba(23, 27, 36, 0.7);
    font-weight: 600;
}

.feature-showcase-img {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.feature-showcase-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.feature-showcase-img:hover img { transform: scale(1.03); }

.feature-showcase-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(10, 12, 16, 0.5), transparent);
    pointer-events: none;
}

/* ============================================================
   CARDS — paper index cards
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
    z-index: 2;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 22px;
    position: relative;
    z-index: 2;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 2px;
    background: var(--blue);
    opacity: 0.5;
}

.status-done { border-top: 3px solid var(--green); }
.status-wip  { border-top: 3px solid var(--amber); }
.status-hw   { border-top: 3px solid var(--blue); }

.status-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 18px;
}

.status-done .status-badge { background: rgba(15, 118, 110, 0.1); color: var(--green); border: 1px solid rgba(15, 118, 110, 0.35); }
.status-wip  .status-badge { background: rgba(180, 83, 9, 0.1); color: var(--amber); border: 1px solid rgba(180, 83, 9, 0.35); }
.status-hw   .status-badge { background: rgba(169, 184, 207, 0.08); color: var(--blue); border: 1px solid rgba(169, 184, 207, 0.35); }

.status-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text);
    margin: 0 0 16px;
}

.status-card ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-card ul li {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.6;
    padding-left: 18px;
    position: relative;
}

.status-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-family: var(--font-mono);
}

.status-card ul li strong { color: var(--text); font-weight: 600; }

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

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 2px;
    background: var(--blue);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--blue);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.card:hover::before { opacity: 1; }

.card-with-bg { position: relative; }

.card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.4;
}

.card-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(14, 16, 21, 0.55), rgba(14, 16, 21, 0.92));
}

.card-with-bg > *:not(.card-bg):not(.card-bg-overlay) { position: relative; z-index: 2; }

.card-icon {
    font-size: 1.3rem; margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    background: rgba(169, 184, 207, 0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    filter: grayscale(1) brightness(1.5) contrast(1.15);
    opacity: 1;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.08rem; font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.75; }

/* Card with image */
.card-with-img { padding: 0; overflow: hidden; }

.card-with-img .card-img {
    width: 100%; height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.card-with-img .card-img-placeholder {
    width: 100%; height: 180px;
    background: linear-gradient(180deg, rgba(169, 184, 207, 0.05), transparent);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}

.card-with-img .card-img-placeholder .icon { font-size: 2.5rem; opacity: 0.14; filter: grayscale(1); }
.card-with-img .card-body { padding: 24px; }

/* ============================================================
   SPECS TABLES
   ============================================================ */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.specs-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--blue);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.68rem;
}

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

.specs-table tr:hover td {
    color: var(--text);
    background: var(--glow-soft);
}

.spec-table { margin: 24px 0; }

.spec-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.spec-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--blue);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.68rem;
}

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

.spec-table tr:hover td { color: var(--text); background: var(--glow-soft); }

/* ============================================================
   WIKI / DOCS / SINGLE POST CONTENT
   ============================================================ */
.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px clamp(20px, 4vw, 60px);
}

.sidebar-nav {
    position: sticky; top: 96px;
    height: fit-content;
}

.sidebar-nav a {
    display: block;
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    border-left: 2px solid transparent;
    transition: var(--transition);
    border-radius: 0 4px 4px 0;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--blue);
    border-left-color: var(--blue);
    background: var(--glow-soft);
}

/* Rich content — readable long-form */
.content-body {
    font-size: 1.04rem;
    line-height: 1.85;
    color: var(--text);
}

.content-body h1 {
    font-family: var(--font-display);
    font-size: 2.2rem; font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.content-body h2 {
    font-size: 1.35rem; font-weight: 700;
    margin: 34px 0 16px;
    color: var(--text);
    padding-left: 14px;
    border-left: 3px solid var(--blue);
}

.content-body h3 {
    font-size: 1.1rem; font-weight: 600;
    margin: 26px 0 12px;
    color: var(--text);
}

.content-body p { color: var(--text-dim); margin-bottom: 18px; }

.content-body a { color: var(--blue); border-bottom: 1px solid var(--border-hover); }
.content-body a:hover { color: var(--accent-strong); border-bottom-color: var(--blue); }

.content-body img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.content-body code {
    font-family: var(--font-mono);
    background: rgba(169, 184, 207, 0.07);
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.86em; color: var(--blue);
}

.content-body pre {
    background: #11141b;
    border: 1px solid rgba(169, 184, 207, 0.25);
    border-left: 3px solid #93a3bf;
    border-radius: 6px;
    padding: 22px 24px;
    overflow-x: auto;
    margin: 22px 0;
    box-shadow: var(--shadow-card);
    line-height: 1.75;
}

.content-body pre code {
    background: none; padding: 0; color: #d6dcea;
    font-size: 0.86rem;
}

.content-body pre.ql-syntax {
    background: #11141b;
    border-color: rgba(169, 184, 207, 0.25);
    border-left-color: #93a3bf;
}

.content-body .content-block {
    margin-bottom: 34px;
}

.content-body ul { list-style: none; padding: 0; margin: 16px 0; }

.content-body ul li {
    padding: 6px 0 6px 22px;
    position: relative;
    color: var(--text-dim);
}

.content-body ul li::before {
    content: '\25B8';
    position: absolute; left: 2px;
    color: var(--blue);
}

.content-body ol { list-style: none; padding: 0; margin: 16px 0; counter-reset: step-counter; }

.content-body ol li {
    padding: 8px 0 8px 42px;
    position: relative;
    color: var(--text-dim);
    counter-increment: step-counter;
}

.content-body ol li::before {
    content: counter(step-counter);
    position: absolute; left: 0;
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--blue); font-weight: 700;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 4px;
    background: rgba(169, 184, 207, 0.06);
}

.content-body blockquote {
    border-left: 3px solid var(--blue);
    padding: 16px 24px;
    margin: 20px 0;
    background: rgba(169, 184, 207, 0.05);
    border-radius: 0 6px 6px 0;
    color: var(--text-dim);
    font-style: italic;
    font-size: 1rem;
    position: relative;
}

.content-body blockquote::before {
    content: '\201C';
    position: absolute;
    top: -8px; left: 10px;
    font-size: 3rem;
    color: rgba(169, 184, 207, 0.18);
    font-family: Georgia, serif;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 0.9rem;
}

.content-body th, .content-body td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

.content-body th {
    background: rgba(169, 184, 207, 0.06);
    color: var(--blue);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-body tr:nth-child(even) td { background: rgba(169, 184, 207, 0.02); }

.content-body hr {
    border: none;
    height: 1px;
    margin: 30px 0;
    background: var(--border);
}

.highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 26px;
    margin: 24px 0;
}

.highlight-box h3 {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
    color: var(--blue);
    margin-bottom: 12px;
}

.highlight-box p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 8px; }

/* ============================================================
   BLOG — HOMEPAGE
   ============================================================ */
.blog-layout {
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
    z-index: 2;
}

.blog-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    position: relative;
}

.blog-featured:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.blog-featured-img { height: 100%; min-height: 260px; overflow: hidden; position: relative; }

.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.blog-featured:hover .blog-featured-img img { transform: scale(1.03); }

.blog-featured-text {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-text h3 { font-size: 1.45rem; margin-bottom: 10px; color: var(--text); }

.blog-featured-text p {
    font-size: 0.92rem;
    color: var(--text-dim);
    margin-bottom: 14px;
    line-height: 1.75;
}

.blog-featured .blog-card-placeholder {
    width: 100%; height: 100%;
    min-height: 260px;
}

/* BLOG — LISTING / HOME GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 22px;
    position: relative;
    z-index: 2;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: var(--blue);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.blog-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.blog-card:hover::before { opacity: 1; }

.blog-card > img {
    width: 100%; height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.blog-card:hover > img { transform: scale(1.03); }

.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.blog-card-body h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--text); }

.blog-card-body p {
    font-size: 0.86rem; color: var(--text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.blog-card-placeholder {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, rgba(169, 184, 207, 0.07), rgba(169, 184, 207, 0.02));
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border);
}

.blog-card-placeholder .icon { font-size: 2.8rem; opacity: 0.2; filter: grayscale(1); }

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.read-more {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 12px;
    display: inline-block;
    transition: var(--transition);
    font-weight: 600;
}
.read-more:hover { letter-spacing: 2px; color: var(--accent-strong); }

/* Legacy horizontal small cards (kept for compatibility) */
.blog-side { display: flex; flex-direction: column; gap: 12px; }

.blog-small {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    flex: 1;
}
.blog-small:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-card); }

.blog-small-img {
    width: 110px; height: 90px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.blog-small-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-small-text { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.blog-small-text h3 { font-size: 0.92rem; margin-bottom: 4px; color: var(--text); }
.blog-small-text p {
    font-size: 0.8rem; color: var(--text-dim);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(169, 184, 207, 0.07);
    color: var(--blue);
    border: 1px solid var(--border);
}

.badge-green {
    background: rgba(15, 118, 110, 0.08);
    color: var(--green);
    border-color: rgba(15, 118, 110, 0.3);
}

.badge-yellow {
    background: rgba(180, 83, 9, 0.08);
    color: var(--amber);
    border-color: rgba(180, 83, 9, 0.3);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    padding: 100px clamp(20px, 4vw, 60px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; height: 3px;
    background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 22px);
    opacity: 0.3;
    pointer-events: none;
}

.cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; text-align: center; }

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.cta-content p { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 32px; line-height: 1.8; }

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

/* ============================================================
   DOWNLOADS
   ============================================================ */
.download-list { display: flex; flex-direction: column; gap: 16px; }

.download-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px; flex-wrap: wrap;
    transition: var(--transition);
}

.download-item:hover {
    border-color: var(--blue);
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.download-info { flex: 1 1 260px; min-width: 0; }
.download-info h3 { font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.download-info p { color: var(--text-dim); font-size: 0.85rem; }
.download-meta {
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--text-muted); margin-top: 8px;
    display: flex; gap: 16px; flex-wrap: wrap;
}
.download-actions { flex-shrink: 0; }
.download-actions .btn { white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--border);
    margin-top: 0;
    position: relative;
    background:
        linear-gradient(180deg, #10141c 0%, #0b0e14 100%);
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: repeating-linear-gradient(90deg, #8fa0bd 0 10px, transparent 10px 22px);
    opacity: 0.35;
    pointer-events: none;
}

/* Pre-footer CTA */
.footer-cta {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(169, 184, 207, 0.14);
    padding: 48px clamp(20px, 4vw, 60px);
}

.footer-cta-inner {
    max-width: min(1400px, 70vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-cta-text h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.footer-cta-text p {
    color: #b8bfcc;
    font-size: 0.98rem;
    font-weight: 400;
    margin: 0;
}
.footer-cta-buttons { display: flex; gap: 12px; flex-shrink: 0; }

/* Footer main */
.footer-main { padding: 60px clamp(20px, 4vw, 60px) 40px; }

.footer-grid {
    max-width: min(1400px, 70vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer h5 {
    font-family: var(--font-mono); font-size: 0.68rem;
    color: #93a3bf; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 16px;
}

.footer a { display: block; color: #aeb8c8; font-size: 0.85rem; padding: 4px 0; }
.footer a.btn { display: inline-flex; padding: 15px 30px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.5px; color: #fff; }
.footer a:hover { color: #fff; }

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-right: 20px;
}

/* Status dot */
.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.35);
    border-radius: 6px;
    width: fit-content;
}

.status-dot {
    width: 8px; height: 8px;
    background: #2dd4bf;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4); }
    50% { opacity: 1; box-shadow: 0 0 0 7px rgba(45, 212, 191, 0); }
}

/* Footer bottom */
.footer-bottom { border-top: 1px solid rgba(169, 184, 207, 0.15); padding: 20px clamp(20px, 4vw, 60px); }

.footer-bottom-inner {
    max-width: min(1400px, 70vw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono); font-size: 0.68rem;
    color: #93a3bf;
}

.footer-bottom-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.footer-bottom-links a { display: inline; padding: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; color: #d6dcea; }
.footer-bottom-links a:hover { color: #fff; }
.footer-motto { display: inline; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; color: #d6dcea; }

.footer-bottom-inner > span { color: #aeb8c8; font-size: 0.85rem; white-space: nowrap; }
.footer-bottom-inner > span a { display: inline; padding: 0; color: #d6dcea; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .feature-showcase { grid-template-columns: 1fr; gap: 40px; }
    .feature-showcase.reverse { direction: ltr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2)::after { display: none; }
    .arch-flow { grid-template-columns: repeat(3, 1fr); }
    .footer-cta-inner { flex-direction: column; text-align: center; }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-img, .blog-featured .blog-card-placeholder { min-height: 220px; height: 220px; }
}

@media (max-width: 768px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar-nav {
        position: static;
        display: flex; overflow-x: auto; gap: 4px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 30px;
    }
    .sidebar-nav a { border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; border-radius: 0; }
    .sidebar-nav a:hover, .sidebar-nav a.active { border-bottom-color: var(--blue); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .download-item { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cookie-content { flex-direction: column; text-align: center; }
    .a11y-toolbar { right: 10px; bottom: 10px; }
    .a11y-toggle { width: 40px; height: 40px; }
    .hero-slider { padding: 110px 18px 70px; }
    .hero-slides { min-height: 210px; }
    .arch-flow { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .stat-item::after { display: none; }
    .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
    .section,
    .section-full .section-header,
    .section-full .feature-showcase,
    .section-full .arch-diagram,
    .section-full .card-grid,
    .section-full .cta-content,
    .section-full > p { max-width: 100%; }
    .spec-table { overflow-x: auto; }
    .spec-table table { min-width: 420px; }
    .content-body table { display: block; overflow-x: auto; }
    .nav-brand span { font-size: 1rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-brand-badge { width: 92px; height: 92px; }
    .hero-brand-badge img { width: 60px; height: 60px; }
    .btn { padding: 13px 22px; }
    .section { padding: 70px 20px; }
    .section-full { padding: 70px 20px; }
    .section-header { margin-bottom: 40px; }
    .arch-flow { grid-template-columns: 1fr; }
    .content-layout { padding: 90px 16px; }
    .content-body { font-size: 1rem; }
    .hero-slide h1 { font-size: 1.75rem; }
    .hero-slide p { font-size: 0.95rem; }
    .blog-featured-text h3 { font-size: 1.1rem; }
    .cta-content h2 { font-size: 1.5rem; }
    .cta-content p { font-size: 0.95rem; }
    .status-card { padding: 24px; }
}
