<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - Page Not Found | Pigsty</title>
    <style>
        /* CSS Variables */
        :root {
            --color-primary: #0f4c81;
            --color-primary-dark: #0a3a64;
            --color-primary-light: #1a6bb5;
            --color-bg: #f8fafc;
            --color-surface: #ffffff;
            --color-border: #e2e8f0;
            --color-text: #1e293b;
            --color-text-secondary: #64748b;
            --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            --space-lg: 1.5rem;
            --space-xl: 2rem;
            --radius-md: 8px;
            --transition-base: 200ms ease;
        }

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

        body {
            font-family: var(--font-sans);
            background-color: var(--color-bg);
            color: var(--color-text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Header */
        .header {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--color-border);
            padding: 1rem 0;
        }

        .header-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--space-lg);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 700;
            font-size: 1.25rem;
            color: var(--color-primary);
            text-decoration: none;
        }

        .logo-icon {
            width: 28px;
            height: 28px;
        }

        /* Main Content */
        .main {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: var(--space-xl);
        }

        .error-container {
            text-align: center;
            max-width: 600px;
            position: relative;
        }

        .error-number-container {
            position: relative;
            width: 100%;
            max-width: 500px;
            margin: 0 auto 2rem;
            padding: 4rem 2rem;
        }

        .error-number {
            font-size: 8rem;
            font-weight: 800;
            color: var(--color-primary);
            text-align: center;
            line-height: 1;
            margin: 0;
        }

        .floating-question {
            position: absolute;
            font-size: 3rem;
            color: var(--color-primary);
            opacity: 0.2;
            animation: float 3s ease-in-out infinite;
            font-weight: 300;
        }

        .q1 { top: 5%; left: 10%; animation-delay: 0s; }
        .q2 { top: 10%; right: 5%; animation-delay: 0.5s; }
        .q3 { bottom: 25%; left: 5%; animation-delay: 1s; }
        .q4 { bottom: 20%; right: 10%; animation-delay: 1.5s; }
        .q5 { top: 40%; left: 0%; animation-delay: 2s; }
        .q6 { top: 45%; right: 0%; animation-delay: 2.5s; }

        @keyframes float {
            0%, 100% { transform: translateY(0px); opacity: 0.3; }
            50% { transform: translateY(-20px); opacity: 0.6; }
        }

        .error-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--color-text);
            margin-bottom: 1rem;
        }

        .error-desc {
            font-size: 1rem;
            color: var(--color-text-secondary);
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .btn-home {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.875rem 1.75rem;
            background: var(--color-primary);
            color: white;
            font-weight: 600;
            border-radius: var(--radius-md);
            text-decoration: none;
            transition: all var(--transition-base);
        }

        .btn-home:hover {
            background: var(--color-primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(15, 76, 129, 0.4);
        }

        /* Footer */
        .footer {
            background: #0a0e14;
            color: white;
            padding: 2rem 0;
            margin-top: auto;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--space-lg);
            text-align: center;
        }

        .footer-logo {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.125rem;
        }

        .footer-text {
            color: #9ca3af;
            font-size: 0.875rem;
        }

        .footer-links {
            margin-top: 1rem;
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: #9ca3af;
            text-decoration: none;
            font-size: 0.875rem;
            transition: color var(--transition-base);
        }

        .footer-links a:hover {
            color: #7ab7e0;
        }
    </style>
</head>
<body>
    <!-- Header -->
    <header class="header">
        <div class="header-inner">
            <a href="/" class="logo">
                <span class="logo-icon">
                    <svg viewBox="24 15 25 27" xmlns="http://www.w3.org/2000/svg">
                        <g fill="none" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75">
                            <path d="M31.73 28.43l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#bbb" fill-opacity=".95"/>
                            <path d="M31.73 36.74l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#de372c" fill-opacity=".85"/>
                            <path d="M38.93 32.61l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#424242" fill-opacity=".9"/>
                            <path d="M38.93 24.28l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#ffa269" fill-opacity=".9"/>
                            <path d="M31.73 20.15l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#419edb" fill-opacity=".9"/>
                            <path d="M24.52 24.28l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#2f6793" fill-opacity=".9"/>
                            <path d="M24.55 32.6l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#53ac79" fill-opacity=".9"/>
                        </g>
                    </svg>
                </span>
                <span>PIGSTY</span>
            </a>
            <a href="/" style="color: var(--color-text-secondary); text-decoration: none; font-size: 0.9375rem;">Back to Home</a>
        </div>
    </header>

    <!-- Main Content -->
    <main class="main">
        <div class="error-container">
            <div class="error-number-container">
                <!-- Floating Question Marks -->
                <div class="floating-question q1">?</div>
                <div class="floating-question q2">?</div>
                <div class="floating-question q3">?</div>
                <div class="floating-question q4">?</div>
                <div class="floating-question q5">?</div>
                <div class="floating-question q6">?</div>

                <!-- 404 Number -->
                <h1 class="error-number">404</h1>
            </div>

            <h1 class="error-title">Oops! Page Not Found</h1>
            <p class="error-desc">
                The page you're looking for seems to have wandered off.<br>
                Let's get you back on track!
            </p>
            <a href="/" class="btn-home">
                <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                    <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
                    <polyline points="9 22 9 12 15 12 15 22"/>
                </svg>
                Back to Home
            </a>
        </div>
    </main>

    <!-- Footer -->
    <footer class="footer">
        <div class="footer-content">
            <a href="/" class="footer-logo">
                <span class="logo-icon">
                    <svg viewBox="24 15 25 27" xmlns="http://www.w3.org/2000/svg">
                        <g fill="none" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75">
                            <path d="M31.73 28.43l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#bbb" fill-opacity=".95"/>
                            <path d="M31.73 36.74l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#de372c" fill-opacity=".85"/>
                            <path d="M38.93 32.61l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#424242" fill-opacity=".9"/>
                            <path d="M38.93 24.28l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#ffa269" fill-opacity=".9"/>
                            <path d="M31.73 20.15l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#419edb" fill-opacity=".9"/>
                            <path d="M24.52 24.28l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#2f6793" fill-opacity=".9"/>
                            <path d="M24.55 32.6l2.4-4.15h4.8l2.4 4.15-2.4 4.15h-4.8z" fill="#53ac79" fill-opacity=".9"/>
                        </g>
                    </svg>
                </span>
                <span>PIGSTY</span>
            </a>
            <p class="footer-text">PostgreSQL in Great Style</p>
            <div class="footer-links">
                <a href="https://pigsty.io">pigsty.io</a>
                <a href="https://pigsty.cc">pigsty.cc</a>
                <a href="https://github.com/pgsty/pigsty">GitHub</a>
            </div>
        </div>
    </footer>
</body>
</html>
