:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #ffffff;
    --input-bg: #111111;
    --input-border: #333333;
    --input-focus: #555555;
    --font-family: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #050505 70%);
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind content */
    opacity: 0.6;
    /* Subtle effect */
    pointer-events: none;
}

.waitlist-container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    text-align: center;
    animation: fadeIn 1s ease-out;
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 10;
    /* Ensure content is above glow */
}

/* Global Glow Effect */
#glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Behind content, above stars/bg */
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.04),
            transparent 40%);
}

/* Show glow when body is hovered */
body:hover #glow-overlay {
    opacity: 1;
}

/* Logo Styles matched from index.html */
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    /* Ensure this font is loaded */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    gap: 0.5rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    margin: 0 auto 2rem auto;
    /* Center element */
    width: fit-content;
}

.nav-logo:hover {
    opacity: 1;
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

.headline {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.subheadline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.waitlist-form {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    display: flex;
    gap: 0.5rem;
    background: var(--input-bg);
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
}

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

button {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-family);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.2s ease;
    white-space: nowrap;
}

button:hover {
    opacity: 0.9;
}

button:active {
    transform: scale(0.98);
}

.footer-note {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #444;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #111;
    border: 1px solid #222;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 320px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 40px;
    height: 40px;
    background: #222;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.modal-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.modal-text p {
    font-size: 0.9rem;
    color: #888;
}

.modal-close {
    margin-left: auto;
    background: #fff;
    color: #000;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

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

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

/* Loading State */
.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

button.loading .btn-text {
    display: none;
}

button.loading .btn-loader {
    display: inline-block;
}

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