/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Aura UI — from Blackout Club app theme */
    --bg: #0A0A0F;
    --bg-deep: #050508;
    --card: #12121A;
    --surface: #1A1A25;

    --text: #F8F7FF;
    --text-secondary: rgba(248,247,255,0.7);
    --text-tertiary: rgba(248,247,255,0.45);
    --text-muted: rgba(248,247,255,0.25);

    --primary: #A78BFA;
    --primary-bright: #C4B5FD;
    --cyan: #67E8F9;
    --rose: #F472B6;
    --violet-deep: #4C1D95;
    --rose-deep: #831843;
    --cyan-deep: #164E63;

    --border: rgba(255,255,255,0.1);
    --border-subtle: rgba(255,255,255,0.05);
    --glass: rgba(18,18,26,0.85);
    --glass-border: rgba(255,255,255,0.12);
    --glass-glow: rgba(167,139,250,0.15);

    --success: #4ADE80;
    --danger: #EF4444;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Noise texture overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.035;
    z-index: 100;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Animated gradient orbs — Aura background (violet, rose, cyan) */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, var(--violet-deep) 40%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-1 16s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--rose) 0%, var(--rose-deep) 40%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float-2 20s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan) 0%, var(--cyan-deep) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation: float-3 22s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.1); }
    66% { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -20px) scale(1.05); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33% { transform: translate(-45%, -55%) scale(1.15); }
    66% { transform: translate(-55%, -45%) scale(0.9); }
}

/* Main container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.content {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* Bunny logo image */
.logo-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    animation: fadeInDown 1.2s ease-out, neonPulse 3s ease-in-out infinite;
    border-radius: 50%;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.5));
}

@keyframes neonPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3))
               drop-shadow(0 0 40px rgba(0, 255, 255, 0.15));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.7))
               drop-shadow(0 0 80px rgba(0, 255, 255, 0.3))
               drop-shadow(0 0 120px rgba(167, 139, 250, 0.2));
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Text logo */
.logo {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.dot {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tagline */
.tagline {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.15rem, 3.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    opacity: 0.9;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

/* Form */
.waitlist-form {
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

.input-wrapper {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
    padding: 0.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.12),
                0 0 60px rgba(167, 139, 250, 0.06);
}

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

input[type="email"]::placeholder {
    color: var(--text-tertiary);
}

button[type="submit"] {
    background: linear-gradient(135deg, var(--violet-deep) 0%, var(--primary) 100%);
    color: var(--text);
    border: none;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

button[type="submit"]:hover::before {
    opacity: 1;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.35);
}

button[type="submit"]:active {
    transform: scale(0.97);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-loader {
    display: none;
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(248, 247, 255, 0.3);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

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

button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Form message */
.form-message {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: var(--danger);
}

.form-message.show {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem;
    }

    .logo-image {
        width: 140px;
        height: 140px;
        margin-bottom: 1.5rem;
    }

    .logo {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .input-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    input[type="email"] {
        padding: 1rem;
        text-align: center;
    }

    button[type="submit"] {
        width: 100%;
        padding: 1rem;
    }

    .gradient-orb {
        opacity: 0.2;
    }

    .orb-1 {
        width: 400px;
        height: 400px;
        top: -150px;
        right: -150px;
    }

    .orb-2 {
        width: 350px;
        height: 350px;
        bottom: -100px;
        left: -100px;
    }

    .orb-3 {
        width: 250px;
        height: 250px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
