:root {
    --bg-color: #050505;
    --primary-gradient: linear-gradient(135deg, #4ADE80 0%, #22D3EE 100%);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --accent-green: #4ADE80;
    --accent-cyan: #22D3EE;
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.1);
    --badge-bg: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

header .logo {
    display: flex;
    justify-content: center;
    animation: fadeInDown 0.8s ease-out;
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* Form Styles */
#waitlist-form {
    width: 100%;
    margin-top: 1rem;
}

.input-group {
    display: flex;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group:focus-within {
    border-color: rgba(74, 222, 128, 0.4);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.05);
}

.success-message {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(74, 222, 128, 0.05) !important;
    border: 1px solid rgba(74, 222, 128, 0.2) !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
    color: #4ADE80 !important;
    font-weight: 600 !important;
    text-align: center;
}

input[type="email"] {
    flex: 1;
    background: transparent !important;
    border: none;
    color: white !important;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

/* Fix for background turning white on autofill/entry */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #0a0a0a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

input[type="email"]::placeholder {
    color: #4B5563;
}

.join-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gradient);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    font-family: inherit;
}

.join-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.join-btn:active {
    transform: translateY(1px);
}

/* Waitlist Count Badge */
.waitlist-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--badge-bg);
    border: 1px solid var(--input-border);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

#counter {
    color: var(--accent-green);
    font-weight: 700;
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Responsive */
@media (max-width: 480px) {
    

    .container {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}