import StatsSection from "./components/StatsSection";

export default function Page() {
  return (
    <>
      {/* Hero Section */}
      <div className="relative isolate overflow-hidden bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900">
        {/* Background pattern */}
        <svg
          className="absolute inset-0 -z-10 h-full w-full stroke-white/10 [mask-image:radial-gradient(100%_100%_at_top_right,white,transparent)]"
          aria-hidden="true"
        >
          <defs>
            <pattern
              id="hero-pattern"
              width={200}
              height={200}
              x="50%"
              y={-1}
              patternUnits="userSpaceOnUse"
            >
              <path d="m100 200V.5M.5 .5H200" fill="none" />
            </pattern>
          </defs>
          <rect
            width="100%"
            height="100%"
            strokeWidth={0}
            fill="url(#hero-pattern)"
          />
        </svg>

        <div className="mx-auto max-w-7xl px-6 py-24 sm:py-32 lg:px-8 lg:py-40">
          <div className="mx-auto max-w-2xl text-center">
            <h1 className="text-4xl font-bold tracking-tight text-white sm:text-6xl">
              Watch Finished{" "}
              <span className="bg-gradient-to-r from-indigo-400 to-purple-400 bg-clip-text text-transparent">
                Turbo
              </span>
            </h1>
            <p className="mt-6 text-lg leading-8 text-gray-300">
              A powerful file processing system that automatically monitors
              directories, processes files through configurable pipelines, and
              manages your media library with intelligent queuing and batch
              operations.
            </p>
            <div className="mt-10 flex items-center justify-center gap-x-6">
              <a
                href="/files"
                className="rounded-md bg-indigo-600 px-6 py-3 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 transition-colors duration-200"
              >
                View Files
              </a>
              <a
                href="/tasks"
                className="rounded-md bg-white/10 px-6 py-3 text-sm font-semibold text-white shadow-sm hover:bg-white/20 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white/20 transition-colors duration-200"
              >
                View Tasks
              </a>
              <a
                href="/settings"
                className="text-sm font-semibold leading-6 text-gray-300 hover:text-white transition-colors duration-200"
              >
                Configure Settings <span aria-hidden="true">→</span>
              </a>
            </div>
          </div>

          {/* Stats Section within Hero */}
          <div className="mx-auto mt-20 max-w-7xl">
            <StatsSection />
          </div>
        </div>
      </div>

      {/* Main Content */}
      <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
        {/* No additional content needed - everything is in the hero section */}
      </div>
    </>
  );
}
