{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-hero-sections-animated-features-hero","type":"registry:block","title":"Animated Features Hero","files":[{"path":"components/blocks/marketing/hero-sections/animated-features-hero.tsx","content":"import { useState } from 'react';\n\nimport { Button } from '@/components/ui/button';\nimport { ArrowRight } from 'lucide-react';\n\nexport default function AnimatedFeaturesHero() {\n  const [activeFeature, setActiveFeature] = useState(0);\n\n  const features = [\n    {\n      title: 'Powerful Analytics',\n      description:\n        'Gain deep insights into user behavior and business metrics with our advanced analytics dashboard.',\n      icon: (\n        <svg\n          xmlns=\"http://www.w3.org/2000/svg\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          stroke=\"currentColor\"\n          strokeWidth=\"2\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          className=\"h-6 w-6\"\n        >\n          <path d=\"M3 3v18h18\" />\n          <path d=\"m19 9-5 5-4-4-3 3\" />\n        </svg>\n      ),\n    },\n    {\n      title: 'Team Collaboration',\n      description:\n        'Work seamlessly with your team in real-time with collaborative editing and shared workspaces.',\n      icon: (\n        <svg\n          xmlns=\"http://www.w3.org/2000/svg\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          stroke=\"currentColor\"\n          strokeWidth=\"2\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          className=\"h-6 w-6\"\n        >\n          <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\" />\n          <circle cx=\"9\" cy=\"7\" r=\"4\" />\n          <path d=\"M23 21v-2a4 4 0 0 0-3-3.87\" />\n          <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n        </svg>\n      ),\n    },\n    {\n      title: 'Smart Automation',\n      description:\n        'Automate repetitive tasks and workflows to save time and reduce errors in your processes.',\n      icon: (\n        <svg\n          xmlns=\"http://www.w3.org/2000/svg\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          stroke=\"currentColor\"\n          strokeWidth=\"2\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          className=\"h-6 w-6\"\n        >\n          <path d=\"M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14\" />\n          <path d=\"M2 20h20\" />\n          <path d=\"M14 12v.01\" />\n        </svg>\n      ),\n    },\n    {\n      title: 'Enterprise Security',\n      description:\n        'Rest easy with enterprise-grade security features including encryption, SSO, and compliance tools.',\n      icon: (\n        <svg\n          xmlns=\"http://www.w3.org/2000/svg\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          stroke=\"currentColor\"\n          strokeWidth=\"2\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          className=\"h-6 w-6\"\n        >\n          <rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\" />\n          <path d=\"M7 11V7a5 5 0 0 1 10 0v4\" />\n        </svg>\n      ),\n    },\n  ];\n\n  return (\n    <div className=\"from-background via-background to-muted/20 relative overflow-hidden bg-gradient-to-b\">\n      <div className=\"container mx-auto px-4 py-24 md:px-6 md:py-32 2xl:max-w-[1400px]\">\n        <div className=\"mx-auto mb-10 max-w-3xl text-center md:mb-16\">\n          <h1 className=\"text-4xl font-bold tracking-tight sm:text-5xl md:text-6xl\">\n            Your platform for{' '}\n            <span className=\"text-primary relative inline-flex\">\n              <span className=\"animate-text-gradient from-primary to-primary via-muted-foreground bg-gradient-to-r bg-[200%_auto] bg-clip-text text-transparent\">\n                innovation\n              </span>\n            </span>\n          </h1>\n          <p className=\"text-muted-foreground mt-6 text-xl\">\n            A powerful, all-in-one platform that helps teams build better\n            products, faster.\n          </p>\n          <div className=\"mt-10 flex flex-col justify-center gap-4 sm:flex-row\">\n            <Button size=\"lg\" asChild>\n              <a href=\"#\">\n                Get Started\n                <ArrowRight className=\"ml-2 h-4 w-4\" />\n              </a>\n            </Button>\n            <Button size=\"lg\" variant=\"outline\" asChild>\n              <a href=\"#\">Book a Demo</a>\n            </Button>\n          </div>\n        </div>\n\n        {/* Animated features showcase */}\n        <div className=\"grid items-center gap-12 lg:grid-cols-[1fr_500px]\">\n          {/* Left side animated tabs */}\n          <div className=\"order-2 lg:order-1\">\n            <div className=\"bg-card rounded-xl border p-1\">\n              <div className=\"grid grid-cols-4 gap-1\">\n                {features.map((feature, index) => (\n                  <button\n                    key={index}\n                    onClick={() => setActiveFeature(index)}\n                    className={`hover:bg-muted flex flex-col items-center justify-center rounded-lg p-3 text-center transition-colors ${\n                      activeFeature === index\n                        ? 'bg-primary text-primary-foreground hover:bg-primary'\n                        : ''\n                    }`}\n                  >\n                    <div className=\"mb-2\">{feature.icon}</div>\n                    <div className=\"text-xs font-medium\">\n                      {feature.title.split(' ')[0]}\n                    </div>\n                  </button>\n                ))}\n              </div>\n            </div>\n\n            <div className=\"mt-8 rounded-xl border p-6\">\n              <div className=\"flex items-center gap-4\">\n                <div\n                  className={`rounded-full p-3 ${\n                    activeFeature === 0\n                      ? 'bg-blue-100 text-blue-600 dark:bg-blue-950 dark:text-blue-400'\n                      : activeFeature === 1\n                        ? 'bg-purple-100 text-purple-600 dark:bg-purple-950 dark:text-purple-400'\n                        : activeFeature === 2\n                          ? 'bg-green-100 text-green-600 dark:bg-green-950 dark:text-green-400'\n                          : 'bg-amber-100 text-amber-600 dark:bg-amber-950 dark:text-amber-400'\n                  }`}\n                >\n                  {features[activeFeature]!.icon}\n                </div>\n                <div>\n                  <h3 className=\"font-medium\">\n                    {features[activeFeature]!.title}\n                  </h3>\n                  <p className=\"text-muted-foreground text-sm\">\n                    {features[activeFeature]!.description}\n                  </p>\n                </div>\n              </div>\n\n              <div className=\"mt-6 space-y-4\">\n                <div className=\"flex items-center gap-2\">\n                  <svg\n                    xmlns=\"http://www.w3.org/2000/svg\"\n                    width=\"24\"\n                    height=\"24\"\n                    viewBox=\"0 0 24 24\"\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"2\"\n                    strokeLinecap=\"round\"\n                    strokeLinejoin=\"round\"\n                    className=\"text-primary h-5 w-5\"\n                  >\n                    <polyline points=\"20 6 9 17 4 12\" />\n                  </svg>\n                  <span className=\"text-sm\">\n                    {activeFeature === 0\n                      ? 'Real-time data visualization'\n                      : activeFeature === 1\n                        ? 'Real-time commenting and feedback'\n                        : activeFeature === 2\n                          ? 'Customizable workflow automation'\n                          : 'Role-based access controls'}\n                  </span>\n                </div>\n                <div className=\"flex items-center gap-2\">\n                  <svg\n                    xmlns=\"http://www.w3.org/2000/svg\"\n                    width=\"24\"\n                    height=\"24\"\n                    viewBox=\"0 0 24 24\"\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"2\"\n                    strokeLinecap=\"round\"\n                    strokeLinejoin=\"round\"\n                    className=\"text-primary h-5 w-5\"\n                  >\n                    <polyline points=\"20 6 9 17 4 12\" />\n                  </svg>\n                  <span className=\"text-sm\">\n                    {activeFeature === 0\n                      ? 'Custom reports and dashboards'\n                      : activeFeature === 1\n                        ? 'Shared workspaces and permissions'\n                        : activeFeature === 2\n                          ? 'AI-powered suggestions'\n                          : 'Data encryption at rest and in transit'}\n                  </span>\n                </div>\n                <div className=\"flex items-center gap-2\">\n                  <svg\n                    xmlns=\"http://www.w3.org/2000/svg\"\n                    width=\"24\"\n                    height=\"24\"\n                    viewBox=\"0 0 24 24\"\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"2\"\n                    strokeLinecap=\"round\"\n                    strokeLinejoin=\"round\"\n                    className=\"text-primary h-5 w-5\"\n                  >\n                    <polyline points=\"20 6 9 17 4 12\" />\n                  </svg>\n                  <span className=\"text-sm\">\n                    {activeFeature === 0\n                      ? 'Advanced filtering and segmentation'\n                      : activeFeature === 1\n                        ? 'Version history and comparison'\n                        : activeFeature === 2\n                          ? 'Scheduled tasks and triggers'\n                          : 'Compliance with GDPR, HIPAA, SOC 2'}\n                  </span>\n                </div>\n              </div>\n\n              <div className=\"mt-6 border-t pt-6\">\n                <Button variant=\"ghost\" size=\"sm\" className=\"gap-1\" asChild>\n                  <a href=\"#\">\n                    Learn more about{' '}\n                    {features[activeFeature]!.title.toLowerCase()}\n                    <ArrowRight className=\"h-3 w-3\" />\n                  </a>\n                </Button>\n              </div>\n            </div>\n          </div>\n\n          {/* Right side animated illustration */}\n          <div className=\"order-1 flex justify-center lg:order-2\">\n            <div className=\"relative aspect-square w-full max-w-md\">\n              {/* Animated illustration based on active feature */}\n              <div\n                className={`absolute inset-0 transition-opacity duration-500 ${\n                  activeFeature === 0 ? 'opacity-100' : 'opacity-0'\n                }`}\n              >\n                <div className=\"flex h-full w-full items-center justify-center rounded-xl border bg-gradient-to-br from-blue-50 to-blue-100 p-8 dark:from-blue-950/30 dark:to-blue-900/20\">\n                  <svg\n                    xmlns=\"http://www.w3.org/2000/svg\"\n                    width=\"240\"\n                    height=\"240\"\n                    viewBox=\"0 0 24 24\"\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"1\"\n                    strokeLinecap=\"round\"\n                    strokeLinejoin=\"round\"\n                    className=\"text-blue-500\"\n                  >\n                    <rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" />\n                    <path d=\"M3 9h18\" />\n                    <path d=\"M3 15h18\" />\n                    <path d=\"M9 3v18\" />\n                    <path d=\"M15 3v18\" />\n                  </svg>\n                </div>\n              </div>\n\n              <div\n                className={`absolute inset-0 transition-opacity duration-500 ${\n                  activeFeature === 1 ? 'opacity-100' : 'opacity-0'\n                }`}\n              >\n                <div className=\"flex h-full w-full items-center justify-center rounded-xl border bg-gradient-to-br from-purple-50 to-purple-100 p-8 dark:from-purple-950/30 dark:to-purple-900/20\">\n                  <svg\n                    xmlns=\"http://www.w3.org/2000/svg\"\n                    width=\"240\"\n                    height=\"240\"\n                    viewBox=\"0 0 24 24\"\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"1\"\n                    strokeLinecap=\"round\"\n                    strokeLinejoin=\"round\"\n                    className=\"text-purple-500\"\n                  >\n                    <path d=\"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9\" />\n                    <path d=\"M13.73 21a2 2 0 0 1-3.46 0\" />\n                    <circle cx=\"12\" cy=\"2\" r=\"1\" />\n                  </svg>\n                </div>\n              </div>\n\n              <div\n                className={`absolute inset-0 transition-opacity duration-500 ${\n                  activeFeature === 2 ? 'opacity-100' : 'opacity-0'\n                }`}\n              >\n                <div className=\"flex h-full w-full items-center justify-center rounded-xl border bg-gradient-to-br from-green-50 to-green-100 p-8 dark:from-green-950/30 dark:to-green-900/20\">\n                  <svg\n                    xmlns=\"http://www.w3.org/2000/svg\"\n                    width=\"240\"\n                    height=\"240\"\n                    viewBox=\"0 0 24 24\"\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"1\"\n                    strokeLinecap=\"round\"\n                    strokeLinejoin=\"round\"\n                    className=\"text-green-500\"\n                  >\n                    <path d=\"M18 6H5a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h13l4-3.5L18 6Z\" />\n                    <path d=\"M12 13v8\" />\n                    <path d=\"M12 3v3\" />\n                  </svg>\n                </div>\n              </div>\n\n              <div\n                className={`absolute inset-0 transition-opacity duration-500 ${\n                  activeFeature === 3 ? 'opacity-100' : 'opacity-0'\n                }`}\n              >\n                <div className=\"flex h-full w-full items-center justify-center rounded-xl border bg-gradient-to-br from-amber-50 to-amber-100 p-8 dark:from-amber-950/30 dark:to-amber-900/20\">\n                  <svg\n                    xmlns=\"http://www.w3.org/2000/svg\"\n                    width=\"240\"\n                    height=\"240\"\n                    viewBox=\"0 0 24 24\"\n                    fill=\"none\"\n                    stroke=\"currentColor\"\n                    strokeWidth=\"1\"\n                    strokeLinecap=\"round\"\n                    strokeLinejoin=\"round\"\n                    className=\"text-amber-500\"\n                  >\n                    <rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\" />\n                    <path d=\"M7 11V7a5 5 0 0 1 10 0v4\" />\n                  </svg>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n\n      {/* Background decoration */}\n      <div className=\"via-foreground/10 absolute top-0 right-0 left-0 h-px bg-gradient-to-r from-transparent to-transparent\"></div>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/hero-sections/animated-features-hero.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"}],"description":"A hero that cycles through key features with motion next to a headline and CTA. Use it to show what your product does the moment a visitor arrives.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}