:root {
    --ink: #142031;
    --muted: #4f6074;
    --line: rgba(20, 32, 49, 0.18);
    --accent: #1673d1;
    color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: #e3e8ee;
    color: var(--ink);
    font-family: ui-sans-serif, "Segoe UI", sans-serif;
}

.stage {
    position: fixed;
    inset: 0;
}

#stage {
    display: block;
    width: 100%;
    height: 100%;
}

.copy {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px 56px max(40px, 6vw);
    pointer-events: none;
}

.copy > * { pointer-events: auto; }

.eyebrow {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

h1 {
    margin: 0;
    font-size: clamp(38px, 4.2vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.lead {
    margin: 18px 0 0;
    max-width: 30ch;
    font-size: 18px;
    line-height: 1.45;
    color: var(--muted);
}

.phrases {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.phrases button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.phrases button[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px max(40px, 6vw);
    pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.brand {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 6px;
}

.nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
}

.nav a:hover { background: rgba(255, 255, 255, 0.8); }

.cta {
    align-self: flex-start;
    margin-top: 22px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(22, 115, 209, 0.28);
}

.cta:hover { background: #0f63b8; }

.portal {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: #040812;
    opacity: 0;
    pointer-events: none;
}

.portal.is-shut {
    opacity: 1;
    pointer-events: auto;
}

.status {
    position: absolute;
    right: 24px;
    bottom: 24px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.status[hidden] { display: none; }

@media (max-width: 800px) {
    .stage {
        position: relative;
        height: 62svh;
    }
    .copy {
        min-height: 0;
        padding: 24px 22px 48px;
    }
}
