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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Background Effects */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
    will-change: transform;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glowing Orbs - Giảm blur để load nhanh hơn */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
    animation: float 20s infinite ease-in-out;
    z-index: 0;
    will-change: transform;
}

.orb1 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    top: -175px;
    left: -175px;
}

.orb2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ffffff, #999999);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ffffff, #aaaaaa);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

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

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: particleFloat 15s infinite;
    will-change: transform, opacity;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Container - Loại bỏ animation glow để mượt hơn */
.container {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow:
        0 0 100px rgba(255, 255, 255, 0.1),
        inset 0 0 100px rgba(255, 255, 255, 0.02),
        0 30px 80px rgba(0, 0, 0, 0.8);
    padding: 60px 50px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    animation: containerAppear 0.6s ease-out;
    position: relative;
    z-index: 1;
}

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

/* Logo - Tối ưu animation */
.logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 40px;
}

.logo {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    animation: logoRotate 8s infinite ease-in-out;
    box-shadow:
        0 0 60px rgba(255, 255, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
    will-change: transform;
}

.logo::before {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: logoPulse 3s infinite;
}

.logo::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: logoPulse 3s infinite 0.5s;
}

@keyframes logoRotate {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Typography */
h1 {
    color: #ffffff;
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.subtitle {
    color: #cccccc;
    font-size: 19px;
    margin-bottom: 35px;
    line-height: 1.8;
    font-weight: 400;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffffff;
    padding: 25px;
    border-radius: 20px;
    margin: 30px 0;
    text-align: left;
    animation: slideIn 1s ease-out 0.3s both;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.info-box h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.info-box p {
    color: #cccccc;
    line-height: 1.9;
    font-size: 16px;
}

.info-box strong {
    color: #ffffff;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    border-radius: 20px;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.5s; }
.stat-item:nth-child(2) { animation-delay: 0.6s; }
.stat-item:nth-child(3) { animation-delay: 0.7s; }

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

.stat-item:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.stat-label {
    font-size: 14px;
    color: #aaaaaa;
    font-weight: 500;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.feature {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    border-radius: 20px;
    font-size: 15px;
    color: #cccccc;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.feature:nth-child(1) { animation-delay: 0.8s; }
.feature:nth-child(2) { animation-delay: 0.9s; }
.feature:nth-child(3) { animation-delay: 1s; }
.feature:nth-child(4) { animation-delay: 1.1s; }

.feature:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature strong {
    color: #ffffff;
    font-size: 16px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Loader */
.loader-container {
    margin: 40px 0;
}

.loader {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #ffffff;
    border-right: 5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    will-change: transform;
}

.loader::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid transparent;
    border-top: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 5px;
    left: 5px;
    animation: spin 0.8s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Redirect Text */
.redirect-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    margin-top: 25px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.countdown {
    font-size: 56px;
    font-weight: 900;
    color: #ffffff;
    margin: 20px 0;
    animation: countPulse 1s infinite;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
    will-change: transform;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* CTA Button */
.manual-link {
    display: inline-block;
    margin-top: 30px;
    padding: 18px 50px;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 900;
    font-size: 18px;
    transition: all 0.4s ease;
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.3),
        0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

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

.manual-link:hover::before {
    left: 100%;
}

.manual-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 0 60px rgba(255, 255, 255, 0.5),
        0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 50px 30px;
    }

    h1 {
        font-size: 32px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .logo {
        width: 110px;
        height: 110px;
        font-size: 55px;
    }
}