/* Dark tokens from frontend/src/index.css @theme — this route is not the SPA. */

:root {
    --color-bg: #131313;
    --color-bg-deep: #0e0e0e;
    --color-surface: #212121;
    --color-surface-hover: #262626;
    --color-text: #e2e2e2;
    --color-text-muted: #919191;
    --color-text-bold: #fff;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-btn-primary: #ffffff;
    --color-danger: #ff453a;
    --color-success: #30d158;
    --color-warning: #ff9f0a;
    --color-in-progress: #409cff;
    --color-focus: #0a84ff;
    --radius-xs: 4px;
    --radius-sm: 8px;
    --duration-press: 80ms;
    --duration-enter: 150ms;
    --page-max: 1180px;
    --pad-x: 28px;
    --nav-h: 72px;
    --hero-peek: 112px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text-bold);
    font-family: "Geist Variable", -apple-system, system-ui, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 2;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: var(--page-max);
    margin: auto;
    padding: 0 var(--pad-x);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.brand {
    font-size: 18px;
    font-weight: 800;
}

.links {
    display: flex;
    gap: 26px;
    margin: auto;
    color: var(--color-text-muted);
    font-size: 14px;
}

.links a:hover,
.login:hover,
footer a:hover {
    color: var(--color-text-bold);
}

.login {
    color: var(--color-text);
    font-size: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.hero {
    max-width: var(--page-max);
    margin: 0 auto;
    min-height: calc(100vh - var(--nav-h) - var(--hero-peek));
    min-height: calc(100svh - var(--nav-h) - var(--hero-peek));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px var(--pad-x);
}

.copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 72px;
    line-height: 0.94;
    margin: 0 0 28px;
    font-weight: 700;
}

.sub {
    font-size: 21px;
    line-height: 1.45;
    color: var(--color-text);
    max-width: 570px;
    margin: 0 auto;
}

.capture {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    align-items: center;
}

.copy .capture {
    max-width: 470px;
    margin-inline: auto;
}

.capture input,
.capture button {
    height: 48px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
}

.capture input {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-bold);
    padding: 0 15px;
    min-width: 250px;
    flex: 1;
}

.capture input:focus,
.capture button:focus-visible,
.login:focus-visible,
.links a:focus-visible,
.brand:focus-visible,
footer a:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.capture button {
    border: 0;
    background: var(--color-btn-primary);
    color: var(--color-bg);
    font-weight: 800;
    padding: 0 18px;
    cursor: pointer;
    transition:
        background var(--duration-enter),
        opacity var(--duration-press);
}

.capture button:hover {
    background: var(--color-text);
}

.capture button:active {
    opacity: 0.7;
}

.waitlist-status {
    flex-basis: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.capture.is-invalid input {
    border-color: var(--color-danger);
}

.capture.is-invalid .waitlist-status {
    color: var(--color-danger);
}

.capture.is-success .waitlist-status {
    color: var(--color-success);
}

.capture.is-duplicate .waitlist-status {
    color: var(--color-warning);
}

.split,
.features,
.closing {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 64px var(--pad-x);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    border-top: 1px solid var(--color-border);
}

.split h2,
.closing h2 {
    font-size: 42px;
    line-height: 1.05;
    margin: 0 0 12px;
}

.split p,
.features p,
.closing p {
    color: var(--color-text-muted);
    line-height: 1.5;
}

.features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.features div {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 18px;
}

.features b {
    font-size: 17px;
}

/* Lucide geometry at 24, drawn at 20 and muted so the card still reads title-first. */
.features .glyph {
    display: block;
    width: 20px;
    height: 20px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
}

.closing {
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.closing .capture {
    justify-content: center;
}

footer {
    max-width: var(--page-max);
    margin: auto;
    padding: 28px var(--pad-x);
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-deep);
}

@media (max-width: 1000px) {
    .hero {
        padding: 56px var(--pad-x);
    }

    .hero h1 {
        font-size: 52px;
    }

    .features {
        grid-template-columns: 1fr 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --nav-h: 60px;
        --hero-peek: 80px;
        --pad-x: 18px;
    }

    .links {
        display: none;
    }

    .hero {
        padding: 40px var(--pad-x);
    }

    .hero h1 {
        font-size: 48px;
    }

    .sub {
        font-size: 18px;
    }

    .capture {
        display: grid;
        margin-top: 28px;
    }

    .capture input,
    .capture button {
        min-width: 0;
        width: 100%;
    }

    .features {
        grid-template-columns: 1fr;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .split,
    .closing {
        padding: 36px var(--pad-x);
    }

    .split h2,
    .closing h2 {
        font-size: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .capture button {
        transition: none;
    }
}
