:root {
    --bg-dark: #07090e;
    --card-bg: rgba(16, 22, 36, 0.75);
    --accent-pink: #ff3b5c;
    --accent-purple: #7c3aed;
    --accent-cyan: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-glow: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    top: -150px;
    left: -150px;
    animation: floatGlow1 14s infinite alternate ease-in-out;
}

.glow-2 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    bottom: -200px;
    right: -150px;
    animation: floatGlow2 18s infinite alternate ease-in-out;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatGlow3 10s infinite alternate ease-in-out;
    opacity: 0.25;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 80px) scale(1.15); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, -100px) scale(1.1); }
}

@keyframes floatGlow3 {
    0% { transform: translate(-50%, -50%) scale(0.9); }
    100% { transform: translate(-40%, -60%) scale(1.2); }
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.card-container {
    position: relative;
    z-index: 10;
    max-width: 580px;
    width: 90%;
    padding: 3.5rem 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glow);
    border-radius: 32px;
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 59, 92, 0.1);
    border: 1px solid rgba(255, 59, 92, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff6b81;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(255, 59, 92, 0.15);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-pink);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-pink);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.4; }
}

/* 404 Graphic Area - Container Height Expanded */
.hero-graphic {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.number-404 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -3px;
    background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.25) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    animation: floatNum 4s infinite ease-in-out alternate;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
}

@keyframes floatNum {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(-1.5deg); }
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.ring-1 {
    width: 180px;
    height: 180px;
    border-top-color: var(--accent-pink);
    border-bottom-color: var(--accent-purple);
    animation: spinRing 12s linear infinite;
}

.ring-2 {
    width: 220px;
    height: 220px;
    border-left-color: var(--accent-cyan);
    animation: spinRing 20s linear infinite reverse;
    opacity: 0.5;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icon-floating {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    animation: floatIcon 3.5s infinite ease-in-out alternate;
}

.icon-floating svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-pink);
}

.icon-pos-1 {
    top: 25px;
    right: 18%;
    animation-delay: 0s;
}

.icon-pos-2 {
    bottom: 25px;
    left: 18%;
    animation-delay: -1.7s;
}

@keyframes floatIcon {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(6deg); }
}

h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

p.description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 400;
    padding: 0 1rem;
}

.card-footer {
    margin-top: 2.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.6);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.system-status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
}

@media (max-width: 480px) {
    .card-container {
        padding: 2.5rem 1.5rem;
    }
    .hero-graphic {
        height: 210px;
    }
    .ring-1 {
        width: 150px;
        height: 150px;
    }
    .ring-2 {
        width: 180px;
        height: 180px;
    }
    .number-404 {
        font-size: 5.5rem;
    }
    h2 {
        font-size: 1.2rem;
    }
}