{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-devices",
  "type": "registry:component",
  "title": "Hero Devices",
  "description": "A laptop lid swings open to reveal a live board, then a phone slides in with notifications and a progress chip pops up. Each device sits on its own depth layer and drifts with the pointer.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "hero",
    "hero",
    "mockup",
    "devices",
    "parallax",
    "saas",
    "app"
  ],
  "docs": "https://hyperblur.dev/effects/hero-devices",
  "files": [
    {
      "path": "registry/hyperblur/hero-devices.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/hero-devices.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface HeroDevicesAction {\n  label: string;\n  href: string;\n}\n\nexport interface HeroDevicesProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  primaryCta?: HeroDevicesAction | null;\n  secondaryCta?: HeroDevicesAction | null;\n  accent?: string;\n  interactive?: boolean;\n  headingAs?: \"h1\" | \"h2\";\n}\n\nconst css = `\n.hb-vb5 {\n  --hb-vb5-accent: #2f7bff;\n  --hb-vb5-x: 0;\n  --hb-vb5-y: 0;\n  position: relative;\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  width: 100%;\n  min-height: 640px;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background:\n    radial-gradient(60% 50% at 50% 100%, color-mix(in srgb, var(--hb-vb5-accent) 26%, transparent), transparent 70%),\n    #08080a;\n  color: #ededed;\n  font-family: inherit;\n  text-align: center;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-vb5 *, .hb-vb5 *::before, .hb-vb5 *::after { box-sizing: border-box; }\n.hb-vb5-copy { display: flex; flex-direction: column; align-items: center; max-width: 760px; padding: 60px clamp(20px, 5cqi, 48px) 0; }\n.hb-vb5-in { animation: hb-vb5-up .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--hb-vb5-d, 0ms); }\n@keyframes hb-vb5-up {\n  from { opacity: 0; transform: translate3d(0, 14px, 0); }\n  to { opacity: 1; transform: none; }\n}\n.hb-vb5-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: rgba(237, 237, 237, .62); font-size: 13px; }\n.hb-vb5-devs { display: inline-flex; gap: 4px; color: color-mix(in srgb, var(--hb-vb5-accent) 60%, #ffffff); }\n.hb-vb5-title {\n  margin: 14px 0 0;\n  color: #f5f5f5;\n  font-size: clamp(34px, 5.8cqi, 60px);\n  font-weight: 640;\n  line-height: 1.03;\n  letter-spacing: -.045em;\n  text-wrap: balance;\n}\n.hb-vb5-sub { max-width: 540px; margin: 14px 0 0; color: rgba(237, 237, 237, .58); font-size: clamp(14.5px, 1.7cqi, 16.5px); line-height: 1.55; }\n.hb-vb5-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }\n.hb-vb5-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  min-height: 44px;\n  padding: 0 20px;\n  border: 1px solid rgba(255, 255, 255, .14);\n  border-radius: 12px;\n  background: rgba(255, 255, 255, .04);\n  color: #ededed;\n  font: inherit;\n  font-size: 14.5px;\n  font-weight: 550;\n  text-decoration: none;\n  white-space: nowrap;\n  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s ease, border-color .25s ease, box-shadow .25s ease;\n}\n.hb-vb5-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .26); transform: translateY(-1px); }\n.hb-vb5-btn:active { transform: scale(.98); }\n.hb-vb5-btn:focus-visible { outline: 2px solid var(--hb-vb5-accent); outline-offset: 3px; }\n.hb-vb5-btn[data-primary] {\n  border-color: color-mix(in srgb, var(--hb-vb5-accent) 70%, #ffffff);\n  background: linear-gradient(180deg, color-mix(in srgb, var(--hb-vb5-accent) 85%, #ffffff), var(--hb-vb5-accent));\n  color: #ffffff;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 30px -10px var(--hb-vb5-accent);\n}\n.hb-vb5-stage {\n  position: relative;\n  width: min(660px, 88%);\n  margin-top: 44px;\n  perspective: 1800px;\n  pointer-events: none;\n}\n.hb-vb5-layer {\n  transform: translate3d(calc(var(--hb-vb5-x) * var(--hb-vb5-k) * 1px), calc(var(--hb-vb5-y) * var(--hb-vb5-k) * 1px), 0);\n  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);\n}\n.hb-vb5-lid {\n  position: relative;\n  padding: 2.2% 2.2% 2.6%;\n  border-radius: 18px 18px 6px 6px;\n  background: linear-gradient(180deg, #2a2b2f, #151619);\n  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .9);\n  transform-origin: 50% 100%;\n  animation: hb-vb5-open 1.6s cubic-bezier(.16, 1, .3, 1) .3s both;\n}\n@keyframes hb-vb5-open {\n  from { transform: rotateX(-86deg); filter: brightness(.3); }\n  to { transform: rotateX(0); filter: none; }\n}\n.hb-vb5-screen {\n  position: relative;\n  display: grid;\n  grid-template-columns: 17% 1fr;\n  aspect-ratio: 16 / 10;\n  overflow: hidden;\n  border-radius: 8px;\n  background: #0d0e11;\n  text-align: left;\n}\n.hb-vb5-glare {\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 40%);\n  pointer-events: none;\n}\n.hb-vb5-side { display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; border-right: 1px solid rgba(255, 255, 255, .06); background: #0a0b0d; }\n.hb-vb5-logo { width: 18px; height: 18px; margin-bottom: 8px; border-radius: 6px; background: linear-gradient(135deg, var(--hb-vb5-accent), #a855f7); }\n.hb-vb5-nav { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); }\n.hb-vb5-nav[data-on] { background: color-mix(in srgb, var(--hb-vb5-accent) 55%, transparent); }\n.hb-vb5-main { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; }\n.hb-vb5-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #ededed; font-size: 11px; font-weight: 600; }\n.hb-vb5-bar span:last-child { padding: 3px 7px; border-radius: 5px; background: var(--hb-vb5-accent); color: #fff; font-size: 8.5px; }\n.hb-vb5-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1; }\n.hb-vb5-col { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 7px; background: rgba(255, 255, 255, .025); }\n.hb-vb5-colh { display: flex; align-items: center; gap: 5px; color: rgba(237, 237, 237, .55); font-size: 8.5px; font-weight: 600; }\n.hb-vb5-colh::before { content: \"\"; width: 5px; height: 5px; border-radius: 50%; background: var(--hb-vb5-c); }\n.hb-vb5-card {\n  padding: 6px 7px;\n  border: 1px solid rgba(255, 255, 255, .07);\n  border-radius: 6px;\n  background: #15171b;\n  color: rgba(237, 237, 237, .85);\n  font-size: 8.5px;\n  line-height: 1.35;\n  animation: hb-vb5-pop .7s cubic-bezier(.34, 1.56, .64, 1) both;\n  animation-delay: calc(1.2s + var(--hb-vb5-ci) * 70ms);\n}\n.hb-vb5-card i { display: block; height: 3px; margin-top: 5px; border-radius: 2px; background: rgba(255, 255, 255, .08); font-style: normal; }\n.hb-vb5-card i::after { content: \"\"; display: block; width: var(--hb-vb5-p); height: 100%; border-radius: 2px; background: var(--hb-vb5-c); }\n@keyframes hb-vb5-pop {\n  from { opacity: 0; transform: translate3d(0, 6px, 0) scale(.96); }\n  to { opacity: 1; transform: none; }\n}\n.hb-vb5-base {\n  position: relative;\n  width: 116%;\n  height: 14px;\n  margin-left: -8%;\n  border-radius: 2px 2px 14px 14px;\n  background: linear-gradient(180deg, #3a3b40, #1a1b1e 60%, #0c0c0e);\n  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .9);\n}\n.hb-vb5-base::before { content: \"\"; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: #121316; }\n.hb-vb5-phone {\n  position: absolute;\n  right: -7%;\n  bottom: -18%;\n  width: 25%;\n  padding: 1.6%;\n  border-radius: 22px;\n  background: linear-gradient(160deg, #34353a, #121316);\n  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), -20px 30px 60px -10px rgba(0, 0, 0, .9);\n  animation: hb-vb5-slide 1.3s cubic-bezier(.16, 1, .3, 1) 1s both;\n}\n@keyframes hb-vb5-slide {\n  from { opacity: 0; transform: translate3d(30%, 30%, 0) rotate(8deg); }\n  to { opacity: 1; transform: none; }\n}\n.hb-vb5-pscreen { display: flex; flex-direction: column; gap: 5px; aspect-ratio: 9 / 19; padding: 16% 7% 7%; overflow: hidden; border-radius: 17px; background: #0c0d10; text-align: left; position: relative; }\n.hb-vb5-island { position: absolute; left: 50%; top: 4%; width: 34%; height: 4%; transform: translateX(-50%); border-radius: 99px; background: #000; }\n.hb-vb5-ptime { color: #ededed; font-size: 15px; font-weight: 600; letter-spacing: -.02em; text-align: center; margin-bottom: 4px; }\n.hb-vb5-note { padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: rgba(237, 237, 237, .85); font-size: 7.5px; line-height: 1.35; animation: hb-vb5-pop .7s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(1.9s + var(--hb-vb5-ci) * 160ms); }\n.hb-vb5-note b { display: block; color: #fff; font-weight: 600; }\n.hb-vb5-chip {\n  position: absolute;\n  left: -9%;\n  top: 22%;\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  padding: 10px 14px 10px 10px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 14px;\n  background: rgba(18, 19, 23, .78);\n  backdrop-filter: blur(14px);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 40px -14px rgba(0, 0, 0, .9);\n  text-align: left;\n  animation: hb-vb5-pop .9s cubic-bezier(.34, 1.56, .64, 1) 1.7s both;\n}\n.hb-vb5-chip b { display: block; color: #fff; font-size: 12px; font-weight: 600; }\n.hb-vb5-chip span { color: rgba(237, 237, 237, .55); font-size: 11px; }\n.hb-vb5-ring { flex: none; }\n.hb-vb5-ring circle:last-child { stroke-dasharray: 88; stroke-dashoffset: 88; animation: hb-vb5-ring 1.4s cubic-bezier(.16, 1, .3, 1) 2s forwards; }\n@keyframes hb-vb5-ring {\n  to { stroke-dashoffset: 7; }\n}\n@container (max-width: 560px) {\n  .hb-vb5-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }\n  .hb-vb5-btn { justify-content: center; }\n  .hb-vb5-chip { left: -2%; top: -10%; scale: .85; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-vb5-in, .hb-vb5-lid, .hb-vb5-card, .hb-vb5-phone, .hb-vb5-note, .hb-vb5-chip { animation: none; }\n  .hb-vb5-ring circle:last-child { animation: none; stroke-dashoffset: 7; }\n  .hb-vb5-layer, .hb-vb5-btn { transition: none; }\n}\n`;\n\nconst columns = [\n  {\n    name: \"Planned\",\n    color: \"#a1a1aa\",\n    cards: [\n      { t: \"Billing page empty states\", p: \"10%\" },\n      { t: \"Invite flow copy review\", p: \"0%\" },\n    ],\n  },\n  {\n    name: \"In progress\",\n    color: \"#f5a524\",\n    cards: [\n      { t: \"Offline sync for mobile\", p: \"64%\" },\n      { t: \"Audit log export to CSV\", p: \"40%\" },\n      { t: \"Dark mode tokens\", p: \"82%\" },\n    ],\n  },\n  {\n    name: \"Shipped\",\n    color: \"#22c55e\",\n    cards: [\n      { t: \"SSO with Okta\", p: \"100%\" },\n      { t: \"Faster search index\", p: \"100%\" },\n    ],\n  },\n];\n\nconst offsets = columns.map((_, i) => columns.slice(0, i).reduce((sum, col) => sum + col.cards.length, 0));\n\nconst notes = [\n  { title: \"Maya moved a card\", body: \"Offline sync is now In progress\" },\n  { title: \"Build passed\", body: \"release/24.3 deployed to staging\" },\n  { title: \"Standup in 10 min\", body: \"Product sync, Room 4\" },\n];\n\nconst defaultPrimary: HeroDevicesAction = { label: \"Get Tandem free\", href: \"#\" };\nconst defaultSecondary: HeroDevicesAction = { label: \"Download for iOS\", href: \"#\" };\n\nfunction d(ms: number) {\n  return { \"--hb-vb5-d\": `${ms}ms` } as React.CSSProperties;\n}\n\nfunction k(depth: number) {\n  return { \"--hb-vb5-k\": depth } as React.CSSProperties;\n}\n\nexport function HeroDevices({\n  eyebrow = \"Desktop, web and mobile\",\n  title = \"Plan the sprint on one screen. Ship it from any other.\",\n  subtitle = \"Tandem keeps your board, standups and releases in sync across every device, even when the train goes underground.\",\n  primaryCta = defaultPrimary,\n  secondaryCta = defaultSecondary,\n  accent = \"#2f7bff\",\n  interactive = true,\n  headingAs = \"h1\",\n  className = \"\",\n  style,\n  onPointerMove,\n  onPointerLeave,\n  ...rest\n}: HeroDevicesProps) {\n  const Heading = headingAs;\n  const root = React.useRef<HTMLElement>(null);\n  const vars = { \"--hb-vb5-accent\": accent, ...style } as React.CSSProperties;\n\n  const move = (event: React.PointerEvent<HTMLElement>) => {\n    onPointerMove?.(event);\n    if (!interactive || !root.current) return;\n    const box = root.current.getBoundingClientRect();\n    root.current.style.setProperty(\"--hb-vb5-x\", (((event.clientX - box.left) / box.width - 0.5) * 2).toFixed(3));\n    root.current.style.setProperty(\"--hb-vb5-y\", (((event.clientY - box.top) / box.height - 0.5) * 2).toFixed(3));\n  };\n  const leave = (event: React.PointerEvent<HTMLElement>) => {\n    onPointerLeave?.(event);\n    root.current?.style.setProperty(\"--hb-vb5-x\", \"0\");\n    root.current?.style.setProperty(\"--hb-vb5-y\", \"0\");\n  };\n\n  return (\n    <section ref={root} className={`hb-vb5 ${className}`} style={vars} onPointerMove={move} onPointerLeave={leave} {...rest}>\n      <style href=\"hb-hero-devices\" precedence=\"default\">{css}</style>\n      <div className=\"hb-vb5-copy\">\n        {eyebrow ? (\n          <p className=\"hb-vb5-eyebrow hb-vb5-in\" style={d(40)}>\n            <span className=\"hb-vb5-devs\" aria-hidden=\"true\">\n              <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n                <rect x=\"3\" y=\"4\" width=\"18\" height=\"12\" rx=\"2\" />\n                <path d=\"M2 20h20\" />\n              </svg>\n              <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n                <rect x=\"7\" y=\"2\" width=\"10\" height=\"20\" rx=\"2.5\" />\n                <path d=\"M11 18h2\" />\n              </svg>\n            </span>\n            {eyebrow}\n          </p>\n        ) : null}\n        <Heading className=\"hb-vb5-title hb-vb5-in\" style={d(130)}>\n          {title}\n        </Heading>\n        {subtitle ? (\n          <p className=\"hb-vb5-sub hb-vb5-in\" style={d(230)}>\n            {subtitle}\n          </p>\n        ) : null}\n        {primaryCta || secondaryCta ? (\n          <div className=\"hb-vb5-actions hb-vb5-in\" style={d(330)}>\n            {primaryCta ? (\n              <a className=\"hb-vb5-btn\" data-primary=\"\" href={primaryCta.href}>\n                {primaryCta.label}\n              </a>\n            ) : null}\n            {secondaryCta ? (\n              <a className=\"hb-vb5-btn\" href={secondaryCta.href}>\n                <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                  <path d=\"M12 4v11M7 10l5 5 5-5M5 20h14\" />\n                </svg>\n                {secondaryCta.label}\n              </a>\n            ) : null}\n          </div>\n        ) : null}\n      </div>\n      <div className=\"hb-vb5-stage\" aria-hidden=\"true\">\n        <div className=\"hb-vb5-layer\" style={k(8)}>\n          <div className=\"hb-vb5-lid\">\n            <div className=\"hb-vb5-screen\">\n              <div className=\"hb-vb5-side\">\n                <span className=\"hb-vb5-logo\" />\n                <span className=\"hb-vb5-nav\" data-on=\"\" />\n                <span className=\"hb-vb5-nav\" style={{ width: \"80%\" }} />\n                <span className=\"hb-vb5-nav\" style={{ width: \"90%\" }} />\n                <span className=\"hb-vb5-nav\" style={{ width: \"70%\" }} />\n              </div>\n              <div className=\"hb-vb5-main\">\n                <div className=\"hb-vb5-bar\">\n                  <span>Sprint 24 · Mobile launch</span>\n                  <span>Share</span>\n                </div>\n                <div className=\"hb-vb5-board\">\n                  {columns.map((col, c) => (\n                    <div key={col.name} className=\"hb-vb5-col\" style={{ \"--hb-vb5-c\": col.color } as React.CSSProperties}>\n                      <span className=\"hb-vb5-colh\">{col.name}</span>\n                      {col.cards.map((card, i) => (\n                        <span key={card.t} className=\"hb-vb5-card\" style={{ \"--hb-vb5-ci\": offsets[c] + i, \"--hb-vb5-p\": card.p } as React.CSSProperties}>\n                          {card.t}\n                          <i />\n                        </span>\n                      ))}\n                    </div>\n                  ))}\n                </div>\n              </div>\n              <span className=\"hb-vb5-glare\" />\n            </div>\n          </div>\n          <div className=\"hb-vb5-base\" />\n        </div>\n        <div className=\"hb-vb5-layer\" style={{ ...k(22), position: \"absolute\", inset: 0 }}>\n          <div className=\"hb-vb5-phone\">\n            <div className=\"hb-vb5-pscreen\">\n              <span className=\"hb-vb5-island\" />\n              <span className=\"hb-vb5-ptime\">9:41</span>\n              {notes.map((note, i) => (\n                <span key={note.title} className=\"hb-vb5-note\" style={{ \"--hb-vb5-ci\": i } as React.CSSProperties}>\n                  <b>{note.title}</b>\n                  {note.body}\n                </span>\n              ))}\n            </div>\n          </div>\n        </div>\n        <div className=\"hb-vb5-layer\" style={{ ...k(36), position: \"absolute\", inset: 0 }}>\n          <div className=\"hb-vb5-chip\">\n            <svg className=\"hb-vb5-ring\" width=\"34\" height=\"34\" viewBox=\"0 0 34 34\">\n              <circle cx=\"17\" cy=\"17\" r=\"14\" fill=\"none\" stroke=\"rgba(255,255,255,.1)\" strokeWidth=\"3.5\" />\n              <circle cx=\"17\" cy=\"17\" r=\"14\" fill=\"none\" stroke=\"var(--hb-vb5-accent)\" strokeWidth=\"3.5\" strokeLinecap=\"round\" transform=\"rotate(-90 17 17)\" />\n            </svg>\n            <div>\n              <b>Sprint 24 · 92%</b>\n              <span>18 of 19 tasks done</span>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}