/* Backend landing page (/).
   Structure follows api.keynexis.app, palette and typography follow the Lotta
   corporate design (lottasystems.ch): white surfaces instead of the dark
   theme, dark green #183A37 as the primary, pill-shaped buttons.

   Typography uses the two brand faces already bundled in this repo — PP
   Fragment Sans for display headings, Neufile Grotesk for everything else.
   Every stack ends in `sans-serif`, never a serif fallback. */

:root {
    --lotta-primary: #183a37;
    --lotta-primary-hover: #0f2624;
    --lotta-ink: #353233;
    --lotta-muted: #6b6668;
    --lotta-surface: #f4f4f2;
    --lotta-border: #e2e2df;
    --lotta-accent-soft: rgba(24, 58, 55, 0.08);
    --lotta-display: "PP_Fragment", "Neufile Grotesk", -apple-system,
        BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --lotta-body: "Neufile Grotesk", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

/* Set on <html> as well so nothing inherits the browser default (Times). */
html:has(> body.landing-body) {
    font-family: var(--lotta-body);
}

body.landing-body {
    margin: 0;
    font-weight: 300;
    background: #ffffff;
    color: var(--lotta-ink);
    font-family: var(--lotta-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.landing-shell {
    width: min(100% - 2.5rem, 1180px);
    margin-inline: auto;
}

/* ---------- Navigation ---------- */

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lotta-border);
}

.landing-nav__inner {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-nav__logo {
    height: 26px;
    width: auto;
}

.landing-nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
}

.landing-nav__links a {
    color: var(--lotta-ink);
    text-decoration: none;
    font-size: 0.9375rem;
}

.landing-nav__links a:hover {
    color: var(--lotta-primary);
}

.landing-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--lotta-border);
    border-radius: 80px;
    font-size: 0.8125rem;
    color: var(--lotta-muted);
    white-space: nowrap;
}

.landing-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2e9e6b;
}

/* ---------- Hero ---------- */

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 4.5rem;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 12%, rgba(24, 58, 55, 0.09), transparent 55%),
        radial-gradient(circle at 8% 88%, rgba(24, 58, 55, 0.06), transparent 50%);
    pointer-events: none;
}

.landing-hero__inner {
    position: relative;
    max-width: 46rem;
}

.landing-eyebrow {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.3rem 0.85rem;
    border-radius: 80px;
    background: var(--lotta-accent-soft);
    color: var(--lotta-primary);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin: 0 0 1.25rem;
    font-family: var(--lotta-display);
    font-size: clamp(2.4rem, 5.5vw, 3.85rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--lotta-primary);
}

.landing-lead {
    margin: 0 0 2.25rem;
    max-width: 40rem;
    font-size: 1.125rem;
    color: var(--lotta-muted);
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.75rem;
    border-radius: 80px;
    font-family: var(--lotta-body);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.landing-btn--primary {
    background: var(--lotta-primary);
    border: 1px solid var(--lotta-primary);
    color: #ffffff;
}

.landing-btn--primary:hover {
    background: var(--lotta-primary-hover);
    border-color: var(--lotta-primary-hover);
}

.landing-btn--ghost {
    background: transparent;
    border: 1px solid var(--lotta-primary);
    color: var(--lotta-primary);
}

.landing-btn--ghost:hover {
    background: var(--lotta-accent-soft);
}

.landing-btn:focus-visible,
.landing-nav__links a:focus-visible {
    outline: 3px solid rgba(24, 58, 55, 0.4);
    outline-offset: 3px;
}

/* ---------- Sections ---------- */

.landing-section {
    padding: 4.5rem 0;
}

.landing-section--surface {
    background: var(--lotta-surface);
    border-block: 1px solid var(--lotta-border);
}

.landing-section__head {
    max-width: 42rem;
    margin-bottom: 2.75rem;
}

.landing-section__head h2 {
    margin: 0 0 0.65rem;
    font-family: var(--lotta-display);
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--lotta-primary);
}

.landing-section__head p {
    margin: 0;
    color: var(--lotta-muted);
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    gap: 1.25rem;
}

.landing-card {
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid var(--lotta-border);
    border-radius: 16px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.landing-card:hover {
    border-color: rgba(24, 58, 55, 0.35);
    transform: translateY(-2px);
}

.landing-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.1rem;
    border-radius: 12px;
    background: var(--lotta-accent-soft);
    color: var(--lotta-primary);
}

.landing-card__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--lotta-ink);
}

.landing-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--lotta-muted);
}

/* ---------- Footer ---------- */

.landing-footer {
    padding: 2.25rem 0;
    border-top: 1px solid var(--lotta-border);
}

.landing-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--lotta-muted);
}

.landing-footer a {
    color: var(--lotta-muted);
    text-decoration: none;
}

.landing-footer a:hover {
    color: var(--lotta-primary);
}

@media (max-width: 640px) {
    .landing-nav__links {
        gap: 1rem;
    }

    .landing-nav__links a:not(.landing-status) {
        display: none;
    }

    .landing-hero {
        padding: 3.5rem 0 3rem;
    }

    .landing-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-card,
    .landing-btn {
        transition: none;
    }

    .landing-card:hover {
        transform: none;
    }
}
