@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(232, 168, 56, 0.6);
    border-radius: 50px;
    color: #e8a838;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-bottom: 2.5rem;
    animation: fadeSlideDown 0.8s ease forwards;
    opacity: 0;
}

.icon-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 2rem;
    animation: fadeSlideDown 0.8s ease 0.2s forwards;
    opacity: 0;
}

.gear {
    position: absolute;
    font-size: 3.5rem;
    color: rgba(232, 168, 56, 0.8);
    animation: spin 4s linear infinite;
}

.gear-1 {
    font-size: 5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 3s;
}

.gear-2 {
    font-size: 3rem;
    top: 0;
    right: 0;
    animation-duration: 4s;
    animation-direction: reverse;
}

.gear-3 {
    font-size: 2.5rem;
    bottom: 10px;
    left: 0;
    animation-duration: 5s;
}

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

.gear-2 {
    animation-name: spin2;
}

.gear-3 {
    animation-name: spin3;
}

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

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

.title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    animation: fadeSlideUp 0.8s ease 0.4s forwards;
    opacity: 0;
    background: linear-gradient(135deg, #e8a838 0%, #f5d78e 50%, #e8a838 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideUp 0.8s ease 0.4s forwards, shimmer 3s linear infinite;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    margin-bottom: 3rem;
    animation: fadeSlideUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.highlight {
    color: #e8a838;
    font-weight: 700;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.progress-bar {
    width: min(300px, 80vw);
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    animation: fadeSlideUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #e8a838, #f5d78e);
    border-radius: 4px;
    animation: loading 2.5s ease-in-out infinite;
}

.progress-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 1rem;
    animation: fadeSlideUp 0.8s ease 0.9s forwards, blink 1.5s step-end infinite;
    opacity: 0;
}

.footer-text {
    position: absolute;
    bottom: 2rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    animation: fadeSlideUp 0.8s ease 1.2s forwards;
    opacity: 0;
}

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

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

@keyframes shimmer {
    to { background-position: 200% center; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes loading {
    0% { width: 0; margin-left: 0; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 0; margin-left: 100%; }
}

@keyframes blink {
    50% { opacity: 0; }
}
