/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Financial Color Palette */
    --primary-green: #00c853;
    --dark-green: #00a843;
    --light-green: #69f0ae;
    --accent-gold: #ffd700;
    --dark-bg: #0f1419;
    --darker-bg: #0a0d11;
    --card-bg: #1a1f26;
    --text-primary: #ffffff;
    --text-secondary: #a0a8b0;
    --border-color: rgba(0, 200, 83, 0.2);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Transitions */
    --transition-normal: 0.3s ease;
}

body {
    font-family: var(--font-secondary);
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== BACKGROUND PATTERN ===== */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 200, 83, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 83, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.background-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(0, 200, 83, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
}

/* ===== MAIN CONTAINER ===== */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

/* ===== ICON ===== */
.icon-container {
    margin-bottom: var(--spacing-xl);
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.icon-circle {
    width: 140px;
    height: 140px;
    background: var(--card-bg);
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 0 30px rgba(0, 200, 83, 0.2),
        inset 0 0 20px rgba(0, 200, 83, 0.05);
    animation: subtlePulse 4s ease-in-out infinite;
}

@keyframes subtlePulse {

    0%,
    100% {
        box-shadow:
            0 0 30px rgba(0, 200, 83, 0.2),
            inset 0 0 20px rgba(0, 200, 83, 0.05);
    }

    50% {
        box-shadow:
            0 0 40px rgba(0, 200, 83, 0.3),
            inset 0 0 25px rgba(0, 200, 83, 0.08);
    }
}

.maintenance-icon {
    width: 70px;
    height: 70px;
    color: var(--primary-green);
}

/* Clock hands animations - 30x faster */
.hour-hand {
    transform-origin: 50px 50px;
    animation: rotateHourHand 120s linear infinite;
}

.minute-hand {
    transform-origin: 50px 50px;
    animation: rotateMinuteHand 10s linear infinite;
}

@keyframes rotateHourHand {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateMinuteHand {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== CONTENT ===== */
.content {
    text-align: center;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    margin: 0 auto var(--spacing-lg);
    border-radius: 2px;
    animation: gentleGlow 3s ease-in-out infinite;
}

@keyframes gentleGlow {

    0%,
    100% {
        opacity: 0.7;
        box-shadow: 0 0 8px rgba(0, 200, 83, 0.2);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 200, 83, 0.4);
    }
}

.subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
    animation: fadeInScale 0.6s ease-out 0.3s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInSlide 0.8s ease-out 0.5s both;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STATUS MESSAGE ===== */
.status-message {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
    animation: slideUp 0.8s ease-out 0.7s both;
    cursor: pointer;
}

.status-message:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary-green);
    box-shadow: 0 8px 35px rgba(0, 200, 83, 0.25);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-green);
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }

    .container {
        padding: var(--spacing-md);
    }

    .icon-circle {
        width: 120px;
        height: 120px;
    }

    .maintenance-icon {
        width: 60px;
        height: 60px;
    }

    .divider {
        width: 60px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .icon-circle {
        width: 100px;
        height: 100px;
    }

    .maintenance-icon {
        width: 50px;
        height: 50px;
    }

    .status-message {
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-md);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.hour-hand,
.minute-hand {
    will-change: transform;
}