:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #14171c;
    --muted: #5b6370;
    --border: #dde1e7;
    --accent: #1c69d4;
    --accent-hover: #1557b3;
    --danger-bg: #fdecec;
    --danger-text: #a12020;
    --radius: 12px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e1116;
        --surface: #161b22;
        --text: #e6e9ee;
        --muted: #98a1ae;
        --border: #2a313c;
        --accent: #4b8cf0;
        --accent-hover: #6aa1f5;
        --danger-bg: #3a1618;
        --danger-text: #ffb4b4;
    }
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.wrap {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

main.wrap { flex: 1; padding-top: 48px; padding-bottom: 64px; }

/* Header ------------------------------------------------------------------ */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

/* Typography -------------------------------------------------------------- */
h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; margin: 32px 0 12px; }
.eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
}
.lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 0 0 28px; }

/* Buttons ----------------------------------------------------------------- */
.button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 22px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: var(--accent-hover); }
.button:focus-visible, input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
    outline-offset: 2px;
}

/* Pages ------------------------------------------------------------------- */
.hero { padding: 24px 0 48px; }
.intro { margin-bottom: 32px; }
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

/* Download form ----------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 760px) {
    .split { grid-template-columns: 1fr; }
}
.split > * { min-width: 0; }
.split h2 { margin-top: 0; }
.steps { margin: 0; padding-left: 1.3em; }
.steps li { margin-bottom: 10px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
code {
    font: 0.9em ui-monospace, "Cascadia Mono", Consolas, monospace;
    background: var(--border);
    border-radius: 4px;
    padding: 1px 5px;
}

.tribute {
    margin-top: 48px;
    padding: 20px 24px;
    border-left: 4px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--muted);
}
.tribute p { margin: 0; }
.tribute strong { color: var(--text); }

label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font: 1.05rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
input[type="text"]::placeholder { text-transform: none; letter-spacing: normal; }
.help { color: var(--muted); font-size: 0.9rem; margin: 6px 0 20px; }
.panel .button { width: 100%; }

.alert {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

/* Honeypot: off-screen rather than display:none so naive bots still fill it */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    padding: 24px 0;
}
