/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0a0f;
    --dark-surface: #14141f;
    --text-primary: #ffffff;
    --text-secondary: #a8a8b3;
    --text-muted: #6b6b7f;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glow-purple: 0 0 40px rgba(102, 126, 234, 0.3);
    --glow-pink: 0 0 40px rgba(245, 87, 108, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', var(--font-primary);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* ===================================
   Animated Background
   =================================== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 87, 108, 0.4) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Stars Background */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #eee, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* ===================================
   Main Container
   =================================== */
.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================
   Logo Section
   =================================== */
.logo-section {
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    position: relative;
}

.logo-icon {
    width: 100px;
    height: 100px;
    animation: rotate 20s linear infinite, pulse 2s ease-in-out infinite;
    filter: drop-shadow(var(--glow-purple));
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ===================================
   Content Section
   =================================== */
.content-section {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===================================
   Countdown Timer
   =================================== */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.countdown-item {
    background: rgba(20, 20, 31, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: var(--spacing-md) var(--spacing-lg);
    min-width: 100px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.countdown-item:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: var(--glow-purple);
}

.countdown-item:hover::before {
    left: 100%;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--spacing-xs);
}

.countdown-divider {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ===================================
   Notify Section
   =================================== */
.notify-section {
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.notify-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.notify-form {
    position: relative;
}

.input-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.email-input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(20, 20, 31, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    outline: none;
}

.email-input:focus {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.email-input::placeholder {
    color: var(--text-muted);
}

.notify-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.notify-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.notify-btn:hover::before {
    width: 300px;
    height: 300px;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-purple);
}

.notify-btn:active {
    transform: translateY(0);
}

.notify-btn span,
.notify-btn svg {
    position: relative;
    z-index: 1;
}

.success-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #4ade80;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===================================
   Social Section
   =================================== */
.social-section {
    animation: fadeInUp 1s ease-out 1s both;
}

.social-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 31, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--glow-purple);
    color: white;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* ===================================
   Footer
   =================================== */
.footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out 1.2s both;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.heart {
    color: #f5576c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.2); }
    20%, 40% { transform: scale(1); }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .countdown-container {
        gap: var(--spacing-xs);
    }
    
    .countdown-item {
        min-width: 80px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .countdown-divider {
        font-size: 1.5rem;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .notify-btn {
        width: 100%;
        justify-content: center;
    }
    
    .logo-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .countdown-item {
        min-width: 70px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .countdown-value {
        font-size: 1.75rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* ===================================
   Utilities
   =================================== */
.hidden {
    display: none;
}
