{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-feature-sections-feature-accordion","type":"registry:block","title":"Feature Accordion","files":[{"path":"components/blocks/marketing/feature-sections/feature-accordion.tsx","content":"import { useState } from 'react';\nimport { Button } from '@/components/ui/button';\nimport {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger,\n} from '@/components/ui/accordion';\nimport { ArrowRight, Check, Code2, LineChart, RefreshCw, Search, Settings, ShieldCheck, Users, Wand2, Zap } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\nimport type { ComponentType, SVGProps } from 'react';\n\ntype LucideIcon = ComponentType<SVGProps<SVGSVGElement> & { size?: number | string }>;\ninterface Feature {\n  id: string;\n  title: string;\n  description: string;\n  icon: LucideIcon;\n  benefits: string[];\n  image: string;\n  imageAlt: string;\n  status: 'New' | 'Popular' | 'Coming Soon' | null;\n}\n\nconst features: Feature[] = [\n  {\n    id: 'analytics',\n    title: 'Advanced Analytics',\n    description:\n      'Gain deep insights into your data with our comprehensive analytics suite.',\n    icon: LineChart,\n    benefits: [\n      'Real-time reporting and dashboards',\n      'Custom metrics and KPIs',\n      'Data visualization tools',\n      'Export capabilities',\n      'Predictive analysis',\n    ],\n    image:\n      'https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=1200&auto=format&fit=crop',\n    imageAlt: 'Analytics dashboard with charts and graphs',\n    status: 'Popular',\n  },\n  {\n    id: 'security',\n    title: 'Enterprise Security',\n    description:\n      'Keep your data secure with our industry-leading security features.',\n    icon: ShieldCheck,\n    benefits: [\n      'End-to-end encryption',\n      'Two-factor authentication',\n      'Role-based access control',\n      'Security audit logs',\n      'Compliance with industry standards',\n    ],\n    image:\n      'https://images.unsplash.com/photo-1563013544-824ae1b704d3?q=80&w=1200&auto=format&fit=crop',\n    imageAlt: 'Security interface showing protection features',\n    status: null,\n  },\n  {\n    id: 'automation',\n    title: 'Workflow Automation',\n    description:\n      'Automate repetitive tasks and streamline your business processes.',\n    icon: RefreshCw,\n    benefits: [\n      'Visual workflow builder',\n      'Trigger-based automations',\n      'Integration with third-party services',\n      'Scheduled tasks and reminders',\n      'Custom automation rules',\n    ],\n    image:\n      'https://images.unsplash.com/photo-1563986768609-322da13575f3?q=80&w=1200&auto=format&fit=crop',\n    imageAlt: 'Automation workflow diagram',\n    status: 'New',\n  },\n  {\n    id: 'collaboration',\n    title: 'Team Collaboration',\n    description:\n      'Work together seamlessly with tools designed for modern teams.',\n    icon: Users,\n    benefits: [\n      'Real-time document editing',\n      'Team chat and messaging',\n      'Project management tools',\n      'Task assignments and tracking',\n      'Version history and control',\n    ],\n    image:\n      'https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=1200&auto=format&fit=crop',\n    imageAlt: 'Team collaborating around a table with laptops',\n    status: null,\n  },\n  {\n    id: 'ai',\n    title: 'AI Assistant',\n    description:\n      'Leverage artificial intelligence to boost productivity and gain insights.',\n    icon: Wand2,\n    benefits: [\n      'Smart content generation',\n      'Data pattern recognition',\n      'Automated recommendations',\n      'Conversational interface',\n      'Learning from your usage patterns',\n    ],\n    image:\n      'https://images.unsplash.com/photo-1620712943543-bcc4688e7485?q=80&w=1200&auto=format&fit=crop',\n    imageAlt: 'AI visualization showing machine learning capabilities',\n    status: 'Coming Soon',\n  },\n  {\n    id: 'api',\n    title: 'Developer API',\n    description: 'Build custom integrations and extend platform functionality.',\n    icon: Code2,\n    benefits: [\n      'Comprehensive documentation',\n      'RESTful API endpoints',\n      'Webhooks for real-time events',\n      'SDKs for popular languages',\n      'API request monitoring',\n    ],\n    image:\n      'https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=1200&auto=format&fit=crop',\n    imageAlt: 'Developer writing code on multiple screens',\n    status: null,\n  },\n  {\n    id: 'customization',\n    title: 'Advanced Customization',\n    description:\n      'Tailor the platform to your specific needs with extensive customization options.',\n    icon: Settings,\n    benefits: [\n      'Custom fields and attributes',\n      'Branding and white-labeling',\n      'Layout and design options',\n      'Workflow customization',\n      'Module-based architecture',\n    ],\n    image:\n      'https://images.unsplash.com/photo-1607706189992-eae578626c86?q=80&w=1200&auto=format&fit=crop',\n    imageAlt: 'Customization interface with design options',\n    status: null,\n  },\n];\n\nexport default function FeatureAccordion() {\n  const [expandedFeature, setExpandedFeature] = useState<string>('analytics');\n  const [hoveredBenefit, setHoveredBenefit] = useState<string | null>(null);\n\n  const activeFeature =\n    features.find((f) => f.id === expandedFeature) || features[0]!;\n\n  return (\n    <section className=\"container mx-auto px-4 py-24 md:px-6 2xl:max-w-[1400px]\">\n      <div className=\"mb-16 space-y-4 text-center\">\n        <h2 className=\"text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl\">\n          Comprehensive Features\n        </h2>\n        <p className=\"text-muted-foreground mx-auto max-w-[700px] md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed\">\n          Explore our powerful tools and capabilities designed to help your\n          business grow\n        </p>\n      </div>\n\n      <div className=\"grid grid-cols-1 gap-8 lg:grid-cols-5 lg:gap-12\">\n        <div className=\"lg:col-span-2\">\n          <Accordion\n            type=\"single\"\n            value={expandedFeature}\n            onValueChange={setExpandedFeature}\n            collapsible\n            className=\"w-full\"\n          >\n            {features.map((feature) => (\n              <AccordionItem\n                key={feature.id}\n                value={feature.id}\n                className={cn(\n                  'mb-3 rounded-lg border px-2',\n                  expandedFeature === feature.id\n                    ? 'border-primary shadow-sm'\n                    : 'border-border'\n                )}\n              >\n                <AccordionTrigger className=\"py-4 hover:no-underline\">\n                  <div className=\"flex items-center gap-3 text-left\">\n                    <div\n                      className={cn(\n                        'flex-shrink-0 rounded-md p-2',\n                        expandedFeature === feature.id\n                          ? 'bg-primary/10'\n                          : 'bg-muted'\n                      )}\n                    >\n                      <feature.icon\n                        className={cn(\n                          'h-5 w-5',\n                          expandedFeature === feature.id\n                            ? 'text-primary'\n                            : 'text-muted-foreground'\n                        )}\n                      />\n                    </div>\n                    <div className=\"flex-grow\">\n                      <div className=\"flex items-center gap-2\">\n                        <h3 className=\"font-medium\">{feature.title}</h3>\n                        {feature.status && (\n                          <span\n                            className={cn(\n                              'rounded-full px-2 py-0.5 text-xs',\n                              feature.status === 'New'\n                                ? 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-300'\n                                : feature.status === 'Popular'\n                                  ? 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-300'\n                                  : 'bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-300'\n                            )}\n                          >\n                            {feature.status}\n                          </span>\n                        )}\n                      </div>\n                      <p className=\"text-muted-foreground line-clamp-1 text-sm\">\n                        {feature.description}\n                      </p>\n                    </div>\n                  </div>\n                </AccordionTrigger>\n                <AccordionContent className=\"pr-4 pb-4 pl-12\">\n                  <p className=\"text-muted-foreground mb-3\">\n                    {feature.description}\n                  </p>\n                  <ul className=\"space-y-2\">\n                    {feature.benefits.map((benefit) => (\n                      <li\n                        key={benefit}\n                        className=\"flex items-start gap-2 text-sm\"\n                        onMouseEnter={() => setHoveredBenefit(benefit)}\n                        onMouseLeave={() => setHoveredBenefit(null)}\n                      >\n                        <div\n                          className={cn(\n                            'mt-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full',\n                            hoveredBenefit === benefit\n                              ? 'bg-primary text-primary-foreground'\n                              : 'bg-primary/10 text-primary'\n                          )}\n                        >\n                          <Check className=\"h-3 w-3\" />\n                        </div>\n                        <span>{benefit}</span>\n                      </li>\n                    ))}\n                  </ul>\n                </AccordionContent>\n              </AccordionItem>\n            ))}\n          </Accordion>\n\n          <div className=\"mt-6\">\n            <Button asChild size=\"lg\" className=\"w-full\">\n              <a href=\"#\">\n                Explore all features <ArrowRight className=\"ml-2 h-4 w-4\" />\n              </a>\n            </Button>\n          </div>\n        </div>\n\n        <div className=\"relative lg:col-span-3\">\n          <div className=\"sticky top-24\">\n            <div className=\"from-muted/50 to-muted rounded-2xl bg-gradient-to-br p-6 lg:p-8\">\n              <div className=\"mb-6 flex items-center justify-between\">\n                <div className=\"flex items-center gap-3\">\n                  <div className=\"bg-background rounded-full p-2\">\n                    <activeFeature.icon className=\"text-primary h-6 w-6\" />\n                  </div>\n                  <h3 className=\"text-xl font-semibold\">\n                    {activeFeature.title}\n                  </h3>\n                </div>\n                {activeFeature.status && (\n                  <span\n                    className={cn(\n                      'rounded-full px-2.5 py-0.5 text-xs',\n                      activeFeature.status === 'New'\n                        ? 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-300'\n                        : activeFeature.status === 'Popular'\n                          ? 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-300'\n                          : 'bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-300'\n                    )}\n                  >\n                    {activeFeature.status}\n                  </span>\n                )}\n              </div>\n\n              <div className=\"relative mb-6 aspect-[16/9] overflow-hidden rounded-lg\">\n                <img\n                  src={activeFeature.image}\n                  alt={activeFeature.imageAlt}\n                  className=\"object-cover\"\n                />\n              </div>\n\n              <div className=\"space-y-4\">\n                <p className=\"text-muted-foreground\">\n                  {activeFeature.description}\n                </p>\n\n                <div className=\"grid grid-cols-1 gap-3 md:grid-cols-2\">\n                  {activeFeature.benefits.map((benefit) => (\n                    <div key={benefit} className=\"flex items-start gap-2\">\n                      <div className=\"bg-primary/10 text-primary mt-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full\">\n                        <Check className=\"h-3 w-3\" />\n                      </div>\n                      <span className=\"text-sm\">{benefit}</span>\n                    </div>\n                  ))}\n                </div>\n\n                <div className=\"pt-4\">\n                  <Button variant=\"outline\" asChild>\n                    <a href=\"#\">Learn more about {activeFeature.title}</a>\n                  </Button>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n\n      <div className=\"bg-muted/50 mt-24 rounded-xl p-8 lg:p-10\">\n        <div className=\"flex flex-col justify-between gap-6 md:flex-row md:items-center\">\n          <div className=\"space-y-2\">\n            <h3 className=\"text-2xl font-bold\">\n              Ready to experience all features?\n            </h3>\n            <p className=\"text-muted-foreground\">\n              Start your free trial today. No credit card required.\n            </p>\n          </div>\n          <div className=\"flex flex-col gap-3 sm:flex-row\">\n            <Button variant=\"outline\" asChild>\n              <a href=\"#\">\n                <Search className=\"mr-2 h-4 w-4\" />\n                Schedule a demo\n              </a>\n            </Button>\n            <Button asChild>\n              <a href=\"#\">\n                <Zap className=\"mr-2 h-4 w-4\" />\n                Start free trial\n              </a>\n            </Button>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/feature-sections/feature-accordion.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"},{"path":"components/ui/accordion.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Accordion as AccordionPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\nimport { ChevronDownIcon, ChevronUpIcon } from \"lucide-react\"\n\nfunction Accordion({\n  className,\n  ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Root>) {\n  return (\n    <AccordionPrimitive.Root\n      data-slot=\"accordion\"\n      className={cn(\"flex w-full flex-col\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction AccordionItem({\n  className,\n  ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Item>) {\n  return (\n    <AccordionPrimitive.Item\n      data-slot=\"accordion-item\"\n      className={cn(\"not-last:border-b\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction AccordionTrigger({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {\n  return (\n    <AccordionPrimitive.Header className=\"flex\">\n      <AccordionPrimitive.Trigger\n        data-slot=\"accordion-trigger\"\n        className={cn(\n          \"group/accordion-trigger relative flex flex-1 items-start justify-between rounded-md border border-transparent py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:after:border-ring disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground\",\n          className\n        )}\n        {...props}\n      >\n        {children}\n        <ChevronDownIcon data-slot=\"accordion-trigger-icon\" className=\"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden\" />\n        <ChevronUpIcon data-slot=\"accordion-trigger-icon\" className=\"pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline\" />\n      </AccordionPrimitive.Trigger>\n    </AccordionPrimitive.Header>\n  )\n}\n\nfunction AccordionContent({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Content>) {\n  return (\n    <AccordionPrimitive.Content\n      data-slot=\"accordion-content\"\n      className=\"overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up\"\n      {...props}\n    >\n      <div\n        className={cn(\n          \"pt-0 pb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4\",\n          className\n        )}\n      >\n        {children}\n      </div>\n    </AccordionPrimitive.Content>\n  )\n}\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n","type":"registry:ui","target":"components/ui/accordion.tsx"}],"description":"Stacked feature panels that expand on click to reveal detail and a paired visual. Lets visitors drill into one capability at a time without crowding the page.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}