@font-face {
    font-family: 'Prompt';
    src: url('/assets/font/google/Prompt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Prompt';
    src: url('/assets/font/google/Prompt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Prompt';
    src: url('/assets/font/google/Prompt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Prompt';
    src: url('/assets/font/google/Prompt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    color-scheme: dark;
    --bg-0: #07110d;
    --bg-1: #0c1712;
    --bg-2: #11231b;
    --panel: rgba(8, 17, 14, 0.76);
    --panel-border: rgba(173, 221, 197, 0.16);
    --text-main: #edf6f1;
    --text-soft: rgba(237, 246, 241, 0.76);
    --text-muted: rgba(237, 246, 241, 0.6);
    --green: #4caf7f;
    --green-soft: #95dfb9;
    --green-deep: #0f5132;
    --accent: #b6c6bc;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --pointer-x: 50%;
    --pointer-y: 36%;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: 'Prompt', sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(76, 175, 127, 0.18), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(181, 198, 188, 0.08), transparent 24%),
        linear-gradient(145deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-2) 100%);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
}

body.is-loaded .maintenance-card {
    animation: riseIn 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-loaded .logo-frame {
    animation: logoFloat 7s ease-in-out infinite;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(150, 223, 185, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%, rgba(0, 0, 0, 0.12));
    mix-blend-mode: screen;
    opacity: 0.85;
}

.maintenance-shell {
    position: relative;
    min-height: 100dvh;
    display: grid;
    justify-items: center;
    align-content: start;
    padding: 32px 18px;
}

.background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.background-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 90px 90px;
    mask-image: radial-gradient(circle at center, black 22%, transparent 78%);
    opacity: 0.18;
}

.background-orb {
    width: 34vw;
    height: 34vw;
    min-width: 260px;
    min-height: 260px;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.42;
    animation: drift 18s ease-in-out infinite;
}

.orb-one {
    top: -8vh;
    left: -7vw;
    background: radial-gradient(circle, rgba(76, 175, 127, 0.36) 0%, rgba(76, 175, 127, 0.04) 68%, transparent 100%);
}

.orb-two {
    right: -8vw;
    top: 12vh;
    animation-duration: 24s;
    background: radial-gradient(circle, rgba(181, 198, 188, 0.22) 0%, rgba(181, 198, 188, 0.03) 68%, transparent 100%);
}

.orb-three {
    left: 22vw;
    bottom: -16vh;
    animation-duration: 21s;
    background: radial-gradient(circle, rgba(15, 81, 50, 0.4) 0%, rgba(15, 81, 50, 0.05) 70%, transparent 100%);
}

.maintenance-card {
    position: relative;
    width: min(1120px, 100%);
    padding: 32px 32px 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(13, 27, 20, 0.84), rgba(7, 17, 13, 0.9));
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(76, 175, 127, 0.12), transparent 24%),
        radial-gradient(circle at 90% 10%, rgba(181, 198, 188, 0.08), transparent 18%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

.card-header,
.brand-row,
.progress-panel,
.info-grid,
.support-box,
.footer {
    position: relative;
    z-index: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green-soft);
    box-shadow: 0 0 0 0 rgba(150, 223, 185, 0.4);
    animation: pulse 1.7s infinite;
}

.status-time {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.brand-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.logo-frame {
    width: 180px;
    aspect-ratio: 1;
    border-radius: 30px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 42%),
        linear-gradient(145deg, rgba(76, 175, 127, 0.16), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(181, 198, 188, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.28);
}

.logo {
    display: block;
    width: min(118px, 70%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green-soft);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.brand-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.lead {
    margin: 18px 0 0;
    max-width: 760px;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.85;
}

.progress-panel {
    margin-top: 28px;
    padding: 22px 22px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.progress-value {
    color: var(--green-soft);
    font-weight: 600;
}

.progress-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 72%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green-deep), var(--green), var(--green-soft));
    box-shadow: 0 0 24px rgba(76, 175, 127, 0.4);
    animation: shimmer 2.8s linear infinite;
    background-size: 180% 100%;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.info-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(150, 223, 185, 0.24);
    background: rgba(255, 255, 255, 0.06);
}

.info-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 16px;
    background: rgba(76, 175, 127, 0.14);
    color: var(--green-soft);
    font-size: 1.2rem;
}

.info-card h2 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.info-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.support-box {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.2), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(150, 223, 185, 0.12);
}

.support-title {
    margin: 0 0 6px;
    font-weight: 600;
}

.support-text {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.support-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--green-soft);
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer {
    margin-top: 28px;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.93rem;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    33% {
        transform: translate3d(24px, -18px, 0) scale(1.03);
    }
    66% {
        transform: translate3d(-18px, 16px, 0) scale(0.98);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(150, 223, 185, 0.45);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(150, 223, 185, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(150, 223, 185, 0);
    }
}

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

@media (max-width: 920px) {
    .maintenance-shell {
        padding: 20px 14px;
    }

    .maintenance-card {
        padding: 24px 24px 36px;
    }

    .brand-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .brand-copy h1 {
        max-width: 18ch;
        margin-inline: auto;
    }

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

    .support-box,
    .footer,
    .card-header,
    .progress-label {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-badge {
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .maintenance-card {
        padding: 18px 18px 30px;
        border-radius: 24px;
    }

    .logo-frame {
        width: 156px;
    }

    .brand-copy h1 {
        font-size: clamp(1.7rem, 9vw, 2.5rem);
    }

    .lead,
    .support-text,
    .info-card p {
        line-height: 1.72;
    }

    .status-pill,
    .status-time,
    .progress-label,
    .footer,
    .support-badge {
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    body::before {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
    }
}
