{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-section",
  "type": "registry:component",
  "title": "Features Section",
  "description": "A heading and a grid of feature cards with icon, title and description. Cards lift on hover and carry a soft cursor spotlight.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "features",
    "features",
    "section",
    "grid",
    "cards",
    "landing",
    "spotlight"
  ],
  "docs": "https://hyperblur.dev/effects/features-section",
  "files": [
    {
      "path": "registry/hyperblur/features-section.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/features-section.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface FeatureItem {\n  icon?: React.ReactNode;\n  title: string;\n  description: string;\n}\n\nexport interface FeaturesSectionProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  features?: FeatureItem[];\n  columns?: 2 | 3 | 4;\n  layout?: \"grid\" | \"list\";\n  accent?: string;\n}\n\nconst css = `\n.hb-fs {\n  --hb-fs-accent: #2f7bff;\n  box-sizing: border-box;\n  width: 100%;\n  padding: 96px 24px;\n  background: #07070a;\n  color: #f2f2f5;\n  font-family: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-fs *, .hb-fs *::before, .hb-fs *::after { box-sizing: border-box; }\n.hb-fs-wrap { max-width: 1120px; margin: 0 auto; }\n.hb-fs-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }\n.hb-fs-eyebrow {\n  display: inline-block;\n  margin: 0 0 16px;\n  padding: 5px 12px;\n  border: 1px solid color-mix(in srgb, var(--hb-fs-accent) 45%, transparent);\n  border-radius: 999px;\n  background: color-mix(in srgb, var(--hb-fs-accent) 12%, transparent);\n  color: color-mix(in srgb, var(--hb-fs-accent) 70%, #fff);\n  font-size: 12px;\n  font-weight: 600;\n  letter-spacing: .08em;\n  text-transform: uppercase;\n}\n.hb-fs-title {\n  margin: 0;\n  font-size: clamp(30px, 4.4vw, 46px);\n  font-weight: 650;\n  line-height: 1.1;\n  letter-spacing: -.02em;\n}\n.hb-fs-sub {\n  margin: 16px 0 0;\n  font-size: clamp(15px, 1.6vw, 17px);\n  line-height: 1.6;\n  color: rgba(255, 255, 255, .62);\n}\n.hb-fs-grid {\n  display: grid;\n  gap: 16px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  grid-template-columns: repeat(3, minmax(0, 1fr));\n}\n.hb-fs-grid[data-cols=\"2\"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n.hb-fs-grid[data-cols=\"4\"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n.hb-fs-grid[data-layout=\"list\"] { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }\n.hb-fs-card {\n  --hb-fs-x: 50%;\n  --hb-fs-y: 50%;\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  gap: 10px;\n  min-width: 0;\n  overflow: hidden;\n  padding: 24px;\n  border: 1px solid rgba(255, 255, 255, .1);\n  border-radius: 16px;\n  background: rgba(255, 255, 255, .03);\n  transition: transform .3s cubic-bezier(.22, .8, .24, 1), border-color .3s ease, box-shadow .3s ease;\n}\n.hb-fs-card::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  background: radial-gradient(240px circle at var(--hb-fs-x) var(--hb-fs-y), color-mix(in srgb, var(--hb-fs-accent) 24%, transparent), transparent 70%);\n  opacity: 0;\n  transition: opacity .3s ease;\n}\n.hb-fs-card:hover {\n  transform: translate3d(0, -4px, 0);\n  border-color: rgba(255, 255, 255, .22);\n  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .8);\n}\n.hb-fs-card:hover::before { opacity: 1; }\n.hb-fs-icon {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  flex: 0 0 auto;\n  width: 40px;\n  height: 40px;\n  margin-bottom: 6px;\n  border: 1px solid color-mix(in srgb, var(--hb-fs-accent) 40%, transparent);\n  border-radius: 12px;\n  background: color-mix(in srgb, var(--hb-fs-accent) 14%, transparent);\n  color: color-mix(in srgb, var(--hb-fs-accent) 75%, #fff);\n}\n.hb-fs-icon svg { width: 20px; height: 20px; }\n.hb-fs-body { position: relative; min-width: 0; }\n.hb-fs-card-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }\n.hb-fs-card-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .6); }\n.hb-fs-grid[data-layout=\"list\"] .hb-fs-card { flex-direction: row; align-items: flex-start; gap: 16px; }\n.hb-fs-grid[data-layout=\"list\"] .hb-fs-icon { margin-bottom: 0; }\n@media (max-width: 1023px) {\n  .hb-fs-grid[data-cols=\"3\"], .hb-fs-grid[data-cols=\"4\"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n}\n@media (max-width: 767px) {\n  .hb-fs { padding: 64px 16px; }\n  .hb-fs-head { margin-bottom: 36px; }\n  .hb-fs-grid, .hb-fs-grid[data-cols=\"2\"], .hb-fs-grid[data-cols=\"3\"], .hb-fs-grid[data-cols=\"4\"] { grid-template-columns: minmax(0, 1fr); }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-fs-card, .hb-fs-card::before { transition: none; }\n  .hb-fs-card:hover { transform: none; }\n}\n`;\n\nfunction Glyph({ children }: { children: React.ReactNode }) {\n  return (\n    <svg\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth=\"1.7\"\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      aria-hidden=\"true\"\n    >\n      {children}\n    </svg>\n  );\n}\n\nconst defaultFeatures: FeatureItem[] = [\n  {\n    icon: (\n      <Glyph>\n        <path d=\"M13 2L4 14h7l-1 8 9-12h-7l1-8z\" />\n      </Glyph>\n    ),\n    title: \"Lightning fast\",\n    description: \"Pages render in milliseconds with edge caching and zero layout shift, so nothing ever feels slow.\",\n  },\n  {\n    icon: (\n      <Glyph>\n        <path d=\"M12 3l8 3v6c0 4.5-3.2 8-8 9-4.8-1-8-4.5-8-9V6l8-3z\" />\n        <path d=\"M9 12l2 2 4-4\" />\n      </Glyph>\n    ),\n    title: \"Secure by default\",\n    description: \"Encryption in transit and at rest, audit logs and granular roles come built in on every plan.\",\n  },\n  {\n    icon: (\n      <Glyph>\n        <circle cx=\"9\" cy=\"8\" r=\"3\" />\n        <circle cx=\"17\" cy=\"9\" r=\"2.4\" />\n        <path d=\"M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6\" />\n        <path d=\"M15.5 14.2c3 0 5.5 2 5.5 5\" />\n      </Glyph>\n    ),\n    title: \"Built for teams\",\n    description: \"Share workspaces, leave comments and review changes together without stepping on each other.\",\n  },\n  {\n    icon: (\n      <Glyph>\n        <path d=\"M4 20V10\" />\n        <path d=\"M10 20V4\" />\n        <path d=\"M16 20v-8\" />\n        <path d=\"M22 20H2\" />\n      </Glyph>\n    ),\n    title: \"Clear analytics\",\n    description: \"Understand what works with live dashboards that surface the few numbers that actually matter.\",\n  },\n  {\n    icon: (\n      <Glyph>\n        <path d=\"M8 8l-5 4 5 4\" />\n        <path d=\"M16 8l5 4-5 4\" />\n        <path d=\"M14 5l-4 14\" />\n      </Glyph>\n    ),\n    title: \"Developer friendly\",\n    description: \"A typed API, copy-paste snippets and webhooks for every event keep integration painless.\",\n  },\n  {\n    icon: (\n      <Glyph>\n        <path d=\"M21 12a9 9 0 1 1-3-6.7\" />\n        <path d=\"M21 4v5h-5\" />\n      </Glyph>\n    ),\n    title: \"Always in sync\",\n    description: \"Changes propagate across devices instantly, and offline edits merge cleanly when you reconnect.\",\n  },\n];\n\nfunction FeatureCard({ feature }: { feature: FeatureItem }) {\n  function handleMove(e: React.PointerEvent<HTMLLIElement>) {\n    const el = e.currentTarget;\n    const r = el.getBoundingClientRect();\n    el.style.setProperty(\"--hb-fs-x\", `${(e.clientX - r.left).toFixed(1)}px`);\n    el.style.setProperty(\"--hb-fs-y\", `${(e.clientY - r.top).toFixed(1)}px`);\n  }\n\n  return (\n    <li className=\"hb-fs-card\" onPointerMove={handleMove}>\n      {feature.icon != null && <span className=\"hb-fs-icon\">{feature.icon}</span>}\n      <div className=\"hb-fs-body\">\n        <h3 className=\"hb-fs-card-title\">{feature.title}</h3>\n        <p className=\"hb-fs-card-desc\">{feature.description}</p>\n      </div>\n    </li>\n  );\n}\n\nexport function FeaturesSection({\n  eyebrow = \"Features\",\n  title = \"Everything you need to ship faster\",\n  subtitle = \"A focused set of tools that stay out of your way, so your team can spend its time on the work that matters.\",\n  features = defaultFeatures,\n  columns = 3,\n  layout = \"grid\",\n  accent = \"#2f7bff\",\n  className = \"\",\n  style,\n  ...rest\n}: FeaturesSectionProps) {\n  const uid = React.useId();\n  const cols = columns === 2 || columns === 4 ? columns : 3;\n  const vars = { \"--hb-fs-accent\": accent, ...style } as React.CSSProperties;\n\n  return (\n    <section className={`hb-fs ${className}`} style={vars} aria-labelledby={`${uid}-title`} {...rest}>\n      <style href=\"hb-features-section\" precedence=\"default\">{css}</style>\n      <div className=\"hb-fs-wrap\">\n        <header className=\"hb-fs-head\">\n          {eyebrow && <p className=\"hb-fs-eyebrow\">{eyebrow}</p>}\n          <h2 id={`${uid}-title`} className=\"hb-fs-title\">{title}</h2>\n          {subtitle && <p className=\"hb-fs-sub\">{subtitle}</p>}\n        </header>\n        <ul className=\"hb-fs-grid\" data-cols={cols} data-layout={layout}>\n          {features.map((feature, i) => (\n            <FeatureCard key={`${feature.title}-${i}`} feature={feature} />\n          ))}\n        </ul>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}