* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    font-family: "Geist", sans-serif;
}

:root {
    color-scheme: light;
    --text: #1c1c1a;
    --body: #242422;
    --muted: #8a8a84;
    --bg: #f7f6f3;
    --surface: #fffcf8;
    --line: rgba(28, 28, 26, 0.14);
    --rule: rgba(28, 28, 26, 0.28);
    --cta-bg: #1c1c1a;
    --cta-text: #f7f6f3;
    --halo: 0 0 22px rgba(255, 252, 248, 0.95), 0 1px 2px rgba(255, 252, 248, 0.9);
}

@media (prefers-color-scheme: dark) {
    :root:not(.light) {
        color-scheme: dark;
        --text: #f4f3ef;
        --body: #c8c6c0;
        --muted: #8d8d86;
        --bg: #111110;
        --surface: #191918;
        --line: rgba(244, 243, 239, 0.14);
        --rule: rgba(244, 243, 239, 0.24);
        --cta-bg: #f4f3ef;
        --cta-text: #111110;
        --halo: 0 0 22px rgba(8, 8, 10, 0.8), 0 1px 2px rgba(8, 8, 10, 0.7);
    }
}

html.dark {
    color-scheme: dark;
    --text: #f4f3ef;
    --body: #c8c6c0;
    --muted: #8d8d86;
    --bg: #111110;
    --surface: #191918;
    --line: rgba(244, 243, 239, 0.14);
    --rule: rgba(244, 243, 239, 0.24);
    --cta-bg: #f4f3ef;
    --cta-text: #111110;
    --halo: 0 0 22px rgba(8, 8, 10, 0.8), 0 1px 2px rgba(8, 8, 10, 0.7);
}

html,
body {
    background: transparent;
}

body {
    min-width: 320px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    transition: color 0.4s ease;
}

.sky-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: filter 0.6s ease, opacity 0.6s ease;
}

body:has(#signup-modal[open]) .sky-canvas {
    filter: blur(14px) saturate(0.9);
    opacity: 0.68;
}

nav,
main {
    position: relative;
    z-index: 1;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: auto;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 0;
    pointer-events: none;
}

.logo,
.theme {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

.logo {
    padding: 0;
    font-size: 20px;
    font-weight: 520;
    letter-spacing: -0.04em;
    text-shadow: var(--halo);
}

.theme {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bg) 42%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 16%, transparent);
}

.logo:hover {
    opacity: 0.7;
}

.theme:hover {
    background: color-mix(in srgb, var(--bg) 68%, transparent);
}

.logo,
.theme,
.cta,
.waitlist,
nav,
.split,
.intro {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}

.material-icons {
    font-size: 22px;
    color: var(--text);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme:hover .material-icons {
    transform: rotate(-18deg);
}

.split {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
    border-bottom: double 3px color-mix(in srgb, var(--text) 18%, transparent);
}

.intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 96px 48px 40px;
    border-right: double 3px color-mix(in srgb, var(--text) 18%, transparent);
    text-align: left;
    background: transparent;
}

h1,
#smalltext,
.logo {
    text-shadow: var(--halo);
}

h1 {
    max-width: 10ch;
    font-size: clamp(42px, 4.4vw, 64px);
    font-weight: 520;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

#smalltext {
    max-width: 34rem;
    margin-top: 20px;
    color: var(--text);
    font-size: 18px;
    font-weight: 450;
    line-height: 1.5;
}

.waitlist {
    display: flex;
    width: min(460px, 100%);
    align-items: stretch;
    gap: 10px;
    margin-top: 36px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.waitlist input {
    flex: 1;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    line-height: 1.2;
    padding: 13px 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.waitlist input::placeholder {
    color: color-mix(in srgb, var(--muted) 88%, transparent);
    letter-spacing: -0.01em;
}

.waitlist input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--text) 32%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent);
}

.cta {
    border: 1px solid var(--cta-bg);
    border-radius: 10px;
    padding: 13px 18px;
    background: var(--cta-bg);
    color: var(--cta-text);
    font: inherit;
    font-size: 14px;
    font-weight: 520;
    letter-spacing: -0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, background-color 0.35s ease;
}

.cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cta:active {
    transform: translateY(0);
}

.cta:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

.cta:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

.explanation {
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    padding: 56px 48px 40px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    text-align: left;
    background: color-mix(in srgb, var(--bg) 48%, transparent);
    backdrop-filter: blur(18px) saturate(0.92);
    -webkit-backdrop-filter: blur(18px) saturate(0.92);
}

.explanation p {
    margin-bottom: 1.05em;
}

.explanation ul {
    margin: 0.15em 0 1.35em;
}

.explanation li {
    position: relative;
    margin: 0.4em 0;
    padding-left: 1.05em;
}

.explanation li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--muted);
}

@media (min-width: 861px) {
    body {
        height: 100vh;
        overflow: hidden;
    }

    .explanation {
        overflow: auto;
    }
}

@media only screen and (max-width: 860px) {
    nav {
        position: static;
        padding: 18px 22px;
    }

    .split {
        display: block;
    }

    .intro {
        align-items: center;
        padding: 28px 22px 36px;
        border-right: 0;
        border-bottom: double 3px color-mix(in srgb, var(--text) 18%, transparent);
        text-align: center;
    }

    h1 {
        max-width: 12ch;
    }

    .explanation {
        padding: 36px 22px 40px;
    }

    #smalltext {
        font-size: 16px;
    }

    .waitlist {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .waitlist .cta {
        width: 100%;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .intro > * {
        animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .intro > :nth-child(2) {
        animation-delay: 0.08s;
    }

    .intro > :nth-child(3) {
        animation-delay: 0.16s;
    }

    .explanation {
        animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
    }

    .modal.is-open::backdrop {
        animation: fade 0.35s ease both;
    }

    .modal.is-open .modal-panel {
        animation: modalIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .modal-step.is-active {
        animation: stepIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

.form-note {
    margin-top: 12px;
    color: #b42318;
    font-size: 14px;
}

.modal {
    position: fixed;
    inset: 0;
    width: min(520px, calc(100vw - 28px));
    height: fit-content;
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    border-radius: 24px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    color: var(--text);
    box-shadow: 0 24px 80px color-mix(in srgb, #000 18%, transparent);
    backdrop-filter: blur(22px) saturate(1.05);
    -webkit-backdrop-filter: blur(22px) saturate(1.05);
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open {
    opacity: 1;
    transform: none;
}

.modal::backdrop {
    background: color-mix(in srgb, #0a0a0a 42%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.modal.is-open::backdrop {
    opacity: 1;
}

.modal-panel {
    position: relative;
    padding: 30px 28px 26px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 6%, transparent);
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.modal-close:hover {
    background: color-mix(in srgb, var(--text) 12%, transparent);
    color: var(--text);
}

.modal-check {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, #1f9d55 16%, transparent);
    color: #1f9d55;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #1f9d55 28%, transparent);
}

.modal-check .material-icons {
    font-size: 22px;
    color: #1f9d55;
}

.modal-eyebrow {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal h2 {
    margin-top: 8px;
    max-width: 16ch;
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 520;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.modal-copy {
    margin-top: 12px;
    color: var(--body);
    font-size: 15px;
    line-height: 1.55;
}

.modal-step[hidden] {
    display: none;
}

.case-list {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.case {
    display: grid;
    gap: 5px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.case:hover {
    border-color: color-mix(in srgb, var(--text) 28%, transparent);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    transform: translateY(-1px);
}

.case strong {
    font-size: 15px;
    font-weight: 560;
    color: var(--text);
    letter-spacing: -0.02em;
}

.case span {
    color: var(--body);
    font-size: 13.5px;
    line-height: 1.45;
}

.market-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
    padding: 0;
    border: 0;
    background: transparent;
}

.market-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg) 60%, transparent);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}

.market-form input::placeholder {
    color: color-mix(in srgb, var(--muted) 88%, transparent);
}

.market-form input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--text) 28%, transparent);
}

.modal-done {
    margin-top: 22px;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
