"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FeatureBorderGlow from '@/components/sections/feature/featureBorderGlow/FeatureBorderGlow';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import HeroBillboardScroll from '@/components/sections/hero/HeroBillboardScroll';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import PricingCardEight from '@/components/sections/pricing/PricingCardEight';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import TextAbout from '@/components/sections/about/TextAbout';
import { Activity, CalendarCheck, Cloud, Code, Cog, Crown, Database, Gauge, LineChart, ListChecks, Rocket, Sparkles, Star } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="elastic-effect"
        defaultTextAnimation="reveal-blur"
        borderRadius="soft"
        contentWidth="compact"
        sizing="medium"
        background="noise"
        cardStyle="subtle-shadow"
        primaryButtonStyle="gradient"
        secondaryButtonStyle="glass"
        headingFontWeight="light"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingInline
      navItems={[
        {
          name: "Home",          id: "#hero"},
        {
          name: "Problem",          id: "#problem"},
        {
          name: "Features",          id: "#features"},
        {
          name: "Pricing",          id: "#pricing"},
        {
          name: "Progress",          id: "#metrics"},
        {
          name: "FAQ",          id: "#faq"},
        {
          name: "Testimonials",          id: "#testimonials"},
        {
          name: "Contact",          id: "#contact"},
      ]}
      brandName="Ascend"
      button={{
        text: "Get Started",        href: "#contact"}}
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroBillboardScroll
      background={{
        variant: "plain"}}
      title="Know Your Next 100 Points."
      description="Ascend uses AI-powered analytics to identify weaknesses, predict score growth, and build personalized study plans that help students improve faster."
      buttons={[
        {
          text: "Get Started",          href: "#contact"},
        {
          text: "See Demo",          href: "#metrics"},
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/businesswoman-discussing-with-disabled-woman_482257-2402.jpg"
      imageAlt="Ascend AI dashboard showing SAT analytics and score projection"
    />
  </div>

  <div id="problem" data-section="problem">
      <TextAbout
      useInvertedBackground={true}
      tag="The Problem"
      title="Stop Guessing, Start Ascending: The Smarter Way to Master the SAT."
      buttons={[
        {
          text: "Learn More",          href: "#features"},
      ]}
    />
  </div>

  <div id="features" data-section="features">
      <FeatureBorderGlow
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      features={[
        {
          icon: Sparkles,
          title: "Next 100 Points™",          description: "Ascend ranks weaknesses by score-improvement potential, showing you exactly where to focus for maximum gain."},
        {
          icon: Code,
          title: "AI Error Analysis",          description: "Upload missed questions and Ascend classifies mistakes (Concept Gap, Careless Error, Time Pressure) to identify recurring patterns."},
        {
          icon: LineChart,
          title: "Score Projection Engine",          description: "Predicts potential score growth based on your current performance, study hours, and unique weakness profile with confidence levels."},
        {
          icon: CalendarCheck,
          title: "Personalized Study Planner",          description: "Automatically generates adaptive weekly study schedules tailored to your progress and highest-impact topics."},
        {
          icon: Gauge,
          title: "Weakness Radar",          description: "Interactive visualization of mastery levels across all SAT subjects (Algebra, Reading, Grammar, etc.) for quick identification of weak areas."},
        {
          icon: Database,
          title: "Question Vault",          description: "Stores every missed question, filterable by subject, concept, difficulty, and error type for targeted review sessions."},
        {
          icon: Rocket,
          title: "Study Simulator",          description: "Adjust study time to see projected score outcomes, helping you understand the direct relationship between effort and results."},
        {
          icon: Cog,
          title: "Ascend AI Coach",          description: "An AI-powered assistant trained on your personal performance data, ready to answer questions like 'Why am I stuck at 1380?'"},
        {
          icon: Activity,
          title: "Growth Analytics Dashboard",          description: "Tracks your score progress, consistency, practice volume, and topic mastery, providing long-term visibility into your improvement trends."},
      ]}
      title="Unlock Your Full Potential with Ascend's Core Features"
      description="From pinpointing weaknesses to projecting score gains, Ascend provides the intelligent tools students need to achieve their dream SAT score."
    />
  </div>

  <div id="pricing" data-section="pricing">
      <PricingCardEight
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={true}
      plans={[
        {
          id: "basic",          badge: "Standard",          price: "$49/month",          subtitle: "Essential analytics for focused prep",          buttons: [
            {
              text: "Get Started",              href: "#contact"},
          ],
          features: [
            "Next 100 Points™ basic access",            "AI Error Analysis (5 uploads/month)",            "Personalized Study Planner",            "Weakness Radar",            "Question Vault access"],
        },
        {
          id: "pro",          badge: "Popular",          badgeIcon: Star,
          price: "$79/month",          subtitle: "Comprehensive tools for serious improvement",          buttons: [
            {
              text: "Start Pro Plan",              href: "#contact"},
          ],
          features: [
            "All Standard features",            "Next 100 Points™ advanced",            "AI Error Analysis (unlimited uploads)",            "Score Projection Engine",            "Ascend AI Coach access",            "Growth Analytics Dashboard"],
        },
        {
          id: "premium",          badge: "Ultimate",          badgeIcon: Crown,
          price: "$129/month",          subtitle: "Maximized gains with expert support",          buttons: [
            {
              text: "Go Premium",              href: "#contact"},
          ],
          features: [
            "All Pro features",            "Dedicated support channel",            "Exclusive strategy webinars",            "Priority AI analysis",            "Early access to new features",            "Personalized progress reviews"],
        },
      ]}
      title="Ready to Ascend? Choose Your Personalized Plan"
      description="Unlock strategic SAT preparation with Ascend's tailored analytics and study programs designed to maximize your score."
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardOne
      animationType="depth-3d"
      textboxLayout="default"
      gridVariant="uniform-all-items-equal"
      useInvertedBackground={false}
      metrics={[
        {
          id: "m1",          icon: Cloud,
          value: "Step 1",          title: "Upload Results",          description: "Seamlessly submit your practice test scores and missed questions to the platform."},
        {
          id: "m2",          icon: LineChart,
          value: "Step 2",          title: "AI Analysis",          description: "Our AI identifies hidden weaknesses, error patterns, and calculates your Next 100 Points™."},
        {
          id: "m3",          icon: ListChecks,
          value: "Step 3",          title: "Personalized Plan",          description: "Receive an adaptive study schedule focusing on the highest-impact areas for your score."},
        {
          id: "m4",          icon: Rocket,
          value: "Step 4",          title: "Achieve Growth",          description: "Follow your plan, track progress, and watch your SAT score ascend with strategic, data-driven prep."},
      ]}
      title="Your Journey to a Higher Score Starts Here"
      description="Ascend breaks down the path to improvement into clear, actionable steps, showing you exactly how your efforts translate into points."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqSplitText
      useInvertedBackground={true}
      faqs={[
        {
          id: "faq1",          title: "How accurate is the 'Next 100 Points™' prediction?",          content: "Our 'Next 100 Points™' feature uses a proprietary AI algorithm trained on thousands of student performance datasets. It provides a highly accurate estimate of your score-improvement potential by pinpointing weaknesses with the highest impact."},
        {
          id: "faq2",          title: "What types of test results can I upload?",          content: "You can upload results from official College Board SAT practice tests, as well as results from major third-party practice tests. Simply input your answers and missed questions, and our AI will do the rest."},
        {
          id: "faq3",          title: "How do personalized study plans adapt?",          content: "Our AI continuously analyzes your performance data. As you improve in certain areas or new weaknesses emerge, your personalized study plan automatically adjusts to ensure you're always focusing on the most effective topics."},
        {
          id: "faq4",          title: "Is Ascend suitable for all SAT score levels?",          content: "Yes, Ascend is designed to benefit students at all SAT score levels, from beginners looking for foundational improvement to high-scorers aiming for perfection. Our AI customizes recommendations to your specific needs, regardless of your starting point."},
      ]}
      sideTitle="Frequently Asked Questions"
      sideDescription="Find quick answers to common questions about Ascend, our methodology, and how we help students achieve their target SAT scores."
      faqsAnimation="slide-up"
      textPosition="left"
      showCard={true}
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardFive
      textboxLayout="default"
      useInvertedBackground={false}
      testimonials={[
        {
          id: "t1",          name: "Sarah Johnson",          date: "May 2024",          title: "Finally broke through my SAT plateau!",          quote: "Ascend's 'Next 100 Points™' feature was a game-changer. I was stuck at 1350, but it showed me exactly where to focus. Within weeks, I jumped to 1480! Highly recommend for anyone serious about their score.",          tag: "Score Jump",          avatarSrc: "http://img.b2bpic.net/free-photo/attractive-feminine-tender-young-woman-curlyhaired-chubby-smiling-silly-look-camera-blue-eyes-girlfriend-attend-first-date-liking-spend-time-together-boyfriend-have-fun-look-happy-white-background_176420-50549.jpg",          avatarAlt: "Sarah Johnson",          imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-discussing-with-disabled-woman_482257-2402.jpg",          imageAlt: "smiling female student portrait"},
        {
          id: "t2",          name: "Michael Chen",          date: "April 2024",          title: "Personalized plan made all the difference.",          quote: "I used to waste so much time studying the wrong things. Ascend's personalized study planner kept me on track and efficient. My score went from 1280 to 1420, and I couldn't be happier!",          tag: "Study Efficiency",          avatarSrc: "http://img.b2bpic.net/free-photo/man-relaxing-taking-care-himself_23-2149288098.jpg",          avatarAlt: "Michael Chen",          imageSrc: "http://img.b2bpic.net/free-photo/concentrated-man-glasses-looking-screen_1262-3742.jpg",          imageAlt: "smiling female student portrait"},
        {
          id: "t3",          name: "Emily Rodriguez",          date: "March 2024",          title: "AI Coach is like having a private tutor.",          quote: "The Ascend AI Coach answered all my 'why am I stuck' questions with data-driven insights. It's like having a super-smart tutor 24/7. My confidence, and my score, soared!",          tag: "Expert Guidance",          avatarSrc: "http://img.b2bpic.net/free-photo/flirty-young-clingy-girlfriend-redhead-girl-trying-learn-flirt-making-creepy-lovely-smile-lean-head_1258-254102.jpg",          avatarAlt: "Emily Rodriguez",          imageSrc: "http://img.b2bpic.net/free-photo/girl-playing-tablet-game-evening_23-2147833833.jpg",          imageAlt: "smiling female student portrait"},
        {
          id: "t4",          name: "David Kim",          date: "Feb 2024",          title: "Uncovered hidden weaknesses I never knew I had.",          quote: "The AI Error Analysis was mind-blowing. It showed me my mistakes weren't from concept gaps, but from rushing! Adjusting my strategy based on Ascend's insights led to a solid 100-point gain.",          tag: "Insightful Analysis",          avatarSrc: "http://img.b2bpic.net/free-photo/smiling-portrait-young-man-clenching-his-fist-standing-near-shelf_23-2148096485.jpg",          avatarAlt: "David Kim",          imageSrc: "http://img.b2bpic.net/free-photo/portrait-woman-using-smartphone-with-pop-socket-outdoors_23-2150168388.jpg",          imageAlt: "smiling female student portrait"},
        {
          id: "t5",          name: "Jessica Lee",          date: "Jan 2024",          title: "The ultimate SAT prep tool.",          quote: "Ascend is an absolute must-have. From score predictions to adaptive planning, it covers everything. My 150-point improvement got me into my dream university!",          tag: "Dream Score",          avatarSrc: "http://img.b2bpic.net/free-photo/female-student-sitting-with-books-posing-white_140725-44773.jpg",          avatarAlt: "Jessica Lee",          imageSrc: "http://img.b2bpic.net/free-photo/view-futuristic-robot-school-environment_23-2151110140.jpg",          imageAlt: "smiling female student portrait"},
      ]}
      title="Hear From Students Who Reached New Heights"
      description="Real success stories from students who transformed their SAT scores and unlocked their full academic potential with Ascend's intelligent guidance."
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactSplitForm
      useInvertedBackground={true}
      title="Ready to Supercharge Your SAT Prep?"
      description="Get started with Ascend today and discover your personalized path to a higher score. Our team is here to help you every step of the way!"
      inputs={[
        {
          name: "name",          type: "text",          placeholder: "Your Name",          required: true,
        },
        {
          name: "email",          type: "email",          placeholder: "Your Email",          required: true,
        },
      ]}
      textarea={{
        name: "message",        placeholder: "Your Message",        rows: 4,
      }}
      imageSrc="http://img.b2bpic.net/free-photo/interior-designer-working-decoration-project_23-2150334531.jpg"
      imageAlt="Student using Ascend's SAT prep app on a tablet"
      mediaAnimation="opacity"
      mediaPosition="right"
      buttonText="Get Started Now"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterMedia
      imageSrc="http://img.b2bpic.net/free-photo/detailed-structure-marble-natural-pattern-background-design_1258-77754.jpg"
      imageAlt="Abstract background for Ascend footer"
      logoText="Ascend"
      columns={[
        {
          title: "Product",          items: [
            {
              label: "Next 100 Points™",              href: "#features"},
            {
              label: "AI Error Analysis",              href: "#features"},
            {
              label: "Score Projection",              href: "#features"},
            {
              label: "Study Planner",              href: "#features"},
          ],
        },
        {
          title: "Company",          items: [
            {
              label: "About Us",              href: "#problem"},
            {
              label: "How It Works",              href: "#metrics"},
            {
              label: "Testimonials",              href: "#testimonials"},
            {
              label: "Contact Us",              href: "#contact"},
          ],
        },
        {
          title: "Legal",          items: [
            {
              label: "Privacy Policy",              href: "#"},
            {
              label: "Terms of Service",              href: "#"},
            {
              label: "Cookie Policy",              href: "#"},
          ],
        },
      ]}
      copyrightText="© 2024 Ascend. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
