:root {
    color-scheme: light;
    --ink: #111827;
    --muted: #4b5563;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f6f7f9;
    --brand: #5b21b6;
    --brand-ink: #ffffff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--bg-soft);
    color: var(--ink);
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; }

a { color: inherit; }

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Top navigation ---------- */
.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px clamp(20px, 5vw, 56px);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    margin-right: auto;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand);
    color: var(--brand-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--brand); }

.nav-link.cta {
    background: var(--brand);
    color: var(--brand-ink);
    padding: 8px 16px;
    border-radius: 8px;
    border-bottom: none;
}

/* CSS-only mobile toggle */
.nav-toggle { display: none; }
.nav-toggle-button { display: none; }

/* ---------- Hero ---------- */
.content { flex: 1; }

.hero {
    padding: clamp(40px, 8vw, 96px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 48px);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero.compact { padding-bottom: clamp(20px, 3vw, 32px); }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand);
    margin: 0 0 12px;
}

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

.lede {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 60ch;
    margin: 0 0 28px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
}
.button.primary { background: var(--brand); color: var(--brand-ink); }
.button.secondary { background: var(--bg); color: var(--ink); border-color: var(--line); }
.button.ghost { background: transparent; color: var(--brand); border-color: transparent; }

/* ---------- Route grid ---------- */
.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: clamp(16px, 3vw, 32px) clamp(20px, 5vw, 56px) clamp(48px, 8vw, 96px);
}

.route-card {
    display: block;
    text-decoration: none;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    transition: border-color .15s ease, transform .15s ease;
}
.route-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.route-card span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand);
    font-weight: 700;
}
.route-card strong { display: block; margin: 6px 0; font-size: 1.05rem; }
.route-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px clamp(20px, 5vw, 56px);
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--muted);
    font-size: 0.9rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Responsive: mobile navigation ---------- */
@media (max-width: 760px) {
    .nav-toggle-button {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        cursor: pointer;
        background: var(--bg);
    }
    .nav-toggle-button span {
        display: block;
        height: 2px;
        width: 100%;
        background: var(--ink);
        border-radius: 2px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px clamp(20px, 5vw, 56px) 20px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }

    /* When the checkbox is toggled, reveal the stacked nav. */
    .nav-toggle:checked ~ .nav-links { display: flex; }

    .nav-link { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .nav-link.cta { text-align: center; margin-top: 8px; border: none; }
}
