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

:root {
    --sky-blue: #87CEEB;
    --bright-blue: #5BA3F5;
    --water-blue: #4A90E2;
    --darker-water: #3A7BC8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-glass-strong: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom, var(--sky-blue) 0%, var(--bright-blue) 40%, var(--water-blue) 70%, var(--darker-water) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.container {
    text-align: center;
    max-width: 680px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

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

.title {
    font-size: 6.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.bear-container {
    margin-bottom: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
}

.bear-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(91, 163, 245, 0.15) 0%, rgba(74, 144, 226, 0.08) 50%, transparent 100%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.bear-gif {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bear-gif:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.email-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.email-input {
    width: 100%;
    max-width: 480px;
    padding: 1.4rem 2rem;
    font-size: 1.05rem;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #ffffff;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.email-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(91, 163, 245, 0.2), var(--shadow-xl);
    transform: translateY(-2px);
}

.email-input:hover:not(:focus) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.submit-button {
    width: 100%;
    max-width: 480px;
    padding: 1.4rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4), var(--shadow-lg);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.5), var(--shadow-xl);
}

.submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.4), var(--shadow-md);
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), 0 15px 35px -5px rgba(37, 99, 235, 0.5);
}

.submit-button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4), var(--shadow-lg);
}

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

.success-message {
    width: 100%;
    max-width: 480px;
    padding: 1.2rem 2rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
}

.error-message {
    width: 100%;
    max-width: 480px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fee2e2;
    text-align: center;
    background: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.3s ease-in;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
    }
    
    .bear-gif {
        max-width: 280px;
    }
    
    .bear-container {
        margin-bottom: 3rem;
    }
    
    .email-input,
    .submit-button {
        max-width: 100%;
        font-size: 1rem;
        padding: 1.2rem 1.8rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .title {
        font-size: 3.5rem;
        margin-bottom: 1.25rem;
    }
    
    .bear-gif {
        max-width: 240px;
        border-radius: 20px;
    }
    
    .bear-container {
        margin-bottom: 2.5rem;
    }
    
    .email-input,
    .submit-button {
        padding: 1.1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 14px;
    }
    
    .email-section {
        gap: 0.75rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(91, 163, 245, 0.3);
    color: #ffffff;
}
