:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Dynamic Animated Background */
.background-animation {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15), transparent 50%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

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

/* Container & Glassmorphism Card */
.container {
    position: relative;
    z-index: 1;
    padding: 20px;
    width: 100%;
    max-width: 600px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeUp 1s ease-out;
}

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

/* Animated Icon */
.icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrench-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    z-index: 2;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .5;
        transform: scale(1.3);
    }
}

/* Typography */
.title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.title strong {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Animated Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 32px;
}

.progress-bar {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    animation: load 2s ease-in-out infinite alternate;
}

@keyframes load {
    0% { width: 10%; }
    100% { width: 90%; }
}

/* Footer */
.footer-text {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .glass-card {
        padding: 32px 24px;
    }
    .title {
        font-size: 20px;
    }
    .description {
        font-size: 14px;
    }
}
