:root {
    --bg: #050505;
    --surface: #0c0c0c;
    --surface-2: #141414;
    --text: #f3f3f0;
    --muted: #8b8b88;
    --dim: #555552;
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--text);
    background: var(--bg);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    letter-spacing: -0.018em;
}

::selection {
    color: #050505;
    background: #f3f3f0;
}

a {
    color: inherit;
}

a:focus-visible,
summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.install-container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.install-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 0 max(28px, calc((100vw - 1240px) / 2));
    background: rgba(5, 5, 5, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.05em;
}

.brand-mark {
    display: block;
    object-fit: contain;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    color: #c7c7c4;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line-strong);
}

.install-hero {
    position: relative;
    min-height: auto;
    padding: 118px 0 72px;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.install-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 50%;
    width: 980px;
    height: 700px;
    pointer-events: none;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.09), transparent 65%);
    transform: translateX(-50%);
}

.hero-grid {
    position: absolute;
    inset: 76px 0 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.install-hero .install-container {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-label {
    color: #666663;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.eyebrow span {
    width: 6px;
    height: 6px;
    background: #e8e8e5;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.72);
}

.install-hero h1 {
    max-width: 1000px;
    margin: 0 auto 18px;
    font-size: clamp(48px, 6.4vw, 84px);
    font-weight: 500;
    line-height: 0.97;
    letter-spacing: -0.075em;
}

.install-hero h1 span {
    color: #858582;
}

.hero-copy {
    max-width: 560px;
    margin: 0 auto 22px;
    color: #969693;
    font-size: 16px;
    line-height: 1.55;
}

.quick-guide {
    max-width: 760px;
    margin: 0 auto 34px;
    list-style: none;
    text-align: left;
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.quick-guide li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    min-height: 92px;
    padding: 19px 22px;
    border-bottom: 1px solid var(--line);
}

.quick-guide li:last-child {
    border-bottom: 0;
}

.quick-guide li > span {
    padding-top: 3px;
    color: #555552;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
}

.guide-title {
    display: block;
    margin-bottom: 4px;
    color: #e0e0dd;
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.quick-guide p {
    color: #92928f;
    font-size: 13px;
    line-height: 1.55;
}

.quick-guide b {
    color: #d4d4d1;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
}

.command-kicker {
    max-width: 560px;
    margin: 0 auto 10px;
    color: #555552;
    font-family: "IBM Plex Mono", monospace;
    font-size: 8px;
    text-align: left;
    letter-spacing: 0.1em;
}

.command-panel {
    max-width: 560px;
    margin: 0 auto 28px;
    overflow: hidden;
    text-align: left;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.command-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding: 10px 11px 10px 20px;
}

.command-row code {
    color: #eeeeeb;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(17px, 2.4vw, 21px);
    letter-spacing: -0.03em;
}

.command-row code span {
    margin-right: 12px;
    color: #5f5f5c;
}

.copy-command {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 15px;
    color: #080808;
    background: #f0f0ed;
    border: 1px solid #f0f0ed;
    border-radius: 10px;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.copy-command:hover {
    color: #fff;
    background: transparent;
}

.copy-icon {
    flex: 0 0 auto;
}

.copy-command.copied {
    color: #080808;
    background: #d8d8d5;
}

.build-meta {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 18px;
    color: #4f4f4c;
    font-family: "IBM Plex Mono", monospace;
    font-size: 8px;
    letter-spacing: 0.07em;
}

.build-meta span + span::before {
    content: "·";
    margin-right: 22px;
}

.steps-section,
.permissions-section,
.included-section,
.faq-section {
    padding: 138px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-label {
    margin-bottom: 20px;
}

.steps-section h2,
.permissions-section h2,
.included-section h2,
.faq-section h2 {
    max-width: 820px;
    margin-bottom: 68px;
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.install-step {
    min-width: 0;
    padding: 34px;
    border-right: 1px solid var(--line);
}

.install-step:last-child {
    border-right: 0;
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 78px;
    color: #5f5f5c;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
}

.step-symbol {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #cececb;
    background: #121212;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
}

.install-step h3 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.install-step > p {
    min-height: 68px;
    color: #7f7f7c;
    font-size: 12px;
}

.install-step code,
.install-step strong {
    color: #b9b9b6;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.92em;
    font-weight: 500;
}

.mini-window,
.step-command,
.shortcut-visual {
    min-height: 82px;
    margin-top: 34px;
    background: #0b0b0b;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.mini-window {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding: 14px;
}

.mini-window > span {
    width: 6px;
    height: 6px;
    background: #343434;
    border-radius: 50%;
}

.mini-window div {
    position: absolute;
    inset: 38px 10px 10px;
    color: #777774;
    font-family: "IBM Plex Mono", monospace;
    font-size: 8px;
    text-align: center;
}

.step-command {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 20px;
    color: #d6d6d3;
    font-family: "IBM Plex Mono", monospace;
}

.step-command span:first-child {
    color: #5d5d5a;
}

.step-command code {
    flex: 1;
    color: #d6d6d3;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
}

.step-command span:last-child {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #888885;
    background: #151515;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.shortcut-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

kbd {
    min-width: 36px;
    padding: 8px 10px;
    color: #c5c5c2;
    background: #161616;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: 0 3px 0 #050505;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    text-align: center;
}

.shortcut-visual > span {
    color: #494946;
    font-size: 10px;
}

.permissions-section {
    background: #080808;
}

.permissions-grid,
.faq-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
    gap: 90px;
}

.permissions-section h2,
.faq-section h2 {
    margin-bottom: 0;
}

.permissions-list {
    border-top: 1px solid var(--line);
}

.permissions-list article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.permission-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #b9b9b6;
    background: #121212;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
}

.permissions-list h3 {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 500;
}

.permissions-list p {
    color: #747471;
    font-size: 11px;
    line-height: 1.7;
}

.permissions-list article > span {
    padding-top: 3px;
    color: #555552;
    font-family: "IBM Plex Mono", monospace;
    font-size: 8px;
    white-space: nowrap;
}

.included-card {
    padding: 70px;
    color: #080808;
    background: #efefec;
    border-radius: 26px;
}

.included-card .section-label {
    color: #696966;
}

.included-card h2 {
    margin-bottom: 56px;
}

.included-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(0, 0, 0, 0.17);
}

.included-items > div {
    display: flex;
    flex-direction: column;
    min-height: 160px;
    padding: 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.17);
}

.included-items > div:first-child {
    padding-left: 0;
}

.included-items > div:last-child {
    border-right: 0;
}

.included-items span {
    margin-bottom: 48px;
    color: #777774;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
}

.included-items strong {
    margin-bottom: 7px;
    font-size: 18px;
    font-weight: 600;
}

.included-items small {
    color: #5e5e5b;
    font-size: 10px;
    line-height: 1.6;
}

.faq-section {
    border-bottom: 0;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 24px 44px 24px 0;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 500;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    top: 21px;
    right: 5px;
    color: #777774;
    font-family: "IBM Plex Mono", monospace;
    font-size: 18px;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    max-width: 600px;
    padding: 0 45px 24px 0;
    color: #777774;
    font-size: 12px;
    line-height: 1.75;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1240px, calc(100% - 48px));
    min-height: 120px;
    margin: 0 auto;
}

html.os-mac .only-win,
html.os-win .only-mac {
    display: none !important;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 8px auto 28px;
    padding: 14px 22px;
    color: #080808;
    background: #f0f0ed;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.download-btn span {
    font-size: 16px;
    line-height: 1;
}

.download-btn:hover {
    color: #fff;
    background: transparent;
    outline: 1px solid rgba(255, 255, 255, 0.35);
}

.eyebrow b {
    font-weight: 400;
}

footer p {
    color: #50504d;
    font-family: "IBM Plex Mono", monospace;
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .install-steps {
        grid-template-columns: 1fr;
    }

    .install-step {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .install-step:last-child {
        border-bottom: 0;
    }

    .step-top {
        margin-bottom: 48px;
    }

    .install-step > p {
        min-height: 0;
    }

    .permissions-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }
}

@media (max-width: 700px) {
    .install-container,
    footer {
        width: min(100% - 36px, 1240px);
    }

    .install-nav {
        min-height: 68px;
        padding: 0 18px;
    }

    .back-link {
        padding: 9px 12px;
        font-size: 10px;
    }

    .install-hero {
        min-height: auto;
        padding: 132px 0 78px;
    }

    .install-hero h1 {
        font-size: clamp(52px, 16vw, 76px);
    }

    .hero-copy {
        font-size: 15px;
    }

    .quick-guide li {
        grid-template-columns: 34px 1fr;
        gap: 10px;
        min-height: 0;
        padding: 16px;
    }

    .guide-title {
        font-size: 15px;
    }

    .quick-guide p {
        font-size: 12px;
    }

    .command-row {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .copy-command {
        width: 100%;
    }

    .build-meta {
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .build-meta span + span::before {
        margin-right: 16px;
    }

    .steps-section,
    .permissions-section,
    .included-section,
    .faq-section {
        padding: 92px 0;
    }

    .steps-section h2,
    .permissions-section h2,
    .included-section h2,
    .faq-section h2 {
        margin-bottom: 46px;
    }

    .install-step {
        padding: 28px 20px;
    }

    .permissions-list article {
        grid-template-columns: auto 1fr;
    }

    .permissions-list article > span {
        grid-column: 2;
    }

    .included-card {
        padding: 48px 22px 22px;
        border-radius: 20px;
    }

    .included-items {
        grid-template-columns: 1fr;
    }

    .included-items > div,
    .included-items > div:first-child {
        min-height: 140px;
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.17);
    }

    .included-items > div:last-child {
        border-bottom: 0;
    }

    .included-items span {
        margin-bottom: 34px;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
