:root {
    --site-shell-height: 64px;
    --site-shell-max-width: 1420px;
    --site-shell-bg: rgba(11, 11, 13, 0.82);
    --site-shell-bg-strong: rgba(11, 11, 13, 0.92);
    --site-shell-border: rgba(255, 255, 255, 0.08);
    --site-shell-text: var(--text-primary, #fafafa);
    --site-shell-muted: var(--text-secondary, #a1a1aa);
    --site-shell-orange: var(--bitcoin-orange, #f7931a);
    --site-shell-orange-soft: rgba(247, 147, 26, 0.14);
    --site-shell-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.site-shell {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1100;
    background:
        linear-gradient(180deg, rgba(17, 17, 20, 0.96) 0%, var(--site-shell-bg) 100%);
    border-bottom: 1px solid var(--site-shell-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

.site-shell::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(247, 147, 26, 0.32) 50%, transparent 100%);
    pointer-events: none;
}

.site-shell--article {
    background:
        linear-gradient(180deg, rgba(12, 12, 15, 0.98) 0%, var(--site-shell-bg-strong) 100%);
}

.site-shell__inner {
    max-width: var(--site-shell-max-width);
    margin: 0 auto;
    height: var(--site-shell-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-shell__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.site-shell__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--site-shell-orange) 0%, #ffae53 100%);
    color: #18110a;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.05em;
    box-shadow:
        0 10px 22px rgba(247, 147, 26, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.site-shell__wordmark {
    display: inline-flex;
    align-items: baseline;
    color: var(--site-shell-text);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.site-shell__wordmark-accent {
    color: var(--site-shell-orange);
}

.site-shell__wordmark-domain {
    color: rgba(255, 255, 255, 0.92);
}

.site-shell__nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.site-shell__nav-link,
.site-shell__cta,
.site-shell__mobile-link,
.site-shell__mobile-cta {
    text-decoration: none;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.site-shell__nav-link {
    color: var(--site-shell-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 12px;
    border-radius: 999px;
}

.site-shell__nav-link:hover,
.site-shell__nav-link.is-active {
    color: var(--site-shell-text);
}

.site-shell__nav-link.is-active {
    background: rgba(255, 255, 255, 0.05);
}

.site-shell__cta {
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 190, 116, 0.18);
    background: linear-gradient(135deg, var(--site-shell-orange) 0%, #ffab4d 100%);
    color: #1b1308;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 12px 26px rgba(247, 147, 26, 0.18);
}

.site-shell__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(247, 147, 26, 0.22);
}

.site-shell__cta.is-active {
    box-shadow:
        0 0 0 3px rgba(247, 147, 26, 0.16),
        0 16px 30px rgba(247, 147, 26, 0.24);
}

.site-shell__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--site-shell-text);
    cursor: pointer;
    flex-shrink: 0;
}

.site-shell__toggle-line {
    width: 16px;
    height: 1.75px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.site-shell__toggle[aria-expanded="true"] .site-shell__toggle-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.site-shell__toggle[aria-expanded="true"] .site-shell__toggle-line:nth-child(2) {
    opacity: 0;
}

.site-shell__toggle[aria-expanded="true"] .site-shell__toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-shell__backdrop {
    position: fixed;
    inset: var(--site-shell-height) 0 0;
    background: rgba(5, 5, 6, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1090;
}

.site-shell__mobile-panel {
    position: fixed;
    top: calc(var(--site-shell-height) + 12px);
    right: 16px;
    left: 16px;
    z-index: 1095;
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top left, rgba(247, 147, 26, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(18, 18, 22, 0.98) 0%, rgba(11, 11, 14, 0.96) 100%);
    box-shadow: var(--site-shell-shadow);
}

.site-shell__backdrop[hidden],
.site-shell__mobile-panel[hidden] {
    display: none !important;
}

.site-shell__mobile-link,
.site-shell__mobile-cta {
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
}

.site-shell__mobile-link {
    color: var(--site-shell-text);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.site-shell__mobile-link.is-active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.site-shell__mobile-cta {
    color: #1b1308;
    background: linear-gradient(135deg, var(--site-shell-orange) 0%, #ffab4d 100%);
    text-align: center;
    box-shadow: 0 12px 26px rgba(247, 147, 26, 0.16);
}

body.site-shell-open {
    overflow: hidden;
}

@media (min-width: 961px) {
    .site-shell__backdrop,
    .site-shell__mobile-panel {
        display: none !important;
    }
}

@media (max-width: 960px) {
    .site-shell__nav {
        display: none;
    }

    .site-shell__toggle {
        display: inline-flex;
    }

    .site-shell__inner {
        padding: 0 18px;
    }

    .site-shell__wordmark {
        font-size: 18px;
    }
}

@media (max-width: 560px) {
    .site-shell__inner {
        gap: 16px;
    }

    .site-shell__mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 17px;
    }

    .site-shell__wordmark {
        font-size: 17px;
    }

    .site-shell__mobile-panel {
        top: calc(var(--site-shell-height) + 10px);
        right: 12px;
        left: 12px;
        padding: 14px;
        border-radius: 20px;
    }
}
