{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "marketing",
  "title": "Marketing",
  "description": "For landing and product pages only: glass nav, hero, gradient stage with window frame, feature tiles, review wall, FAQ, article cards, dot band, footer, reveal. App screens stay monochrome.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "@dgit/button",
    "@dgit/theme"
  ],
  "files": [
    {
      "path": "registry/dgit/blocks/marketing.tsx",
      "content": "import { useEffect, useRef, useState, type CSSProperties, type ReactNode } from \"react\";\nimport { Plus } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\nimport { Button } from \"@/registry/dgit/ui/button\";\n\n/** Rises in once when it scrolls into view. `index` staggers siblings by 70 ms. */\nexport function Reveal({ children, index = 0, className, as: Tag = \"div\" }: { children: ReactNode; index?: number; className?: string; as?: \"div\" | \"li\" | \"section\" }) {\n  const ref = useRef<HTMLDivElement>(null);\n  useEffect(() => {\n    const el = ref.current; if (!el) return;\n    const io = new IntersectionObserver(([e]) => { if (e.isIntersecting) { el.classList.add(\"mk-in\"); io.disconnect(); } }, { rootMargin: \"0px 0px -8% 0px\" });\n    io.observe(el); return () => io.disconnect();\n  }, []);\n  const T = Tag as \"div\";\n  return <T ref={ref} className={cn(\"mk-reveal\", className)} style={{ \"--i\": index } as CSSProperties}>{children}</T>;\n}\n\n/** Centered first screen: optional mark, big balanced title, one muted line, one pill CTA. */\nexport function Hero({ mark, title, sub, cta, children }: { mark?: ReactNode; title: string; sub: string; cta: string; children?: ReactNode }) {\n  return (\n    <section className=\"px-4 pt-12 text-center sm:pt-20\">\n      {mark && <Reveal index={0} className=\"mx-auto mb-8 flex justify-center\">{mark}</Reveal>}\n      <Reveal index={1}><h1 className=\"mk-display mx-auto max-w-[16ch] sm:max-w-3xl\">{title}</h1></Reveal>\n      <Reveal index={2}><p className=\"mx-auto mt-5 max-w-[34ch] text-copy-15 font-medium text-muted-foreground sm:max-w-md sm:text-[17px] sm:leading-7\">{sub}</p></Reveal>\n      <Reveal index={3} className=\"mt-9\"><Button size=\"lg\" className=\"active:scale-[0.97] px-7 text-base transition-[opacity,transform] duration-300\">{cta}</Button></Reveal>\n      {children}\n    </section>\n  );\n}\n\n/** Stage: a soft grainy surface; put a WindowFrame on it to show a product shot big. */\nexport function Stage({ children, className }: { children: ReactNode; className?: string }) {\n  return <div className={cn(\"mk-stage rounded-none px-4 py-14 sm:px-[8%] sm:py-20\", className)}>{children}</div>;\n}\nexport function WindowFrame({ title, children }: { title: string; children: ReactNode }) {\n  return (\n    <div className=\"mx-auto w-full max-w-5xl overflow-hidden rounded-xl shadow-card mk-frame\">\n      <div className=\"flex h-8 items-center gap-1.5 px-3\">\n        <i className=\"size-2.5 rounded-full bg-[#ff5f57]\" /><i className=\"size-2.5 rounded-full bg-[#febc2e]\" /><i className=\"size-2.5 rounded-full bg-[#28c840]\" />\n        <span className=\"ml-3 text-label-12 text-muted-foreground\">{title}</span>\n      </div>\n      <div className=\"bg-background-100\">{children}</div>\n    </div>\n  );\n}\n\n/** Section title, big, with an optional \"See all\" link on the right. */\nexport function SectionHead({ title, action, center }: { title: string; action?: string; center?: boolean }) {\n  return (\n    <div className={cn(\"mb-10 flex items-end justify-between gap-6 sm:mb-14\", center && \"justify-center text-center\")}>\n      <Reveal><h2 className=\"mk-h1\">{title}</h2></Reveal>\n      {action && <a href=\"#top\" className=\"active:scale-[0.97] text-copy-15 text-muted-foreground transition-colors hover:text-foreground\">{action}</a>}\n    </div>\n  );\n}\n\n/** Feature tile: a big rounded gray surface holding a demo, then a title and one line. The surface darkens on hover. */\nexport function FeatureTile({ visual, title, body, index = 0 }: { visual: ReactNode; title: string; body: string; index?: number }) {\n  return (\n    <Reveal index={index} className=\"group\">\n      <div className=\"aspect-[4/3] overflow-hidden rounded-3xl bg-gray-100 transition-colors duration-[400ms] group-hover:bg-gray-200\">{visual}</div>\n      <h3 className=\"mt-5 text-center text-heading-20\">{title}</h3>\n      <p className=\"mt-1.5 text-center text-copy-15 text-muted-foreground\">{body}</p>\n    </Reveal>\n  );\n}\n\n/** Review wall: soft cards (avatar, name, role, big quote) stacked in columns of uneven height. */\nexport type Review = { name: string; role: string; text: string };\nexport function ReviewWall({ items }: { items: Review[] }) {\n  return (\n    <div className=\"columns-1 gap-4 sm:columns-2 lg:columns-3\">\n      {items.map((r, i) => (\n        <Reveal key={r.name} index={i % 3} className=\"mb-4 break-inside-avoid\">\n          <figure className=\"rounded-3xl bg-gray-100 p-7\">\n            <figcaption className=\"flex items-center gap-3.5\">\n              <span aria-hidden className=\"flex size-14 items-center justify-center rounded-full bg-gray-300 text-heading-20\">{r.name[0]}</span>\n              <span><span className=\"block text-heading-16\">{r.name}</span><span className=\"block text-copy-15 text-muted-foreground\">{r.role}</span></span>\n            </figcaption>\n            <blockquote className=\"mt-6 text-[17px] leading-7\">{r.text}</blockquote>\n          </figure>\n        </Reveal>\n      ))}\n    </div>\n  );\n}\n\n/** FAQ: hairlines between rows, the + turns 45° into ×, the answer opens by height (grid-rows 0fr to 1fr). */\nexport function Faq({ items }: { items: { q: string; a: string }[] }) {\n  const [open, setOpen] = useState<number | null>(0);\n  return (\n    <div className=\"divide-y divide-border border-y\">\n      {items.map((it, i) => (\n        <div key={it.q}>\n          <button type=\"button\" aria-expanded={open === i} onClick={() => setOpen(open === i ? null : i)} className=\"flex w-full items-center justify-between gap-6 py-6 text-left text-heading-20\">\n            {it.q}<Plus className={cn(\"size-5 shrink-0 transition-transform duration-300\", open === i && \"rotate-45\")} />\n          </button>\n          <div className={cn(\"grid transition-[grid-template-rows] duration-300\", open === i ? \"grid-rows-[1fr]\" : \"grid-rows-[0fr]\")}>\n            <p className=\"min-h-0 overflow-hidden pr-10 text-copy-15 text-muted-foreground\"><span className=\"block pb-6\">{it.a}</span></p>\n          </div>\n        </div>\n      ))}\n    </div>\n  );\n}\n\n/** Article card: a near-square stage surface with big text, then a title and a meta line. */\nexport function ArticleCard({ title, meta, cover, index = 0 }: { title: string; meta: string; cover: ReactNode; index?: number }) {\n  return (\n    <Reveal index={index}>\n      <a href=\"#top\" className=\"group block\">\n        <div className=\"mk-stage grid aspect-[5/4] place-items-center rounded-3xl text-center text-heading-30 text-foreground transition-transform duration-[400ms] group-hover:scale-[0.99]\">{cover}</div>\n        <h3 className=\"mt-4 text-heading-20\">{title}</h3>\n        <p className=\"mt-1 text-copy-14 text-muted-foreground\">{meta}</p>\n      </a>\n    </Reveal>\n  );\n}\n\n/** Closing band: a big sentence and a CTA on a dot grid. */\nexport function DotBand({ title, cta }: { title: string; cta: string }) {\n  return (\n    <div className=\"mk-dots relative overflow-hidden rounded-[32px] bg-gray-100 px-6 py-20 text-center sm:py-28\">\n      <h2 className=\"mk-h1 mx-auto max-w-[18ch]\">{title}</h2>\n      <Button size=\"lg\" className=\"active:scale-[0.97] mt-8 px-7 text-base\">{cta}</Button>\n    </div>\n  );\n}\n\n/** Footer: link columns (bold title, muted links) and a huge faint wordmark cropped at the bottom. */\nexport function Footer({ cols, word }: { cols: { title: string; links: string[] }[]; word: string }) {\n  return (\n    <footer className=\"overflow-hidden px-4 pt-14 sm:px-8\">\n      <div className=\"mx-auto grid max-w-6xl grid-cols-2 gap-8 sm:grid-cols-3 lg:grid-cols-5\">\n        {cols.map((c) => (\n          <div key={c.title}>\n            <p className=\"text-heading-16\">{c.title}</p>\n            <ul className=\"mt-4 space-y-2.5\">{c.links.map((l) => <li key={l}><a href=\"#top\" className=\"text-copy-15 text-muted-foreground transition-colors hover:text-foreground\">{l}</a></li>)}</ul>\n          </div>\n        ))}\n      </div>\n      <p aria-hidden className=\"mt-16 -mb-[0.28em] select-none text-center font-semibold leading-none tracking-[-0.05em] text-gray-200\" style={{ fontSize: \"min(24vw, 340px)\" }}>{word}</p>\n    </footer>\n  );\n}\n",
      "type": "registry:block"
    },
    {
      "path": "registry/dgit/blocks/marketing-nav.tsx",
      "content": "import { useState } from \"react\";\nimport { Menu, X, ChevronDown } from \"lucide-react\";\nimport { Button } from \"@/registry/dgit/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\n/** Glass bar on top: links in the middle, a pill CTA on the right, a hamburger on phones. The current link is dark, the rest muted. */\nexport function NavBar({ brand, links, cta }: { brand: string; links: { label: string; menu?: string[] }[]; cta: string }) {\n  const [open, setOpen] = useState(false);\n  const [active, setActive] = useState(links[0]?.label ?? \"\");\n  const [drop, setDrop] = useState<string | null>(null);\n  return (\n    <header className=\"mk-nav sticky top-0 z-30\">\n      <div className=\"mx-auto flex h-14 max-w-6xl items-center px-4 sm:px-8\">\n        <a href=\"#top\" className=\"text-heading-20 tracking-tight\">{brand}</a>\n        <nav aria-label=\"Main\" className=\"absolute left-1/2 hidden -translate-x-1/2 items-center gap-7 md:flex\">\n          {links.map((l) => (\n            <div key={l.label} className=\"relative\" onMouseLeave={() => setDrop(null)} onBlur={(e) => { if (!e.currentTarget.contains(e.relatedTarget)) setDrop(null); }} onKeyDown={(e) => { if (e.key === \"Escape\") setDrop(null); }}>\n              <button type=\"button\" onMouseEnter={() => l.menu && setDrop(l.label)} onClick={() => (l.menu ? setDrop(drop === l.label ? null : l.label) : setActive(l.label))} aria-haspopup={l.menu ? \"menu\" : undefined} aria-expanded={l.menu ? drop === l.label : undefined}\n                className={cn(\"active:scale-[0.97] inline-flex items-center gap-1 text-label-14 font-medium transition-colors\", active === l.label ? \"text-foreground\" : \"text-muted-foreground hover:text-foreground\")}>\n                {l.label}{l.menu && <ChevronDown className=\"size-3.5\" />}\n              </button>\n              {l.menu && drop === l.label && (\n                <div className=\"animate-menu absolute left-1/2 top-full w-60 -translate-x-1/2 pt-3\">\n                  <ul className=\"shadow-menu rounded-2xl bg-popover p-1.5\">\n                    {l.menu.map((m) => <li key={m}><a href=\"#top\" className=\"block rounded-lg px-3 py-2 text-copy-14 transition-colors hover:bg-gray-100\">{m}</a></li>)}\n                  </ul>\n                </div>\n              )}\n            </div>\n          ))}\n        </nav>\n        <Button size=\"sm\" className=\"ml-auto hidden md:inline-flex\">{cta}</Button>\n        <button type=\"button\" aria-label={open ? \"Close menu\" : \"Open menu\"} aria-expanded={open} onClick={() => setOpen(!open)} className=\"active:scale-[0.97] -mr-2 ml-auto flex size-11 items-center justify-center md:hidden\">\n          {open ? <X className=\"size-5\" /> : <Menu className=\"size-5\" />}\n        </button>\n      </div>\n      <div className={cn(\"grid overflow-hidden transition-[grid-template-rows] duration-300 md:hidden\", open ? \"grid-rows-[1fr]\" : \"grid-rows-[0fr]\")}>\n        <div className=\"min-h-0\" inert={!open}><div className=\"bg-background px-4 pb-4\">\n          {links.map((l, i) => <a key={l.label} href=\"#top\" aria-current={active === l.label ? \"page\" : undefined} onClick={() => setActive(l.label)} style={{ transitionDelay: open ? `${i * 40}ms` : \"0ms\" }} className={cn(\"block py-3 text-heading-20 transition-all duration-300\", open ? \"translate-y-0 opacity-100\" : \"-translate-y-1 opacity-0\")}>{l.label}</a>)}\n          <Button className=\"mt-2 w-full\">{cta}</Button>\n        </div></div>\n      </div>\n    </header>\n  );\n}\n",
      "type": "registry:block"
    },
    {
      "path": "registry/dgit/styles/marketing.css",
      "content": "/*\n * DGit UI marketing layer. Import after dgit.css, for landing and product pages ONLY; app screens stay monochrome.\n * Everything here is prefixed (--mk-*, .mk-*) so nothing leaks into the rest of the app.\n * Set <html data-marketing=\"flat\"> to turn off the stage gradient, glass, blur and shadow (gray surfaces only).\n */\n:root {\n  --mk-dur-hover: 150ms;\n  --mk-dur-cascade: 480ms;\n  --mk-stagger: 70ms;\n  --mk-ease: cubic-bezier(0.22, 1, 0.36, 1);\n  --mk-stage-a: #d9d9de;\n  --mk-stage-b: #f1f1f3;\n  --mk-stage-c: #9a9aa2;\n  --mk-glass: hsla(var(--dgit-background-200), 0.8);\n  --mk-glass-modal: #dedee0cc;\n  --mk-dot: hsla(var(--dgit-gray-1000), 0.18);\n}\n:root[data-theme=\"dark\"] { --mk-stage-a: #1c1c20; --mk-stage-b: #2a2a30; --mk-stage-c: #0c0c0e; --mk-glass-modal: #26262acc; --mk-dot: hsla(var(--dgit-gray-1000), 0.22); }\n@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --mk-stage-a: #1c1c20; --mk-stage-b: #2a2a30; --mk-stage-c: #0c0c0e; --mk-glass-modal: #26262acc; --mk-dot: hsla(var(--dgit-gray-1000), 0.22); } }\n\n/* Big type steps, used only by marketing blocks. */\n.mk-display, .mk-h1, .mk-h2 { text-wrap: balance; word-break: keep-all; }\n.mk-display { font-size: 60px; line-height: 72px; font-weight: 700; letter-spacing: -1.8px; }\n.mk-h1 { font-size: 50px; line-height: 62px; font-weight: 650; letter-spacing: -1.5px; }\n.mk-h2 { font-size: 40px; line-height: 50px; font-weight: 650; letter-spacing: -1.2px; }\n@media (max-width: 640px) {\n  .mk-display, .mk-h1 { font-size: 30px; line-height: 39px; letter-spacing: -0.9px; }\n  .mk-h2 { font-size: 26px; line-height: 34px; letter-spacing: -0.8px; }\n}\n\n/* Rise-in; siblings stagger by --i * 70ms. */\n.mk-reveal { opacity: 0; transform: translateY(14px); }\n.mk-reveal.mk-in { animation: mk-cascade-in var(--mk-dur-cascade) var(--mk-ease) both; animation-delay: calc(var(--i, 0) * var(--mk-stagger)); }\n@keyframes mk-cascade-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }\n@media (prefers-reduced-motion: reduce), print { .mk-reveal { opacity: 1; transform: none; } .mk-reveal.mk-in { animation: none; } }\n\n/* Stage: a soft grainy surface behind product shots. */\n.mk-stage {\n  position: relative; isolation: isolate; overflow: hidden;\n  background:\n    radial-gradient(120% 90% at 0% 0%, var(--mk-stage-b) 0%, transparent 55%),\n    radial-gradient(90% 80% at 100% 100%, var(--mk-stage-c) 0%, transparent 60%),\n    var(--mk-stage-a);\n}\n.mk-stage::after {\n  content: \"\"; position: absolute; inset: 0; z-index: -1; opacity: 0.35; mix-blend-mode: multiply; pointer-events: none;\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\");\n}\n.mk-dots { background-image: radial-gradient(var(--mk-dot) 1px, transparent 1.2px); background-size: 24px 24px; }\n.mk-glass { background: var(--mk-glass-modal); backdrop-filter: blur(40px) saturate(1.4); -webkit-backdrop-filter: blur(40px) saturate(1.4); }\n.mk-frame { background: hsla(var(--dgit-background-100), 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }\n.mk-nav { background: linear-gradient(var(--mk-glass) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }\n.mk-shadow { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 24px -8px rgba(0,0,0,.10); }\n\n/* Flat variant: same blocks, gray surfaces only. */\nhtml[data-marketing=\"flat\"] .mk-stage { background: hsla(var(--dgit-gray-100), 1); }\nhtml[data-marketing=\"flat\"] .mk-stage::after { display: none; }\nhtml[data-marketing=\"flat\"] .mk-shadow { box-shadow: 0 0 0 1px hsla(var(--dgit-gray-300), 1); }\nhtml[data-marketing=\"flat\"] .mk-glass,\nhtml[data-marketing=\"flat\"] .mk-frame { background: hsla(var(--dgit-background-100), 1); backdrop-filter: none; -webkit-backdrop-filter: none; }\nhtml[data-marketing=\"flat\"] .mk-nav { background: hsla(var(--dgit-background-200), 1); backdrop-filter: none; -webkit-backdrop-filter: none; }\n",
      "type": "registry:file",
      "target": "app/marketing.css"
    }
  ],
  "type": "registry:block"
}