{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-icon-sections-metric-cards","type":"registry:block","title":"Metric Cards","files":[{"path":"components/blocks/marketing/icon-sections/metric-cards.tsx","content":"import { useState } from 'react';\nimport { Badge } from '@/components/ui/badge';\nimport { Button } from '@/components/ui/button';\nimport { cn } from '@/lib/utils';\nimport { ArrowRight, ChevronDown, ChevronUp } from 'lucide-react';\n\nimport {\n  CreditCard,\n  LineChart,\n  Lock,\n  RefreshCw,\n  Server,\n  Shield,\n  Users,\n  Zap,\n} from 'lucide-react';\n\ninterface MetricCard {\n  id: string;\n  icon: React.ReactNode;\n  title: string;\n  value: string;\n  changePercentage: number;\n  description: string;\n  details: string;\n  links: Array<{ text: string; href: string }>;\n  color: string;\n}\n\n// Custom component for the FileCheck icon since it's not available in lucide-react\nconst FileCheck = (props: React.SVGProps<SVGSVGElement>) => (\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    {...props}\n  >\n    <path d=\"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z\" />\n    <polyline points=\"14 2 14 8 20 8\" />\n    <path d=\"m9 15 2 2 4-4\" />\n  </svg>\n);\n\nexport default function MetricCards() {\n  const [expandedSection, setExpandedSection] = useState<string | null>(\n    'performance'\n  );\n\n  const toggleSection = (section: string) => {\n    setExpandedSection(expandedSection === section ? null : section);\n  };\n\n  const metrics: Record<string, MetricCard[]> = {\n    performance: [\n      {\n        id: 'response-time',\n        icon: <Zap className=\"h-6 w-6\" />,\n        title: 'Response Time',\n        value: '32ms',\n        changePercentage: -18,\n        description: 'Average server response time',\n        details:\n          \"Response time measures how quickly our servers respond to client requests. We've achieved an 18% improvement by implementing edge computing and optimizing database queries.\",\n        links: [\n          { text: 'Performance Report', href: '#' },\n          { text: 'Optimize Your App', href: '#' },\n        ],\n        color: 'from-amber-500 to-orange-600',\n      },\n      {\n        id: 'uptime',\n        icon: <Server className=\"h-6 w-6\" />,\n        title: 'Uptime',\n        value: '99.99%',\n        changePercentage: 0.02,\n        description: 'Service availability last 30 days',\n        details:\n          'Our platform maintains a consistent 99.99% uptime, equivalent to less than 5 minutes of downtime per month. This is achieved through redundant systems and proactive monitoring.',\n        links: [\n          { text: 'Status Page', href: '#' },\n          { text: 'SLA Details', href: '#' },\n        ],\n        color: 'from-green-500 to-emerald-600',\n      },\n      {\n        id: 'requests',\n        icon: <RefreshCw className=\"h-6 w-6\" />,\n        title: 'Requests/Sec',\n        value: '45K',\n        changePercentage: 32,\n        description: 'Peak requests per second',\n        details:\n          'Our infrastructure handles up to 45,000 requests per second during peak hours. This represents a 32% increase in capacity from our previous quarter through horizontal scaling.',\n        links: [\n          { text: 'Scaling Solutions', href: '#' },\n          { text: 'API Documentation', href: '#' },\n        ],\n        color: 'from-blue-500 to-indigo-600',\n      },\n    ],\n    security: [\n      {\n        id: 'blocked-threats',\n        icon: <Shield className=\"h-6 w-6\" />,\n        title: 'Threats Blocked',\n        value: '1.2M+',\n        changePercentage: 24,\n        description: 'Malicious requests blocked monthly',\n        details:\n          'Our advanced security systems blocked over 1.2 million potential threats last month, including DDoS attempts, SQL injections, and cross-site scripting attacks.',\n        links: [\n          { text: 'Security Whitepaper', href: '#' },\n          { text: 'Threat Protection', href: '#' },\n        ],\n        color: 'from-red-500 to-rose-600',\n      },\n      {\n        id: 'encryption',\n        icon: <Lock className=\"h-6 w-6\" />,\n        title: 'Encryption',\n        value: '256-bit',\n        changePercentage: 0,\n        description: 'End-to-end data encryption',\n        details:\n          'All data is protected with 256-bit AES encryption in transit and at rest. We implement TLS 1.3 protocols and regular key rotation for maximum protection.',\n        links: [\n          { text: 'Compliance Info', href: '#' },\n          { text: 'Privacy Policy', href: '#' },\n        ],\n        color: 'from-purple-500 to-violet-600',\n      },\n      {\n        id: 'compliance',\n        icon: <FileCheck className=\"h-6 w-6\" />,\n        title: 'Compliance',\n        value: '100%',\n        changePercentage: 0,\n        description: 'SOC2, GDPR, HIPAA compliant',\n        details:\n          'Our platform maintains full compliance with major regulatory frameworks including SOC2, GDPR, HIPAA, and more. Annual audits ensure continuous adherence to these standards.',\n        links: [\n          { text: 'Certification Details', href: '#' },\n          { text: 'Compliance Guide', href: '#' },\n        ],\n        color: 'from-cyan-500 to-teal-600',\n      },\n    ],\n    usage: [\n      {\n        id: 'active-users',\n        icon: <Users className=\"h-6 w-6\" />,\n        title: 'Active Users',\n        value: '2.4M',\n        changePercentage: 17,\n        description: 'Monthly active users',\n        details:\n          'Our platform serves 2.4 million monthly active users, representing 17% growth from the previous quarter. User engagement metrics have improved across all key demographics.',\n        links: [\n          { text: 'User Analytics', href: '#' },\n          { text: 'Growth Strategies', href: '#' },\n        ],\n        color: 'from-blue-400 to-blue-600',\n      },\n      {\n        id: 'data-processed',\n        icon: <LineChart className=\"h-6 w-6\" />,\n        title: 'Data Processed',\n        value: '8.7 PB',\n        changePercentage: 42,\n        description: 'Petabytes processed monthly',\n        details:\n          'Our systems process 8.7 petabytes of data per month, enabling real-time analytics and insights for our customers while maintaining performance and cost efficiency.',\n        links: [\n          { text: 'Data Solutions', href: '#' },\n          { text: 'Analytics Platform', href: '#' },\n        ],\n        color: 'from-emerald-400 to-emerald-600',\n      },\n      {\n        id: 'transactions',\n        icon: <CreditCard className=\"h-6 w-6\" />,\n        title: 'Transactions',\n        value: '$740M',\n        changePercentage: 28,\n        description: 'Monthly transaction volume',\n        details:\n          'We securely process $740 million in transactions monthly with a 99.999% success rate. Our payment infrastructure supports 135+ currencies and all major payment methods.',\n        links: [\n          { text: 'Payment Solutions', href: '#' },\n          { text: 'Integration Guide', href: '#' },\n        ],\n        color: 'from-purple-400 to-purple-600',\n      },\n    ],\n  };\n\n  return (\n    <section className=\"bg-background w-full 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\">Metrics Dashboard</Badge>\n          <h2 className=\"text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl\">\n            Key performance indicators\n          </h2>\n          <p className=\"text-muted-foreground max-w-[700px] md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed\">\n            Get a real-time view of our platform&apos;s performance metrics and\n            success indicators.\n          </p>\n        </div>\n\n        <div className=\"mt-8 space-y-8\">\n          {/* Performance Metrics */}\n          <div className=\"overflow-hidden rounded-lg border\">\n            <button\n              onClick={() => toggleSection('performance')}\n              className=\"bg-muted/50 hover:bg-muted flex w-full items-center justify-between p-4 transition-colors\"\n            >\n              <div className=\"flex items-center gap-2\">\n                <Zap className=\"h-5 w-5 text-amber-500\" />\n                <h3 className=\"text-lg font-semibold\">Performance Metrics</h3>\n              </div>\n              {expandedSection === 'performance' ? (\n                <ChevronUp className=\"h-5 w-5\" />\n              ) : (\n                <ChevronDown className=\"h-5 w-5\" />\n              )}\n            </button>\n\n            {expandedSection === 'performance' && (\n              <div className=\"grid grid-cols-1 gap-4 p-4 md:grid-cols-2 lg:grid-cols-3\">\n                {metrics.performance!.map((metric) => (\n                  <div\n                    key={metric.id}\n                    className=\"overflow-hidden rounded-lg border\"\n                  >\n                    <div\n                      className={`bg-gradient-to-r ${metric.color} p-4 text-white`}\n                    >\n                      <div className=\"mb-4 flex items-start justify-between\">\n                        <div className=\"rounded-md bg-white/20 p-2\">\n                          {metric.icon}\n                        </div>\n                        <div\n                          className={cn(\n                            'flex items-center gap-1 rounded-full px-2 py-0.5 text-sm font-medium',\n                            metric.changePercentage > 0\n                              ? 'bg-green-500/20'\n                              : metric.changePercentage < 0\n                                ? 'bg-amber-500/20'\n                                : 'bg-blue-500/20'\n                          )}\n                        >\n                          {metric.changePercentage > 0 ? (\n                            <ChevronUp className=\"h-3 w-3\" />\n                          ) : metric.changePercentage < 0 ? (\n                            <ChevronDown className=\"h-3 w-3\" />\n                          ) : (\n                            ''\n                          )}\n                          {Math.abs(metric.changePercentage)}%\n                        </div>\n                      </div>\n\n                      <h4 className=\"mb-1 text-sm font-medium\">\n                        {metric.title}\n                      </h4>\n                      <p className=\"text-3xl font-bold\">{metric.value}</p>\n                      <p className=\"mt-1 text-sm text-white/80\">\n                        {metric.description}\n                      </p>\n                    </div>\n\n                    <div className=\"bg-background p-4\">\n                      <p className=\"text-muted-foreground mb-4 text-sm\">\n                        {metric.details}\n                      </p>\n                      <div className=\"mt-4 flex flex-wrap gap-2\">\n                        {metric.links.map((link, i) => (\n                          <Button key={i} variant=\"outline\" size=\"sm\" asChild>\n                            <a href={link.href}>{link.text}</a>\n                          </Button>\n                        ))}\n                      </div>\n                    </div>\n                  </div>\n                ))}\n              </div>\n            )}\n          </div>\n\n          {/* Security Metrics */}\n          <div className=\"overflow-hidden rounded-lg border\">\n            <button\n              onClick={() => toggleSection('security')}\n              className=\"bg-muted/50 hover:bg-muted flex w-full items-center justify-between p-4 transition-colors\"\n            >\n              <div className=\"flex items-center gap-2\">\n                <Shield className=\"h-5 w-5 text-red-500\" />\n                <h3 className=\"text-lg font-semibold\">Security & Compliance</h3>\n              </div>\n              {expandedSection === 'security' ? (\n                <ChevronUp className=\"h-5 w-5\" />\n              ) : (\n                <ChevronDown className=\"h-5 w-5\" />\n              )}\n            </button>\n\n            {expandedSection === 'security' && (\n              <div className=\"grid grid-cols-1 gap-4 p-4 md:grid-cols-2 lg:grid-cols-3\">\n                {metrics.security!.map((metric) => (\n                  <div\n                    key={metric.id}\n                    className=\"overflow-hidden rounded-lg border\"\n                  >\n                    <div\n                      className={`bg-gradient-to-r ${metric.color} p-4 text-white`}\n                    >\n                      <div className=\"mb-4 flex items-start justify-between\">\n                        <div className=\"rounded-md bg-white/20 p-2\">\n                          {metric.icon}\n                        </div>\n                        <div\n                          className={cn(\n                            'flex items-center gap-1 rounded-full px-2 py-0.5 text-sm font-medium',\n                            metric.changePercentage > 0\n                              ? 'bg-green-500/20'\n                              : metric.changePercentage < 0\n                                ? 'bg-amber-500/20'\n                                : 'bg-blue-500/20'\n                          )}\n                        >\n                          {metric.changePercentage > 0 ? (\n                            <ChevronUp className=\"h-3 w-3\" />\n                          ) : metric.changePercentage < 0 ? (\n                            <ChevronDown className=\"h-3 w-3\" />\n                          ) : (\n                            ''\n                          )}\n                          {Math.abs(metric.changePercentage)}%\n                        </div>\n                      </div>\n\n                      <h4 className=\"mb-1 text-sm font-medium\">\n                        {metric.title}\n                      </h4>\n                      <p className=\"text-3xl font-bold\">{metric.value}</p>\n                      <p className=\"mt-1 text-sm text-white/80\">\n                        {metric.description}\n                      </p>\n                    </div>\n\n                    <div className=\"bg-background p-4\">\n                      <p className=\"text-muted-foreground mb-4 text-sm\">\n                        {metric.details}\n                      </p>\n                      <div className=\"mt-4 flex flex-wrap gap-2\">\n                        {metric.links.map((link, i) => (\n                          <Button key={i} variant=\"outline\" size=\"sm\" asChild>\n                            <a href={link.href}>{link.text}</a>\n                          </Button>\n                        ))}\n                      </div>\n                    </div>\n                  </div>\n                ))}\n              </div>\n            )}\n          </div>\n\n          {/* Usage Metrics */}\n          <div className=\"overflow-hidden rounded-lg border\">\n            <button\n              onClick={() => toggleSection('usage')}\n              className=\"bg-muted/50 hover:bg-muted flex w-full items-center justify-between p-4 transition-colors\"\n            >\n              <div className=\"flex items-center gap-2\">\n                <LineChart className=\"h-5 w-5 text-blue-500\" />\n                <h3 className=\"text-lg font-semibold\">Usage & Growth</h3>\n              </div>\n              {expandedSection === 'usage' ? (\n                <ChevronUp className=\"h-5 w-5\" />\n              ) : (\n                <ChevronDown className=\"h-5 w-5\" />\n              )}\n            </button>\n\n            {expandedSection === 'usage' && (\n              <div className=\"grid grid-cols-1 gap-4 p-4 md:grid-cols-2 lg:grid-cols-3\">\n                {metrics.usage!.map((metric) => (\n                  <div\n                    key={metric.id}\n                    className=\"overflow-hidden rounded-lg border\"\n                  >\n                    <div\n                      className={`bg-gradient-to-r ${metric.color} p-4 text-white`}\n                    >\n                      <div className=\"mb-4 flex items-start justify-between\">\n                        <div className=\"rounded-md bg-white/20 p-2\">\n                          {metric.icon}\n                        </div>\n                        <div\n                          className={cn(\n                            'flex items-center gap-1 rounded-full px-2 py-0.5 text-sm font-medium',\n                            metric.changePercentage > 0\n                              ? 'bg-green-500/20'\n                              : metric.changePercentage < 0\n                                ? 'bg-amber-500/20'\n                                : 'bg-blue-500/20'\n                          )}\n                        >\n                          {metric.changePercentage > 0 ? (\n                            <ChevronUp className=\"h-3 w-3\" />\n                          ) : metric.changePercentage < 0 ? (\n                            <ChevronDown className=\"h-3 w-3\" />\n                          ) : (\n                            ''\n                          )}\n                          {Math.abs(metric.changePercentage)}%\n                        </div>\n                      </div>\n\n                      <h4 className=\"mb-1 text-sm font-medium\">\n                        {metric.title}\n                      </h4>\n                      <p className=\"text-3xl font-bold\">{metric.value}</p>\n                      <p className=\"mt-1 text-sm text-white/80\">\n                        {metric.description}\n                      </p>\n                    </div>\n\n                    <div className=\"bg-background p-4\">\n                      <p className=\"text-muted-foreground mb-4 text-sm\">\n                        {metric.details}\n                      </p>\n                      <div className=\"mt-4 flex flex-wrap gap-2\">\n                        {metric.links.map((link, i) => (\n                          <Button key={i} variant=\"outline\" size=\"sm\" asChild>\n                            <a href={link.href}>{link.text}</a>\n                          </Button>\n                        ))}\n                      </div>\n                    </div>\n                  </div>\n                ))}\n              </div>\n            )}\n          </div>\n        </div>\n\n        {/* Call to Action */}\n        <div className=\"mt-16 text-center\">\n          <div className=\"mx-auto max-w-2xl\">\n            <h3 className=\"mb-4 text-2xl font-bold\">\n              Ready to optimize your performance?\n            </h3>\n            <p className=\"text-muted-foreground mb-8\">\n              Our team of experts can help you analyze these metrics and\n              identify opportunities for improvement.\n            </p>\n            <Button asChild size=\"lg\" className=\"group\">\n              <a href=\"#\">\n                Schedule a consultation\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>\n    </section>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/icon-sections/metric-cards.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":"A set of cards pairing an icon with a headline metric and caption. Presents results, usage, or savings in confident, easy to scan tiles.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}