:root {
    --bg-color: #0f0f11;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-1: #FF4D4D;
    /* Vital Red/Orange */
    --accent-2: #F9CB28;
    /* Energetic Yellow */
    --accent-glow: #7928CA;
    /* Deep Purple for depth */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Background Gradients/Orbs */
.background-gradients {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 15s;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-duration: 12s;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Navigation */
.glass-nav {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
    filter: invert(1) brightness(100);
}

/* Hero Section */
.hero {
    margin-top: 8rem;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(121, 40, 202, 0.2);
    border: 1px solid rgba(121, 40, 202, 0.4);
    color: #d8b4fe;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.2em;
}

p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Form */
.waitlist-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 450px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--accent-1);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.2);
}

.main-input {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    flex-grow: 1;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.main-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

button {
    background: white;
    color: black;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

button:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

small {
    color: var(--text-secondary);
    font-size: 0.875rem;
    opacity: 0.8;
}

footer {
    margin-top: 5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    opacity: 0.5;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

/* Type Selector (Segmented Control) */
.form-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: -0.5rem;
    font-weight: 500;
}

.type-selector {
    display: inline-flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4px;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    position: relative;
    gap: 0;
    /* No gap, continuous surface */
}

.type-option {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.type-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.type-option span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid transparent;
    /* Reserve space/layout but invisible */
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.type-option:hover span {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.type-option input:checked+span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: none;
    /* Segmented controls usually don't jump */
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .input-group {
        flex-direction: column;
        border-radius: 1rem;
        background: transparent;
        border: none;
        padding: 0;
    }

    .main-input {
        width: 100%;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 9999px;
    }

    button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

/* Error States */
.input-error {
    border-color: var(--accent-1) !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2) !important;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}