{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-orbit",
  "type": "registry:component",
  "title": "Features Orbit",
  "description": "A central product mark with feature chips circling it on two counter-rotating rings. Hovering a chip pauses the orbit and slides out its label, and a row of captions sits beneath.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "features",
    "features",
    "orbit",
    "integrations",
    "rings",
    "hover",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/features-orbit",
  "files": [
    {
      "path": "registry/hyperblur/features-orbit.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/features-orbit.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface OrbitItem {\n  label: string;\n  icon?: React.ReactNode;\n  ring?: \"inner\" | \"outer\";\n}\n\nexport interface OrbitCaption {\n  title: string;\n  description: string;\n}\n\nexport interface FeaturesOrbitProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  items?: OrbitItem[];\n  captions?: OrbitCaption[];\n  primaryCta?: { label: string; href: string } | null;\n  secondaryCta?: { label: string; href: string } | null;\n  mark?: React.ReactNode;\n  speed?: number;\n  onItemSelect?: (item: OrbitItem, index: number) => void;\n  accent?: string;\n}\n\nconst css = `\n.hb-ka5 {\n  --hb-ka5-accent: #22d3ee;\n  --hb-ka5-speed: 60s;\n  box-sizing: border-box;\n  position: relative;\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-ka5 *, .hb-ka5 *::before, .hb-ka5 *::after { box-sizing: border-box; }\n.hb-ka5-wrap { position: relative; max-width: 1120px; margin: 0 auto; padding: 80px 24px 96px; }\n.hb-ka5-top {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);\n  align-items: center;\n  gap: 40px;\n}\n.hb-ka5-eyebrow {\n  margin: 0 0 18px;\n  color: var(--hb-ka5-accent);\n  font-size: 13px;\n  font-weight: 600;\n  letter-spacing: .02em;\n}\n.hb-ka5-title {\n  margin: 0;\n  font-size: clamp(30px, 4.6cqw, 50px);\n  font-weight: 600;\n  line-height: 1.04;\n  letter-spacing: -.035em;\n  text-wrap: balance;\n}\n.hb-ka5-sub { margin: 18px 0 0; max-width: 460px; color: #8f8f8f; font-size: 16px; line-height: 1.6; }\n.hb-ka5-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }\n.hb-ka5-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 42px;\n  padding: 0 18px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 999px;\n  color: #ededed;\n  font-size: 14px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: background .2s ease, border-color .2s ease, transform .2s ease;\n}\n.hb-ka5-btn:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); }\n.hb-ka5-btn:active { transform: scale(.98); }\n.hb-ka5-btn:focus-visible { outline: 2px solid var(--hb-ka5-accent); outline-offset: 3px; }\n.hb-ka5-btn[data-primary=\"true\"] { border-color: transparent; background: #ededed; color: #0a0a0a; }\n.hb-ka5-btn[data-primary=\"true\"]:hover { background: #fff; }\n.hb-ka5-stage {\n  position: relative;\n  width: min(100%, 520px);\n  aspect-ratio: 1;\n  margin: 0 auto;\n  container-type: inline-size;\n}\n.hb-ka5-glow {\n  position: absolute;\n  inset: 18%;\n  border-radius: 50%;\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-ka5-accent) 22%, transparent), transparent);\n  filter: blur(10px);\n}\n.hb-ka5-ring {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 50%;\n  animation: hb-ka5-spin var(--hb-ka5-speed) linear infinite;\n}\n.hb-ka5-ring[data-ring=\"inner\"] { width: 58cqw; height: 58cqw; margin: -29cqw 0 0 -29cqw; animation-duration: calc(var(--hb-ka5-speed) * .7); }\n.hb-ka5-ring[data-ring=\"outer\"] { width: 88cqw; height: 88cqw; margin: -44cqw 0 0 -44cqw; border-style: dashed; border-color: rgba(255, 255, 255, .09); animation-direction: reverse; }\n.hb-ka5-ring::before {\n  content: \"\";\n  position: absolute;\n  inset: -1px;\n  border-radius: 50%;\n  background: conic-gradient(from 0deg, transparent 0 78%, color-mix(in srgb, var(--hb-ka5-accent) 70%, transparent) 96%, transparent 100%);\n  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));\n  mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));\n  pointer-events: none;\n}\n.hb-ka5-slot { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }\n.hb-ka5-slot:hover, .hb-ka5-slot:focus-within { z-index: 3; }\n.hb-ka5-counter {\n  position: absolute;\n  top: 0;\n  left: 0;\n  animation: hb-ka5-spin var(--hb-ka5-speed) linear infinite reverse;\n}\n.hb-ka5-ring[data-ring=\"inner\"] .hb-ka5-counter { animation-duration: calc(var(--hb-ka5-speed) * .7); }\n.hb-ka5-ring[data-ring=\"outer\"] .hb-ka5-counter { animation-direction: normal; }\n.hb-ka5-stage:hover .hb-ka5-ring, .hb-ka5-stage:hover .hb-ka5-counter,\n.hb-ka5-stage:focus-within .hb-ka5-ring, .hb-ka5-stage:focus-within .hb-ka5-counter { animation-play-state: paused; }\n@keyframes hb-ka5-spin { to { transform: rotate(360deg); } }\n.hb-ka5-chip {\n  position: absolute;\n  top: -23px;\n  left: -23px;\n  display: flex;\n  align-items: center;\n  height: 46px;\n  padding: 0;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 999px;\n  background: linear-gradient(180deg, #1a1a1d, #111113);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px -10px rgba(0, 0, 0, .9);\n  color: #d4d4d4;\n  font: inherit;\n  cursor: pointer;\n  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;\n}\n.hb-ka5-chip:focus-visible { outline: 2px solid var(--hb-ka5-accent); outline-offset: 3px; }\n.hb-ka5-ico { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; }\n.hb-ka5-ico svg { width: 20px; height: 20px; }\n.hb-ka5-label {\n  max-width: 0;\n  overflow: hidden;\n  font-size: 13px;\n  font-weight: 500;\n  white-space: nowrap;\n  opacity: 0;\n  transition: max-width .35s cubic-bezier(.2, .8, .2, 1), opacity .25s ease, padding .35s ease;\n}\n.hb-ka5-chip:hover, .hb-ka5-chip:focus-visible {\n  border-color: color-mix(in srgb, var(--hb-ka5-accent) 60%, transparent);\n  background: linear-gradient(180deg, color-mix(in srgb, var(--hb-ka5-accent) 16%, #1a1a1d), #111113);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 4px color-mix(in srgb, var(--hb-ka5-accent) 12%, transparent), 0 14px 30px -10px rgba(0, 0, 0, .9);\n  color: #fff;\n}\n.hb-ka5-chip:hover .hb-ka5-label, .hb-ka5-chip:focus-visible .hb-ka5-label { max-width: 160px; padding-right: 16px; opacity: 1; }\n.hb-ka5-core {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 22cqw;\n  height: 22cqw;\n  margin: -11cqw 0 0 -11cqw;\n  border: 1px solid color-mix(in srgb, var(--hb-ka5-accent) 50%, rgba(255, 255, 255, .2));\n  border-radius: 28%;\n  background:\n    radial-gradient(120% 120% at 30% 0%, rgba(255, 255, 255, .22), transparent 50%),\n    linear-gradient(160deg, color-mix(in srgb, var(--hb-ka5-accent) 75%, #0a0a0a), color-mix(in srgb, var(--hb-ka5-accent) 25%, #0a0a0a));\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 8px rgba(255, 255, 255, .02), 0 20px 60px -10px color-mix(in srgb, var(--hb-ka5-accent) 55%, transparent);\n  color: #fff;\n  animation: hb-ka5-breathe 4s ease-in-out infinite;\n}\n.hb-ka5-core svg { width: 46%; height: 46%; }\n@keyframes hb-ka5-breathe {\n  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 8px rgba(255, 255, 255, .02), 0 20px 60px -10px color-mix(in srgb, var(--hb-ka5-accent) 55%, transparent); }\n  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 14px rgba(255, 255, 255, .025), 0 20px 80px -6px color-mix(in srgb, var(--hb-ka5-accent) 75%, transparent); }\n}\n.hb-ka5-caps {\n  display: grid;\n  grid-template-columns: repeat(4, minmax(0, 1fr));\n  gap: 0;\n  margin: 56px 0 0;\n  padding: 0;\n  list-style: none;\n  border-top: 1px solid rgba(255, 255, 255, .08);\n}\n.hb-ka5-cap { padding: 24px 24px 0 0; }\n.hb-ka5-cap + .hb-ka5-cap { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .08); }\n.hb-ka5-cap-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; }\n.hb-ka5-cap-title::before { content: \"\"; width: 6px; height: 6px; border-radius: 2px; background: var(--hb-ka5-accent); }\n.hb-ka5-cap-desc { margin: 8px 0 0; color: #8f8f8f; font-size: 14px; line-height: 1.6; }\n@container (max-width: 820px) {\n  .hb-ka5-top { grid-template-columns: minmax(0, 1fr); gap: 48px; }\n  .hb-ka5-stage { width: min(100%, 460px); }\n  .hb-ka5-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n  .hb-ka5-cap:nth-child(3) { padding-left: 0; border-left: 0; }\n  .hb-ka5-cap:nth-child(n + 3) { padding-top: 28px; }\n}\n@container (max-width: 480px) {\n  .hb-ka5-wrap { padding: 64px 16px 72px; }\n  .hb-ka5-caps { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }\n  .hb-ka5-cap, .hb-ka5-cap + .hb-ka5-cap { padding: 20px 0 0; border-left: 0; }\n  .hb-ka5-chip { top: -18px; left: -18px; height: 36px; }\n  .hb-ka5-ico { width: 34px; height: 34px; }\n  .hb-ka5-ico svg { width: 16px; height: 16px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-ka5-ring, .hb-ka5-counter, .hb-ka5-core { animation: none; }\n  .hb-ka5-label, .hb-ka5-chip, .hb-ka5-btn { transition: none; }\n}\n`;\n\nfunction Glyph({ d }: { d: string }) {\n  return (\n    <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      <path d={d} />\n    </svg>\n  );\n}\n\nconst defaultItems: OrbitItem[] = [\n  { label: \"Two-way sync\", ring: \"inner\", icon: <Glyph d=\"M4 9h13l-3-3M20 15H7l3 3\" /> },\n  { label: \"Search\", ring: \"inner\", icon: <Glyph d=\"M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM20 20l-4-4\" /> },\n  { label: \"Webhooks\", ring: \"inner\", icon: <Glyph d=\"M9 7a3 3 0 1 1 4.5 2.6L16 15M7 17a3 3 0 1 1 2-5.2M17 18a3 3 0 1 1-.2-5.9L9.5 12\" /> },\n  { label: \"Audit log\", ring: \"inner\", icon: <Glyph d=\"M6 3h9l4 4v14H6zM9 12h7M9 16h7M9 8h3\" /> },\n  { label: \"Single sign-on\", ring: \"outer\", icon: <Glyph d=\"M5 11h14v10H5zM8 11V8a4 4 0 0 1 8 0v3\" /> },\n  { label: \"Daily backups\", ring: \"outer\", icon: <Glyph d=\"M4 7c0-2 3.6-3 8-3s8 1 8 3-3.6 3-8 3-8-1-8-3zM4 7v10c0 2 3.6 3 8 3s8-1 8-3V7M4 12c0 2 3.6 3 8 3s8-1 8-3\" /> },\n  { label: \"Analytics\", ring: \"outer\", icon: <Glyph d=\"M4 20V10M10 20V4M16 20v-7M22 20H2\" /> },\n  { label: \"Automations\", ring: \"outer\", icon: <Glyph d=\"M13 2L4 14h7l-1 8 9-12h-7z\" /> },\n  { label: \"140 integrations\", ring: \"outer\", icon: <Glyph d=\"M9 3v6M15 3v6M6 9h12v3a6 6 0 0 1-12 0zM12 18v3\" /> },\n  { label: \"REST and GraphQL\", ring: \"outer\", icon: <Glyph d=\"M8 7l-5 5 5 5M16 7l5 5-5 5M14 4l-4 16\" /> },\n];\n\nconst defaultCaptions: OrbitCaption[] = [\n  { title: \"Real-time sync\", description: \"Changes flow both ways in under 300 ms, with conflict rules you can read and audit.\" },\n  { title: \"Typed schema\", description: \"One schema for every connected tool, versioned like code and checked on every write.\" },\n  { title: \"Granular access\", description: \"Scope tokens to a table, a field or a single record, and rotate them without downtime.\" },\n  { title: \"Replay anything\", description: \"Every event is kept for 90 days, so a broken sync is a replay away from fixed.\" },\n];\n\nconst defaultMark = (\n  <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n    <circle cx=\"12\" cy=\"12\" r=\"3.2\" />\n    <path d=\"M12 2.5v4M12 17.5v4M2.5 12h4M17.5 12h4M5.3 5.3l2.8 2.8M15.9 15.9l2.8 2.8M18.7 5.3l-2.8 2.8M8.1 15.9l-2.8 2.8\" />\n  </svg>\n);\n\nfunction slotTransform(angle: number, radius: string) {\n  return `rotate(${angle.toFixed(2)}deg) translateX(${radius}) rotate(${(-angle).toFixed(2)}deg)`;\n}\n\nexport function FeaturesOrbit({\n  eyebrow = \"The Nimbus core\",\n  title = \"One source of truth. Every tool your team already uses.\",\n  subtitle = \"Nimbus sits in the middle of your stack and keeps records, permissions and events consistent everywhere they show up.\",\n  items = defaultItems,\n  captions = defaultCaptions,\n  primaryCta = { label: \"Browse integrations\", href: \"#\" },\n  secondaryCta = { label: \"Read the docs\", href: \"#\" },\n  mark = defaultMark,\n  speed = 60,\n  onItemSelect,\n  accent = \"#22d3ee\",\n  className = \"\",\n  style,\n  ...rest\n}: FeaturesOrbitProps) {\n  const uid = React.useId();\n  const inner = items.map((item, index) => ({ item, index })).filter((e) => (e.item.ring ?? \"outer\") === \"inner\");\n  const outer = items.map((item, index) => ({ item, index })).filter((e) => (e.item.ring ?? \"outer\") !== \"inner\");\n  const vars = { \"--hb-ka5-accent\": accent, \"--hb-ka5-speed\": `${Math.max(speed, 4)}s`, ...style } as React.CSSProperties;\n\n  function ring(list: { item: OrbitItem; index: number }[], name: \"inner\" | \"outer\", radius: string, offset: number) {\n    return (\n      <div className=\"hb-ka5-ring\" data-ring={name}>\n        {list.map(({ item, index }, k) => {\n          const angle = offset + (360 / list.length) * k;\n          return (\n            <div key={`${item.label}-${index}`} className=\"hb-ka5-slot\" style={{ transform: slotTransform(angle, radius) }}>\n              <div className=\"hb-ka5-counter\">\n                <button type=\"button\" className=\"hb-ka5-chip\" aria-label={item.label} onClick={() => onItemSelect?.(item, index)}>\n                  <span className=\"hb-ka5-ico\">{item.icon ?? <Glyph d=\"M12 5v14M5 12h14\" />}</span>\n                  <span className=\"hb-ka5-label\" aria-hidden=\"true\">{item.label}</span>\n                </button>\n              </div>\n            </div>\n          );\n        })}\n      </div>\n    );\n  }\n\n  return (\n    <section className={`hb-ka5 ${className}`} style={vars} aria-labelledby={`${uid}-t`} {...rest}>\n      <style href=\"hb-features-orbit\" precedence=\"default\">{css}</style>\n      <div className=\"hb-ka5-wrap\">\n        <div className=\"hb-ka5-top\">\n          <div>\n            {eyebrow && <p className=\"hb-ka5-eyebrow\">{eyebrow}</p>}\n            <h2 id={`${uid}-t`} className=\"hb-ka5-title\">{title}</h2>\n            {subtitle && <p className=\"hb-ka5-sub\">{subtitle}</p>}\n            {(primaryCta || secondaryCta) && (\n              <div className=\"hb-ka5-ctas\">\n                {primaryCta && (\n                  <a className=\"hb-ka5-btn\" data-primary=\"true\" href={primaryCta.href}>\n                    {primaryCta.label}\n                  </a>\n                )}\n                {secondaryCta && (\n                  <a className=\"hb-ka5-btn\" href={secondaryCta.href}>\n                    {secondaryCta.label}\n                  </a>\n                )}\n              </div>\n            )}\n          </div>\n          <div className=\"hb-ka5-stage\" role=\"group\" aria-label=\"Capabilities\">\n            <div className=\"hb-ka5-glow\" aria-hidden=\"true\" />\n            {ring(outer, \"outer\", \"44cqw\", -90)}\n            {ring(inner, \"inner\", \"29cqw\", -45)}\n            <div className=\"hb-ka5-core\">{mark}</div>\n          </div>\n        </div>\n        {captions.length > 0 && (\n          <ul className=\"hb-ka5-caps\">\n            {captions.map((c) => (\n              <li key={c.title} className=\"hb-ka5-cap\">\n                <h3 className=\"hb-ka5-cap-title\">{c.title}</h3>\n                <p className=\"hb-ka5-cap-desc\">{c.description}</p>\n              </li>\n            ))}\n          </ul>\n        )}\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}