:root {
    color-scheme: dark;
    --page-bg: #06080c;
    --page-bg-soft: #0a0e15;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-hover: rgba(255, 255, 255, 0.085);
    --surface-strong: rgba(255, 255, 255, 0.11);
    --surface-solid: #10151d;
    --text: #f7f9fb;
    --muted: #8c98aa;
    --muted-strong: #c5ced9;
    --line: rgba(255, 255, 255, 0.105);
    --line-strong: rgba(255, 255, 255, 0.19);
    --accent: #8ef0d2;
    --accent-strong: #b8ffeb;
    --accent-soft: rgba(142, 240, 210, 0.12);
    --cyan: #7aa9ff;
    --violet: #9a91ff;
    --focus: #ffffff;
    --content-width: 1480px;
    --reading-width: 1180px;
    --radius-small: 14px;
    --radius-medium: 22px;
    --radius-large: 34px;
    --shadow-small: 0 16px 44px rgba(0, 0, 0, 0.22);
    --shadow: 0 34px 110px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--page-bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 84% 3%, rgba(122, 169, 255, 0.12), transparent 31rem),
        radial-gradient(circle at 10% 9%, rgba(142, 240, 210, 0.075), transparent 28rem),
        linear-gradient(180deg, #070a0f 0%, var(--page-bg) 42%, #05070a 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body::before,
body::after {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
}

body::before {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0 0.55px, transparent 0.8px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
    opacity: 0.08;
}

body::after {
    z-index: -3;
    background:
        radial-gradient(circle at 50% -10%, rgba(142, 240, 210, 0.055), transparent 38%),
        radial-gradient(circle at 90% 36%, rgba(122, 169, 255, 0.055), transparent 34%);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    text-wrap: pretty;
}

::selection {
    color: #04110d;
    background: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 4px;
}

.site-shell {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--page-bg);
    background: var(--text);
    font-size: 13px;
    font-weight: 750;
    transform: translateY(-170%);
    transition: transform 140ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
.site-main,
.site-footer {
    width: min(100% - 48px, var(--content-width));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    isolation: isolate;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-header::before {
    position: absolute;
    inset: 0 50%;
    z-index: -1;
    width: 100vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 8, 12, 0.72);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(22px) saturate(130%);
    content: "";
    transform: translateX(-50%);
}

.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 730;
    letter-spacing: -0.012em;
    text-decoration: none;
}

.site-brand__mark,
.site-footer__mark {
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 42%),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-weight: 850;
    letter-spacing: 0.08em;
}

.site-brand__mark {
    width: 40px;
    height: 40px;
    font-size: 10px;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.site-brand:hover .site-brand__mark,
.site-brand:focus-visible .site-brand__mark {
    border-color: rgba(142, 240, 210, 0.52);
    background: rgba(142, 240, 210, 0.065);
    box-shadow: 0 0 24px rgba(142, 240, 210, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: rotate(-4deg);
}

.site-brand__name {
    white-space: nowrap;
}

.site-navigation {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.site-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav__link,
.site-locale {
    flex: 0 0 auto;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 680;
    text-decoration: none;
    transition: color 150ms ease, background 150ms ease, transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.site-nav__link {
    position: relative;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 10px 12px;
}

.site-nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
}

.site-nav__link[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.site-nav__link[aria-current="page"]::after {
    position: absolute;
    right: 10px;
    bottom: 5px;
    left: 10px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(142, 240, 210, 0.9), transparent);
    content: "";
}

.site-locale {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.018);
    font-size: 9px;
    font-weight: 820;
    letter-spacing: 0.1em;
}

.site-locale:hover {
    border-color: rgba(142, 240, 210, 0.34);
    color: var(--text);
    background: var(--accent-soft);
    box-shadow: 0 0 22px rgba(142, 240, 210, 0.06);
    transform: translateY(-1px);
}

.site-main {
    min-height: calc(100vh - 164px);
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 10px;
    font-weight: 820;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.button-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 720;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button-link:hover {
    transform: translateY(-2px);
}

.button-link--primary {
    color: #06130f;
    background: var(--accent);
    box-shadow: 0 12px 36px rgba(142, 240, 210, 0.12);
}

.button-link--primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 16px 42px rgba(142, 240, 210, 0.18);
}

.button-link--quiet {
    border: 1px solid var(--line);
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.025);
}

.button-link--quiet:hover {
    border-color: rgba(142, 240, 210, 0.32);
    color: var(--text);
    background: rgba(142, 240, 210, 0.055);
}

.button-link__arrow {
    font-size: 14px;
}

.site-footer {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.site-footer__identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__mark {
    width: 30px;
    height: 30px;
    color: var(--muted-strong);
    font-size: 8px;
}

.site-footer p {
    margin: 0;
}

.site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-strong);
    text-decoration: none;
    transition: color 150ms ease, transform 150ms ease;
}

.site-footer__link:hover {
    color: var(--text);
    transform: translateY(-1px);
}


@media (max-width: 980px) {
    .site-header,
    .site-main,
    .site-footer {
        width: min(100% - 32px, var(--content-width));
    }

    .site-brand__name {
        display: none;
    }

    .site-navigation {
        max-width: calc(100vw - 92px);
    }
}

@media (max-width: 660px) {
    .site-header {
        min-height: 68px;
    }

    .site-navigation {
        gap: 6px;
        max-width: calc(100vw - 78px);
    }

    .site-nav {
        max-width: calc(100vw - 122px);
        mask-image: linear-gradient(90deg, black 0%, black 88%, transparent 100%);
    }

    .site-nav__link {
        min-height: 42px;
        padding: 10px 10px;
        font-size: 11px;
    }

    .site-locale {
        width: 42px;
        height: 42px;
    }

    .site-footer {
        min-height: 112px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
