/* ========================================
   RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --accent-1: #6c5ce7;
    --accent-2: #a29bfe;
    --accent-3: #00cec9;
    --accent-4: #fd79a8;
    --text-primary: #e8e8f0;
    --text-secondary: #9090b0;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.3);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ========================================
   BACKGROUND EFFECTS
   ======================================== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-2);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* Glowing orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.25) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: orb-drift-1 12s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.2) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    animation: orb-drift-2 15s ease-in-out infinite;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(253, 121, 168, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orb-drift-3 10s ease-in-out infinite;
}

@keyframes orb-drift-1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, 60px); }
    66% { transform: translate(30px, -30px); }
}

@keyframes orb-drift-2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(50px, -40px); }
    66% { transform: translate(-30px, 30px); }
}

@keyframes orb-drift-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* ========================================
   MAIN CONTAINER
   ======================================== */
.container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    width: 90%;
    padding: 3rem 2rem;
    animation: fadeInUp 1s ease-out;
}

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

/* ========================================
   GEAR ICONS
   ======================================== */
.icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2.5rem;
}

.gear-icon {
    position: absolute;
    color: var(--accent-2);
    filter: drop-shadow(0 0 20px rgba(108, 92, 231, 0.4));
}

.gear-large {
    width: 80px;
    height: 80px;
    top: 0;
    left: 5px;
    animation: spin-clockwise 8s linear infinite;
}

.gear-small {
    width: 55px;
    height: 55px;
    bottom: 0;
    right: 5px;
    color: var(--accent-3);
    filter: drop-shadow(0 0 15px rgba(0, 206, 201, 0.4));
    animation: spin-counter 6s linear infinite;
}

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

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
.title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-3) 50%, var(--accent-4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease-in-out infinite;
}

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

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   PROGRESS BAR
   ======================================== */
.progress-wrapper {
    max-width: 400px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.progress-bar {
    height: 6px;
    background: var(--glass-bg);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3), var(--accent-4));
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progress-load 3s ease-out forwards, shimmer 2s linear infinite;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: -4px;
    right: 0;
    width: 30px;
    height: 14px;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.6), transparent);
    border-radius: 50%;
    animation: progress-load-glow 3s ease-out forwards;
    opacity: 0;
}

@keyframes progress-load {
    0% { width: 0%; }
    100% { width: 72%; }
}

@keyframes progress-load-glow {
    0% { left: 0%; opacity: 0; }
    20% { opacity: 1; }
    100% { left: 72%; opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-label {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ========================================
   STATUS CARDS
   ======================================== */
.status-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.status-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.status-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 92, 231, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 30px rgba(108, 92, 231, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-2);
}

.status-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, rgba(0, 206, 201, 0.15), rgba(108, 92, 231, 0.1));
    border-color: rgba(0, 206, 201, 0.2);
}

.status-card:nth-child(2) .card-icon svg {
    color: var(--accent-3);
}

.status-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.15), rgba(108, 92, 231, 0.1));
    border-color: rgba(253, 121, 168, 0.2);
}

.status-card:nth-child(3) .card-icon svg {
    color: var(--accent-4);
}

.status-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.status-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .subtitle br {
        display: none;
    }

    .status-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .status-card {
        padding: 1.25rem 1rem;
    }

    .icon-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 2rem;
    }

    .gear-large {
        width: 65px;
        height: 65px;
    }

    .gear-small {
        width: 45px;
        height: 45px;
    }

    .container {
        padding: 2rem 1.25rem;
    }

    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 200px; height: 200px; }
    .orb-3 { width: 150px; height: 150px; }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }
}

/* ========================================
   SELECTION STYLES
   ======================================== */
::selection {
    background: rgba(108, 92, 231, 0.3);
    color: white;
}

/* Scrollbar (for overflow) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 3px;
}
