:root {
    --bg-color: #030014;
    --text-color: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-glow: rgba(99, 102, 241, 0.4);

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    /* Fonts */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

/* Background Animation */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #030014 60%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    mix-blend-mode: screen;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    top: 40%;
    left: 60%;
    opacity: 0.3;
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 20px) scale(0.9);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(30, 30, 43, 0.8));
    transition: filter 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 0 25px rgb(122, 91, 225));
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0 6rem;
    position: relative;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 9999px;
    color: #818cf8;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeUp 0.8s ease-out;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #818cf8;
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: 0 0 10px #818cf8;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeUp 1s ease-out 0.1s backwards;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    max-width: 640px;
    margin-bottom: 3.5rem;
    line-height: 1.6;
    animation: fadeUp 1s ease-out 0.2s backwards;
}

/* Form Container */
.form-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    animation: fadeUp 1s ease-out 0.3s backwards;
}

/* Glass Card behind form if desired, or just clean form */
.waitlist-form {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.waitlist-form:focus-within {
    border-color: var(--glass-highlight);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), var(--glass-shadow);
    background: rgba(255, 255, 255, 0.05);
}

.input-group {
    flex: 1;
    position: relative;
}

input[type="email"] {
    width: 100%;
    height: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.05rem;
    font-size: 1.05rem;
    outline: none;
    font-family: var(--font-main);
    border-radius: 9999px;
}

input[type="email"]::placeholder {
    color: #64748b;
}

/* Fix for Browser Autofill White Background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 100px #030014 inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: white !important;
    color-scheme: dark;
}

button {
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

button:hover::before {
    opacity: 1;
}

button:active {
    transform: translateY(1px);
}

button .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

button.loading span {
    display: none;
}

button.loading .spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.success-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #4ade80;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.success-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: #4b5563;
    font-size: 0.875rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 640px) {
    .waitlist-form {
        flex-direction: column;
        padding: 1rem;
        background: transparent;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
    }

    .input-group,
    button {
        width: 100%;
    }

    input[type="email"] {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 1rem;
        text-align: center;
    }

    button {
        padding: 1rem;
        border-radius: 12px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .logo img {
        height: 36px;
    }
}