:root {
    color-scheme: dark;
    --background: #07130f;
    --surface: #0e211a;
    --surface-light: #153126;
    --text: #eef8f1;
    --muted: #a9c1b2;
    --green: #66d37e;
    --green-dark: #183f27;
    --blue: #62b7e8;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--green);
}

.hero {
    min-height: 660px;
    background:
        linear-gradient(180deg, rgba(4, 12, 9, 0.15), var(--background)),
        radial-gradient(circle at 76% 18%, rgba(98, 183, 232, 0.30), transparent 27%),
        radial-gradient(circle at 18% 62%, rgba(102, 211, 126, 0.22), transparent 34%),
        linear-gradient(135deg, #102e22, #0b1723 62%, #102d38);
    border-bottom: 1px solid var(--line);
}

.nav {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 26px 0;
    display: flex;
    align-items: center;
    gap: 28px;
}

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

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

.nav .brand {
    margin-right: auto;
    color: var(--text);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.hero-content {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 110px 0 150px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1 {
    max-width: 850px;
    margin-bottom: 24px;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

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

h4 {
    margin: 30px 0 10px;
    font-size: 1rem;
}

.lead {
    max-width: 680px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 1.22rem;
}

.button {
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid rgba(102, 211, 126, 0.55);
    border-radius: 9px;
    background: var(--green-dark);
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    transition: transform 120ms ease, background 120ms ease;
}

.button:hover {
    background: #205332;
    transform: translateY(-1px);
}

.button.primary {
    padding: 14px 22px;
    background: var(--green);
    color: #06120a;
}

.button.primary:hover {
    background: #82e496;
}

.section {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 100px 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 40px;
}

.section-heading > p:last-child,
.section > p {
    color: var(--muted);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--surface-light), var(--surface));
    box-shadow: var(--shadow);
}

.card > p {
    color: var(--muted);
}

.platform-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 25px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--green);
    color: #07130f;
    font-size: 1.4rem;
    font-weight: 900;
}

.platform-icon.windows {
    background: var(--blue);
    color: #07121a;
}

pre {
    overflow-x: auto;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.28);
    color: #d7f5df;
}

code,
kbd {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

p code,
li code {
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.card ol {
    padding-left: 22px;
}

.note {
    margin: 18px 0 0;
    font-size: 0.9rem;
}

.connect-section {
    border-top: 1px solid var(--line);
}

.connection-card {
    max-width: 720px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.connection-card > div {
    padding: 25px 28px;
}

.connection-card > div + div {
    border-left: 1px solid var(--line);
}

.connection-card .label {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.connection-card strong {
    font-size: 1.25rem;
}

.steps {
    max-width: 720px;
    padding-left: 24px;
}

.steps li {
    margin-bottom: 9px;
}

.page-header {
    background:
        radial-gradient(circle at 80% 15%, rgba(98, 183, 232, 0.24), transparent 28%),
        linear-gradient(145deg, #102e22, #0b1723 68%, #102d38);
    border-bottom: 1px solid var(--line);
}

.page-heading {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 75px 0 95px;
}

.page-heading h1 {
    margin-bottom: 20px;
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.controls-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.control-section {
    padding: 80px 0;
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(420px, 1.5fr);
    gap: 65px;
    border-bottom: 1px solid var(--line);
}

.control-title {
    align-self: start;
    position: sticky;
    top: 30px;
}

.control-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.control-title > p:last-child,
.control-note,
.command-examples p {
    color: var(--muted);
}

.control-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.control-row {
    min-height: 70px;
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 145px 1fr;
    align-items: center;
    gap: 18px;
}

.control-row + .control-row {
    border-top: 1px solid var(--line);
}

.control-row span {
    color: var(--muted);
}

kbd {
    width: fit-content;
    min-width: 70px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    text-align: center;
    white-space: nowrap;
}

.control-note,
.command-examples {
    grid-column: 2;
}

.control-note {
    margin: -35px 0 0;
}

.command-examples {
    margin-top: -35px;
}

.command-examples h3 {
    font-size: 1.15rem;
}

.command-examples pre {
    max-width: 480px;
}

.dynamics-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dynamics-list article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.dynamics-list h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.dynamics-list p {
    margin-bottom: 0;
    color: var(--muted);
}

.guide-footer {
    padding: 95px 0 110px;
    text-align: center;
}

.guide-footer p {
    margin-bottom: 28px;
    color: var(--muted);
}

footer {
    padding: 35px max(20px, calc((100% - 1120px) / 2));
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

footer p {
    margin: 0;
}

@media (max-width: 760px) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 75px 0 105px;
    }

    .nav {
        gap: 16px;
    }

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

    .control-section {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 62px 0;
    }

    .control-title {
        position: static;
    }

    .control-note,
    .command-examples {
        grid-column: 1;
        margin-top: -8px;
    }

    .dynamics-list {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }

    .card {
        padding: 25px;
    }

    footer {
        gap: 12px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav a:not(.brand) {
        display: none;
    }

    .connection-card {
        grid-template-columns: 1fr;
    }

    .control-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .connection-card > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}
