"use client";

import { motion } from "framer-motion";
import DNAHeroBackground from "./components/canvas/DNAHeroBackground";
import Navbar from "./components/layout/Navbar";
import AIVoiceSoap from "./components/sections/AIVoiceSoap";
import AIDiagnosis from "./components/sections/AIDiagnosis";
import AIPrescription from "./components/sections/AIPrescription";
import { ArrowRight, Sparkles } from "lucide-react";

export default function Home() {
  return (
    <div className="relative min-h-screen">
      <DNAHeroBackground />
      <Navbar />

      <main className="relative z-10 pt-32">
        {/* Hero Section */}
        <section className="container mx-auto px-6 py-24 min-h-[80vh] flex flex-col items-center justify-center text-center">
          <motion.div
            initial={{ opacity: 0, y: 20 }}
            animate={{ opacity: 1, y: 0 }}
            transition={{ duration: 0.8 }}
            className="space-y-8 max-w-4xl"
          >
            <div className="inline-flex items-center gap-2 px-6 py-3 rounded-full glass border-primary/20 text-primary-light animate-pulse-slow">
              <Sparkles className="w-5 h-5" />
              <span className="text-sm font-bold tracking-widest uppercase">The Future of Healthcare is Here</span>
            </div>

            <h1 className="text-5xl md:text-8xl font-black tracking-tighter leading-[1.1]">
              Reimagining Life with <br />
              <span className="text-gradient">AI Precision</span>
            </h1>

            <p className="text-xl text-foreground/60 leading-relaxed max-w-2xl mx-auto">
              Empowering healthcare providers with end-to-end AI intelligence. From voice-transcribed clinical notes to predictive diagnostics and automated prescriptions.
            </p>

            <div className="flex flex-col sm:flex-row items-center justify-center gap-6 pt-8">
              <button className="w-full sm:w-auto bg-primary hover:bg-primary/80 px-10 py-5 rounded-full font-bold text-lg transition-all transform hover:scale-105 shadow-[0_0_40px_rgba(59,130,246,0.4)] flex items-center justify-center gap-3">
                Experience Skyheal
                <ArrowRight className="w-5 h-5" />
              </button>
              <button className="w-full sm:w-auto glass hover:bg-white/10 px-10 py-5 rounded-full font-bold text-lg transition-all">
                Watch Demo
              </button>
            </div>
          </motion.div>
        </section>

        {/* AI Service Sections */}
        <div className="space-y-32 pb-32">
          <AIVoiceSoap />
          <AIDiagnosis />
          <AIPrescription />
        </div>

        {/* Footer */}
        <footer className="glass border-t-0 py-16">
          <div className="container mx-auto px-6 flex flex-col md:flex-row items-center justify-between gap-8">
            <div className="flex items-center gap-2">
              <div className="w-8 h-8 rounded-lg bg-primary" />
              <span className="text-2xl font-bold tracking-tighter text-gradient">Skyheal</span>
            </div>
            <div className="flex gap-8 text-foreground/40 text-sm">
              <a href="#" className="hover:text-primary transition-colors">Privacy Policy</a>
              <a href="#" className="hover:text-primary transition-colors">Terms of Service</a>
              <a href="#" className="hover:text-primary transition-colors">Contact</a>
            </div>
            <p className="text-foreground/40 text-sm">
              © 2026 Skyheal AI. All rights reserved.
            </p>
          </div>
        </footer>
      </main>
    </div>
  );
}
