{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bento-spotlight",
  "type": "registry:component",
  "title": "Bento Spotlight",
  "description": "A 3x3 feature grid where the hovered or focused tile lifts under a pointer-following glow while the others dim and blur, each tile with its own animated icon.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "bento",
    "bento",
    "features",
    "spotlight",
    "hover",
    "icons",
    "grid"
  ],
  "docs": "https://hyperblur.dev/effects/bento-spotlight",
  "files": [
    {
      "path": "registry/hyperblur/bento-spotlight.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/bento-spotlight.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface BentoSpotlightItem {\n  title: string;\n  description: string;\n  href: string;\n}\n\nexport interface BentoSpotlightProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  items?: BentoSpotlightItem[];\n  onItemSelect?: (item: BentoSpotlightItem, index: number) => void;\n  accent?: string;\n}\n\nconst css = `\n@keyframes hb-kb6-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }\n@keyframes hb-kb6-scan { 0%, 100% { transform: translateY(-9px); opacity: 0; } 15%, 85% { opacity: 1; } 50% { transform: translateY(9px); } }\n@keyframes hb-kb6-flick { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 50% { opacity: .35; } 55% { opacity: 1; } 70% { opacity: .6; } 74% { opacity: 1; } }\n@keyframes hb-kb6-spinx { 0% { transform: scaleX(1); } 50% { transform: scaleX(.12); } 100% { transform: scaleX(1); } }\n@keyframes hb-kb6-bar { 0%, 100% { transform: scaleY(var(--a)); } 50% { transform: scaleY(var(--b)); } }\n@keyframes hb-kb6-ring { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(-5deg); } 50% { transform: rotate(2deg); } }\n@keyframes hb-kb6-spin { to { transform: rotate(360deg); } }\n@keyframes hb-kb6-sweep { 0%, 100% { transform: translate(-6px, -4px); } 50% { transform: translate(6px, 4px); } }\n@keyframes hb-kb6-dash { to { stroke-dashoffset: -24; } }\n.hb-kb6 {\n  --hb-kb6-accent: #2f7bff;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kb6 *, .hb-kb6 *::before, .hb-kb6 *::after { box-sizing: border-box; }\n.hb-kb6::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  background: radial-gradient(50% 35% at 50% 0%, color-mix(in srgb, var(--hb-kb6-accent) 16%, transparent), transparent 75%);\n}\n.hb-kb6-in { position: relative; max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8cqi, 104px) clamp(16px, 5cqi, 48px); }\n.hb-kb6-head { max-width: 620px; margin: 0 auto clamp(28px, 4cqi, 48px); text-align: center; animation: hb-kb6-rise .7s cubic-bezier(.2, .8, .2, 1) backwards; }\n.hb-kb6-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(255, 255, 255, .03); color: #a1a1a1; font-size: 12.5px; }\n.hb-kb6-eyebrow b { color: var(--hb-kb6-accent); font-weight: 600; }\n.hb-kb6-title { margin: 0; font-size: clamp(30px, 4.4cqi, 48px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }\n.hb-kb6-sub { margin: 14px auto 0; max-width: 520px; color: #8f8f8f; font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }\n.hb-kb6-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }\n.hb-kb6-cell {\n  --x: 50%;\n  --y: 0%;\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  min-width: 0;\n  min-height: 210px;\n  overflow: hidden;\n  padding: 20px;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 18px;\n  background: linear-gradient(180deg, #131313, #0d0d0d);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);\n  color: inherit;\n  text-decoration: none;\n  outline: none;\n  animation: hb-kb6-rise .7s cubic-bezier(.2, .8, .2, 1) backwards;\n  animation-delay: calc(var(--hb-kb6-i, 0) * 60ms + 120ms);\n  transition: opacity .35s ease, filter .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease;\n}\n.hb-kb6-cell::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  opacity: 0;\n  background: radial-gradient(260px circle at var(--x) var(--y), color-mix(in srgb, var(--hb-kb6-accent) 18%, transparent), transparent 70%);\n  transition: opacity .3s ease;\n}\n.hb-kb6-cell > * { position: relative; }\n.hb-kb6-grid:has(.hb-kb6-cell:hover) .hb-kb6-cell:not(:hover),\n.hb-kb6-grid:has(.hb-kb6-cell:focus-visible) .hb-kb6-cell:not(:focus-visible) {\n  opacity: .42;\n  filter: blur(1.5px) saturate(.5);\n  transform: scale(.985);\n}\n.hb-kb6-cell:hover, .hb-kb6-cell:focus-visible {\n  border-color: color-mix(in srgb, var(--hb-kb6-accent) 45%, rgba(255, 255, 255, .1));\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 60px -30px color-mix(in srgb, var(--hb-kb6-accent) 60%, transparent);\n  transform: translate3d(0, -3px, 0);\n}\n.hb-kb6-cell:hover::before, .hb-kb6-cell:focus-visible::before { opacity: 1; }\n.hb-kb6-cell:focus-visible { box-shadow: 0 0 0 2px var(--hb-kb6-accent); }\n.hb-kb6-top { display: flex; align-items: flex-start; justify-content: space-between; }\n.hb-kb6-icon {\n  display: grid;\n  place-items: center;\n  width: 56px;\n  height: 56px;\n  border: 1px solid rgba(255, 255, 255, .1);\n  border-radius: 15px;\n  background: linear-gradient(145deg, #1b1b1b, #101010);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 20px -10px rgba(0, 0, 0, .8);\n  color: #d4d4d4;\n  transition: color .3s ease, border-color .3s ease;\n}\n.hb-kb6-cell:hover .hb-kb6-icon, .hb-kb6-cell:focus-visible .hb-kb6-icon { color: var(--hb-kb6-accent); border-color: color-mix(in srgb, var(--hb-kb6-accent) 40%, transparent); }\n.hb-kb6-icon svg { overflow: visible; }\n.hb-kb6-icon svg * { transform-box: fill-box; }\n.hb-kb6-go { color: #5f5f5f; opacity: 0; transform: translate3d(-4px, 4px, 0); transition: opacity .25s ease, transform .25s ease, color .25s ease; }\n.hb-kb6-cell:hover .hb-kb6-go, .hb-kb6-cell:focus-visible .hb-kb6-go { opacity: 1; color: #ededed; transform: none; }\n.hb-kb6-text { margin-top: auto; padding-top: 22px; }\n.hb-kb6-text h3 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }\n.hb-kb6-text p { margin: 6px 0 0; color: #8f8f8f; font-size: 13.5px; line-height: 1.55; }\n.hb-kb6-scan { animation: hb-kb6-scan 2.8s ease-in-out infinite; transform-origin: center; }\n.hb-kb6-flick { animation: hb-kb6-flick 3.2s linear infinite; }\n.hb-kb6-cell:hover .hb-kb6-flick { filter: drop-shadow(0 0 6px currentColor); }\n.hb-kb6-mer { transform-origin: center; animation: hb-kb6-spinx 4s ease-in-out infinite; }\n.hb-kb6-mer + .hb-kb6-mer { animation-delay: -2s; }\n.hb-kb6-shackle { transform-origin: center bottom; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }\n.hb-kb6-cell:hover .hb-kb6-shackle, .hb-kb6-cell:focus-visible .hb-kb6-shackle { transform: translateY(-4px) rotate(-14deg); transform-origin: 30% 100%; }\n.hb-kb6-bar { transform-origin: bottom; animation: hb-kb6-bar 2.2s ease-in-out infinite; animation-delay: calc(var(--j) * -.4s); }\n.hb-kb6-cell:hover .hb-kb6-bar { animation-duration: 1s; }\n.hb-kb6-bell { transform-origin: 50% 10%; animation: hb-kb6-ring 3s ease-in-out infinite; }\n.hb-kb6-gear { transform-origin: center; animation: hb-kb6-spin 9s linear infinite; }\n.hb-kb6-cell:hover .hb-kb6-gear { animation-duration: 2.5s; }\n.hb-kb6-layer { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }\n.hb-kb6-cell:hover .hb-kb6-layer[data-l=\"0\"], .hb-kb6-cell:focus-visible .hb-kb6-layer[data-l=\"0\"] { transform: translateY(-5px); }\n.hb-kb6-cell:hover .hb-kb6-layer[data-l=\"2\"], .hb-kb6-cell:focus-visible .hb-kb6-layer[data-l=\"2\"] { transform: translateY(5px); }\n.hb-kb6-lens { animation: hb-kb6-sweep 3s ease-in-out infinite; }\n.hb-kb6-dashed { stroke-dasharray: 4 4; animation: hb-kb6-dash 1.6s linear infinite; }\n@container (max-width: 760px) {\n  .hb-kb6-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n  .hb-kb6-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }\n}\n@container (max-width: 480px) {\n  .hb-kb6-grid { grid-template-columns: minmax(0, 1fr); }\n  .hb-kb6-cell { min-height: 180px; }\n}\n@media (hover: none) {\n  .hb-kb6-grid:has(.hb-kb6-cell:hover) .hb-kb6-cell:not(:hover) { opacity: 1; filter: none; transform: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kb6 *, .hb-kb6 *::before, .hb-kb6 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nconst defaultItems: BentoSpotlightItem[] = [\n  { title: \"Zero-trust access\", description: \"Every request is verified, scoped and logged, from the office or a café.\", href: \"#\" },\n  { title: \"Sub-50 ms responses\", description: \"Hot paths run close to users, so pages feel instant on any connection.\", href: \"#\" },\n  { title: \"Edge in 38 regions\", description: \"Deploy once and serve from the nearest city with automatic failover.\", href: \"#\" },\n  { title: \"Passkeys and SSO\", description: \"SAML, OIDC and passkeys out of the box, with SCIM provisioning.\", href: \"#\" },\n  { title: \"Analytics built in\", description: \"Funnels, retention and revenue without a single extra script tag.\", href: \"#\" },\n  { title: \"Alerts that matter\", description: \"Smart thresholds learn your traffic and only page you for real issues.\", href: \"#\" },\n  { title: \"Workflows on autopilot\", description: \"Chain triggers, approvals and webhooks with a visual builder.\", href: \"#\" },\n  { title: \"Every version kept\", description: \"Point-in-time restore for content, config and data, for 90 days.\", href: \"#\" },\n  { title: \"Search in milliseconds\", description: \"Typo-tolerant full-text search across every record you store.\", href: \"#\" },\n];\n\nconst sw = { fill: \"none\", stroke: \"currentColor\", strokeWidth: 1.7, strokeLinecap: \"round\" as const, strokeLinejoin: \"round\" as const };\n\nfunction Icon({ index }: { index: number }) {\n  switch (index % 9) {\n    case 0:\n      return (\n        <svg width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n          <path d=\"M14 3l9 3.5v7c0 5.6-3.8 9.6-9 11.5-5.2-1.9-9-5.9-9-11.5v-7z\" {...sw} />\n          <path className=\"hb-kb6-scan\" d=\"M8 14h12\" {...sw} strokeWidth={2} />\n        </svg>\n      );\n    case 1:\n      return (\n        <svg width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n          <path className=\"hb-kb6-flick\" d=\"M15.5 3L6 16h7l-1.5 9L21 12h-7z\" {...sw} />\n        </svg>\n      );\n    case 2:\n      return (\n        <svg width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n          <circle cx=\"14\" cy=\"14\" r=\"10\" {...sw} />\n          <path d=\"M4 14h20M6 8.5h16M6 19.5h16\" {...sw} strokeWidth={1.2} opacity=\".6\" />\n          <ellipse className=\"hb-kb6-mer\" cx=\"14\" cy=\"14\" rx=\"5\" ry=\"10\" {...sw} />\n          <ellipse className=\"hb-kb6-mer\" cx=\"14\" cy=\"14\" rx=\"5\" ry=\"10\" {...sw} opacity=\".5\" />\n        </svg>\n      );\n    case 3:\n      return (\n        <svg width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n          <path className=\"hb-kb6-shackle\" d=\"M9 12V9a5 5 0 0110 0v3\" {...sw} />\n          <rect x=\"5.5\" y=\"12\" width=\"17\" height=\"12\" rx=\"3\" {...sw} />\n          <path d=\"M14 16.5v3\" {...sw} />\n        </svg>\n      );\n    case 4:\n      return (\n        <svg width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n          <path d=\"M4 24h20\" {...sw} />\n          {[\n            { x: 6, h: 9, a: 0.6, b: 1 },\n            { x: 11.5, h: 14, a: 1, b: 0.55 },\n            { x: 17, h: 11, a: 0.7, b: 1 },\n            { x: 22.5, h: 17, a: 1, b: 0.7 },\n          ].map((b, j) => (\n            <path\n              key={j}\n              className=\"hb-kb6-bar\"\n              d={`M${b.x} 21V${21 - b.h}`}\n              {...sw}\n              strokeWidth={3}\n              style={{ \"--a\": b.a, \"--b\": b.b, \"--j\": j } as React.CSSProperties}\n            />\n          ))}\n        </svg>\n      );\n    case 5:\n      return (\n        <svg width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n          <g className=\"hb-kb6-bell\">\n            <path d=\"M8 19V13a6 6 0 0112 0v6l2 2H6z\" {...sw} />\n            <path d=\"M14 3.5V7\" {...sw} />\n          </g>\n          <path d=\"M11.5 24a2.5 2.5 0 005 0\" {...sw} />\n        </svg>\n      );\n    case 6:\n      return (\n        <svg width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n          <g className=\"hb-kb6-gear\">\n            <circle cx=\"14\" cy=\"14\" r=\"3.5\" {...sw} />\n            <path\n              d=\"M14 3.5l1.6 2.6 3-.8.6 3 2.9 1-1.2 2.8 2 2.3-2.6 1.6.3 3.1-3.1.2-1.3 2.8-2.2-2-2.2 2-1.3-2.8-3.1-.2.3-3.1L4 14.1l2-2.3-1.2-2.8 2.9-1 .6-3 3 .8z\"\n              {...sw}\n              strokeWidth={1.5}\n            />\n          </g>\n        </svg>\n      );\n    case 7:\n      return (\n        <svg width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n          <path className=\"hb-kb6-layer\" data-l=\"0\" d=\"M14 4l10 5-10 5-10-5z\" {...sw} />\n          <path className=\"hb-kb6-layer\" data-l=\"1\" d=\"M4 14l10 5 10-5\" {...sw} />\n          <path className=\"hb-kb6-layer\" data-l=\"2\" d=\"M4 19l10 5 10-5\" {...sw} />\n        </svg>\n      );\n    default:\n      return (\n        <svg width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n          <path className=\"hb-kb6-dashed\" d=\"M4 7h20M4 12h14M4 17h18M4 22h10\" {...sw} strokeWidth={1.3} opacity=\".55\" />\n          <g className=\"hb-kb6-lens\">\n            <circle cx=\"15\" cy=\"13\" r=\"5.5\" {...sw} fill=\"#111\" />\n            <path d=\"M19 17l4.5 4.5\" {...sw} strokeWidth={2.2} />\n          </g>\n        </svg>\n      );\n  }\n}\n\nexport function BentoSpotlight({\n  eyebrow = \"Platform\",\n  title = \"Nine reasons teams switch in a week\",\n  subtitle = \"Security, speed and the boring-but-vital parts handled for you. Hover any tile to take a closer look.\",\n  items = defaultItems,\n  onItemSelect,\n  accent = \"#2f7bff\",\n  className,\n  style,\n  ...rest\n}: BentoSpotlightProps) {\n  const move = (e: React.PointerEvent<HTMLAnchorElement>) => {\n    const el = e.currentTarget;\n    const r = el.getBoundingClientRect();\n    el.style.setProperty(\"--x\", `${(e.clientX - r.left).toFixed(0)}px`);\n    el.style.setProperty(\"--y\", `${(e.clientY - r.top).toFixed(0)}px`);\n  };\n\n  return (\n    <section\n      className={[\"hb-kb6\", className].filter(Boolean).join(\" \")}\n      style={{ \"--hb-kb6-accent\": accent, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-bento-spotlight\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kb6-in\">\n        <header className=\"hb-kb6-head\">\n          {eyebrow ? (\n            <p className=\"hb-kb6-eyebrow\">\n              <b>New</b>\n              {eyebrow}\n            </p>\n          ) : null}\n          <h2 className=\"hb-kb6-title\">{title}</h2>\n          {subtitle ? <p className=\"hb-kb6-sub\">{subtitle}</p> : null}\n        </header>\n        <div className=\"hb-kb6-grid\">\n          {items.map((item, i) => (\n            <a\n              key={item.title}\n              className=\"hb-kb6-cell\"\n              href={item.href}\n              onPointerMove={move}\n              onClick={onItemSelect ? () => onItemSelect(item, i) : undefined}\n              style={{ \"--hb-kb6-i\": i } as React.CSSProperties}\n            >\n              <div className=\"hb-kb6-top\">\n                <span className=\"hb-kb6-icon\">\n                  <Icon index={i} />\n                </span>\n                <svg className=\"hb-kb6-go\" width=\"18\" height=\"18\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n                  <path d=\"M5 11l6-6M6 5h5v5\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                </svg>\n              </div>\n              <div className=\"hb-kb6-text\">\n                <h3>{item.title}</h3>\n                <p>{item.description}</p>\n              </div>\n            </a>\n          ))}\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}