:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #8b5cf6;
    --accent-secondary: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.05);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles removed to consolidate logo into hero */


.logo {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(to bottom, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
    cursor: default;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-img {
    height: 3.5rem;
    width: 3.5rem;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
}

.logo:hover {
    transform: scale(1.02);
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.hero {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 0;
    }

    .logo {
        font-size: 2.5rem;
    }

    .logo-img {
        height: 2.5rem;
        width: 2.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    /* Mobile header cleanup */


    .logo {
        font-size: 2rem;
    }

    .logo-img {
        height: 2rem;
        width: 2rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .waitlist-form {
        padding: 1.25rem;
    }

    .checkbox-group {
        gap: 0.5rem;
    }

    .stats {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .background-glow {
        width: 120vw;
        height: 120vw;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.waitlist-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.waitlist-form::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.device-selection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.device-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
    user-select: none;
    background: var(--input-bg);
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
}

.checkbox-container:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    height: 1.25rem;
    width: 1.25rem;
    background-color: transparent;
    border: 2px solid var(--text-secondary);
    border-radius: 0.35rem;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-container input:checked~.custom-checkbox {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.custom-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 45%;
    width: 0.35rem;
    height: 0.65rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.checkbox-container input:checked~.custom-checkbox:after {
    display: block;
}

button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    position: relative;
    overflow: hidden;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.message {
    font-size: 0.875rem;
    margin-top: 1rem;
    min-height: 1.5rem;
    /* Prevents jumping */
    display: block;
}

.waitlist-form.success-state {
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(74, 222, 128, 0.1);
    background: rgba(255, 255, 255, 0.04);
    padding: 4rem 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waitlist-form.success-state>*:not(#message) {
    display: none !important;
}

.message.success {
    color: var(--text-primary);
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.6;
    text-align: center;
    width: 100%;
    margin-top: 0;
}

.message.success::before {
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7' /%3E%3C/svg%3E");
    background-size: 2.5rem;
    background-position: center;
    background-repeat: no-repeat;
}

.success-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 300px;
    display: block;
    margin-top: 0.5rem;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.message.error {
    color: #f87171;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    opacity: 0.7;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 2rem 0;
}

/* Loader */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero>* {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero h1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.hero .subtitle {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero .waitlist-form {
    animation-delay: 0.3s;
    opacity: 0;
}

.hero .stats {
    animation-delay: 0.4s;
    opacity: 0;
}