{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-grid-glow",
  "type": "registry:component",
  "title": "Features Grid Glow",
  "description": "A six-card feature grid under a split header. One soft spotlight follows the pointer across every card at once, lighting borders and surfaces, and cards lift on hover.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "features",
    "features",
    "grid",
    "spotlight",
    "glow",
    "cards",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/features-grid-glow",
  "files": [
    {
      "path": "registry/hyperblur/features-grid-glow.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/features-grid-glow.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface GlowFeature {\n  icon?: React.ReactNode;\n  title: string;\n  description: string;\n  meta?: string;\n}\n\nexport interface FeaturesGridGlowProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  features?: GlowFeature[];\n  cta?: { label: string; href: string };\n  accent?: string;\n}\n\nconst css = `\n.hb-ka1 {\n  --hb-ka1-accent: #8b5cf6;\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-ka1 *, .hb-ka1 *::before, .hb-ka1 *::after { box-sizing: border-box; }\n.hb-ka1::before {\n  content: \"\";\n  position: absolute;\n  inset: -20% -10% auto;\n  height: 520px;\n  pointer-events: none;\n  background:\n    radial-gradient(520px 260px at 18% 0%, color-mix(in srgb, var(--hb-ka1-accent) 18%, transparent), transparent 70%),\n    radial-gradient(420px 220px at 90% 10%, rgba(255, 255, 255, .05), transparent 70%);\n}\n.hb-ka1-wrap {\n  position: relative;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 88px 24px 104px;\n}\n.hb-ka1-head {\n  display: grid;\n  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);\n  align-items: end;\n  gap: 32px 64px;\n  margin-bottom: 48px;\n}\n.hb-ka1-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  margin: 0 0 18px;\n  color: #a1a1a1;\n  font-size: 13px;\n  font-weight: 500;\n  letter-spacing: .01em;\n}\n.hb-ka1-dot {\n  width: 6px;\n  height: 6px;\n  border-radius: 50%;\n  background: var(--hb-ka1-accent);\n  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-ka1-accent) 22%, transparent);\n}\n.hb-ka1-title {\n  margin: 0;\n  max-width: 560px;\n  font-size: clamp(30px, 4.6cqw, 48px);\n  font-weight: 600;\n  line-height: 1.06;\n  letter-spacing: -.035em;\n  text-wrap: balance;\n}\n.hb-ka1-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }\n.hb-ka1-sub {\n  margin: 0;\n  color: #8f8f8f;\n  font-size: 16px;\n  line-height: 1.6;\n}\n.hb-ka1-link {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 38px;\n  padding: 0 16px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, .04);\n  color: #ededed;\n  font-size: 14px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: background .2s ease, border-color .2s ease;\n}\n.hb-ka1-link:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }\n.hb-ka1-link:focus-visible { outline: 2px solid var(--hb-ka1-accent); outline-offset: 3px; }\n.hb-ka1-link svg { width: 14px; height: 14px; transition: transform .2s ease; }\n.hb-ka1-link:hover svg { transform: translateX(2px); }\n.hb-ka1-grid {\n  --hb-ka1-o: .55;\n  display: grid;\n  grid-template-columns: repeat(3, minmax(0, 1fr));\n  gap: 14px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n.hb-ka1-grid[data-active=\"true\"] { --hb-ka1-o: 1; }\n.hb-ka1-card {\n  --hb-ka1-x: -400px;\n  --hb-ka1-y: -400px;\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  min-width: 0;\n  min-height: 212px;\n  padding: 24px;\n  border: 1px solid rgba(255, 255, 255, .07);\n  border-radius: 18px;\n  background: linear-gradient(180deg, #121214, #0d0d0f);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);\n  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;\n  isolation: isolate;\n}\n.hb-ka1-card::before {\n  content: \"\";\n  position: absolute;\n  inset: -1px;\n  z-index: -1;\n  padding: 1px;\n  border-radius: inherit;\n  background: radial-gradient(280px circle at var(--hb-ka1-x) var(--hb-ka1-y), var(--hb-ka1-accent), rgba(255, 255, 255, .12) 35%, transparent 65%);\n  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);\n  -webkit-mask-composite: xor;\n  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);\n  opacity: var(--hb-ka1-o);\n  transition: opacity .4s ease;\n  pointer-events: none;\n}\n.hb-ka1-card::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  border-radius: inherit;\n  background: radial-gradient(420px circle at var(--hb-ka1-x) var(--hb-ka1-y), color-mix(in srgb, var(--hb-ka1-accent) 13%, transparent), transparent 60%);\n  opacity: var(--hb-ka1-o);\n  transition: opacity .4s ease;\n  pointer-events: none;\n}\n.hb-ka1-card:hover {\n  transform: translateY(-4px);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 48px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04);\n}\n.hb-ka1-icon {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  width: 42px;\n  height: 42px;\n  margin-bottom: 28px;\n  border: 1px solid rgba(255, 255, 255, .1);\n  border-radius: 12px;\n  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 20px -8px color-mix(in srgb, var(--hb-ka1-accent) 50%, transparent);\n  color: color-mix(in srgb, var(--hb-ka1-accent) 55%, #fff);\n}\n.hb-ka1-icon svg { width: 20px; height: 20px; }\n.hb-ka1-card-title {\n  margin: 0;\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -.01em;\n}\n.hb-ka1-card-desc {\n  margin: 8px 0 0;\n  color: #8f8f8f;\n  font-size: 14px;\n  line-height: 1.6;\n}\n.hb-ka1-meta {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  margin-top: auto;\n  padding-top: 20px;\n  color: #6f6f6f;\n  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n  font-size: 12px;\n}\n.hb-ka1-meta::before {\n  content: \"\";\n  width: 14px;\n  height: 1px;\n  background: color-mix(in srgb, var(--hb-ka1-accent) 70%, transparent);\n}\n@container (max-width: 880px) {\n  .hb-ka1-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }\n  .hb-ka1-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n}\n@container (max-width: 560px) {\n  .hb-ka1-wrap { padding: 64px 16px 72px; }\n  .hb-ka1-head { margin-bottom: 32px; }\n  .hb-ka1-grid { grid-template-columns: minmax(0, 1fr); }\n  .hb-ka1-card { min-height: 0; padding: 20px; }\n  .hb-ka1-icon { margin-bottom: 20px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-ka1-card, .hb-ka1-card::before, .hb-ka1-card::after, .hb-ka1-link, .hb-ka1-link svg { transition: none; }\n  .hb-ka1-card:hover { transform: none; }\n}\n`;\n\nfunction Glyph({ children }: { children: React.ReactNode }) {\n  return (\n    <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      {children}\n    </svg>\n  );\n}\n\nconst defaultFeatures: GlowFeature[] = [\n  {\n    icon: (\n      <Glyph>\n        <path d=\"M12 3v4\" />\n        <path d=\"M12 17v4\" />\n        <path d=\"M5 12H3\" />\n        <path d=\"M21 12h-2\" />\n        <circle cx=\"12\" cy=\"12\" r=\"5\" />\n      </Glyph>\n    ),\n    title: \"Edge deploys in 9 seconds\",\n    description: \"Push to main and your build lands in 34 regions before the pull request tab finishes loading.\",\n    meta: \"p95 build 8.7s\",\n  },\n  {\n    icon: (\n      <Glyph>\n        <path d=\"M6 3v12\" />\n        <circle cx=\"6\" cy=\"18\" r=\"3\" />\n        <circle cx=\"18\" cy=\"6\" r=\"3\" />\n        <path d=\"M18 9a9 9 0 0 1-9 9\" />\n      </Glyph>\n    ),\n    title: \"A preview for every branch\",\n    description: \"Each branch gets its own URL with seeded data, so reviewers click through the change instead of reading it.\",\n    meta: \"1,240 previews / day\",\n  },\n  {\n    icon: (\n      <Glyph>\n        <path d=\"M3 12a9 9 0 1 0 3-6.7\" />\n        <path d=\"M3 4v5h5\" />\n        <path d=\"M12 8v4l3 2\" />\n      </Glyph>\n    ),\n    title: \"Instant rollbacks\",\n    description: \"Every deploy is immutable. Point traffic back to any previous version with one click or one CLI command.\",\n    meta: \"median 0.8s\",\n  },\n  {\n    icon: (\n      <Glyph>\n        <path d=\"M3 3v18h18\" />\n        <path d=\"M7 15l4-4 3 3 5-6\" />\n      </Glyph>\n    ),\n    title: \"Observability built in\",\n    description: \"Logs, traces and Web Vitals for every route, sampled at full fidelity and kept for 30 days.\",\n    meta: \"30-day retention\",\n  },\n  {\n    icon: (\n      <Glyph>\n        <rect x=\"4\" y=\"10\" width=\"16\" height=\"11\" rx=\"2\" />\n        <path d=\"M8 10V7a4 4 0 0 1 8 0v3\" />\n      </Glyph>\n    ),\n    title: \"Roles that match your org\",\n    description: \"SAML single sign-on, SCIM provisioning and per-project roles, with an audit trail for every change.\",\n    meta: \"SOC 2 Type II\",\n  },\n  {\n    icon: (\n      <Glyph>\n        <path d=\"M4 7h16\" />\n        <path d=\"M4 12h10\" />\n        <path d=\"M4 17h6\" />\n        <path d=\"M17 14l3 3-3 3\" />\n      </Glyph>\n    ),\n    title: \"Pay for what runs\",\n    description: \"Usage is metered per request and per gigabyte, with spend alerts before anything surprises finance.\",\n    meta: \"from $0.40 / 1M req\",\n  },\n];\n\nexport function FeaturesGridGlow({\n  eyebrow = \"Platform\",\n  title = \"Everything between git push and a happy customer\",\n  subtitle = \"Build, preview, ship and observe on one platform. No glue scripts, no YAML archaeology, no waiting on the ops channel.\",\n  features = defaultFeatures,\n  cta = { label: \"Explore the platform\", href: \"#\" },\n  accent = \"#8b5cf6\",\n  className = \"\",\n  style,\n  ...rest\n}: FeaturesGridGlowProps) {\n  const uid = React.useId();\n  const gridRef = React.useRef<HTMLUListElement>(null);\n\n  const place = React.useCallback((clientX: number | null, clientY: number | null) => {\n    const grid = gridRef.current;\n    if (!grid) return;\n    const g = grid.getBoundingClientRect();\n    const px = clientX ?? g.left + g.width * 0.3;\n    const py = clientY ?? g.top + g.height * 0.08;\n    grid.querySelectorAll<HTMLElement>(\".hb-ka1-card\").forEach((card) => {\n      const r = card.getBoundingClientRect();\n      const sx = card.offsetWidth ? r.width / card.offsetWidth : 1;\n      card.style.setProperty(\"--hb-ka1-x\", `${((px - r.left) / sx).toFixed(1)}px`);\n      card.style.setProperty(\"--hb-ka1-y\", `${((py - r.top) / sx).toFixed(1)}px`);\n    });\n  }, []);\n\n  React.useEffect(() => {\n    const grid = gridRef.current;\n    if (!grid) return;\n    place(null, null);\n    if (typeof ResizeObserver === \"undefined\") return;\n    const ro = new ResizeObserver(() => {\n      if (grid.dataset.active !== \"true\") place(null, null);\n    });\n    ro.observe(grid);\n    return () => ro.disconnect();\n  }, [place, features.length]);\n\n  function handleMove(e: React.PointerEvent<HTMLUListElement>) {\n    e.currentTarget.dataset.active = \"true\";\n    place(e.clientX, e.clientY);\n  }\n\n  function handleLeave(e: React.PointerEvent<HTMLUListElement>) {\n    e.currentTarget.dataset.active = \"false\";\n  }\n\n  const vars = { \"--hb-ka1-accent\": accent, ...style } as React.CSSProperties;\n\n  return (\n    <section className={`hb-ka1 ${className}`} style={vars} aria-labelledby={`${uid}-t`} {...rest}>\n      <style href=\"hb-features-grid-glow\" precedence=\"default\">{css}</style>\n      <div className=\"hb-ka1-wrap\">\n        <header className=\"hb-ka1-head\">\n          <div>\n            {eyebrow && (\n              <p className=\"hb-ka1-eyebrow\">\n                <span className=\"hb-ka1-dot\" aria-hidden=\"true\" />\n                {eyebrow}\n              </p>\n            )}\n            <h2 id={`${uid}-t`} className=\"hb-ka1-title\">{title}</h2>\n          </div>\n          <div className=\"hb-ka1-side\">\n            {subtitle && <p className=\"hb-ka1-sub\">{subtitle}</p>}\n            {cta && (\n              <a className=\"hb-ka1-link\" href={cta.href}>\n                {cta.label}\n                <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" aria-hidden=\"true\">\n                  <path d=\"M3 8h10M9 4l4 4-4 4\" />\n                </svg>\n              </a>\n            )}\n          </div>\n        </header>\n        <ul ref={gridRef} className=\"hb-ka1-grid\" onPointerMove={handleMove} onPointerLeave={handleLeave}>\n          {features.map((f, i) => (\n            <li key={`${f.title}-${i}`} className=\"hb-ka1-card\">\n              {f.icon != null && <span className=\"hb-ka1-icon\">{f.icon}</span>}\n              <h3 className=\"hb-ka1-card-title\">{f.title}</h3>\n              <p className=\"hb-ka1-card-desc\">{f.description}</p>\n              {f.meta && <span className=\"hb-ka1-meta\">{f.meta}</span>}\n            </li>\n          ))}\n        </ul>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}