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

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f1a 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.container {
    text-align: center;
    position: relative;
}

/* ================= LOGO ================= */

.logo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
}

/* Гадна эргэж байгаа гэрэл */
.rotating-light {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(
        transparent 0deg,
        #4558e9 30deg,
        #6ba6ff 60deg,
        transparent 120deg
    );
    animation: rotate 3s linear infinite;
    z-index: 1;
}

.rotating-light::before {
    content: '';
    position: absolute;
    inset: 5px;
    background: #0a0a0a;
    border-radius: 50%;
}

.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 30px rgba(69, 151, 233, 0.5);
}

/* ✨ LOGO ДЭЭР эргэлдэж байгаа гэрэл - илүү тод */
.rotating-light-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(
        transparent 0deg,
        rgba(69, 151, 233, 0.5) 15deg,
        rgba(69, 151, 233, 0.95) 45deg,
        transparent 75deg
    );
    animation: rotateOverlay 3s linear infinite;
    z-index: 20;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(6px);
    opacity: 0.9;
}

.glow {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 134, 222, 0.3), transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

/* ================= TEXT ANIMATION ================= */

.title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 20px rgba(61, 116, 172, 0.5);
    display: inline-block;
}

.title span {
    display: inline-block;
    opacity: 0;
    animation: letterInOut 4s infinite;
}

/* stagger delay */
.title span:nth-child(1) { animation-delay: 0s; }
.title span:nth-child(2) { animation-delay: 0.1s; }
.title span:nth-child(3) { animation-delay: 0.2s; }
.title span:nth-child(4) { animation-delay: 0.3s; }
.title span:nth-child(5) { animation-delay: 0.4s; }
.title span:nth-child(6) { animation-delay: 0.5s; }
.title span:nth-child(7) { animation-delay: 0.6s; }
.title span:nth-child(8) { animation-delay: 0.7s; }

/* Subtitle */
.subtitle {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #888;
    opacity: 0;
    animation: subtitleLoop 4s infinite;
}

/* ================= PARTICLES ================= */

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(69, 151, 233, 0.6);
    border-radius: 50%;
    animation: float-up 8s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 0.5s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; }

/* ================= KEYFRAMES ================= */

@keyframes letterInOut {
    0% {
        opacity: 0;
        transform: translateY(40px) rotate(-10deg);
    }
    20% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    70% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) rotate(10deg);
    }
}

@keyframes subtitleLoop {
    0%, 20% { opacity: 0; transform: translateY(10px); }
    30%, 70% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; }
}

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

@keyframes rotateOverlay {
    from { 
        transform: translate(-50%, -50%) rotate(0deg); 
    }
    to { 
        transform: translate(-50%, -50%) rotate(360deg); 
    }
}

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

@keyframes float-up {
    from { bottom: -10%; opacity: 0; }
    to { bottom: 110%; opacity: 1; }
}