import LazyChatHiroFlowIllustration from "@/components/animation/visual-flow/LazyChatHiroFlowIllustration";
import Heading from "@/components/shared/Heading";
import FlowCard, { type FlowCardItem } from "./FlowCard";

const flowCards: FlowCardItem[] = [
  {
    title: "Drag-and-drop conversation flows",
    description:
      "Connect triggers, messages, questions, conditions, AI actions and handoff steps visually.",
    background: "#FFF0E2",
    iconBackground: "#FFDBB9",
    iconColor: "#FF7100",
  },
  {
    title: "Blend rules with ChatHiro",
    description:
      "Use deterministic flows where you need control and AI-generated answers where flexibility matters.",
    background: "#EEEAFF",
    iconBackground: "#D8CFFF",
    iconColor: "var(--brand-deep)",
  },
  {
    title: "Preview before you publish",
    description:
      "Test every step in a live chat preview and publish changes when the experience feels right.",
    background: "#E8FFF1",
    iconBackground: "#C2FFDA",
    iconColor: "#009D34",
  },
];

const Visualflow = () => {
  return (
    <section className="container overflow-x-clip py-12 text-center sm:py-16 md:py-24 lg:py-30 2xl:overflow-x-visible">
      <Heading
        title="Build powerful chatbots with a simple visual flow."
        description="Design customer journeys, qualify leads, answer FAQs, collect details and hand conversations to your team without writing code."
      />
      <div className="mt-8 min-w-0 sm:mt-12 md:mt-14">
        <LazyChatHiroFlowIllustration />
      </div>
      <FlowCard items={flowCards} />
    </section>
  );
};

export default Visualflow;
