:root {
    --bg-dark: #0a0a0b;
    --bg-card: #111113;
    --border: #27272a;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #22d3ee;
    --accent-glow: rgba(34, 211, 238, 0.15);
    --success: #4ade80;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    line-height: 1.6;
}

.container {
    max-width: 560px;
    width: 100%;
    text-align: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.6s ease-out;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent), #06b6d4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.email-form {
    display: flex;
    gap: 10px;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.email-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.email-form input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}

.email-form input::placeholder {
    color: var(--text-muted);
}

.email-form button {
    padding: 14px 24px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bg-dark);
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.email-form button:hover {
    opacity: 0.9;
}

.email-form.success input,
.email-form.success button {
    display: none;
}

.success-message {
    display: none;
    padding: 14px 16px;
    color: var(--success);
    font-weight: 500;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.email-form.success .success-message {
    display: flex;
}

.already-joined-text {
    margin-top: 1rem;
    color: var(--success);
    font-weight: 500;
    display: none;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

@media (max-width: 480px) {
    .email-form {
        flex-direction: column;
    }

    .email-form button {
        width: 100%;
    }
}
