<!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 | MarketingWand</title>
    <meta name="description" content="Sorry, the page you are looking for could not be found. Return to MarketingWand to create your AI-powered marketing plan.">
    <link rel="canonical" href="https://marketingwand.ai/404">
    <meta name="robots" content="noindex, nofollow">
    
    <!-- Favicon -->
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }
        
        .container {
            text-align: center;
            max-width: 600px;
            padding: 2rem;
        }
        
        .logo {
            width: 80px;
            height: 80px;
            margin: 0 auto 2rem;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: #667eea;
            font-weight: bold;
        }
        
        h1 {
            font-size: 6rem;
            font-weight: 900;
            margin-bottom: 1rem;
            text-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }
        
        h2 {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 1rem;
            opacity: 0.9;
        }
        
        p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.8;
            line-height: 1.6;
        }
        
        .btn {
            display: inline-block;
            background: white;
            color: #667eea;
            padding: 1rem 2rem;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        }
        
        .links {
            margin-top: 3rem;
        }
        
        .links a {
            color: white;
            text-decoration: none;
            margin: 0 1rem;
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }
        
        .links a:hover {
            opacity: 1;
        }
        
        @media (max-width: 768px) {
            h1 {
                font-size: 4rem;
            }
            
            h2 {
                font-size: 1.5rem;
            }
            
            p {
                font-size: 1rem;
            }
            
            .container {
                padding: 1rem;
            }
        }
    </style>
    
    <script>
        // Set proper 404 status for search engines
        if (typeof window !== 'undefined') {
            // Log 404 for analytics
            console.warn('404 Error: Page not found -', window.location.pathname);
            
            // Redirect to React app for client-side routing after 3 seconds
            setTimeout(() => {
                window.location.href = '/#404' + window.location.pathname;
            }, 3000);
        }
    </script>
</head>
<body>
    <div class="container">
        <div class="logo">MW</div>
        <h1>404</h1>
        <h2>Page Not Found</h2>
        <p>Sorry, the page you are looking for could not be found. You'll be redirected to our homepage in a few seconds, or click the button below.</p>
        
        <a href="/" class="btn">Return to Homepage</a>
        
        <div class="links">
            <a href="/marketing-plans">Marketing Plans</a>
            <a href="/blog">Blog</a>
            <a href="/pricing">Pricing</a>
        </div>
    </div>
</body>
</html>