:root {
    --bg-color: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --accent-color: #6366f1;
    /* Indigo */
    --accent-glow: rgba(99, 102, 241, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-primary);
    font-family: var(--font-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Overlay for readability */
.background-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darken the background image */
    z-index: -1;
    backdrop-filter: blur(5px);
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

.container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Form Styles */
.interest-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.input-group {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 450px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    /* Pill shape */
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

button {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 0 2rem;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

button:hover {
    background-color: #5558e6;
    transform: translateY(-1px);
}

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

/* Loader */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.hidden {
    display: none;
}

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

/* Message */
.message {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    min-height: 1.5em;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.message.visible {
    opacity: 1;
}

.message.error {
    color: #ef4444;
}

/* Footer */
footer {
    margin-top: 5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 3rem;
    }

    .input-group {
        flex-direction: column;
        border-radius: 20px;
        padding: 1rem;
        background: transparent;
        border: none;
        gap: 1rem;
        backdrop-filter: none;
        box-shadow: none !important;
    }

    input {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        width: 100%;
        text-align: center;
    }

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