<?php
$data['title']           = "Page Not Found — Framex Engine";
$data['metaDescription'] = "The page you are looking for does not exist. Return to Framex Engine home.";
$data['bodyClass']       = "bg-gray-50 text-slate-900 dark:bg-slate-950 dark:text-slate-100 antialiased";
?>

<section class="relative isolate flex min-h-[80vh] items-center justify-center overflow-hidden">
  <!-- Background glow -->
  <div class="absolute inset-0 -z-10">
    <div class="absolute inset-0 bg-gray-50 dark:bg-slate-950"></div>
    <div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-indigo-600/10 rounded-full blur-[120px]"></div>
    <div class="absolute top-1/3 right-1/4 w-[300px] h-[300px] bg-violet-600/10 rounded-full blur-[80px]"></div>
  </div>

  <div class="mx-auto max-w-2xl px-4 text-center">
    <!-- 404 Number -->
    <div class="relative inline-block">
      <h1 class="text-9xl font-black tracking-tighter text-black/5 dark:text-white/5 select-none sm:text-[12rem]">
        404
      </h1>
      <div class="absolute inset-0 flex items-center justify-center">
        <span class="text-7xl font-black tracking-tight bg-gradient-to-b from-white to-black/20 dark:to-white/20 bg-clip-text text-transparent sm:text-9xl">
          404
        </span>
      </div>
    </div>

    <!-- Message -->
    <p class="mt-8 text-2xl font-bold tracking-tight text-slate-900 dark:text-white sm:text-3xl">
      Page not found
    </p>
    <p class="mt-4 text-lg text-slate-600 dark:text-slate-400 max-w-md mx-auto">
      The page you are looking for does not exist. It might have been moved, renamed, or maybe it never existed in the first place.
    </p>

    <!-- Actions -->
    <div class="mt-10 flex flex-col sm:flex-row items-center justify-center gap-4">
      <a href="/" class="inline-flex items-center justify-center rounded-xl bg-white px-8 py-3.5 text-base font-semibold text-slate-950 shadow-lg shadow-black/10 dark:shadow-white/10 hover:bg-slate-200 transition-all">
        <svg class="mr-2 h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
          <path stroke-linecap="round" stroke-linejoin="round" d="M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18" />
        </svg>
        Back to Home
      </a>
      <a href="/pages/features" class="inline-flex items-center justify-center rounded-xl border border-black/10 dark:border-white/10 bg-black/5 dark:bg-white/5 px-8 py-3.5 text-base font-semibold text-slate-900 dark:text-white hover:bg-black/10 dark:hover:bg-white/10 transition-all">
        Explore Features
      </a>
    </div>

    <!-- File tree hint -->
    <div class="mt-12 inline-block rounded-xl border border-black/5 dark:border-white/5 bg-black/[0.02] dark:bg-white/[0.02] px-6 py-4 text-left">
      <p class="text-xs font-mono text-slate-500 dark:text-slate-500 mb-2">Did you mean to create this file?</p>
      <code class="block font-mono text-sm text-indigo-400">
        app/views<?= htmlspecialchars($_SERVER['REQUEST_URI']) ?>.php
      </code>
    </div>
  </div>
</section>
