@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --background: #050608;
    --surface: #0b0e13;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #f4f7fb;
    --muted: #7d8491;
    --accent: #ef4444;
    --accent-bright: #f87171;
    --accent-glow: rgba(239, 68, 68, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 40px 20px;

    background: var(--background);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.grid {
    position: absolute;
    inset: -50%;
    opacity: 0.3;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);

    background-size: 55px 55px;
    transform: perspective(600px) rotateX(55deg) translateY(100px);
    animation: grid-drift 20s linear infinite;
}

.glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0) 70%);
    filter: blur(80px);
    animation: glow-breathe 8s ease-in-out infinite alternate;
}

.glow-one {
    top: -200px;
    left: -180px;
}

.glow-two {
    right: -200px;
    bottom: -200px;
    animation-delay: -4s;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.09) 0%, rgba(239, 68, 68, 0) 70%);
}

.container {
    position: relative;
    z-index: 2;
    width: min(620px, 100%);
    text-align: center;
    margin: auto;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 25px;
    padding: 8px 14px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);

    color: #9299a6;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: border-color 0.2s ease, background 0.2s ease;

    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.status:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);

    animation: pulse 2s ease-in-out infinite;
}

h1 {
    font-size: clamp(56px, 11vw, 108px);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -4px;
    color: #ffffff;

    animation: fade-up 0.8s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

h1 span {
    color: var(--accent);
    text-shadow: 0 0 24px var(--accent-glow);
}

.subtitle {
    margin-top: 24px;

    font-size: clamp(18px, 3.8vw, 26px);
    font-weight: 500;
    letter-spacing: -0.5px;

    color: #dce1e9;

    animation: fade-up 0.8s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.description {
    margin-top: 14px;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;

    animation: fade-up 0.8s 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.progress {
    width: min(360px, 100%);
    margin: 45px auto 0;

    animation: fade-up 0.8s 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;

    color: #747b87;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

#percentage {
    color: #c0c6d1;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 5px;

    overflow: hidden;
    border-radius: 99px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.progress-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));

    box-shadow: 0 0 14px var(--accent-glow);
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-top: 60px;

    color: #4b525e;
    font-size: 11px;
    letter-spacing: 0.8px;

    animation: fade-up 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.separator {
    color: #272b32;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.8);
    }
}

@keyframes glow-breathe {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.15);
        opacity: 1;
    }
}

@keyframes grid-drift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 55px;
    }
}

@media (max-width: 600px) {
    h1 {
        letter-spacing: -3px;
    }

    .description {
        font-size: 13px;
    }

    .progress {
        margin-top: 36px;
    }

    footer {
        margin-top: 48px;
    }
}
