:root {
    color-scheme: dark;
    --bg: #111317;
    --panel: #181b21;
    --border: #2a2f38;
    --text: #f2f4f7;
    --text-soft: #c3c9d3;
    --muted: #8b939f;
    --accent: #1678c2;
    --accent-text: #ffffff;
    --brand: #56c7e4;
    --button: #e9edf2;
    --button-text: #111317;
    --green: #2ea043;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.hero {
    width: min(760px, 100%);
    margin: auto;
    padding: 72px 20px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand {
    margin-bottom: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

h1 {
    margin: 0;
    font-size: clamp(30px, 7vw, 64px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.highlight {
    display: inline-block;
    padding: 0.04em 0.16em 0.18em;
    border-radius: 4px;
    color: var(--accent-text);
    background: var(--accent);
    line-height: 1.2;
}

.lead {
    max-width: 620px;
    margin: 32px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.actions {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.button {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.button:hover {
    border-color: var(--border);
    background: var(--panel);
}

.button.primary {
    color: var(--button-text);
    background: var(--button);
}

.button.primary:hover {
    border-color: transparent;
    opacity: 0.9;
}

.button:focus-visible,
.copy:focus-visible,
.footer a:focus-visible,
.brand:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.external {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.command {
    max-width: 100%;
    margin-top: 28px;
    padding: 9px 10px 9px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--panel);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
}

.prompt {
    color: var(--brand);
}

.command code {
    overflow-x: auto;
    color: var(--text);
    white-space: nowrap;
}

.keep {
    white-space: nowrap;
}

.copy {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 5px;
    color: var(--muted);
    background: none;
    cursor: pointer;
}

.copy:hover {
    color: var(--text);
    background: var(--border);
}

.copy svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.copy .done-icon {
    display: none;
    stroke: var(--green);
    stroke-width: 2;
}

.copy.done .copy-icon {
    display: none;
}

.copy.done .done-icon {
    display: block;
}

.hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.hint a {
    color: var(--text-soft);
}

.badges {
    margin: 56px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
}

.badges li {
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-soft);
    background: var(--panel);
    font-size: 13px;
    font-weight: 500;
}

.footer {
    padding: 24px 20px 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    color: var(--muted);
    font-size: 12px;
}

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

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

@media (max-width: 520px) {
    .hero {
        padding-top: 48px;
    }

    .brand {
        margin-bottom: 28px;
    }

    .lead {
        margin-top: 24px;
        font-size: 14px;
    }

    .command {
        font-size: 12px;
        text-align: left;
    }

    .command code {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button {
        transition: none;
    }
}
