:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --accent2: #8b5cf6;
    --bg: #0a0a0f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Effects */
.gradient-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(6, 182, 212, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(139, 92, 246, 0.1), transparent);
    z-index: 0;
}

.aurora {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, 
        transparent 0deg, rgba(99, 102, 241, 0.03) 60deg, 
        transparent 120deg, rgba(6, 182, 212, 0.03) 180deg,
        transparent 240deg, rgba(139, 92, 246, 0.03) 300deg, transparent 360deg);
    animation: aurora 20s linear infinite;
    z-index: 0;
}

@keyframes aurora {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.grid-pattern {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

/* Particles */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

/* Card with glowing border */
.card {
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: clamp(30px, 6vw, 50px);
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: cardIn 0.6s ease-out, borderGlow 2s ease-in-out infinite;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes borderGlow {
    0%, 100% {
        border: 1px solid rgba(99, 102, 241, 0.3);
        box-shadow: 
            0 25px 60px rgba(0,0,0,0.5),
            0 0 20px rgba(99, 102, 241, 0.1),
            inset 0 0 20px rgba(99, 102, 241, 0.03);
    }
    50% {
        border: 1px solid rgba(6, 182, 212, 0.5);
        box-shadow: 
            0 25px 60px rgba(0,0,0,0.5),
            0 0 30px rgba(6, 182, 212, 0.2),
            inset 0 0 30px rgba(6, 182, 212, 0.05);
    }
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.brand-icon {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 5vw, 24px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.brand-text {
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: rgba(255,255,255,0.5);
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 24px;
}

.subtitle span {
    color: var(--accent);
    font-weight: 600;
}

/* Timer */
.timer {
    margin-bottom: 20px;
}

.timer-number {
    font-size: clamp(4rem, 15vw, 5.5rem);
    font-weight: 800;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.timer-label {
    color: rgba(255,255,255,0.4);
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 6px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(12px, 3vw, 16px) clamp(24px, 6vw, 36px);
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.9rem, 3vw, 1rem);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    margin-bottom: 24px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.btn:active {
    transform: scale(0.98);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Info text */
.info-text {
    color: rgba(255,255,255,0.4);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.info-text b {
    color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 400px) {
    .card {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aurora, .particle, .card {
        animation: none;
    }
    .card {
        border: 1px solid rgba(99, 102, 241, 0.3);
    }
}