{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-benefit-plane",
  "type": "registry:component",
  "title": "CTA Benefit Plane",
  "description": "A call to action with three columns of benefit cards scrolling in opposite directions on a tilted 3D plane, fading at the edges, beside a headline with a gradient tail and two buttons. Hover pauses the plane.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "cta",
    "cta",
    "marquee",
    "3d",
    "benefits",
    "perspective",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/cta-benefit-plane",
  "files": [
    {
      "path": "registry/hyperblur/cta-benefit-plane.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/cta-benefit-plane.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface CtaBenefitPlaneBenefit {\n  title: string;\n  detail: string;\n  icon?: \"bolt\" | \"lock\" | \"globe\" | \"chart\" | \"sync\" | \"spark\" | \"shield\" | \"clock\" | \"users\";\n}\n\nexport interface CtaBenefitPlaneProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  primary?: { label: string; href: string };\n  secondary?: { label: string; href: string };\n  benefits?: CtaBenefitPlaneBenefit[];\n  speed?: number;\n  accent?: string;\n}\n\nconst css = `\n.hb-wc7 {\n  --hb-wc7-accent: #f59e0b;\n  --hb-wc7-speed: 28s;\n  container-type: inline-size;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  isolation: isolate;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-wc7 *, .hb-wc7 *::before, .hb-wc7 *::after { box-sizing: border-box; }\n.hb-wc7::before { content: \"\"; position: absolute; right: -10%; top: -30%; z-index: -1; width: 70%; height: 140%; background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-wc7-accent) 20%, transparent), transparent); pointer-events: none; }\n.hb-wc7-inner { position: relative; display: grid; max-width: 1200px; margin: 0 auto; min-height: 520px; }\n.hb-wc7-copy { position: relative; z-index: 2; display: grid; align-content: center; gap: 0; padding: 72px 22px 24px; }\n.hb-wc7-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #a1a1a1; font-size: 13px; font-weight: 550; }\n.hb-wc7-eyebrow b { padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--hb-wc7-accent) 18%, transparent); color: var(--hb-wc7-accent); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }\n.hb-wc7-title { margin: 0; max-width: 13ch; font-size: clamp(36px, 6cqi, 64px); font-weight: 650; line-height: 1; letter-spacing: -.045em; text-wrap: balance; }\n.hb-wc7-title span { background: linear-gradient(90deg, var(--hb-wc7-accent), color-mix(in srgb, var(--hb-wc7-accent) 40%, #fff)); background-clip: text; -webkit-background-clip: text; color: transparent; }\n.hb-wc7-sub { margin: 20px 0 0; max-width: 420px; color: #8f8f8f; font-size: 16px; line-height: 1.6; }\n.hb-wc7-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }\n.hb-wc7-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), background .2s ease, border-color .2s ease; }\n.hb-wc7-btn:focus-visible { outline: 2px solid var(--hb-wc7-accent); outline-offset: 3px; }\n.hb-wc7-btn[data-kind=\"primary\"] { background: var(--hb-wc7-accent); color: #1a1100; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 34px -14px var(--hb-wc7-accent); }\n.hb-wc7-btn[data-kind=\"primary\"]:hover { transform: translateY(-2px); }\n.hb-wc7-btn[data-kind=\"secondary\"] { border: 1px solid rgba(255, 255, 255, .12); color: #ededed; background: rgba(255, 255, 255, .03); }\n.hb-wc7-btn[data-kind=\"secondary\"]:hover { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }\n.hb-wc7-btn svg { width: 15px; height: 15px; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }\n.hb-wc7-btn:hover svg { transform: translateX(3px); }\n.hb-wc7-view { position: relative; height: 380px; overflow: hidden; perspective: 1100px; mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }\n.hb-wc7-plane { position: absolute; left: 50%; top: 50%; display: grid; grid-template-columns: repeat(3, 220px); gap: 14px; transform: translate(-50%, -50%) rotateX(24deg) rotateZ(-14deg) rotateY(-10deg); transform-style: preserve-3d; }\n.hb-wc7-col { display: flex; flex-direction: column; height: 760px; overflow: hidden; }\n.hb-wc7-track { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; animation: hb-wc7-up var(--hb-wc7-speed) linear infinite; }\n.hb-wc7-col:nth-child(2) .hb-wc7-track { animation-name: hb-wc7-down; animation-duration: calc(var(--hb-wc7-speed) * 1.2); }\n.hb-wc7-col:nth-child(3) .hb-wc7-track { animation-duration: calc(var(--hb-wc7-speed) * .9); }\n.hb-wc7-view:hover .hb-wc7-track { animation-play-state: paused; }\n.hb-wc7-card {\n  display: grid;\n  gap: 10px;\n  padding: 16px;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 14px;\n  background: linear-gradient(160deg, #181818, #101010);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 30px -18px rgba(0, 0, 0, .9);\n  transition: border-color .25s ease, transform .3s ease;\n}\n.hb-wc7-card:hover { border-color: color-mix(in srgb, var(--hb-wc7-accent) 55%, transparent); transform: translateZ(18px); }\n.hb-wc7-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: color-mix(in srgb, var(--hb-wc7-accent) 14%, #141414); color: var(--hb-wc7-accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hb-wc7-accent) 30%, transparent); }\n.hb-wc7-ic svg { width: 16px; height: 16px; }\n.hb-wc7-card b { font-size: 14.5px; font-weight: 620; letter-spacing: -.01em; }\n.hb-wc7-card span { color: #8f8f8f; font-size: 12.5px; line-height: 1.45; }\n.hb-wc7-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n@keyframes hb-wc7-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }\n@keyframes hb-wc7-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }\n@container (min-width: 820px) {\n  .hb-wc7-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 600px; }\n  .hb-wc7-copy { padding: 96px 0 96px 40px; }\n  .hb-wc7-view { height: auto; min-height: 600px; mask-image: linear-gradient(90deg, transparent, #000 22%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); mask-composite: intersect; -webkit-mask-composite: source-in; }\n  .hb-wc7-plane { grid-template-columns: repeat(3, 230px); }\n  .hb-wc7-col { height: 980px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-wc7 *, .hb-wc7 *::before, .hb-wc7 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nconst icons: Record<NonNullable<CtaBenefitPlaneBenefit[\"icon\"]>, string> = {\n  bolt: \"M9 1.5L3.5 9H8l-1 5.5L12.5 7H8z\",\n  lock: \"M4.5 7V5a3.5 3.5 0 017 0v2M3.5 7h9v6.5h-9z\",\n  globe: \"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM1.5 8h13M8 1.5c2 2 2 11 0 13M8 1.5c-2 2-2 11 0 13\",\n  chart: \"M2 13.5h12M4 11V7M7 11V4M10 11V8M13 11V5\",\n  sync: \"M13 6A5.5 5.5 0 003.3 4.5M3 10a5.5 5.5 0 009.7 1.5M3 2v3h3M13 14v-3h-3\",\n  spark: \"M8 1.5v4M8 10.5v4M1.5 8h4M10.5 8h4M3.5 3.5l2.5 2.5M10 10l2.5 2.5M12.5 3.5L10 6M6 10l-2.5 2.5\",\n  shield: \"M8 1.5l5.5 2v4.5c0 3.3-2.4 5.6-5.5 6.5-3.1-.9-5.5-3.2-5.5-6.5V3.5zM5.5 8l1.8 1.8L10.5 6.5\",\n  clock: \"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM8 4.5V8l2.5 1.5\",\n  users: \"M6 7.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zM1.5 13.5c0-2.5 2-4 4.5-4s4.5 1.5 4.5 4M11 3a2.3 2.3 0 010 4.5M12.5 9.5c1.3.5 2 1.8 2 4\",\n};\n\nconst defaultBenefits: CtaBenefitPlaneBenefit[] = [\n  { title: \"Deploys in 41 seconds\", detail: \"Median build to live across 2.1M deploys last month.\", icon: \"bolt\" },\n  { title: \"SOC 2 Type II\", detail: \"Audited yearly, with SSO and SCIM on every plan.\", icon: \"shield\" },\n  { title: \"Edge in 38 regions\", detail: \"Requests land on the closest node, automatically.\", icon: \"globe\" },\n  { title: \"Preview every branch\", detail: \"A shareable URL for each pull request.\", icon: \"sync\" },\n  { title: \"Real-time analytics\", detail: \"Web vitals and traffic without a third-party script.\", icon: \"chart\" },\n  { title: \"Instant rollbacks\", detail: \"Back to any previous build in one click.\", icon: \"clock\" },\n  { title: \"Secrets, encrypted\", detail: \"Per-environment variables with audit history.\", icon: \"lock\" },\n  { title: \"Unlimited teammates\", detail: \"Invite your whole team on the Pro plan.\", icon: \"users\" },\n  { title: \"Image optimization\", detail: \"Modern formats served at the right size.\", icon: \"spark\" },\n];\n\nfunction Card({ b }: { b: CtaBenefitPlaneBenefit }) {\n  return (\n    <div className=\"hb-wc7-card\">\n      <span className=\"hb-wc7-ic\">\n        <svg viewBox=\"0 0 16 16\">\n          <path d={icons[b.icon ?? \"spark\"]} fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n        </svg>\n      </span>\n      <b>{b.title}</b>\n      <span>{b.detail}</span>\n    </div>\n  );\n}\n\nexport function CtaBenefitPlane({\n  eyebrow = \"Pro trial\",\n  title = \"Everything you need to ship, in one push.\",\n  subtitle = \"Connect a repository and your first deploy is live before the coffee is ready. Every feature on the right is included from day one.\",\n  primary = { label: \"Start deploying\", href: \"#\" },\n  secondary = { label: \"Talk to sales\", href: \"#\" },\n  benefits = defaultBenefits,\n  speed = 28,\n  accent = \"#f59e0b\",\n  className = \"\",\n  style,\n  ...rest\n}: CtaBenefitPlaneProps) {\n  const cols: CtaBenefitPlaneBenefit[][] = [[], [], []];\n  benefits.forEach((b, i) => cols[i % 3].push(b));\n  const words = title.split(\" \");\n  const tail = words.slice(-2).join(\" \");\n  const head = words.slice(0, -2).join(\" \");\n  const vars = { \"--hb-wc7-accent\": accent, \"--hb-wc7-speed\": `${Math.max(6, speed)}s`, ...style } as React.CSSProperties;\n\n  return (\n    <section className={`hb-wc7 ${className}`} style={vars} {...rest}>\n      <style href=\"hb-cta-benefit-plane\" precedence=\"default\">{css}</style>\n      <div className=\"hb-wc7-inner\">\n        <div className=\"hb-wc7-copy\">\n          {eyebrow ? (\n            <p className=\"hb-wc7-eyebrow\">\n              <b>{eyebrow}</b>\n              14 days, no card required\n            </p>\n          ) : null}\n          <h2 className=\"hb-wc7-title\">\n            {head} <span>{tail}</span>\n          </h2>\n          {subtitle ? <p className=\"hb-wc7-sub\">{subtitle}</p> : null}\n          <div className=\"hb-wc7-actions\">\n            <a className=\"hb-wc7-btn\" data-kind=\"primary\" href={primary.href}>\n              {primary.label}\n              <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                <path d=\"M3 8h9.5M8.5 4l4 4-4 4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n              </svg>\n            </a>\n            {secondary ? (\n              <a className=\"hb-wc7-btn\" data-kind=\"secondary\" href={secondary.href}>\n                {secondary.label}\n              </a>\n            ) : null}\n          </div>\n          <ul className=\"hb-wc7-sr\">\n            {benefits.map((b) => (\n              <li key={b.title}>\n                {b.title}: {b.detail}\n              </li>\n            ))}\n          </ul>\n        </div>\n        <div className=\"hb-wc7-view\" aria-hidden=\"true\">\n          <div className=\"hb-wc7-plane\">\n            {cols.map((c, ci) => (\n              <div key={ci} className=\"hb-wc7-col\">\n                <div className=\"hb-wc7-track\">\n                  {[...c, ...c, ...c, ...c].map((b, i) => (\n                    <Card key={`${b.title}-${i}`} b={b} />\n                  ))}\n                </div>\n              </div>\n            ))}\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}