@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #030712;
    --accent: #9945FF; /* Solana Purple */
    --accent-light: #14F195; /* Solana Green */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow: rgba(153, 69, 255, 0.15);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Dynamic Background Elements */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(at 0% 0%, rgba(153, 69, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(20, 241, 149, 0.1) 0px, transparent 50%);
    filter: blur(80px);
    z-index: -1;
}

.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulse 8s infinite alternate both;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    z-index: 10;
}

/* Typography & Reveal Animations */
h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-weight: 300;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* Signup Card */
.signup-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    width: 100%;
    max-width: 500px;
    transition: all 0.3s ease;
}

.signup-card:focus-within {
    border-color: rgba(153, 69, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(153, 69, 255, 0.1);
}

.input-group {
    display: flex;
    width: 100%;
    gap: 0.75rem;
}

input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    font-family: inherit;
}

input::placeholder {
    color: #475569;
}

button {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

button:hover {
    transform: translateY(-1px);
    background: var(--accent-light);
}

button:active {
    transform: translateY(0);
}

button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer */
.footer {
    margin-top: 4rem;
    font-size: 0.9rem;
    color: #475569;
    letter-spacing: 0.05em;
}

/* Success Message */
.success-msg {
    display: none;
    background: rgba(20, 241, 149, 0.1);
    border: 1px solid rgba(20, 241, 149, 0.2);
    color: var(--accent-light);
    padding: 1rem;
    border-radius: 16px;
    margin-top: 1rem;
    font-weight: 500;
}

/* Adaptive for smaller screens */
@media (max-width: 600px) {
    .signup-card {
        padding: 1rem;
    }
    .input-group {
        flex-direction: column;
    }
    button {
        width: 100%;
        justify-content: center;
    }
}
