:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #16181d;
    --muted: #555b66;
    --border: #e1e4ea;
    --accent: #2e8555;
    --accent-text: #ffffff;
    --code-bg: #16181d;
    --code-text: #e8eaed;
    --radius: 12px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111317;
        --surface: #1b1e24;
        --text: #eceef2;
        --muted: #a3a9b4;
        --border: #2c3038;
        --accent: #25c2a0;
        --accent-text: #0b0d10;
        --code-bg: #0b0d10;
        color-scheme: dark;
    }
}

* {
    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;
}

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

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

/* The logo is black on transparent, so the header stays light in both schemes. */
header {
    background: #ffffff;
    border-bottom: 1px solid #e1e4ea;
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

header img {
    height: 48px;
    width: auto;
    display: block;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

header nav a {
    color: #16181d;
    text-decoration: none;
    font-weight: 600;
}

header nav a:hover {
    color: #2e8555;
}

.hero {
    padding-top: 72px;
    padding-bottom: 48px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    margin: 0 0 16px;
    max-width: 18ch;
}

.hero p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 60ch;
    margin: 0 0 28px;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--accent);
}

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

.button.secondary {
    color: var(--accent);
}

section {
    padding: 32px 0;
}

section > .wrap > h2 {
    font-size: 1.6rem;
    margin: 0 0 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.card p {
    color: var(--muted);
    margin: 0 0 16px;
}

.card ul {
    margin: auto 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.card li a {
    font-weight: 600;
    text-decoration: none;
}

.card li a:hover {
    text-decoration: underline;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.features li {
    border-left: 3px solid var(--accent);
    padding-left: 14px;
    color: var(--muted);
}

.features strong {
    display: block;
    color: var(--text);
}

pre {
    background: var(--code-bg);
    color: var(--code-text);
    border-radius: var(--radius);
    padding: 16px 20px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.note {
    color: var(--muted);
    margin: 0 0 16px;
}

.contact {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.contact h2 {
    margin: 0 0 8px;
}

.contact p {
    margin: 0;
    color: var(--muted);
}

footer {
    padding: 32px 0 48px;
    color: var(--muted);
    font-size: 0.9rem;
}

.not-found {
    padding-top: 96px;
    padding-bottom: 96px;
    text-align: center;
}

.not-found h1 {
    font-size: 2.5rem;
    margin: 0 0 12px;
}

.not-found p {
    color: var(--muted);
    margin: 0 0 28px;
}

.not-found .buttons {
    justify-content: center;
}

@media (max-width: 560px) {
    header .wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 48px;
        padding-bottom: 32px;
    }
}
