{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-icon-sections-radial-icon-layout","type":"registry:block","title":"Radial Icon Layout","files":[{"path":"components/blocks/marketing/icon-sections/radial-icon-layout.tsx","content":"import { useState } from 'react';\nimport { Badge } from '@/components/ui/badge';\nimport { Button } from '@/components/ui/button';\nimport { cn } from '@/lib/utils';\n\nimport {\n  ArrowRight,\n  Atom,\n  Brain,\n  ChartBar,\n  Database,\n  FileText,\n  Layers,\n  MessageSquare,\n  Settings,\n  ShieldCheck,\n  Star,\n} from 'lucide-react';\n\ninterface RadialFeature {\n  id: string;\n  icon: React.ReactNode;\n  title: string;\n  description: string;\n  color: string;\n}\n\nexport default function RadialIconLayout() {\n  const [activeFeature, setActiveFeature] = useState<string | null>(null);\n\n  const features: RadialFeature[] = [\n    {\n      id: 'security',\n      icon: <ShieldCheck className=\"h-5 w-5\" />,\n      title: 'Advanced Security',\n      description:\n        'Multi-layered security protocols with end-to-end encryption and regular security audits.',\n      color: 'bg-blue-500 text-white',\n    },\n    {\n      id: 'analytics',\n      icon: <ChartBar className=\"h-5 w-5\" />,\n      title: 'Powerful Analytics',\n      description:\n        'Gain insights with customizable dashboards and real-time metrics tracking.',\n      color: 'bg-orange-500 text-white',\n    },\n    {\n      id: 'intelligence',\n      icon: <Brain className=\"h-5 w-5\" />,\n      title: 'AI Intelligence',\n      description:\n        'Smart automation and predictive algorithms that learn from your data patterns.',\n      color: 'bg-purple-500 text-white',\n    },\n    {\n      id: 'collaboration',\n      icon: <MessageSquare className=\"h-5 w-5\" />,\n      title: 'Team Collaboration',\n      description:\n        'Seamless tools for teams to communicate, share, and work together efficiently.',\n      color: 'bg-green-500 text-white',\n    },\n    {\n      id: 'customization',\n      icon: <Settings className=\"h-5 w-5\" />,\n      title: 'Deep Customization',\n      description:\n        'Tailor the platform to your specific needs with extensive configuration options.',\n      color: 'bg-pink-500 text-white',\n    },\n    {\n      id: 'integration',\n      icon: <Layers className=\"h-5 w-5\" />,\n      title: 'Seamless Integration',\n      description:\n        'Connect with your favorite tools and services through our extensive API.',\n      color: 'bg-cyan-500 text-white',\n    },\n    {\n      id: 'scalability',\n      icon: <Database className=\"h-5 w-5\" />,\n      title: 'Infinite Scalability',\n      description:\n        'Grows with your business from startup to enterprise without performance degradation.',\n      color: 'bg-amber-500 text-white',\n    },\n    {\n      id: 'reporting',\n      icon: <FileText className=\"h-5 w-5\" />,\n      title: 'Detailed Reporting',\n      description:\n        'Generate comprehensive reports with just a few clicks for informed decision making.',\n      color: 'bg-indigo-500 text-white',\n    },\n  ];\n\n  // Calculate positions for features in a circle\n  const calculatePosition = (index: number, total: number, radius: number) => {\n    // Offset the starting angle to have the first item at the top\n    const angleOffset = -Math.PI / 2;\n    const angle = (2 * Math.PI * index) / total + angleOffset;\n\n    const x = radius * Math.cos(angle);\n    const y = radius * Math.sin(angle);\n\n    return { x, y };\n  };\n\n  // Helper to handle feature click\n  const handleFeatureClick = (id: string) => {\n    setActiveFeature(activeFeature === id ? null : id);\n  };\n\n  return (\n    <section className=\"bg-background w-full overflow-hidden py-12 md:py-24 lg:py-32\">\n      <div className=\"container mx-auto px-4 md:px-6 2xl:max-w-[1400px]\">\n        <div className=\"mb-12 flex flex-col items-center justify-center space-y-4 text-center\">\n          <Badge className=\"px-3.5 py-1.5\">Platform</Badge>\n          <h2 className=\"text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl\">\n            A comprehensive ecosystem\n          </h2>\n          <p className=\"text-muted-foreground max-w-[700px] md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed\">\n            Our platform offers a connected suite of features that work together\n            seamlessly to power your business growth.\n          </p>\n        </div>\n\n        {/* Mobile View (Stacked) */}\n        <div className=\"mb-16 grid grid-cols-2 gap-4 lg:hidden\">\n          {features.map((feature) => (\n            <div\n              key={feature.id}\n              className=\"flex cursor-pointer flex-col items-center rounded-lg border p-4 text-center transition-all hover:shadow-md\"\n              onClick={() => handleFeatureClick(feature.id)}\n            >\n              <div\n                className={cn(\n                  'mb-3 flex h-12 w-12 items-center justify-center rounded-full',\n                  feature.color\n                )}\n              >\n                {feature.icon}\n              </div>\n              <h3 className=\"mb-2 text-base font-semibold\">{feature.title}</h3>\n              {activeFeature === feature.id && (\n                <p className=\"text-muted-foreground animate-in fade-in slide-in-from-top-2 text-sm duration-300\">\n                  {feature.description}\n                </p>\n              )}\n            </div>\n          ))}\n        </div>\n\n        {/* Desktop View (Radial) */}\n        <div className=\"relative hidden lg:block\">\n          {/* Center Feature */}\n          <div\n            className=\"relative mx-auto\"\n            style={{ width: '800px', height: '800px' }}\n          >\n            {/* Center Platform Icon */}\n            <div className=\"bg-primary/5 border-primary/20 absolute top-1/2 left-1/2 z-10 flex h-64 w-64 -translate-x-1/2 -translate-y-1/2 transform flex-col items-center justify-center rounded-full border-4 p-6 text-center shadow-lg\">\n              <div className=\"bg-primary/10 border-primary/20 mb-4 flex h-20 w-20 items-center justify-center rounded-full border\">\n                <Atom className=\"text-primary h-10 w-10\" />\n              </div>\n              <h3 className=\"mb-2 text-xl font-bold\">Core Platform</h3>\n              <p className=\"text-muted-foreground text-sm\">\n                The central hub that connects all features and ensures seamless\n                functionality.\n              </p>\n            </div>\n\n            {/* Radial Features */}\n            {features.map((feature, index) => {\n              const { x, y } = calculatePosition(index, features.length, 300);\n\n              const isActive = activeFeature === feature.id;\n\n              return (\n                <div\n                  key={feature.id}\n                  className={cn(\n                    'absolute -translate-x-1/2 -translate-y-1/2 transform cursor-pointer transition-all duration-300',\n                    isActive\n                      ? 'z-20 scale-110'\n                      : 'z-10 scale-100 hover:scale-105'\n                  )}\n                  style={{\n                    left: `calc(50% + ${x}px)`,\n                    top: `calc(50% + ${y}px)`,\n                  }}\n                  onClick={() => handleFeatureClick(feature.id)}\n                >\n                  {/* Feature Content */}\n                  <div className=\"relative\">\n                    {/* Feature Icon */}\n                    <div\n                      className={cn(\n                        'flex h-16 w-16 items-center justify-center rounded-full transition-all',\n                        feature.color,\n                        isActive ? 'ring-primary/30 ring-4 ring-offset-2' : ''\n                      )}\n                    >\n                      {feature.icon}\n                    </div>\n\n                    {/* Feature Info Card (only shown when active) */}\n                    {isActive && (\n                      <div\n                        className={cn(\n                          'animate-in fade-in zoom-in-95 absolute w-48 rounded-lg border p-3 shadow-lg duration-300',\n                          x > 0 ? 'left-full ml-3' : 'right-full mr-3',\n                          y > 0 ? 'top-0' : 'bottom-0'\n                        )}\n                      >\n                        <h4 className=\"mb-1 text-sm font-semibold\">\n                          {feature.title}\n                        </h4>\n                        <p className=\"text-muted-foreground text-xs\">\n                          {feature.description}\n                        </p>\n                      </div>\n                    )}\n                  </div>\n                </div>\n              );\n            })}\n\n            {/* Orbit Circles */}\n            <div className=\"border-muted absolute top-1/2 left-1/2 -z-10 h-[600px] w-[600px] -translate-x-1/2 -translate-y-1/2 transform rounded-full border border-dashed\" />\n          </div>\n        </div>\n\n        {/* Feature Showcase Section */}\n        <div className=\"mt-24\">\n          <div className=\"grid items-center gap-8 md:grid-cols-2\">\n            <div>\n              <h3 className=\"mb-4 text-2xl font-bold\">\n                Designed to work together\n              </h3>\n              <p className=\"text-muted-foreground mb-6\">\n                Our platform&apos;s features are designed to integrate\n                seamlessly with one another, creating a coherent and powerful\n                ecosystem that enhances productivity and facilitates growth.\n              </p>\n              <ul className=\"space-y-3\">\n                {[\n                  'Unified data across all platform features',\n                  'Consistent user experience throughout',\n                  'Automatic synchronization between components',\n                  'Centralized control and administration',\n                ].map((item, index) => (\n                  <li key={index} className=\"flex items-start gap-2\">\n                    <Star className=\"text-primary mt-0.5 h-5 w-5 flex-shrink-0\" />\n                    <span>{item}</span>\n                  </li>\n                ))}\n              </ul>\n              <div className=\"mt-8\">\n                <Button asChild className=\"group\">\n                  <a href=\"#\">\n                    Learn more about our platform\n                    <ArrowRight className=\"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1\" />\n                  </a>\n                </Button>\n              </div>\n            </div>\n            <div className=\"bg-muted relative aspect-video overflow-hidden rounded-xl border shadow-md\">\n              <img\n                src=\"https://images.unsplash.com/photo-1558655146-9f40138edfeb?q=80&w=1964&auto=format&fit=crop\"\n                alt=\"Platform overview dashboard\"\n                className=\"object-cover\"\n              />\n              <div className=\"absolute inset-0 bg-gradient-to-tr from-black/40 to-transparent\" />\n              <div className=\"bg-background/80 absolute right-4 bottom-4 left-4 rounded-lg p-4 backdrop-blur-sm\">\n                <h4 className=\"mb-1 text-sm font-medium\">Unified Dashboard</h4>\n                <p className=\"text-muted-foreground text-xs\">\n                  Access all platform features from a single, intuitive\n                  interface\n                </p>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/icon-sections/radial-icon-layout.tsx"},{"path":"components/ui/badge.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 badgeVariants = cva(\n  \"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n        secondary:\n          \"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80\",\n        destructive:\n          \"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20\",\n        outline:\n          \"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  }\n)\n\nfunction Badge({\n  className,\n  variant = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"span\"> &\n  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n  const Comp = asChild ? Slot.Root : \"span\"\n\n  return (\n    <Comp\n      data-slot=\"badge\"\n      data-variant={variant}\n      className={cn(badgeVariants({ variant }), className)}\n      {...props}\n    />\n  )\n}\n\nexport { Badge, badgeVariants }\n","type":"registry:ui","target":"components/ui/badge.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":"Icons arranged in a circular, radial pattern around a central label. A distinctive way to show how features connect to one core product idea.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}