:root {
    --bg-color: #000000;
    --text-main: #ffffff;
    --text-muted: #666666;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global film grain overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.15;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Sharp, subtle wireframe grid */
.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

/* Atmospheric lighting instead of toy-like mouse tracking */
.ambient-light {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
}

.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
}

/* Elegant, stark typography */
.title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400; /* Less heavy, more premium */
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 2rem;
    
    background: linear-gradient(180deg, #ffffff 0%, #888888 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Random, subtle shimmer */
    animation: organicShimmer 6s ease-in-out infinite alternate;
}

@keyframes organicShimmer {
    0% { opacity: 0.9; filter: drop-shadow(0 0 2px rgba(255,255,255,0.05)); }
    20% { opacity: 1; filter: drop-shadow(0 0 15px rgba(255,255,255,0.2)); }
    40% { opacity: 0.85; filter: drop-shadow(0 0 4px rgba(255,255,255,0.05)); }
    70% { opacity: 1; filter: drop-shadow(0 0 20px rgba(255,255,255,0.25)); }
    100% { opacity: 0.9; filter: drop-shadow(0 0 5px rgba(255,255,255,0.05)); }
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 4rem;
    line-height: 1.6;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Sharp, minimalist form */
.waitlist-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 50px;
}

.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    transition: opacity 0.4s ease;
    width: 100%;
}

.waitlist-form {
    display: flex;
    width: 100%;
    max-width: 440px;
    position: relative;
    transition: opacity 0.4s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 0;
    /* Removing rounded corners */
}

.waitlist-form:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
}

.waitlist-form.hidden {
    opacity: 0;
    pointer-events: none;
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.1rem 1.25rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    letter-spacing: 0.02em;
    border-radius: 0;
    /* Removing rounded corners */
}

.email-input::placeholder {
    color: #444444;
}

.waitlist-btn {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    padding: 0 1.75rem;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0;
    /* Removing rounded corners */
}

.waitlist-btn:hover {
    background: #cccccc;
}

.waitlist-btn:disabled {
    background: #222222;
    color: #555555;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.success-message.visible {
    opacity: 1;
}

/* Initial load animation */
.fade-in {
    animation: fadeIn 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

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

/* Responsive adjustments */
@media (max-width: 480px) {
    .waitlist-form {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 10px;
    }

    .waitlist-form:focus-within {
        border-color: transparent;
    }

    .email-input {
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.4);
    }

    .email-input:focus {
        border-color: rgba(255, 255, 255, 0.4);
    }

    .waitlist-btn {
        padding: 1.1rem;
    }
}