:root {
    color-scheme: dark;
    --bg: #0f0d18;
    --surface: rgba(35, 30, 53, 0.82);
    --surface-strong: #241f35;
    --line: rgba(255, 255, 255, 0.11);
    --text: #faf8ff;
    --muted: #c8c1d8;
    --violet: #8f72ff;
    --violet-bright: #b39cff;
    --coral: #ff947f;
    --mint: #79dfc1;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 12% 5%, rgba(143, 114, 255, 0.22), transparent 32rem),
        radial-gradient(circle at 92% 20%, rgba(255, 148, 127, 0.13), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--violet-bright);
    text-underline-offset: 0.2em;
}

a:hover {
    color: #d1c4ff;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 20;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    background: white;
    color: #17131f;
    transform: translateY(-160%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 13, 24, 0.82);
    backdrop-filter: blur(18px);
}

.nav {
    width: min(1120px, calc(100% - 2rem));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: linear-gradient(145deg, #9d83ff, #6242ed);
    box-shadow: 0 8px 24px rgba(111, 75, 239, 0.35);
    font-size: 0.77rem;
    font-weight: 850;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
}

.language-switcher {
    display: inline-flex;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.language-switcher button {
    min-width: 42px;
    padding: 0.42rem 0.7rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
}

.language-switcher button[aria-pressed="true"] {
    background: var(--text);
    color: #1a1524;
}

.page-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4.5rem 0 5rem;
}

.hero {
    max-width: 800px;
    margin-bottom: 3.5rem;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--violet-bright);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 13ch;
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy {
    max-width: 680px;
    margin: 1.45rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}

.updated {
    display: inline-flex;
    margin-top: 1.4rem;
    padding: 0.48rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(190px, 0.3fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.toc {
    position: sticky;
    top: 104px;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.toc strong {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.toc a {
    display: block;
    padding: 0.35rem 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.toc a:hover {
    color: var(--text);
}

.article {
    min-width: 0;
}

.section-card {
    margin: 0 0 1rem;
    padding: clamp(1.35rem, 4vw, 2.3rem);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, var(--surface), rgba(26, 22, 40, 0.72));
    box-shadow: var(--shadow);
}

.section-card h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.section-card h3 {
    margin: 1.4rem 0 0.45rem;
    font-size: 1.05rem;
}

.section-card p {
    margin: 0.65rem 0;
    color: var(--muted);
}

.section-card ul,
.section-card ol {
    margin: 0.7rem 0 0;
    padding-left: 1.25rem;
    color: var(--muted);
}

.section-card li + li {
    margin-top: 0.55rem;
}

.section-card strong {
    color: var(--text);
}

.notice {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--coral);
    border-radius: 0 14px 14px 0;
    background: rgba(255, 148, 127, 0.09);
    color: #f3dcd7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.feature {
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
    border-radius: 11px;
    background: rgba(143, 114, 255, 0.18);
    color: var(--violet-bright);
    font-weight: 800;
}

.feature h3 {
    margin: 0;
}

.feature p {
    margin-bottom: 0;
    font-size: 0.93rem;
}

.contact-card {
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid rgba(121, 223, 193, 0.27);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 0, rgba(121, 223, 193, 0.17), transparent 15rem),
        var(--surface-strong);
}

.contact-card h2 {
    margin-top: 0;
}

.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.8rem;
    padding: 0.82rem 1.1rem;
    border-radius: 13px;
    background: var(--text);
    color: #17131f;
    font-weight: 780;
    text-decoration: none;
}

.primary-link:hover {
    color: #17131f;
    transform: translateY(-1px);
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-inner {
    width: min(1120px, calc(100% - 2rem));
    min-height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .nav-link {
        display: none;
    }

    .page-shell {
        padding-top: 3rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .toc {
        position: static;
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding: 1.5rem 0;
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

@media print {
    :root {
        color-scheme: light;
    }

    body {
        background: white;
        color: black;
    }

    .site-header,
    .toc,
    .site-footer {
        display: none;
    }

    .page-shell {
        width: 100%;
        padding: 0;
    }

    .section-card {
        break-inside: avoid;
        border-color: #ddd;
        background: white;
        box-shadow: none;
    }

    .section-card p,
    .section-card li {
        color: #222;
    }
}
