:root {
    --ink: #101815;
    --muted: #5d6a64;
    --line: #dce6e1;
    --surface: #ffffff;
    --background: #f6faf8;
    --accent: #10b981;
    --accent-dark: #087653;
    --font-display: "Outfit", sans-serif;
    --font-body: "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
    width: min(1080px, calc(100% - 40px));
    height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { min-width: 110px; min-height: 44px; display: inline-flex; align-items: center; }
.brand img { display: block; width: 110px; height: auto; }

.language-link {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
}

main, footer { width: min(900px, calc(100% - 40px)); margin-inline: auto; }

.intro { padding: 88px 0 80px; max-width: 780px; }

.status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 600;
}

.status span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

h1, h2 { margin: 0; font-family: var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
h1 { max-width: 700px; font-size: clamp(3rem, 8vw, 5.4rem); line-height: 0.98; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.08; font-weight: 600; }

.lede {
    max-width: 690px;
    margin: 28px 0 36px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    line-height: 1.7;
}

.prompt-block {
    overflow: hidden;
    background: var(--ink);
    color: white;
    border-radius: 14px;
}

.prompt-label {
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.62);
    font-size: .76rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.prompt-block code {
    display: block;
    padding: 22px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.flow, .details, .manual { border-top: 1px solid var(--line); padding: 72px 0; }

.flow ol { list-style: none; padding: 0; margin: 42px 0 0; }

.flow li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.flow li > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ddf8ec;
    color: var(--accent-dark);
    font-weight: 700;
}

.flow strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 1.08rem; }
.flow p, .details p, .manual p { margin: 0; color: var(--muted); line-height: 1.7; }

.details, .manual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); gap: 72px; }
.details p, .manual p { margin-top: 16px; }
.details dl { margin: 0; }
.details dl div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; text-align: right; font-weight: 600; }

.commands { display: grid; gap: 10px; min-width: 0; }

.command {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 13px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #193229;
}

.command code {
    min-width: 0;
    font: .76rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow-wrap: anywhere;
    white-space: normal;
}

.copy-button {
    min-width: 56px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: inherit;
    font: 600 .72rem var(--font-body);
    cursor: pointer;
}

.command .copy-button { background: #e7f5ee; color: var(--accent-dark); }
.copy-button:focus-visible { outline: 3px solid rgba(16,185,129,.36); outline-offset: 2px; }

.manual p code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }

footer {
    min-height: 110px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
}

footer span { margin-right: auto; }
footer a { min-height: 44px; display: inline-flex; align-items: center; }

[dir="rtl"] .status { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .details dd { text-align: left; }
[dir="rtl"] footer span { margin-right: 0; margin-left: auto; }

@media (max-width: 680px) {
    .site-header, main, footer { width: min(100% - 28px, 900px); }
    .intro { padding: 58px 0 62px; }
    h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
    .flow, .details, .manual { padding: 54px 0; }
    .details, .manual { grid-template-columns: 1fr; gap: 32px; }
    .prompt-block code { font-size: .75rem; }
    .manual { gap: 26px; }
    footer { flex-wrap: wrap; gap: 16px; padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
