:root {
    --shell-bg: rgba(248, 250, 252, 0.72);
    --shell-text: #0f172a;
    --shell-muted: #64748b;
    --shell-border: rgba(15, 23, 42, 0.1);
    --shell-surface: rgba(255, 255, 255, 0.78);
    --shell-brand: #0ea5e9;
}

.dark {
    --shell-bg: rgba(3, 7, 18, 0.72);
    --shell-text: #f8fafc;
    --shell-muted: #94a3b8;
    --shell-border: rgba(255, 255, 255, 0.09);
    --shell-surface: rgba(15, 23, 42, 0.55);
    --shell-brand: #38bdf8;
}

.site-shell-hidden {
    display: none !important;
}

.site-shell-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90000;
    height: 64px;
    background: var(--shell-bg);
    border-bottom: 1px solid var(--shell-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--shell-text);
    font-family: Inter, system-ui, sans-serif;
}

.site-shell-nav-inner {
    width: min(100% - 48px, 1280px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-shell-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--shell-text);
    text-decoration: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-shell-mark {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.site-shell-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.88rem;
    font-weight: 600;
}

.site-shell-links a,
.site-shell-footer a,
.site-shell-ticker a {
    color: var(--shell-muted);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-shell-links a:hover,
.site-shell-links a.active,
.site-shell-footer a:hover,
.site-shell-ticker a:hover {
    color: var(--shell-text);
}

.site-shell-links .site-shell-cta {
    color: var(--shell-text);
    border: 1px solid var(--shell-border);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(14, 165, 233, 0.08);
}

.site-shell-toggle {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--shell-border);
    background: var(--shell-surface);
    color: var(--shell-text);
    cursor: pointer;
}

.site-shell-footer {
    position: relative;
    z-index: 20;
    margin-top: 96px;
    padding: 72px 24px 56px;
    border-top: 1px solid var(--shell-border);
    background: var(--shell-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--shell-text);
    font-family: Inter, system-ui, sans-serif;
}

.site-shell-footer-inner {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.site-shell-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 40px;
}

.site-shell-footer-title {
    margin: 0 0 14px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-shell-footer p {
    margin: 0;
    color: var(--shell-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.site-shell-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 0.9rem;
}

.site-shell-footer-bottom {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--shell-border);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--shell-muted);
    font: 0.72rem "JetBrains Mono", monospace;
}

.site-shell-ticker {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90000;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 24px;
    border-top: 1px solid var(--shell-border);
    background: var(--shell-bg);
    color: var(--shell-muted);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font: 0.68rem "JetBrains Mono", monospace;
}

.site-shell-ticker span {
    white-space: nowrap;
}

.site-shell-scroll {
    position: fixed;
    top: 88px;
    right: 18px;
    bottom: 56px;
    z-index: 90000;
    width: 18px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.site-shell-scroll-track {
    position: relative;
    width: 2px;
    height: 100%;
    border-radius: 999px;
    background: var(--shell-border);
    pointer-events: auto;
}

.site-shell-scroll-thumb {
    position: absolute;
    top: 0;
    left: 50%;
    width: 14px;
    min-height: 56px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #38bdf8, #a855f7);
    box-shadow: 0 0 18px rgba(56,189,248,0.45);
    cursor: grab;
    touch-action: none;
}

.site-shell-scroll-thumb:active {
    cursor: grabbing;
}

@media (max-width: 900px) {
    .site-shell-nav-inner {
        width: min(100% - 28px, 1280px);
    }

    .site-shell-links {
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .site-shell-links::-webkit-scrollbar {
        display: none;
    }

    .site-shell-links a {
        white-space: nowrap;
        font-size: 0.78rem;
    }

    .site-shell-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-shell-footer-bottom,
    .site-shell-ticker {
        flex-direction: column;
    }

    .site-shell-scroll {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-shell-brand span {
        display: none;
    }

    .site-shell-footer-grid {
        grid-template-columns: 1fr;
    }
}
