:root {
    --bg: #0b0f1a;
    --surface: rgba(255,255,255,0.05);
    --text: #e6edf7;
    --text-secondary: #8b98b3;
    --accent: #4f8cff;
}

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

body {
    font-family: "Outfit", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
}

/* === GRID === */
.grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* === GLOW === */
.glow {
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(79,140,255,0.25), transparent 70%);
    filter: blur(120px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* === PARTICLES === */
.particles span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    opacity: 0.5;
    animation: float linear infinite;
}

@keyframes float {
    from { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 0.5; }
    to { transform: translateY(-10vh); opacity: 0; }
}

/* === WRAPPER === */
.wrapper {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: grid;
    place-items: center;
    perspective: 1200px;
}

/* === CARD === */
.card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 520px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.08);
    transform-style: preserve-3d;
    box-shadow: 0 20px 80px rgba(0,0,0,0.4);
    animation: fadeIn 0.8s ease-out;
}

/* === 404 СТИЛЬ === */
.code {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg,#4f8cff,#9f7aea,#4f8cff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientMove 2s linear infinite;
}

/* свечение */
.code::after {
    content: "404";
    position: absolute;
    inset: 0;
    filter: blur(20px);
    opacity: 0.4;
    background: linear-gradient(90deg,#4f8cff,#9f7aea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: -1;
}

/* лёгкий tech-эффект */
.code::before {
    content: "404";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    transform: translate(2px,2px);
}

/* текст */
h1 { margin-top: 1rem; }

p {
    margin: 1rem 0 2rem;
    color: var(--text-secondary);
}

/* === BUTTON === */
.button {
    display: inline-block;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(90deg,#4f8cff,#7aa2ff);
    color: white;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(79,140,255,0.25);
}

/* hover эффект */
.button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(79,140,255,0.45);
}

/* === ANIMATIONS === */
@keyframes gradientMove {
    to { background-position: 200% center; }
}

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