:root {
    --primary: #9b5de5;
    --primary-glow: rgba(155, 93, 229, 0.4);
    --neon-text: #f15bb5;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

body::before, body::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    opacity: 0.25;
}
body::before {
    background: #9b5de5;
    top: 15%;
    left: 15%;
    animation: float 14s infinite alternate ease-in-out;
}
body::after {
    background: #00f0ff;
    bottom: 15%;
    right: 15%;
    animation: float 14s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.15); }
}

.container {
    position: relative;
    z-index: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 2.5rem;
    border-radius: 28px;
    width: 95%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.status-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.15) 0%, rgba(0, 240, 255, 0.05) 100%);
    padding: 1.2rem 2rem;
    border-radius: 50px;
    margin-bottom: 2.5rem;
    border: 2px solid rgba(155, 93, 229, 0.4);
    box-shadow: 0 0 30px rgba(155, 93, 229, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.05);
    width: 100%;
}

.nginx-logo-icon {
    width: 28px;
    height: 28px;
    border: 2px solid var(--primary);
    transform: rotate(45deg);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--primary-glow);
    animation: logoPulse 2s infinite ease-in-out;
}

.nginx-logo-icon span {
    transform: rotate(-45deg);
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary-glow);
}

.status-text {
    color: var(--neon-text);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(241, 91, 181, 0.4);
}

@keyframes logoPulse {
    0% { transform: rotate(45deg) scale(0.95); }
    50% { transform: rotate(45deg) scale(1.1); filter: drop-shadow(0 0 8px var(--primary-glow)); }
    100% { transform: rotate(45deg) scale(0.95); }
}

.animation-space {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
}

.radar-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(0, 240, 255, 0.2);
    border-radius: 50%;
    animation: rotateRadar 10s linear infinite;
}

.radar-circle::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff;
}

.pulse-wave {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: waveExpand 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    opacity: 0;
}

.hourglass-3d-container {
    position: relative;
    width: 40px;
    height: 70px;
    z-index: 5;
    transform-style: preserve-3d;
    animation: hourglassFlip3D 4s ease-in-out infinite;
}

.hg-cap {
    position: absolute;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #f8fafc, #94a3b8, #f8fafc);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}
.hg-top-cap { top: 0; }
.hg-bottom-cap { bottom: 0; }

.hg-glass-top {
    position: absolute;
    top: 4px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 31px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px 4px 0 0;
}

.hg-glass-bottom {
    position: absolute;
    bottom: 4px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 31px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 4px 4px;
}

.hg-sand-stream {
    position: absolute;
    top: 35px;
    left: 19px;
    width: 2px;
    height: 31px;
    background: linear-gradient(to bottom, var(--primary), var(--neon-text));
    box-shadow: 0 0 8px var(--neon-text);
    animation: streamFlow 4s infinite linear;
}

@keyframes hourglassFlip3D {
    0% { transform: rotateY(0deg) rotateZ(0deg) scale(1); }
    40% { transform: rotateY(180deg) rotateZ(0deg) scale(1.1); }
    50% { transform: rotateY(180deg) rotateZ(180deg) scale(1.1); filter: drop-shadow(0 0 20px var(--primary-glow)); }
    90% { transform: rotateY(360deg) rotateZ(180deg) scale(1); }
    100% { transform: rotateY(360deg) rotateZ(360deg) scale(1); }
}

@keyframes streamFlow {
    0%, 45% { opacity: 1; transform: scaleY(1); }
    50%, 100% { opacity: 0; transform: scaleY(0); }
}

@keyframes rotateRadar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes waveExpand {
    0% { transform: scale(0.4); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; filter: blur(3px); }
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
    letter-spacing: -0.5px;
}

p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.links {
    width: 100%;
}

.btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #7b2cbf 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 93, 229, 0.5);
}

.footer {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.4);
}
