:root {
    color-scheme: dark;
    --bg: #101210;
    --surface: #181c19;
    --surface-strong: #202620;
    --line: #303830;
    --text: #f5f7f4;
    --muted: #a7b0a7;
    --green: #5bd478;
    --green-deep: #286a3d;
    --amber: #f3ad3d;
    --danger: #ff6b5e;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
}

a {
    color: var(--green);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: #86e99d;
}

.site-header,
.site-footer,
.hero,
.page-shell {
    width: min(calc(100% - 32px), var(--max));
    margin-inline: auto;
}

.site-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
}

.lang-switch {
    display: inline-flex;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.lang-switch strong {
    color: var(--text);
}

.hero {
    min-height: min(720px, calc(100vh - 72px));
    padding: 96px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    align-items: center;
    gap: 72px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.15;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(42px, 8vw, 76px);
    font-weight: 850;
}

h2 {
    margin: 48px 0 14px;
    font-size: 25px;
}

h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.hero-copy {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
}

.button.primary {
    border-color: var(--green);
    background: var(--green);
    color: #071109;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-visual img {
    width: min(100%, 360px);
    border-radius: 22%;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.feature-band {
    border-block: 1px solid var(--line);
    background: var(--surface);
}

.feature-grid {
    width: min(calc(100% - 32px), var(--max));
    margin-inline: auto;
    padding: 56px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.feature-number {
    color: var(--amber);
    font-size: 13px;
    font-weight: 800;
}

.feature-grid p {
    margin: 0;
    color: var(--muted);
}

.page-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 720px);
    gap: 72px;
    padding: 64px 0 96px;
}

.page-intro {
    grid-column: 1 / -1;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.page-intro h1 {
    margin-bottom: 12px;
    font-size: clamp(38px, 7vw, 62px);
}

.page-intro p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.side-nav {
    position: sticky;
    top: 28px;
    align-self: start;
    display: grid;
    gap: 8px;
}

.side-nav a {
    padding: 8px 0;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

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

.prose {
    min-width: 0;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p,
.prose li {
    color: #d7dcd7;
}

.prose ul,
.prose ol {
    padding-left: 22px;
}

.meta {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.notice,
.support-card {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
}

.notice strong {
    color: var(--amber);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.support-card {
    margin: 0;
}

.support-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.site-footer {
    padding: 34px 0 44px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

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

    .site-nav > a:not(.keep-mobile) {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 64px 0 48px;
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .hero-visual img {
        width: 180px;
    }

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

    .page-shell {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 48px;
    }

    .side-nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 16px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--line);
    }

    .site-footer {
        flex-direction: column;
    }
}
