:root {
    color-scheme: light dark;
    --background: #fbfaff;
    --surface: #ffffff;
    --text: #1b1830;
    --muted: #575270;
    --border: #e0dcef;
    --accent: #5b33c7;
    --button-text: #ffffff;
    --code-background: #efebfa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); margin: 0.6rem 0 1.5rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
figure { margin: 0; }
figcaption, .small, .requirements-note { color: var(--muted); font-size: 0.9rem; }
figcaption { margin-top: 1rem; text-align: center; }

.site-header, main, .site-footer {
    width: min(1080px, calc(100% - 3rem));
    margin-inline: auto;
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; }
.brand, nav a { color: var(--text); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
nav a { font-size: 0.95rem; }
.brand:hover, nav a:hover { text-decoration: underline; }
.skip-link {
    position: absolute;
    left: 1rem;
    top: -10rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    z-index: 1;
}
.skip-link:focus { top: 1rem; }
section { padding-block: 4rem; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 4rem; }
.eyebrow { color: var(--accent); font-weight: 600; }
.lead { color: var(--muted); font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 2rem 1rem; }
.button {
    display: inline-block;
    border: 1px solid var(--accent);
    border-radius: 0.65rem;
    padding: 0.75rem 1.1rem;
    background: var(--accent);
    color: var(--button-text);
    font-weight: 600;
    text-decoration: none;
}
.button:hover { filter: brightness(1.1); text-decoration: underline; }
.button.secondary { color: var(--accent); background: transparent; }
.hero-preview img { display: block; margin-inline: auto; border-radius: 0.9rem; }
.section-intro { color: var(--muted); max-width: 42rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-block: 2rem; }
.feature-grid article { border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; background: var(--surface); }
.feature-grid h3 { margin: 0 0 0.75rem; }
.feature-grid p { color: var(--muted); margin: 0; }
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-block: 2rem; }
.showcase figure { margin: 0; text-align: center; display: flex; flex-direction: column; }
.showcase picture { flex: 1; display: flex; align-items: center; }
.showcase img { width: 100%; height: auto; }
.showcase figcaption { color: var(--muted); margin-top: 0.25rem; }
.showcase img, .wide-preview img { border-radius: 0.75rem; }
.wide-preview { margin-top: 3rem; text-align: center; }
.wide-preview img { width: min(100%, 720px); }
.install-section { border-block: 1px solid var(--border); }
.install-section > p, .faq { max-width: 48rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
:not(pre) > code { padding: 0.1em 0.35em; border-radius: 0.35rem; background: var(--code-background); overflow-wrap: anywhere; }
pre {
    max-width: 48rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: var(--surface);
    overflow-x: auto;
    font-size: 0.95rem;
    line-height: 1.5;
}
pre code { font-size: inherit; }
.install-section .small { margin-top: 1rem; }
.faq h3 { margin-top: 2rem; }
.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; color: var(--muted); font-size: 0.9rem; }
.site-footer p:last-child { margin-bottom: 0; }

@media (prefers-color-scheme: dark) {
    :root {
        --background: #13111c;
        --surface: #1c1928;
        --text: #efedf7;
        --muted: #bab4d2;
        --border: #3a3550;
        --accent: #b9a3ff;
        --button-text: #1d1240;
        --code-background: #2a2540;
    }
}

@media (max-width: 760px) {
    .site-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-preview { max-width: 444px; margin-inline: auto; }
    section { padding-block: 2.5rem; }
    .feature-grid, .showcase { grid-template-columns: 1fr; }
}
