import { useEffect } from "react";
import FloatingNav from "@/components/FloatingNav";
import SEOHead from "@/components/SEOHead";
import { useSeamlessScroll } from "@/hooks/use-seamless-scroll";
import { useSEO } from "@/hooks/use-seo";
import HeroSection from "@/components/HeroSection";
import ValueLadder from "@/components/ValueLadder";
import AINativePhilosophy from "@/components/AINativePhilosophy";
import ProgressiveServices from "@/components/ProgressiveServices";
import ApplicationsHub from "@/components/ApplicationsHub";
import CaseStudiesSection from "@/components/CaseStudiesSection";
import AboutSection from "@/components/AboutSection";
import ContactSection from "@/components/ContactSection";
import ImplementationGap from "@/components/ImplementationGap";
import PlatformAndLenses from "@/components/PlatformAndLenses";
import TestimonialFeature from "@/components/TestimonialFeature";
import Footer from "@/components/Footer";
import TrustStrip from "@/components/TrustStrip";
import PerformantBackground from "@/components/PerformantBackground";
import PageMorph from "@/components/PageMorph";
import BackToTop from "@/components/BackToTop";
import { SEOKeywordOptimizer, strategicKeywordConfig } from "@/components/SEOKeywordOptimizer";
import { createFAQStructuredData, createReviewStructuredData, createOrganizationStructuredData } from "@/lib/seo-utils";

export default function Landing() {
  // Enable seamless scrolling for hash navigation
  useSeamlessScroll();
  
  // Enhanced SEO — aligned with AI-Native by Design narrative
  useSEO({
    title: "AI-Native by Design — Fourier, ContractIQ & Optic | WA Chump & Sons",
    description: "72% of UK firms have AI strategies. Only 21% have working AI in production. We close the gap. Three lenses live in production — Fourier (validated intelligence), ContractIQ (live with Beck & Pollitzer), Optic (PE-deployed). Fixed-price scope on Day 1. Working product by Day 5.",
    keywords: [
      "AI implementation gap UK", "AI-native consultancy",
      "Fourier validated intelligence engine", "Fourier Research and Study modes",
      "ContractIQ AI contract intelligence", "AI contract review automation",
      "Optic MCP agentic AI private equity", "fund-level portfolio monitoring",
      "LP reporting automation", "deal diligence AI",
      "Fast Five MVP five days fixed price", "fixed-price AI development UK",
      "agentic AI solutions UK", "AI implementation consultancy",
      "predictive analytics UK housing", "enterprise AI deployment",
      "business transformation Kent", "Tunbridge Wells"
    ],
    canonicalUrl: "https://wachump.net/",
    ogImage: "https://wachump.net/og-image.png",
  });
  // Combine all structured data schemas for comprehensive SEO coverage
  const structuredData = [
    createOrganizationStructuredData(),
    createFAQStructuredData(),
    createReviewStructuredData()
  ];

  return (
    <PageMorph>
      <SEOHead
        title="WA Chump & Sons | AI-Native by Design — Fourier, ContractIQ & Optic | Working Product by Day 5"
        description="WA Chump & Sons closes the UK AI implementation gap. Only 21% of firms with AI strategies have working AI in production — we are the ones who ship. Three lenses live: Fourier (validated intelligence engine, Research + Study modes), ContractIQ (AI contract intelligence, live with Beck & Pollitzer), and Optic (MCP & agentic AI for private equity). Fixed-price scope Day 1. Working product Day 5. £92.3M+ savings, £616M+ value optimised across 20 programmes."
        keywords="AI implementation gap UK, AI-native consultancy, Fourier validated intelligence engine, Fourier Research and Study modes, ContractIQ AI contract intelligence Beck Pollitzer, AI contract review automation, Optic MCP agentic AI private equity, fund-level portfolio monitoring, LP reporting automation, Fast Five MVP five days fixed price, fixed-price AI development UK, agentic AI solutions, AI implementation consultancy, predictive analytics UK housing, business transformation Kent"
        canonicalUrl="https://wachump.net/"
        structuredData={structuredData}
      />
      <SEOKeywordOptimizer 
        primaryKeywords={strategicKeywordConfig.homepage.primaryKeywords}
        secondaryKeywords={strategicKeywordConfig.homepage.secondaryKeywords}
        localKeywords={strategicKeywordConfig.homepage.localKeywords}
      />
      <div className="relative overflow-hidden">
        <PerformantBackground />
        <div className="relative bg-gradient-to-b from-white/80 via-gray-50/70 to-gray-100/80 backdrop-blur-sm dark:bg-none dark:from-transparent dark:via-transparent dark:to-transparent dark:backdrop-blur-0">
          <FloatingNav />
          <HeroSection />
          <TrustStrip />
          <ImplementationGap />
          <PlatformAndLenses />
          <TestimonialFeature />
          <AINativePhilosophy />
          <ProgressiveServices />
          <ValueLadder />
          <ApplicationsHub />
          <CaseStudiesSection />
          <AboutSection />
          <ContactSection />
          <Footer />
        </div>
        <BackToTop />
      </div>
    </PageMorph>
  );
}
