:root {
    --bg: #000000;
    --bg-accent: #000000;
    --card: #000000;
    --card-border: #ffffff;
    --text: #ffffff;
    --muted: #ffffff;
    --success: #ffffff;
    --error: #ffffff;
    --button: transparent;
    --button-text: #ffffff;
    --field: rgba(255, 255, 255, 0.06);
    --field-border: #ffffff;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Space Mono", "Courier New", monospace;
    color: var(--text);
    background: #000000;
}

button,
input {
    font: inherit;
}

.page-shell {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    overflow: hidden;
}

.background-orb {
    display: none;
}

.background-orb-left {
    top: 10%;
    left: -80px;
    width: 220px;
    height: 220px;
    background: rgba(103, 227, 198, 0.18);
}

.background-orb-right {
    right: -100px;
    bottom: 10%;
    width: 260px;
    height: 260px;
    background: rgba(210, 255, 77, 0.16);
    animation-delay: -3s;
}

.waitlist-stage {
    display: grid;
    width: min(100%, 420px);
}

.waitlist-panel {
    grid-area: 1 / 1;
    transition:
        opacity 320ms ease,
        transform 320ms ease,
        visibility 320ms ease;
}

.waitlist-card {
    position: relative;
    padding: 32px 28px;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.waitlist-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.05;
    font-weight: 400;
}

.thank-you-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.05;
    font-weight: 400;
}

.hello-message {
    margin: 12px 0 0;
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.waitlist-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.field {
    display: grid;
    gap: 8px;
}

input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--field-border);
    border-radius: 14px;
    color: var(--text);
    background: var(--field);
    outline: none;
    transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

input.input-error {
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

button {
    padding: 15px 16px;
    border: 1px solid #ffffff;
    border-radius: 14px;
    color: var(--button-text);
    background: var(--button);
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
    box-shadow: 0 16px 32px rgba(255, 255, 255, 0.08);
}

button:hover:not(:disabled),
button:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(255, 255, 255, 0.12);
}

button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.field-error,
.status-message {
    min-height: 1.2em;
    margin: 0;
    font-size: 0.86rem;
}

.field-error,
.status-error {
    color: var(--error);
}

.status-info {
    color: var(--muted);
}

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

.thank-you-panel {
    position: relative;
    display: grid;
    align-content: center;
    gap: 12px;
    min-height: 100%;
    padding: 32px 28px;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(22px) scale(0.98);
    text-align: center;
}

.thank-you-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.thank-you-copy,
.thank-you-note {
    margin: 0;
    line-height: 1.65;
}

.thank-you-copy {
    color: var(--text);
}

.thank-you-note {
    color: var(--muted);
}

.waitlist-stage.is-complete .waitlist-card {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(22px) scale(0.98);
}

.waitlist-stage.is-complete .thank-you-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

@media (max-width: 480px) {
    .waitlist-card,
    .thank-you-panel {
        padding: 26px 20px;
    }
}
