/* ---------- Reset / base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #020617; /* dark fallback (helps on iOS overscroll) */
}

body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VendSans', system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    color: #f9fafb;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ---------- Background & gradient overlay ---------- */

.background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.25), transparent 55%),
        radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.2), transparent 50%),
        linear-gradient(to bottom right, rgba(3, 7, 18, 0.94), rgba(15, 23, 42, 0.96));
    z-index: 1;
    pointer-events: none;
}

/* ---------- Centered container ---------- */

.coming-soon-container {
    position: relative;
    z-index: 3; /* above background + overlay + gif */
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-box {
    width: min(90vw, 480px);
    padding: 2rem 2.2rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-align: center;
}

/* ---------- Text & dots ---------- */

.coming-soon-text {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.2rem);
}

.dots {
    display: inline-block;
    min-width: 1.6ch;
}

.tagline {
    margin: 0.75rem 0 0;
    font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1rem);
    color: rgba(226, 232, 240, 0.9);
}

/* ---------- Waitlist form ---------- */

.waitlist-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-row {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
}

.email-input {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    outline: none;
    font-size: 0.95rem;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.08s ease;
}

.email-input::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

.email-input:focus {
    border-color: rgba(129, 140, 248, 0.95);
    background: rgba(15, 23, 42, 0.95);
    box-shadow:
        0 0 0 1px rgba(129, 140, 248, 0.75),
        0 0 25px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

/* Primary button */

.primary-button {
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    background-image: linear-gradient(135deg, #6366f1, #a855f7);
    color: #f9fafb;
    box-shadow:
        0 14px 35px rgba(79, 70, 229, 0.55),
        0 0 0 1px rgba(129, 140, 248, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease,
        opacity 0.12s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 18px 40px rgba(79, 70, 229, 0.7),
        0 0 0 1px rgba(165, 180, 252, 0.9);
    filter: brightness(1.05);
}

.primary-button:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(55, 48, 163, 0.7),
        0 0 0 1px rgba(129, 140, 248, 0.8);
    filter: brightness(0.97);
}

.primary-button:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* Helper + message text */

.form-helper {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.9);
}

.form-message {
    margin: 0;
    min-height: 1.2em;
    font-size: 0.82rem;
}

.form-message--success {
    color: #4ade80;
}

.form-message--error {
    color: #f97373;
}

/* ---------- Floating GIF ---------- */

.coming-soon-gif {
    position: fixed;
    top: 0;
    left: 0;
    width: 150px;
    max-width: 28vw;
    z-index: 2; /* above background & overlay, below content */
    pointer-events: none;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

/* ---------- Responsive tweaks ---------- */

/* Phones */
@media (max-width: 600px) {
    .coming-soon-container {
        padding: 1.25rem;
    }

    .coming-soon-box {
        width: 100%;
        padding: 1.6rem 1.4rem;
        border-radius: 20px;
    }

    .coming-soon-text {
        font-size: 1.5rem;
        letter-spacing: 0.06em;
    }

    .input-row {
        flex-direction: column;
    }

    .primary-button {
        width: 100%;
        justify-content: center;
    }

    .coming-soon-gif {
        width: 110px;
    }
}

/* Tablets and up */
@media (min-width: 768px) {
    .coming-soon-box {
        padding: 2.3rem 2.6rem;
    }

    .coming-soon-text {
        font-size: 2.1rem;
    }
}

/* Larger desktops */
@media (min-width: 1200px) {
    .coming-soon-box {
        width: 520px;
    }
}
