:root {
    --bg-main: #020517;
    --text-main: #ffffff;
    --text-muted: #7d829f;
    --text-faint: #6b7280;
    --line-soft: rgba(255, 255, 255, 0.1);
    --brand-blue: #2065ee;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Inter", "Instrument Sans", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(1300px 600px at 8% 100%, rgba(32, 101, 238, 0.22) 0%, rgba(2, 5, 23, 0) 55%),
        radial-gradient(900px 500px at 92% 0%, rgba(66, 123, 255, 0.16) 0%, rgba(2, 5, 23, 0) 52%),
        var(--bg-main);
}

a {
    color: inherit;
}

.waitlist-page {
    min-height: 100vh;
    background-color: #020517;
}

.waitlist-shell {
    width: 100%;
    max-width: 1920px;
    min-height: calc(100vh - 48px);
    border-radius: 24px;
    backdrop-filter: blur(3px);
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.brand-bar {
    margin-bottom: 40px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-family: "Instrument Sans", "Inter", sans-serif;
    font-weight: 600;
    font-size: 31px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.waitlist-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    min-height: 0;
    flex: 1;
}

.waitlist-intro {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.intro-title {
    margin: 0;
    font-family: "Instrument Sans", "Inter", sans-serif;
    font-size: clamp(2.2rem, 3.4vw, 56px);
    font-weight: 500;
    line-height: 1.3;
}

.intro-subtitle {
    margin: 10px 0 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.55);
    font-size: clamp(1rem, 1.35vw, 20px);
    line-height: 1.5;
}

.form-panel-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-panel {
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
}

.form-title {
    margin: 0;
    font-size: clamp(1.3rem, 1.6vw, 24px);
    font-weight: 600;
    line-height: 1.5;
}

.waitlist-form {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.form-half {
    width: calc(50% - 12px);
}

.form-full {
    width: 100%;
}

.form-group label,
.product-interest-group legend {
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    border: 1px solid transparent;
    outline: none;
    border-radius: 16px;
    background: var(--line-soft);
    padding: 16px;
    color: var(--text-main);
    font: inherit;
    transition: border-color 180ms ease, background-color 180ms ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
    color: var(--text-faint);
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: rgba(32, 101, 238, 0.55);
    background: rgba(255, 255, 255, 0.12);
}

.product-interest-group legend {
    padding: 0;
    margin-bottom: 16px;
}

.product-interest-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.product-interest-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
}

.product-interest-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-interest-check {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid #afb8c9;
    background: transparent;
    position: relative;
}

.product-interest-option input:checked+.product-interest-check {
    border-color: #d4def6;
    background: linear-gradient(180deg, rgba(32, 101, 238, 0.35), rgba(32, 101, 238, 0.1));
}

.product-interest-option input:checked+.product-interest-check::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 4px;
    background: #d9e5ff;
}

.product-interest-option input:checked+.product-interest-check+span {
    color: var(--text-main);
}

.form-footer {
    border-top: 1px solid var(--line-soft);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-status {
    margin: 0;
    min-height: 20px;
    color: #ffb4b4;
    font-size: 13px;
    line-height: 20px;
    flex: 1;
}

.form-status.is-success {
    color: #9ff3b0;
}

.submit-button {
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--brand-blue);
    color: var(--text-main);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 16px 16px 20px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 160ms ease, filter 160ms ease;
}

.submit-button img {
    width: 24px;
    height: 24px;
}

.submit-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.submit-button:active {
    transform: translateY(0);
}

.modal-backdrop {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border: none;
    background: transparent;
    padding: 24px;
}

.modal-backdrop:not([open]) {
    display: none;
}

.modal-backdrop::backdrop {
    background: rgba(3, 7, 26, 0.7);
    backdrop-filter: blur(2px);
}

.success-modal {
    width: min(100%, 1280px);
    margin: 10vh auto;
    border-radius: 40px;
    border: 1px solid #2065EE;
    box-shadow: 0px 4px 16px 1px #0C46C129;
    background-color: #0F1223;
    padding: 40px;
    position: relative;
}

.modal-close {
    font-size: 60px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #1A1D2D;
    outline: none;
    font-weight: 700;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(32, 101, 238, 0.85);
    padding-bottom: 22px;
}

.modal-logo {
    width: 52px;
    height: 52px;
}

.modal-title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 62px);
    line-height: 1.2;
    font-weight: 600;
    color: white;
}

.modal-lead {
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    line-height: 1.45;
}

.modal-copy {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    line-height: 1.45;
}

.modal-copy strong {
    color: var(--text-main);
    font-weight: 600;
}

.modal-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.acknowledge-button {
    border: 0;
    border-radius: 16px;
    padding: 16px 24px;
    background-color: #1C213A;
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 1480px) {
    .waitlist-shell {
        padding: 28px;
    }

    .waitlist-layout {
        gap: 32px;
    }

    .form-panel {
        max-width: 900px;
    }

    .modal-lead,
    .modal-copy {
        font-size: clamp(1rem, 1.8vw, 24px);
    }
}

@media (max-width: 860px) {
    .waitlist-shell {
        min-height: calc(100vh - 24px);
        border-radius: 20px;
        padding: 18px;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .intro-title {
        font-size: 34px;
    }

    .intro-subtitle {
        font-size: 16px;
    }

    .form-panel {
        border-radius: 24px;
        padding: 22px;
    }

    .waitlist-form {
        margin-top: 24px;
        gap: 24px;
    }

    .form-grid {
        gap: 24px;
    }

    .form-half {
        width: 100%;
    }

    .product-interest-option {
        width: 100%;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .submit-button {
        width: 100%;
        justify-content: center;
    }

    .modal-backdrop {
        padding: 10px;
    }

    .success-modal {
        border-radius: 24px;
        padding: 20px;
    }

    .modal-close {
        top: 14px;
        right: 14px;
    }

    .modal-header {
        gap: 10px;
        padding-bottom: 12px;
    }

    .modal-title {
        font-size: 28px;
    }

    .modal-lead,
    .modal-copy {
        margin-top: 12px;
        font-size: 16px;
    }

    .modal-actions {
        margin-top: 24px;
    }

    .acknowledge-button {
        width: 100%;
        font-size: 16px;
    }
}

.submit-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.submit-button:focus-visible,
.modal-close:focus-visible,
.acknowledge-button:focus-visible {
    outline: 2px solid #adc4ff;
    outline-offset: 2px;
}
