:root {
    --bg0: #040811;
    --bg1: #0b1322;
    --bg2: #132238;
    --panel: rgba(14, 24, 40, .82);
    --text: #edf3ff;
    --muted: #a9bbd3;
    --shadow: 0 22px 60px rgba(0, 0, 0, .45);
    --accent: #4f8cff;
    --accent2: #8fb5ff;
    --radius: 30px
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body.labforge {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
    background: radial-gradient(900px 600px at 10% 10%, rgba(79, 140, 255, .18), transparent 55%), radial-gradient(1000px 700px at 100% 0%, rgba(143, 181, 255, .14), transparent 55%), linear-gradient(145deg, var(--bg0), var(--bg1) 40%, var(--bg2));
    overflow-x: hidden
}

body.labforge.has-grid::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(79, 140, 255, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 140, 255, .10) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 38px 38px, 38px 38px, 190px 190px, 190px 190px;
    opacity: .28;
    mix-blend-mode: screen
}

body.labforge.has-bubbles::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 14% 82%, rgba(143, 181, 255, .16) 0 8px, transparent 9px), radial-gradient(circle at 20% 74%, rgba(143, 181, 255, .13) 0 13px, transparent 14px), radial-gradient(circle at 25% 64%, rgba(143, 181, 255, .11) 0 10px, transparent 11px);
    animation: bubbles 16s linear infinite;
    opacity: .85
}

@keyframes bubbles {
    0% {
        transform: translateY(40px)
    }
    100% {
        transform: translateY(-80px)
    }
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 1
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(6, 10, 18, .85);
    border-bottom: 1px solid rgba(79, 140, 255, .15)
}

.site-header.is-glass {
    backdrop-filter: blur(12px)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    min-height: 56px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    min-width: 0
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(79, 140, 255, .08), 0 8px 18px rgba(0, 0, 0, .22);
    background: rgba(255, 255, 255, .02);
    flex: 0 0 auto
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.brand-title {
    font-weight: 800;
    letter-spacing: .15px;
    font-size: .95rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.brand-subtitle {
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.nav {
    display: flex;
    align-items: center;
    position: relative
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(237, 243, 255, .78);
    font-size: .85rem;
    border: 1px solid transparent;
    background: transparent
}

.nav-link:hover, .nav-item.is-active .nav-link {
    background: rgba(79, 140, 255, .08);
    border-color: rgba(79, 140, 255, .22);
    color: var(--text)
}

.nav-node {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent2), var(--accent));
    box-shadow: 0 0 10px rgba(79, 140, 255, .28)
}

.nav-toggle {
    display: none;
    border: none;
    background: rgba(79, 140, 255, .10);
    border-radius: 999px;
    padding: 8px 10px
}

.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: #fff;
    position: relative;
    content: ''
}

.nav-toggle-bars::before {
    position: absolute;
    top: -5px
}

.nav-toggle-bars::after {
    position: absolute;
    top: 5px
}

.hero {
    padding: 26px 0 18px
}

.hero-panel {
    display: grid;
    grid-template-columns:1.2fr .9fr;
    gap: 24px;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02)), linear-gradient(135deg, rgba(79, 140, 255, .08), transparent 36%);
    border: 1px solid rgba(79, 140, 255, .28);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative
}

.hero-copy {
    padding: 34px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 .78rem ui-monospace, monospace;
    letter-spacing: .12em;
    color: var(--accent2)
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.02;
    margin: .55rem 0 .8rem;
    letter-spacing: -.03em;
    text-shadow: 0 0 24px rgba(79, 140, 255, .18)
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 62ch;
    margin: 0
}

.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px
}

.hero-tags span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(79, 140, 255, .1);
    border: 1px solid rgba(79, 140, 255, .28);
    color: #dce8ff;
    font-size: .92rem
}

.hero-graphic {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px
}

.flask-display {
    background: radial-gradient(circle at 50% 50%, rgba(79, 140, 255, .16), transparent 70%), rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: calc(var(--radius) - 8px);
    min-height: 33px;
    display: grid;
    place-items: center
}

.flask-display img {
    width: min(12%, 30px)
}

.status-card {
    padding: 16px 18px;
    border-radius: calc(var(--radius) - 12px);
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(79, 140, 255, .18)
}

.status-label {
    font: 700 .76rem ui-monospace, monospace;
    letter-spacing: .12em;
    color: var(--accent2)
}

.status-value {
    margin-top: 8px;
    font-size: 1.02rem;
    font-weight: 700
}

.content-panel {
    margin: 22px 0 60px;
    padding: 26px 28px 30px;
    background: var(--panel);
    border: 1px solid rgba(79, 140, 255, .24);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.content-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px
}

.content-chip {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(79, 140, 255, .12);
    border: 1px solid rgba(79, 140, 255, .34);
    font: 700 .76rem ui-monospace, monospace;
    letter-spacing: .12em;
    color: var(--accent2)
}

.content-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(79, 140, 255, .55), transparent)
}

.page-content h2, .page-content h3 {
    color: #f5f8ff;
    margin-top: 1.6em
}

.page-content p, .page-content li {
    color: #d5deee;
    line-height: 1.75
}

.button-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(79, 140, 255, .14);
    border: 1px solid rgba(79, 140, 255, .35);
    color: #fff;
    text-decoration: none
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(4, 8, 16, .72)
}

.footer-inner {
    padding: 24px 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.footer-title {
    font-weight: 800
}

.footer-meta {
    color: var(--muted);
    margin-top: 4px
}

.footer-badge {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(79, 140, 255, .26);
    background: rgba(79, 140, 255, .10);
    font: 700 .78rem ui-monospace, monospace;
    letter-spacing: .12em;
    color: var(--accent2)
}

.error-panel {
    text-align: center
}

@media (max-width: 900px) {
    .hero-panel {
        grid-template-columns:1fr
    }

    .flask-display {
        min-height: 240px
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block
    }

    .nav-menu {
        position: absolute;
        right: 0;
        top: 40px;
        display: none;
        flex-direction: column;
        min-width: 220px;
        padding: 8px;
        background: rgba(8, 12, 20, .96);
        border: 1px solid rgba(79, 140, 255, .24);
        border-radius: 16px;
        box-shadow: var(--shadow)
    }

    .nav-menu.is-open {
        display: flex
    }

    .header-inner {
        align-items: center
    }

    .brand-logo {
        width: 34px;
        height: 34px
    }

    .brand-subtitle {
        display: none
    }
}