:root {
    color-scheme: light dark;
    --bg: #f5f4f0;
    --text: #1f1f1f;
    --layer-bg: #fff;
    --shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.13);
    --cta-bg: #000;
    --cta-text: #fff;
    --wordmark: #ebe9e1;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0a0a;
        --text: #f5f5f4;
        --layer-bg: #111111;
        --shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.55);
        --cta-bg: #fff;
        --cta-text: #000;
        --wordmark: #181818;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--text);
    background: var(--bg);
}

/* content layer (white) sits above the footer */
.layer {
    position: relative;
    z-index: 10;
    background: var(--layer-bg);
    box-shadow: var(--shadow);
}

/* ---------------- hero ---------------- */

.stage {
    min-height: 97svh;
    display: flex;
    flex-direction: column;
}

.stage-inner {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.stage-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 640px;
    text-align: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.logo-mark {
    font-size: 24px;
    font-weight: 600;
    line-height: 0;
    margin-left: 2px;
    color: var(--text);
}

.headline {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 2rem;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 44px;
    border-radius: 99px;
    background: var(--cta-bg);
    color: var(--cta-text);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
    will-change: transform;
    transition: transform 0.15s ease-out;
}

.cta:hover {
    background: linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0000ff, #8000ff, #ff0000);
    background-size: 800% 100%;
    color: #fff;
    animation: rainbow-shift 0.5s linear infinite;
}

@media (prefers-color-scheme: dark) {
    .cta:hover {
        color: #000;
    }
}

@keyframes rainbow-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* ---------------- footer ---------------- */

.footer {
    position: sticky;
    bottom: 0;
    z-index: 0;
    overflow: clip;
    background: var(--bg);
    padding: 120px 2rem 6rem;
}

.wordmark-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 2rem;
    pointer-events: none;
    will-change: transform;
    transform: translateY(20%);
}

.wordmark {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    white-space: nowrap;
    text-align: center;
    font-size: clamp(88px, 15vw, 220px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    user-select: none;
    color: var(--wordmark);
}
