Clone any website with one command using AI coding agents
TypeScript aiai-agentsai-toolsautomationboilerplateclaudeclaude-codeclonedeveloper-toolsnextjsreactreverse-engineeringshadcn-uiskillstailwindcsstemplatetypescriptweb-scrapingwebsite-clone
feat: add optional Atlas asset fallback
binyangzhu000-sudo92872bc40ced
diff --git a/.amazonq/cli-agents/clone-website.json b/.amazonq/cli-agents/clone-website.jsonindex 536d4bd9..d17fa79f 100644--- a/.amazonq/cli-agents/clone-website.json+++ b/.amazonq/cli-agents/clone-website.json@@ -1,7 +1,7 @@{"name": "clone-website","description": "Reverse-engineer and clone one or more websites as pixel-perfect replicas",- "prompt": "\n# Clone Website\n\nYou are about to reverse-engineer and rebuild **the target URL or URLs provided by the user** as pixel-perfect clones.\n\nWhen multiple URLs are provided, preserve every pathname as a distinct route and isolate each target's research, screenshots, components, and assets. URLs that differ only by query string or fragment share a pathname, so resolve their route and state behavior explicitly in the output plan. Parallelize page work only after the shared foundation and output plan are fixed so concurrent builders cannot overwrite one another.\n\nThis is not a two-phase process (inspect then build). You are a **foreman walking the job site** — as you inspect each section of the page, you write a detailed specification to a file, then hand that file to a specialist builder agent with everything they need. Extraction and construction happen in parallel, but extraction is meticulous and produces auditable artifacts.\n\n## Scope Defaults\n\nThe target is whatever page `the target URL or URLs provided by the user` resolves to. Clone exactly what's visible at that URL. Unless the user specifies otherwise, use these defaults:\n\n- **Fidelity level:** Pixel-perfect — exact match in colors, spacing, typography, animations\n- **In scope:** Visual layout and styling, component structure and interactions, responsive design, mock data for demo purposes\n- **Out of scope:** Real backend / database, authentication, real-time features, SEO optimization, accessibility audit\n- **Customization:** None — pure emulation\n\nIf the user provides additional instructions (specific fidelity level, customizations, extra context), honor those over the defaults.\n\n## Output Isolation and Route Preservation\n\nTreat every target URL as durable project output, not as permission to replace whatever was built previously.\n\nChoose an `<app-root>` before extraction. For a single application, `<app-root>` is the repository root (`.`). If different origins need separate applications, require the user to provide or approve a prepared Next.js project root for each origin; verify each root builds independently, and never write one origin's output into another root.\n\nThen assign each target:\n\n- A collision-resistant `<site-key>`: a readable origin slug (including a non-default port) plus the first 8 lowercase hex characters of SHA-256 over the normalized origin.\n- A collision-resistant `<page-key>`: a segment-preserving readable pathname slug plus the first 8 lowercase hex characters of SHA-256 over the normalized pathname and any stateful query/fragment; use `root-<hash>` for `/`. Never rely on lossy character replacement alone.\n- An artifact root: `<app-root>/docs/research/<site-key>/<page-key>/`.\n- A screenshot root: `<app-root>/docs/design-references/<site-key>/<page-key>/`.\n- A component root: `<app-root>/src/components/sites/<site-key>/<page-key>/`, with genuinely shared same-site components under `<app-root>/src/components/sites/<site-key>/shared/`.\n- An asset root: `<app-root>/public/sites/<site-key>/<page-key>/`, with genuinely shared same-site assets under `<app-root>/public/sites/<site-key>/shared/`.\n- A Next.js route file.\n\nAll paths in the remaining phases are relative to that target's `<app-root>`. Before writing, verify that every planned route, artifact root, screenshot root, component root, asset root, and downloader filename is unique or is an explicitly approved shared location.\n\nRouting defaults:\n\n- For the first single-URL clone in an untouched template, the existing scaffold at `src/app/page.tsx` may be replaced so the clone remains available at `/`.\n- For multiple URLs from the same origin, or any later clone added to a project that already contains cloned/user-authored pages, preserve the normalized source pathname as its App Router URL (for example, `/docs/intro` becomes `<app-root>/src/app/docs/intro/page.tsx`). Encode filesystem segment names that would invoke App Router syntax: escape a leading `_` or `@`, and literal parentheses or square brackets, with percent-encoded folder spellings rather than creating private folders, slots, route groups, or dynamic segments. Verify the built route resolves at the exact normalized URL before completion.\n- Inspect every existing `src/app/**/page.tsx` before writing. Never delete or replace a non-scaffold route, component tree, research folder, screenshot, or asset namespace unless the user explicitly approves that exact replacement.\n- If the planned route already exists, stop and ask whether to update that route, choose another route, or skip it.\n- URLs from different origins may require incompatible fonts, global CSS, layouts, and metadata. Before modifying files, ask whether the user wants separate prepared application roots (recommended) or an intentionally combined multi-site app with route-scoped styling. Do not create an unapproved monorepo or silently mix global foundations.\n\n## Pre-Flight\n\n1. **Browser automation is required.** Check for available browser MCP tools (Chrome MCP, Playwright MCP, Browserbase MCP, Puppeteer MCP, etc.). Use whichever is available — if multiple exist, prefer Chrome MCP. If none are detected, ask the user which browser tool they have and how to connect it. This skill cannot work without browser automation.\n2. Parse `the target URL or URLs provided by the user` as one or more URLs. Normalize and validate each URL; if any are invalid, ask the user to correct them before proceeding. For each valid URL, verify it is accessible via your browser MCP tool.\n3. Verify the base project builds: `npm run build`. The Next.js + shadcn/ui + Tailwind v4 scaffold should already be in place. If not, tell the user to set it up first.\n4. Inventory existing routes (`src/app/**/page.tsx`), site component namespaces, research artifacts, screenshots, and public assets. Distinguish the untouched template scaffold from existing cloned or user-authored work.\n5. Write an output plan listing every target URL, `<app-root>`, `<site-key>`, `<page-key>`, destination route, artifact roots, and whether any shared foundation file must change. Resolve collisions across every planned output, same-path query/fragment behavior, and multi-origin layout decisions with the user before editing.\n6. Create only the planned per-page/per-site directories plus `scripts/` if needed. Use unique asset-download script names such as `scripts/download-assets-<site-key>-<page-key>.mjs`; do not overwrite another page's downloader.\n7. For multiple pages from one origin, build the shared foundation once, sequentially, before parallel page work. Optionally confirm whether to run page builders in parallel (recommended if resources allow) or sequentially to avoid overload.\n\n## Guiding Principles\n\nThese are the truths that separate a successful clone from a \"close enough\" mess. Internalize them — they should inform every decision you make.\n\n### 1. Completeness Beats Speed\n\nEvery builder agent must receive **everything** it needs to do its job perfectly: screenshot, exact CSS values, downloaded assets with local paths, real text content, component structure. If a builder has to guess anything — a color, a font size, a padding value — you have failed at extraction. Take the extra minute to extract one more property rather than shipping an incomplete brief.\n\n### 2. Small Tasks, Perfect Results\n\nWhen an agent gets \"build the entire features section,\" it glosses over details — it approximates spacing, guesses font sizes, and produces something \"close enough\" but clearly wrong. When it gets a single focused component with exact CSS values, it nails it every time.\n\nLook at each section and judge its complexity. A simple banner with a heading and a button? One agent. A complex section with 3 different card variants, each with unique hover states and internal layouts? One agent per card variant plus one for the section wrapper. When in doubt, make it smaller.\n\n**Complexity budget rule:** If a builder prompt exceeds ~150 lines of spec content, the section is too complex for one agent. Break it into smaller pieces. This is a mechanical check — don't override it with \"but it's all related.\"\n\n### 3. Real Content, Real Assets\n\nExtract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.\n\n**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.\n\n### 4. Foundation First\n\nNothing can be built until the foundation exists: global CSS with the target site's design tokens (colors, fonts, spacing), TypeScript types for the content structures, and global assets (fonts, favicons). This is sequential and non-negotiable. Everything after this can be parallel.\n\n### 5. Extract How It Looks AND How It Behaves\n\nA website is not a screenshot — it's a living thing. Elements move, change, appear, and disappear in response to scrolling, hovering, clicking, resizing, and time. If you only extract the static CSS of each element, your clone will look right in a screenshot but feel dead when someone actually uses it.\n\nFor every element, extract its **appearance** (exact computed CSS via `getComputedStyle()`) AND its **behavior** (what changes, what triggers the change, and how the transition happens). Not \"it looks like 16px\" — extract the actual computed value. Not \"the nav changes on scroll\" — document the exact trigger (scroll position, IntersectionObserver threshold, viewport intersection), the before and after states (both sets of CSS values), and the transition (duration, easing, CSS transition vs. JS-driven vs. CSS `animation-timeline`).\n\nExamples of behaviors to watch for — these are illustrative, not exhaustive. The page may do things not on this list, and you must catch those too:\n- A navbar that shrinks, changes background, or gains a shadow after scrolling past a threshold\n- Elements that animate into view when they enter the viewport (fade-up, slide-in, stagger delays)\n- Sections that snap into place on scroll (`scroll-snap-type`)\n- Parallax layers that move at different rates than the scroll\n- Hover states that animate (not just change — the transition duration and easing matter)\n- Dropdowns, modals, accordions with enter/exit animations\n- Scroll-driven progress indicators or opacity transitions\n- Auto-playing carousels or cycling content\n- Dark-to-light (or any theme) transitions between page sections\n- **Tabbed/pill content that cycles** — buttons that switch visible card sets with transitions\n- **Scroll-driven tab/accordion switching** — sidebars where the active item auto-changes as content scrolls past (IntersectionObserver, NOT click handlers)\n- **Smooth scroll libraries** (Lenis, Locomotive Scroll) — check for `.lenis` class or scroll container wrappers\n\n### 6. Identify the Interaction Model Before Building\n\nThis is the single most expensive mistake in cloning: building a click-based UI when the original is scroll-driven, or vice versa. Before writing any builder prompt for an interactive section, you must definitively answer: **Is this section driven by clicks, scrolls, hovers, time, or some combination?**\n\nHow to determine this:\n1. **Don't click first.** Scroll through the section slowly and observe if things change on their own as you scroll.\n2. If they do, it's scroll-driven. Extract the mechanism: `IntersectionObserver`, `scroll-snap`, `position: sticky`, `animation-timeline`, or JS scroll listeners.\n3. If nothing changes on scroll, THEN click/hover to test for click/hover-driven interactivity.\n4. Document the interaction model explicitly in the component spec: \"INTERACTION MODEL: scroll-driven with IntersectionObserver\" or \"INTERACTION MODEL: click-to-switch with opacity transition.\"\n\nA section with a sticky sidebar and scrolling content panels is fundamentally different from a tabbed interface where clicking switches content. Getting this wrong means a complete rewrite, not a CSS tweak.\n\n### 7. Extract Every State, Not Just the Default\n\nMany components have multiple visual states — a tab bar shows different cards per tab, a header looks different at scroll position 0 vs 100, a card has hover effects. You must extract ALL states, not just whatever is visible on page load.\n\nFor tabbed/stateful content:\n- Click each tab/button via browser MCP\n- Extract the content, images, and card data for EACH state\n- Record which content belongs to which state\n- Note the transition animation between states (opacity, slide, fade, etc.)\n\nFor scroll-dependent elements:\n- Capture computed styles at scroll position 0 (initial state)\n- Scroll past the trigger threshold and capture computed styles again (scrolled state)\n- Diff the two to identify exactly which CSS properties change\n- Record the transition CSS (duration, easing, properties)\n- Record the exact trigger threshold (scroll position in px, or viewport intersection ratio)\n\n### 8. Spec Files Are the Source of Truth\n\nEvery component gets a specification file under that page's artifact root (`docs/research/<site-key>/<page-key>/components/`) BEFORE any builder is dispatched. This file is the contract between your extraction work and the builder agent. The builder receives the spec file contents inline in its prompt — the file also persists as an auditable artifact that the user (or you) can review if something looks wrong.\n\nThe spec file is not optional. It is not a nice-to-have. If you dispatch a builder without first writing a spec file, you are shipping incomplete instructions based on whatever you can remember from a browser MCP session, and the builder will guess to fill gaps.\n\n### 9. Build Must Always Compile\n\nEvery builder agent must verify `npx tsc --noEmit` passes before finishing. After merging worktrees, you verify `npm run build` passes. A broken build is never acceptable, even temporarily.\n\n## Phase 1: Reconnaissance\n\nNavigate to the target URL with browser MCP.\n\n### Screenshots\n- Take **full-page screenshots** at desktop (1440px) and mobile (390px) viewports\n- Save to that page's screenshot root (`docs/design-references/<site-key>/<page-key>/`) with descriptive names\n- These are your master reference — builders will receive section-specific crops/screenshots later\n\n### Global Extraction\nExtract these from the page before doing anything else:\n\n**Fonts** — Inspect `<link>` tags for Google Fonts or self-hosted fonts. Check computed `font-family` on key elements (headings, body, code, labels). Document every family, weight, and style actually used. For a single-site app, configure shared fonts in `src/app/layout.tsx` using `next/font/google` or `next/font/local`. In an approved combined multi-site app, keep incompatible fonts/layout concerns route-scoped.\n\n**Colors** — Extract the site's color palette from computed styles across the page. For a single-site app, merge the target's colors into `src/app/globals.css` without removing tokens required by existing routes. Map them to shadcn's token names (background, foreground, primary, muted, etc.) where they fit. In an approved combined multi-site app, use a route wrapper or scoped token namespace instead of replacing another site's global palette.\n\n**Favicons & Meta** — Download page/site SEO assets under the planned site asset namespace. Put truly app-global metadata in the root layout only when it applies to every route; otherwise export route-specific metadata from the destination page or a route layout.\n\n**Global UI patterns** — Identify any site-wide CSS or JS: custom scrollbar hiding, scroll-snap on the page container, global keyframe animations, backdrop filters, gradients used as overlays, **smooth scroll libraries** (Lenis, Locomotive Scroll — check for `.lenis`, `.locomotive-scroll`, or custom scroll container classes). Merge truly shared behavior into `globals.css`; keep page-specific behavior scoped to the page so existing routes do not change unexpectedly.\n\n### Mandatory Interaction Sweep\n\nThis is a dedicated pass AFTER screenshots and BEFORE anything else. Its purpose is to discover every behavior on the page — many of which are invisible in a static screenshot.\n\n**Scroll sweep:** Scroll the page slowly from top to bottom via browser MCP. At each section, pause and observe:\n- Does the header change appearance? Record the scroll position where it triggers.\n- Do elements animate into view? Record which ones and the animation type.\n- Does a sidebar or tab indicator auto-switch as you scroll? Record the mechanism.\n- Are there scroll-snap points? Record which containers.\n- Is there a smooth scroll library active? Check for non-native scroll behavior.\n\n**Click sweep:** Click every element that looks interactive:\n- Every button, tab, pill, link, card\n- Record what happens: does content change? Does a modal open? Does a dropdown appear?\n- For tabs/pills: click EACH ONE and record the content that appears for each state\n\n**Hover sweep:** Hover over every element that might have hover states:\n- Buttons, cards, links, images, nav items\n- Record what changes: color, scale, shadow, underline, opacity\n\n**Responsive sweep:** Test at 3 viewport widths via browser MCP:\n- Desktop: 1440px\n- Tablet: 768px\n- Mobile: 390px\n- At each width, note which sections change layout (column → stack, sidebar disappears, etc.) and at approximately which breakpoint the change occurs.\n\nSave all findings to `<artifact-root>/BEHAVIORS.md`. This is your behavior bible — reference it when writing every component spec.\n\n### Page Topology\nMap out every distinct section of the page from top to bottom. Give each a working name. Document:\n- Their visual order\n- Which are fixed/sticky overlays vs. flow content\n- The overall page layout (scroll container, column structure, z-index layers)\n- Dependencies between sections (e.g., a floating nav that overlays everything)\n- **The interaction model** of each section (static, click-driven, scroll-driven, time-driven)\n\nSave this as `<artifact-root>/PAGE_TOPOLOGY.md` — it becomes your assembly blueprint.\n\n## Phase 2: Foundation Build\n\nThis is sequential per origin. Do it yourself (not delegated to an agent) since it touches shared files. Re-read the output plan and preserve every existing route before editing:\n\n1. **Merge fonts and shared layout behavior** without deleting requirements of existing routes. Use route layouts when behavior is not truly app-global.\n2. **Merge global CSS carefully**; scope page/site-specific tokens, keyframes, scroll behavior, and utilities under a route wrapper when they could conflict.\n3. **Create namespaced TypeScript interfaces** for the content structures you've observed; reuse existing same-site types only when their contracts match.\n4. **Extract SVG icons** — deduplicate same-site icons under `src/components/sites/<site-key>/shared/icons.tsx`; keep page-only icons in the page component namespace. Name them by visual function (e.g., `SearchIcon`, `ArrowRightIcon`, `LogoIcon`).\n5. **Download assets into the planned namespace** — use the page's uniquely named download script and write into `public/sites/<site-key>/<page-key>/` or the approved same-site shared directory. Never write a generic filename over another page's asset.\n6. Verify every previously existing route still builds, then run `npm run build`.\n\n### Asset Discovery Script Pattern\n\nUse browser MCP to enumerate all assets on the page:\n\n```javascript\n// Run this via browser MCP to discover all assets\nJSON.stringify({\n images: [...document.querySelectorAll('img')].map(img => ({\n src: img.src || img.currentSrc,\n alt: img.alt,\n width: img.naturalWidth,\n height: img.naturalHeight,\n // Include parent info to detect layered compositions\n parentClasses: img.parentElement?.className,\n siblings: img.parentElement ? [...img.parentElement.querySelectorAll('img')].length : 0,\n position: getComputedStyle(img).position,\n zIndex: getComputedStyle(img).zIndex\n })),\n videos: [...document.querySelectorAll('video')].map(v => ({\n src: v.src || v.querySelector('source')?.src,\n poster: v.poster,\n autoplay: v.autoplay,\n loop: v.loop,\n muted: v.muted\n })),\n backgroundImages: [...document.querySelectorAll('*')].filter(el => {\n const bg = getComputedStyle(el).backgroundImage;\n return bg && bg !== 'none';\n }).map(el => ({\n url: getComputedStyle(el).backgroundImage,\n element: el.tagName + '.' + el.className?.split(' ')[0]\n })),\n svgCount: document.querySelectorAll('svg').length,\n fonts: [...new Set([...document.querySelectorAll('*')].slice(0, 200).map(el => getComputedStyle(el).fontFamily))],\n favicons: [...document.querySelectorAll('link[rel*=\"icon\"]')].map(l => ({ href: l.href, sizes: l.sizes?.toString() }))\n});\n```\n\nThen use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.\n\n## Phase 3: Component Specification & Dispatch\n\nThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.\n\n### Step 1: Extract\n\nFor each section, use browser MCP to extract everything:\n\n1. **Screenshot** the section in isolation (scroll to it, screenshot the viewport). Save to the page's screenshot root.\n\n2. **Extract CSS** for every element in the section. Use the extraction script below — don't hand-measure individual properties. Run it once per component container and capture the full output:\n\n```javascript\n// Per-component extraction — run via browser MCP\n// Replace SELECTOR with the actual CSS selector for the component\n(function(selector) {\n const el = document.querySelector(selector);\n if (!el) return JSON.stringify({ error: 'Element not found: ' + selector });\n const props = [\n 'fontSize','fontWeight','fontFamily','lineHeight','letterSpacing','color',\n 'textTransform','textDecoration','backgroundColor','background',\n 'padding','paddingTop','paddingRight','paddingBottom','paddingLeft',\n 'margin','marginTop','marginRight','marginBottom','marginLeft',\n 'width','height','maxWidth','minWidth','maxHeight','minHeight',\n 'display','flexDirection','justifyContent','alignItems','gap',\n 'gridTemplateColumns','gridTemplateRows',\n 'borderRadius','border','borderTop','borderBottom','borderLeft','borderRight',\n 'boxShadow','overflow','overflowX','overflowY',\n 'position','top','right','bottom','left','zIndex',\n 'opacity','transform','transition','cursor',\n 'objectFit','objectPosition','mixBlendMode','filter','backdropFilter',\n 'whiteSpace','textOverflow','WebkitLineClamp'\n ];\n function extractStyles(element) {\n const cs = getComputedStyle(element);\n const styles = {};\n props.forEach(p => { const v = cs[p]; if (v && v !== 'none' && v !== 'normal' && v !== 'auto' && v !== '0px' && v !== 'rgba(0, 0, 0, 0)') styles[p] = v; });\n return styles;\n }\n function walk(element, depth) {\n if (depth > 4) return null;\n const children = [...element.children];\n return {\n tag: element.tagName.toLowerCase(),\n classes: element.className?.toString().split(' ').slice(0, 5).join(' '),\n text: element.childNodes.length === 1 && element.childNodes[0].nodeType === 3 ? element.textContent.trim().slice(0, 200) : null,\n styles: extractStyles(element),\n images: element.tagName === 'IMG' ? { src: element.src, alt: element.alt, naturalWidth: element.naturalWidth, naturalHeight: element.naturalHeight } : null,\n childCount: children.length,\n children: children.slice(0, 20).map(c => walk(c, depth + 1)).filter(Boolean)\n };\n }\n return JSON.stringify(walk(el, 0), null, 2);\n})('SELECTOR');\n```\n\n3. **Extract multi-state styles** — for any element with multiple states (scroll-triggered, hover, active tab), capture BOTH states:\n\n```javascript\n// State A: capture styles at current state (e.g., scroll position 0)\n// Then trigger the state change (scroll, click, hover via browser MCP)\n// State B: re-run the extraction script on the same element\n// The diff between A and B IS the behavior specification\n```\n\nRecord the diff explicitly: \"Property X changes from VALUE_A to VALUE_B, triggered by TRIGGER, with transition: TRANSITION_CSS.\"\n\n4. **Extract real content** — all text, alt attributes, aria labels, placeholder text. Use `element.textContent` for each text node. For tabbed/stateful content, **click each tab and extract content per state**.\n\n5. **Identify assets** this section uses — which namespaced downloaded images/videos and which site/page icon components. Check for **layered images** (multiple `<img>` or background-images stacked in the same container).\n\n6. **Assess complexity** — how many distinct sub-components does this section contain? A distinct sub-component is an element with its own unique styling, structure, and behavior (e.g., a card, a nav item, a search panel).\n\n### Step 2: Write the Component Spec File\n\nFor each section (or sub-component, if you're breaking it up), create a spec file inside the page's component-spec directory. This is NOT optional — every builder must have a corresponding spec file.\n\n**File path:** `docs/research/<site-key>/<page-key>/components/<component-name>.spec.md`\n\n**Template:**\n\n```markdown\n# <ComponentName> Specification\n\n## Overview\n- **Target file:** `src/components/sites/<site-key>/<page-key>/<ComponentName>.tsx`\n- **Screenshot:** `docs/design-references/<site-key>/<page-key>/<screenshot-name>.png`\n- **Interaction model:** <static | click-driven | scroll-driven | time-driven>\n\n## DOM Structure\n<Describe the element hierarchy — what contains what>\n\n## Computed Styles (exact values from getComputedStyle)\n\n### Container\n- display: ...\n- padding: ...\n- maxWidth: ...\n- (every relevant property with exact values)\n\n### <Child element 1>\n- fontSize: ...\n- color: ...\n- (every relevant property)\n\n### <Child element N>\n...\n\n## States & Behaviors\n\n### <Behavior name, e.g., \"Scroll-triggered floating mode\">\n- **Trigger:** <exact mechanism — scroll position 50px, IntersectionObserver rootMargin \"-30% 0px\", click on .tab-button, hover>\n- **State A (before):** maxWidth: 100vw, boxShadow: none, borderRadius: 0\n- **State B (after):** maxWidth: 1200px, boxShadow: 0 4px 20px rgba(0,0,0,0.1), borderRadius: 16px\n- **Transition:** transition: all 0.3s ease\n- **Implementation approach:** <CSS transition + scroll listener | IntersectionObserver | CSS animation-timeline | etc.>\n\n### Hover states\n- **<Element>:** <property>: <before> → <after>, transition: <value>\n\n## Per-State Content (if applicable)\n\n### State: \"Featured\"\n- Title: \"...\"\n- Subtitle: \"...\"\n- Cards: [{ title, description, image, link }, ...]\n\n### State: \"Productivity\"\n- Title: \"...\"\n- Cards: [...]\n\n## Assets\n- Background image: `public/sites/<site-key>/<page-key>/images/<file>.webp`\n- Overlay image: `public/sites/<site-key>/<page-key>/images/<file>.png`\n- Icons used: <ArrowIcon>, <SearchIcon> from the planned page or same-site shared icon module\n\n## Text Content (verbatim)\n<All text content, copy-pasted from the live site>\n\n## Responsive Behavior\n- **Desktop (1440px):** <layout description>\n- **Tablet (768px):** <what changes — e.g., \"maintains 2-column, gap reduces to 16px\">\n- **Mobile (390px):** <what changes — e.g., \"stacks to single column, images full-width\">\n- **Breakpoint:** layout switches at ~<N>px\n```\n\nFill every section. If a section doesn't apply (e.g., no states for a static footer), write \"N/A\" — but think twice before marking States & Behaviors as N/A. Even a footer might have hover states on links.\n\n### Step 3: Dispatch Builders\n\nBased on complexity, dispatch builder agent(s) in worktree(s):\n\n**Simple section** (1-2 sub-components): One builder agent gets the entire section.\n\n**Complex section** (3+ distinct sub-components): Break it up. One agent per sub-component, plus one agent for the section wrapper that imports them. Sub-component builders go first since the wrapper depends on them.\n\n**What every builder agent receives:**\n- The full contents of its component spec file (inline in the prompt — don't say \"go read the spec file\")\n- Path to the section screenshot in the page's namespaced screenshot root\n- Which shared components to import (the planned site-scoped icon module, `cn()`, shadcn primitives)\n- The namespaced target file path (e.g., `src/components/sites/<site-key>/<page-key>/HeroSection.tsx`)\n- Instruction to verify with `npx tsc --noEmit` before finishing\n- For responsive behavior: the specific breakpoint values and what changes\n\n**Don't wait.** As soon as you've dispatched the builder(s) for one section, move to extracting the next section. Builders work in parallel in their worktrees while you continue extraction.\n\n### Step 4: Merge\n\nAs builder agents complete their work:\n- Merge their worktree branches into main\n- You have full context on what each agent built, so resolve any conflicts intelligently\n- Reject or repair any merge that deletes or rewrites an unrelated existing route or another page's namespace\n- After each merge, verify the build still passes: `npm run build`\n- If a merge introduces type errors, fix them immediately\n\nThe extract → spec → dispatch → merge cycle continues until all sections are built.\n\n## Phase 4: Page Assembly\n\nAfter all sections are built and merged, wire the page into the exact destination route from the approved output plan. Use `src/app/page.tsx` only for the first fresh-template root clone; otherwise use the planned path such as `src/app/docs/intro/page.tsx`:\n\n- Import all section components\n- Implement the page-level layout from your topology doc (scroll containers, column structures, sticky positioning, z-index layering)\n- Connect real content to component props\n- Implement page-level behaviors: scroll snap, scroll-driven animations, dark-to-light transitions, intersection observers, smooth scroll (Lenis etc.)\n- Confirm all routes that existed before this run are still present and were not unintentionally changed\n- Verify: `npm run build` passes clean\n\n## Phase 5: Visual QA Diff\n\nAfter assembly, do NOT declare the clone complete. Take side-by-side comparison screenshots:\n\n1. Open the original site and the clone at its planned local route side-by-side (or take screenshots at the same viewport widths)\n2. Compare section by section, top to bottom, at desktop (1440px)\n3. Compare again at mobile (390px)\n4. For each discrepancy found:\n - Check the component spec file — was the value extracted correctly?\n - If the spec was wrong: re-extract from browser MCP, update the spec, fix the component\n - If the spec was right but the builder got it wrong: fix the component to match the spec\n5. Test all interactive behaviors: scroll through the page, click every button/tab, hover over interactive elements\n6. Verify smooth scroll feels right, header transitions work, tab switching works, animations play\n\nOnly after this visual QA pass is the clone complete.\n\n## Pre-Dispatch Checklist\n\nBefore dispatching ANY builder agent, verify you can check every box. If you can't, go back and extract more.\n\n- [ ] Spec file written to `docs/research/<site-key>/<page-key>/components/<name>.spec.md` with ALL sections filled\n- [ ] Every CSS value in the spec is from `getComputedStyle()`, not estimated\n- [ ] Interaction model is identified and documented (static / click / scroll / time)\n- [ ] For stateful components: every state's content and styles are captured\n- [ ] For scroll-driven components: trigger threshold, before/after styles, and transition are recorded\n- [ ] For hover states: before/after values and transition timing are recorded\n- [ ] All images in the section are identified (including overlays and layered compositions)\n- [ ] Responsive behavior is documented for at least desktop and mobile\n- [ ] Text content is verbatim from the site, not paraphrased\n- [ ] The builder prompt is under ~150 lines of spec; if over, the section needs to be split\n\n## What NOT to Do\n\nThese are lessons from previous failed clones — each one cost hours of rework:\n\n- **Don't build click-based tabs when the original is scroll-driven (or vice versa).** Determine the interaction model FIRST by scrolling before clicking. This is the #1 most expensive mistake — it requires a complete rewrite, not a CSS fix.\n- **Don't extract only the default state.** If there are tabs showing \"Featured\" on load, click Productivity, Creative, Lifestyle and extract each one's cards/content. If the header changes on scroll, capture styles at position 0 AND position 100+.\n- **Don't miss overlay/layered images.** A background watercolor + foreground UI mockup = 2 images. Check every container's DOM tree for multiple `<img>` elements and positioned overlays.\n- **Don't build mockup components for content that's actually videos/animations.** Check if a section uses `<video>`, Lottie, or canvas before building elaborate HTML mockups of what the video shows.\n- **Don't approximate CSS classes.** \"It looks like `text-lg`\" is wrong if the computed value is `18px` and `text-lg` is `18px/28px` but the actual line-height is `24px`. Extract exact values.\n- **Don't build everything in one monolithic commit.** The whole point of this pipeline is incremental progress with verified builds at each step.\n- **Don't treat a new target as permission to replace the current app.** Preserve existing routes and namespaced artifacts; ask before updating a route that already exists.\n- **Don't reference docs from builder prompts.** Each builder gets the CSS spec inline in its prompt — never \"see DESIGN_TOKENS.md for colors.\" The builder should have zero need to read external docs.\n- **Don't skip asset extraction.** Without real images, videos, and fonts, the clone will always look fake regardless of how perfect the CSS is.\n- **Don't give a builder agent too much scope.** If you're writing a builder prompt and it's getting long because the section is complex, that's a signal to break it into smaller tasks.\n- **Don't bundle unrelated sections into one agent.** A CTA section and a footer are different components with different designs — don't hand them both to one agent and hope for the best.\n- **Don't skip responsive extraction.** If you only inspect at desktop width, the clone will break at tablet and mobile. Test at 1440, 768, and 390 during extraction.\n- **Don't forget smooth scroll libraries.** Check for Lenis (`.lenis` class), Locomotive Scroll, or similar. Default browser scrolling feels noticeably different and the user will spot it immediately.\n- **Don't dispatch builders without a spec file.** The spec file forces exhaustive extraction and creates an auditable artifact. Skipping it means the builder gets whatever you can fit in a prompt from memory.\n\n## Completion\n\nWhen done, report:\n- Source URL to destination-route mapping for every page built\n- Existing routes preserved and any explicitly approved replacements\n- Total sections built\n- Total components created\n- Total spec files written (should match components)\n- Total assets downloaded (images, videos, SVGs, fonts)\n- Build status (`npm run build` result)\n- Visual QA results (any remaining discrepancies)\n- Any known gaps or limitations\n",+ "prompt": "\n# Clone Website\n\nYou are about to reverse-engineer and rebuild **the target URL or URLs provided by the user** as pixel-perfect clones.\n\nWhen multiple URLs are provided, preserve every pathname as a distinct route and isolate each target's research, screenshots, components, and assets. URLs that differ only by query string or fragment share a pathname, so resolve their route and state behavior explicitly in the output plan. Parallelize page work only after the shared foundation and output plan are fixed so concurrent builders cannot overwrite one another.\n\nThis is not a two-phase process (inspect then build). You are a **foreman walking the job site** — as you inspect each section of the page, you write a detailed specification to a file, then hand that file to a specialist builder agent with everything they need. Extraction and construction happen in parallel, but extraction is meticulous and produces auditable artifacts.\n\n## Scope Defaults\n\nThe target is whatever page `the target URL or URLs provided by the user` resolves to. Clone exactly what's visible at that URL. Unless the user specifies otherwise, use these defaults:\n\n- **Fidelity level:** Pixel-perfect — exact match in colors, spacing, typography, animations\n- **In scope:** Visual layout and styling, component structure and interactions, responsive design, mock data for demo purposes\n- **Out of scope:** Real backend / database, authentication, real-time features, SEO optimization, accessibility audit\n- **Customization:** None — pure emulation\n\nIf the user provides additional instructions (specific fidelity level, customizations, extra context), honor those over the defaults.\n\n## Output Isolation and Route Preservation\n\nTreat every target URL as durable project output, not as permission to replace whatever was built previously.\n\nChoose an `<app-root>` before extraction. For a single application, `<app-root>` is the repository root (`.`). If different origins need separate applications, require the user to provide or approve a prepared Next.js project root for each origin; verify each root builds independently, and never write one origin's output into another root.\n\nThen assign each target:\n\n- A collision-resistant `<site-key>`: a readable origin slug (including a non-default port) plus the first 8 lowercase hex characters of SHA-256 over the normalized origin.\n- A collision-resistant `<page-key>`: a segment-preserving readable pathname slug plus the first 8 lowercase hex characters of SHA-256 over the normalized pathname and any stateful query/fragment; use `root-<hash>` for `/`. Never rely on lossy character replacement alone.\n- An artifact root: `<app-root>/docs/research/<site-key>/<page-key>/`.\n- A screenshot root: `<app-root>/docs/design-references/<site-key>/<page-key>/`.\n- A component root: `<app-root>/src/components/sites/<site-key>/<page-key>/`, with genuinely shared same-site components under `<app-root>/src/components/sites/<site-key>/shared/`.\n- An asset root: `<app-root>/public/sites/<site-key>/<page-key>/`, with genuinely shared same-site assets under `<app-root>/public/sites/<site-key>/shared/`.\n- A Next.js route file.\n\nAll paths in the remaining phases are relative to that target's `<app-root>`. Before writing, verify that every planned route, artifact root, screenshot root, component root, asset root, and downloader filename is unique or is an explicitly approved shared location.\n\nRouting defaults:\n\n- For the first single-URL clone in an untouched template, the existing scaffold at `src/app/page.tsx` may be replaced so the clone remains available at `/`.\n- For multiple URLs from the same origin, or any later clone added to a project that already contains cloned/user-authored pages, preserve the normalized source pathname as its App Router URL (for example, `/docs/intro` becomes `<app-root>/src/app/docs/intro/page.tsx`). Encode filesystem segment names that would invoke App Router syntax: escape a leading `_` or `@`, and literal parentheses or square brackets, with percent-encoded folder spellings rather than creating private folders, slots, route groups, or dynamic segments. Verify the built route resolves at the exact normalized URL before completion.\n- Inspect every existing `src/app/**/page.tsx` before writing. Never delete or replace a non-scaffold route, component tree, research folder, screenshot, or asset namespace unless the user explicitly approves that exact replacement.\n- If the planned route already exists, stop and ask whether to update that route, choose another route, or skip it.\n- URLs from different origins may require incompatible fonts, global CSS, layouts, and metadata. Before modifying files, ask whether the user wants separate prepared application roots (recommended) or an intentionally combined multi-site app with route-scoped styling. Do not create an unapproved monorepo or silently mix global foundations.\n\n## Pre-Flight\n\n1. **Browser automation is required.** Check for available browser MCP tools (Chrome MCP, Playwright MCP, Browserbase MCP, Puppeteer MCP, etc.). Use whichever is available — if multiple exist, prefer Chrome MCP. If none are detected, ask the user which browser tool they have and how to connect it. This skill cannot work without browser automation.\n2. Parse `the target URL or URLs provided by the user` as one or more URLs. Normalize and validate each URL; if any are invalid, ask the user to correct them before proceeding. For each valid URL, verify it is accessible via your browser MCP tool.\n3. Verify the base project builds: `npm run build`. The Next.js + shadcn/ui + Tailwind v4 scaffold should already be in place. If not, tell the user to set it up first.\n4. Inventory existing routes (`src/app/**/page.tsx`), site component namespaces, research artifacts, screenshots, and public assets. Distinguish the untouched template scaffold from existing cloned or user-authored work.\n5. Write an output plan listing every target URL, `<app-root>`, `<site-key>`, `<page-key>`, destination route, artifact roots, and whether any shared foundation file must change. Resolve collisions across every planned output, same-path query/fragment behavior, and multi-origin layout decisions with the user before editing.\n6. Create only the planned per-page/per-site directories plus `scripts/` if needed. Use unique asset-download script names such as `scripts/download-assets-<site-key>-<page-key>.mjs`; do not overwrite another page's downloader.\n7. For multiple pages from one origin, build the shared foundation once, sequentially, before parallel page work. Optionally confirm whether to run page builders in parallel (recommended if resources allow) or sequentially to avoid overload.\n\n## Guiding Principles\n\nThese are the truths that separate a successful clone from a \"close enough\" mess. Internalize them — they should inform every decision you make.\n\n### 1. Completeness Beats Speed\n\nEvery builder agent must receive **everything** it needs to do its job perfectly: screenshot, exact CSS values, downloaded assets with local paths, real text content, component structure. If a builder has to guess anything — a color, a font size, a padding value — you have failed at extraction. Take the extra minute to extract one more property rather than shipping an incomplete brief.\n\n### 2. Small Tasks, Perfect Results\n\nWhen an agent gets \"build the entire features section,\" it glosses over details — it approximates spacing, guesses font sizes, and produces something \"close enough\" but clearly wrong. When it gets a single focused component with exact CSS values, it nails it every time.\n\nLook at each section and judge its complexity. A simple banner with a heading and a button? One agent. A complex section with 3 different card variants, each with unique hover states and internal layouts? One agent per card variant plus one for the section wrapper. When in doubt, make it smaller.\n\n**Complexity budget rule:** If a builder prompt exceeds ~150 lines of spec content, the section is too complex for one agent. Break it into smaller pieces. This is a mechanical check — don't override it with \"but it's all related.\"\n\n### 3. Real Content, Real Assets\n\nExtract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.\n\n**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.\n\n### 4. Foundation First\n\nNothing can be built until the foundation exists: global CSS with the target site's design tokens (colors, fonts, spacing), TypeScript types for the content structures, and global assets (fonts, favicons). This is sequential and non-negotiable. Everything after this can be parallel.\n\n### 5. Extract How It Looks AND How It Behaves\n\nA website is not a screenshot — it's a living thing. Elements move, change, appear, and disappear in response to scrolling, hovering, clicking, resizing, and time. If you only extract the static CSS of each element, your clone will look right in a screenshot but feel dead when someone actually uses it.\n\nFor every element, extract its **appearance** (exact computed CSS via `getComputedStyle()`) AND its **behavior** (what changes, what triggers the change, and how the transition happens). Not \"it looks like 16px\" — extract the actual computed value. Not \"the nav changes on scroll\" — document the exact trigger (scroll position, IntersectionObserver threshold, viewport intersection), the before and after states (both sets of CSS values), and the transition (duration, easing, CSS transition vs. JS-driven vs. CSS `animation-timeline`).\n\nExamples of behaviors to watch for — these are illustrative, not exhaustive. The page may do things not on this list, and you must catch those too:\n- A navbar that shrinks, changes background, or gains a shadow after scrolling past a threshold\n- Elements that animate into view when they enter the viewport (fade-up, slide-in, stagger delays)\n- Sections that snap into place on scroll (`scroll-snap-type`)\n- Parallax layers that move at different rates than the scroll\n- Hover states that animate (not just change — the transition duration and easing matter)\n- Dropdowns, modals, accordions with enter/exit animations\n- Scroll-driven progress indicators or opacity transitions\n- Auto-playing carousels or cycling content\n- Dark-to-light (or any theme) transitions between page sections\n- **Tabbed/pill content that cycles** — buttons that switch visible card sets with transitions\n- **Scroll-driven tab/accordion switching** — sidebars where the active item auto-changes as content scrolls past (IntersectionObserver, NOT click handlers)\n- **Smooth scroll libraries** (Lenis, Locomotive Scroll) — check for `.lenis` class or scroll container wrappers\n\n### 6. Identify the Interaction Model Before Building\n\nThis is the single most expensive mistake in cloning: building a click-based UI when the original is scroll-driven, or vice versa. Before writing any builder prompt for an interactive section, you must definitively answer: **Is this section driven by clicks, scrolls, hovers, time, or some combination?**\n\nHow to determine this:\n1. **Don't click first.** Scroll through the section slowly and observe if things change on their own as you scroll.\n2. If they do, it's scroll-driven. Extract the mechanism: `IntersectionObserver`, `scroll-snap`, `position: sticky`, `animation-timeline`, or JS scroll listeners.\n3. If nothing changes on scroll, THEN click/hover to test for click/hover-driven interactivity.\n4. Document the interaction model explicitly in the component spec: \"INTERACTION MODEL: scroll-driven with IntersectionObserver\" or \"INTERACTION MODEL: click-to-switch with opacity transition.\"\n\nA section with a sticky sidebar and scrolling content panels is fundamentally different from a tabbed interface where clicking switches content. Getting this wrong means a complete rewrite, not a CSS tweak.\n\n### 7. Extract Every State, Not Just the Default\n\nMany components have multiple visual states — a tab bar shows different cards per tab, a header looks different at scroll position 0 vs 100, a card has hover effects. You must extract ALL states, not just whatever is visible on page load.\n\nFor tabbed/stateful content:\n- Click each tab/button via browser MCP\n- Extract the content, images, and card data for EACH state\n- Record which content belongs to which state\n- Note the transition animation between states (opacity, slide, fade, etc.)\n\nFor scroll-dependent elements:\n- Capture computed styles at scroll position 0 (initial state)\n- Scroll past the trigger threshold and capture computed styles again (scrolled state)\n- Diff the two to identify exactly which CSS properties change\n- Record the transition CSS (duration, easing, properties)\n- Record the exact trigger threshold (scroll position in px, or viewport intersection ratio)\n\n### 8. Spec Files Are the Source of Truth\n\nEvery component gets a specification file under that page's artifact root (`docs/research/<site-key>/<page-key>/components/`) BEFORE any builder is dispatched. This file is the contract between your extraction work and the builder agent. The builder receives the spec file contents inline in its prompt — the file also persists as an auditable artifact that the user (or you) can review if something looks wrong.\n\nThe spec file is not optional. It is not a nice-to-have. If you dispatch a builder without first writing a spec file, you are shipping incomplete instructions based on whatever you can remember from a browser MCP session, and the builder will guess to fill gaps.\n\n### 9. Build Must Always Compile\n\nEvery builder agent must verify `npx tsc --noEmit` passes before finishing. After merging worktrees, you verify `npm run build` passes. A broken build is never acceptable, even temporarily.\n\n## Phase 1: Reconnaissance\n\nNavigate to the target URL with browser MCP.\n\n### Screenshots\n- Take **full-page screenshots** at desktop (1440px) and mobile (390px) viewports\n- Save to that page's screenshot root (`docs/design-references/<site-key>/<page-key>/`) with descriptive names\n- These are your master reference — builders will receive section-specific crops/screenshots later\n\n### Global Extraction\nExtract these from the page before doing anything else:\n\n**Fonts** — Inspect `<link>` tags for Google Fonts or self-hosted fonts. Check computed `font-family` on key elements (headings, body, code, labels). Document every family, weight, and style actually used. For a single-site app, configure shared fonts in `src/app/layout.tsx` using `next/font/google` or `next/font/local`. In an approved combined multi-site app, keep incompatible fonts/layout concerns route-scoped.\n\n**Colors** — Extract the site's color palette from computed styles across the page. For a single-site app, merge the target's colors into `src/app/globals.css` without removing tokens required by existing routes. Map them to shadcn's token names (background, foreground, primary, muted, etc.) where they fit. In an approved combined multi-site app, use a route wrapper or scoped token namespace instead of replacing another site's global palette.\n\n**Favicons & Meta** — Download page/site SEO assets under the planned site asset namespace. Put truly app-global metadata in the root layout only when it applies to every route; otherwise export route-specific metadata from the destination page or a route layout.\n\n**Global UI patterns** — Identify any site-wide CSS or JS: custom scrollbar hiding, scroll-snap on the page container, global keyframe animations, backdrop filters, gradients used as overlays, **smooth scroll libraries** (Lenis, Locomotive Scroll — check for `.lenis`, `.locomotive-scroll`, or custom scroll container classes). Merge truly shared behavior into `globals.css`; keep page-specific behavior scoped to the page so existing routes do not change unexpectedly.\n\n### Mandatory Interaction Sweep\n\nThis is a dedicated pass AFTER screenshots and BEFORE anything else. Its purpose is to discover every behavior on the page — many of which are invisible in a static screenshot.\n\n**Scroll sweep:** Scroll the page slowly from top to bottom via browser MCP. At each section, pause and observe:\n- Does the header change appearance? Record the scroll position where it triggers.\n- Do elements animate into view? Record which ones and the animation type.\n- Does a sidebar or tab indicator auto-switch as you scroll? Record the mechanism.\n- Are there scroll-snap points? Record which containers.\n- Is there a smooth scroll library active? Check for non-native scroll behavior.\n\n**Click sweep:** Click every element that looks interactive:\n- Every button, tab, pill, link, card\n- Record what happens: does content change? Does a modal open? Does a dropdown appear?\n- For tabs/pills: click EACH ONE and record the content that appears for each state\n\n**Hover sweep:** Hover over every element that might have hover states:\n- Buttons, cards, links, images, nav items\n- Record what changes: color, scale, shadow, underline, opacity\n\n**Responsive sweep:** Test at 3 viewport widths via browser MCP:\n- Desktop: 1440px\n- Tablet: 768px\n- Mobile: 390px\n- At each width, note which sections change layout (column → stack, sidebar disappears, etc.) and at approximately which breakpoint the change occurs.\n\nSave all findings to `<artifact-root>/BEHAVIORS.md`. This is your behavior bible — reference it when writing every component spec.\n\n### Page Topology\nMap out every distinct section of the page from top to bottom. Give each a working name. Document:\n- Their visual order\n- Which are fixed/sticky overlays vs. flow content\n- The overall page layout (scroll container, column structure, z-index layers)\n- Dependencies between sections (e.g., a floating nav that overlays everything)\n- **The interaction model** of each section (static, click-driven, scroll-driven, time-driven)\n\nSave this as `<artifact-root>/PAGE_TOPOLOGY.md` — it becomes your assembly blueprint.\n\n## Phase 2: Foundation Build\n\nThis is sequential per origin. Do it yourself (not delegated to an agent) since it touches shared files. Re-read the output plan and preserve every existing route before editing:\n\n1. **Merge fonts and shared layout behavior** without deleting requirements of existing routes. Use route layouts when behavior is not truly app-global.\n2. **Merge global CSS carefully**; scope page/site-specific tokens, keyframes, scroll behavior, and utilities under a route wrapper when they could conflict.\n3. **Create namespaced TypeScript interfaces** for the content structures you've observed; reuse existing same-site types only when their contracts match.\n4. **Extract SVG icons** — deduplicate same-site icons under `src/components/sites/<site-key>/shared/icons.tsx`; keep page-only icons in the page component namespace. Name them by visual function (e.g., `SearchIcon`, `ArrowRightIcon`, `LogoIcon`).\n5. **Download assets into the planned namespace** — use the page's uniquely named download script and write into `public/sites/<site-key>/<page-key>/` or the approved same-site shared directory. Never write a generic filename over another page's asset.\n6. Verify every previously existing route still builds, then run `npm run build`.\n\n### Asset Discovery Script Pattern\n\nUse browser MCP to enumerate all assets on the page:\n\n```javascript\n// Run this via browser MCP to discover all assets\nJSON.stringify({\n images: [...document.querySelectorAll('img')].map(img => ({\n src: img.src || img.currentSrc,\n alt: img.alt,\n width: img.naturalWidth,\n height: img.naturalHeight,\n // Include parent info to detect layered compositions\n parentClasses: img.parentElement?.className,\n siblings: img.parentElement ? [...img.parentElement.querySelectorAll('img')].length : 0,\n position: getComputedStyle(img).position,\n zIndex: getComputedStyle(img).zIndex\n })),\n videos: [...document.querySelectorAll('video')].map(v => ({\n src: v.src || v.querySelector('source')?.src,\n poster: v.poster,\n autoplay: v.autoplay,\n loop: v.loop,\n muted: v.muted\n })),\n backgroundImages: [...document.querySelectorAll('*')].filter(el => {\n const bg = getComputedStyle(el).backgroundImage;\n return bg && bg !== 'none';\n }).map(el => ({\n url: getComputedStyle(el).backgroundImage,\n element: el.tagName + '.' + el.className?.split(' ')[0]\n })),\n svgCount: document.querySelectorAll('svg').length,\n fonts: [...new Set([...document.querySelectorAll('*')].slice(0, 200).map(el => getComputedStyle(el).fontFamily))],\n favicons: [...document.querySelectorAll('link[rel*=\"icon\"]')].map(l => ({ href: l.href, sizes: l.sizes?.toString() }))\n});\n```\n\nThen use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.\n\n### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets\n\nThis is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:\n\n- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.\n- No lawful local or same-site equivalent is available.\n- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.\n- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.\n- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.\n\nWhen approved, follow this contract:\n\n1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.\n2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.\n3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.\n4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.\n5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.\n6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.\n\nIf any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.\n\n## Phase 3: Component Specification & Dispatch\n\nThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.\n\n### Step 1: Extract\n\nFor each section, use browser MCP to extract everything:\n\n1. **Screenshot** the section in isolation (scroll to it, screenshot the viewport). Save to the page's screenshot root.\n\n2. **Extract CSS** for every element in the section. Use the extraction script below — don't hand-measure individual properties. Run it once per component container and capture the full output:\n\n```javascript\n// Per-component extraction — run via browser MCP\n// Replace SELECTOR with the actual CSS selector for the component\n(function(selector) {\n const el = document.querySelector(selector);\n if (!el) return JSON.stringify({ error: 'Element not found: ' + selector });\n const props = [\n 'fontSize','fontWeight','fontFamily','lineHeight','letterSpacing','color',\n 'textTransform','textDecoration','backgroundColor','background',\n 'padding','paddingTop','paddingRight','paddingBottom','paddingLeft',\n 'margin','marginTop','marginRight','marginBottom','marginLeft',\n 'width','height','maxWidth','minWidth','maxHeight','minHeight',\n 'display','flexDirection','justifyContent','alignItems','gap',\n 'gridTemplateColumns','gridTemplateRows',\n 'borderRadius','border','borderTop','borderBottom','borderLeft','borderRight',\n 'boxShadow','overflow','overflowX','overflowY',\n 'position','top','right','bottom','left','zIndex',\n 'opacity','transform','transition','cursor',\n 'objectFit','objectPosition','mixBlendMode','filter','backdropFilter',\n 'whiteSpace','textOverflow','WebkitLineClamp'\n ];\n function extractStyles(element) {\n const cs = getComputedStyle(element);\n const styles = {};\n props.forEach(p => { const v = cs[p]; if (v && v !== 'none' && v !== 'normal' && v !== 'auto' && v !== '0px' && v !== 'rgba(0, 0, 0, 0)') styles[p] = v; });\n return styles;\n }\n function walk(element, depth) {\n if (depth > 4) return null;\n const children = [...element.children];\n return {\n tag: element.tagName.toLowerCase(),\n classes: element.className?.toString().split(' ').slice(0, 5).join(' '),\n text: element.childNodes.length === 1 && element.childNodes[0].nodeType === 3 ? element.textContent.trim().slice(0, 200) : null,\n styles: extractStyles(element),\n images: element.tagName === 'IMG' ? { src: element.src, alt: element.alt, naturalWidth: element.naturalWidth, naturalHeight: element.naturalHeight } : null,\n childCount: children.length,\n children: children.slice(0, 20).map(c => walk(c, depth + 1)).filter(Boolean)\n };\n }\n return JSON.stringify(walk(el, 0), null, 2);\n})('SELECTOR');\n```\n\n3. **Extract multi-state styles** — for any element with multiple states (scroll-triggered, hover, active tab), capture BOTH states:\n\n```javascript\n// State A: capture styles at current state (e.g., scroll position 0)\n// Then trigger the state change (scroll, click, hover via browser MCP)\n// State B: re-run the extraction script on the same element\n// The diff between A and B IS the behavior specification\n```\n\nRecord the diff explicitly: \"Property X changes from VALUE_A to VALUE_B, triggered by TRIGGER, with transition: TRANSITION_CSS.\"\n\n4. **Extract real content** — all text, alt attributes, aria labels, placeholder text. Use `element.textContent` for each text node. For tabbed/stateful content, **click each tab and extract content per state**.\n\n5. **Identify assets** this section uses — which namespaced downloaded images/videos and which site/page icon components. Check for **layered images** (multiple `<img>` or background-images stacked in the same container).\n\n6. **Assess complexity** — how many distinct sub-components does this section contain? A distinct sub-component is an element with its own unique styling, structure, and behavior (e.g., a card, a nav item, a search panel).\n\n### Step 2: Write the Component Spec File\n\nFor each section (or sub-component, if you're breaking it up), create a spec file inside the page's component-spec directory. This is NOT optional — every builder must have a corresponding spec file.\n\n**File path:** `docs/research/<site-key>/<page-key>/components/<component-name>.spec.md`\n\n**Template:**\n\n```markdown\n# <ComponentName> Specification\n\n## Overview\n- **Target file:** `src/components/sites/<site-key>/<page-key>/<ComponentName>.tsx`\n- **Screenshot:** `docs/design-references/<site-key>/<page-key>/<screenshot-name>.png`\n- **Interaction model:** <static | click-driven | scroll-driven | time-driven>\n\n## DOM Structure\n<Describe the element hierarchy — what contains what>\n\n## Computed Styles (exact values from getComputedStyle)\n\n### Container\n- display: ...\n- padding: ...\n- maxWidth: ...\n- (every relevant property with exact values)\n\n### <Child element 1>\n- fontSize: ...\n- color: ...\n- (every relevant property)\n\n### <Child element N>\n...\n\n## States & Behaviors\n\n### <Behavior name, e.g., \"Scroll-triggered floating mode\">\n- **Trigger:** <exact mechanism — scroll position 50px, IntersectionObserver rootMargin \"-30% 0px\", click on .tab-button, hover>\n- **State A (before):** maxWidth: 100vw, boxShadow: none, borderRadius: 0\n- **State B (after):** maxWidth: 1200px, boxShadow: 0 4px 20px rgba(0,0,0,0.1), borderRadius: 16px\n- **Transition:** transition: all 0.3s ease\n- **Implementation approach:** <CSS transition + scroll listener | IntersectionObserver | CSS animation-timeline | etc.>\n\n### Hover states\n- **<Element>:** <property>: <before> → <after>, transition: <value>\n\n## Per-State Content (if applicable)\n\n### State: \"Featured\"\n- Title: \"...\"\n- Subtitle: \"...\"\n- Cards: [{ title, description, image, link }, ...]\n\n### State: \"Productivity\"\n- Title: \"...\"\n- Cards: [...]\n\n## Assets\n- Background image: `public/sites/<site-key>/<page-key>/images/<file>.webp`\n- Overlay image: `public/sites/<site-key>/<page-key>/images/<file>.png`\n- Icons used: <ArrowIcon>, <SearchIcon> from the planned page or same-site shared icon module\n\n## Text Content (verbatim)\n<All text content, copy-pasted from the live site>\n\n## Responsive Behavior\n- **Desktop (1440px):** <layout description>\n- **Tablet (768px):** <what changes — e.g., \"maintains 2-column, gap reduces to 16px\">\n- **Mobile (390px):** <what changes — e.g., \"stacks to single column, images full-width\">\n- **Breakpoint:** layout switches at ~<N>px\n```\n\nFill every section. If a section doesn't apply (e.g., no states for a static footer), write \"N/A\" — but think twice before marking States & Behaviors as N/A. Even a footer might have hover states on links.\n\n### Step 3: Dispatch Builders\n\nBased on complexity, dispatch builder agent(s) in worktree(s):\n\n**Simple section** (1-2 sub-components): One builder agent gets the entire section.\n\n**Complex section** (3+ distinct sub-components): Break it up. One agent per sub-component, plus one agent for the section wrapper that imports them. Sub-component builders go first since the wrapper depends on them.\n\n**What every builder agent receives:**\n- The full contents of its component spec file (inline in the prompt — don't say \"go read the spec file\")\n- Path to the section screenshot in the page's namespaced screenshot root\n- Which shared components to import (the planned site-scoped icon module, `cn()`, shadcn primitives)\n- The namespaced target file path (e.g., `src/components/sites/<site-key>/<page-key>/HeroSection.tsx`)\n- Instruction to verify with `npx tsc --noEmit` before finishing\n- For responsive behavior: the specific breakpoint values and what changes\n\n**Don't wait.** As soon as you've dispatched the builder(s) for one section, move to extracting the next section. Builders work in parallel in their worktrees while you continue extraction.\n\n### Step 4: Merge\n\nAs builder agents complete their work:\n- Merge their worktree branches into main\n- You have full context on what each agent built, so resolve any conflicts intelligently\n- Reject or repair any merge that deletes or rewrites an unrelated existing route or another page's namespace\n- After each merge, verify the build still passes: `npm run build`\n- If a merge introduces type errors, fix them immediately\n\nThe extract → spec → dispatch → merge cycle continues until all sections are built.\n\n## Phase 4: Page Assembly\n\nAfter all sections are built and merged, wire the page into the exact destination route from the approved output plan. Use `src/app/page.tsx` only for the first fresh-template root clone; otherwise use the planned path such as `src/app/docs/intro/page.tsx`:\n\n- Import all section components\n- Implement the page-level layout from your topology doc (scroll containers, column structures, sticky positioning, z-index layering)\n- Connect real content to component props\n- Implement page-level behaviors: scroll snap, scroll-driven animations, dark-to-light transitions, intersection observers, smooth scroll (Lenis etc.)\n- Confirm all routes that existed before this run are still present and were not unintentionally changed\n- Verify: `npm run build` passes clean\n\n## Phase 5: Visual QA Diff\n\nAfter assembly, do NOT declare the clone complete. Take side-by-side comparison screenshots:\n\n1. Open the original site and the clone at its planned local route side-by-side (or take screenshots at the same viewport widths)\n2. Compare section by section, top to bottom, at desktop (1440px)\n3. Compare again at mobile (390px)\n4. For each discrepancy found:\n - Check the component spec file — was the value extracted correctly?\n - If the spec was wrong: re-extract from browser MCP, update the spec, fix the component\n - If the spec was right but the builder got it wrong: fix the component to match the spec\n5. Test all interactive behaviors: scroll through the page, click every button/tab, hover over interactive elements\n6. Verify smooth scroll feels right, header transitions work, tab switching works, animations play\n\nOnly after this visual QA pass is the clone complete.\n\n## Pre-Dispatch Checklist\n\nBefore dispatching ANY builder agent, verify you can check every box. If you can't, go back and extract more.\n\n- [ ] Spec file written to `docs/research/<site-key>/<page-key>/components/<name>.spec.md` with ALL sections filled\n- [ ] Every CSS value in the spec is from `getComputedStyle()`, not estimated\n- [ ] Interaction model is identified and documented (static / click / scroll / time)\n- [ ] For stateful components: every state's content and styles are captured\n- [ ] For scroll-driven components: trigger threshold, before/after styles, and transition are recorded\n- [ ] For hover states: before/after values and transition timing are recorded\n- [ ] All images in the section are identified (including overlays and layered compositions)\n- [ ] Responsive behavior is documented for at least desktop and mobile\n- [ ] Text content is verbatim from the site, not paraphrased\n- [ ] The builder prompt is under ~150 lines of spec; if over, the section needs to be split\n\n## What NOT to Do\n\nThese are lessons from previous failed clones — each one cost hours of rework:\n\n- **Don't build click-based tabs when the original is scroll-driven (or vice versa).** Determine the interaction model FIRST by scrolling before clicking. This is the #1 most expensive mistake — it requires a complete rewrite, not a CSS fix.\n- **Don't extract only the default state.** If there are tabs showing \"Featured\" on load, click Productivity, Creative, Lifestyle and extract each one's cards/content. If the header changes on scroll, capture styles at position 0 AND position 100+.\n- **Don't miss overlay/layered images.** A background watercolor + foreground UI mockup = 2 images. Check every container's DOM tree for multiple `<img>` elements and positioned overlays.\n- **Don't build mockup components for content that's actually videos/animations.** Check if a section uses `<video>`, Lottie, or canvas before building elaborate HTML mockups of what the video shows.\n- **Don't approximate CSS classes.** \"It looks like `text-lg`\" is wrong if the computed value is `18px` and `text-lg` is `18px/28px` but the actual line-height is `24px`. Extract exact values.\n- **Don't build everything in one monolithic commit.** The whole point of this pipeline is incremental progress with verified builds at each step.\n- **Don't treat a new target as permission to replace the current app.** Preserve existing routes and namespaced artifacts; ask before updating a route that already exists.\n- **Don't reference docs from builder prompts.** Each builder gets the CSS spec inline in its prompt — never \"see DESIGN_TOKENS.md for colors.\" The builder should have zero need to read external docs.\n- **Don't skip asset extraction.** Without real images, videos, and fonts, the clone will always look fake regardless of how perfect the CSS is.\n- **Don't give a builder agent too much scope.** If you're writing a builder prompt and it's getting long because the section is complex, that's a signal to break it into smaller tasks.\n- **Don't bundle unrelated sections into one agent.** A CTA section and a footer are different components with different designs — don't hand them both to one agent and hope for the best.\n- **Don't skip responsive extraction.** If you only inspect at desktop width, the clone will break at tablet and mobile. Test at 1440, 768, and 390 during extraction.\n- **Don't forget smooth scroll libraries.** Check for Lenis (`.lenis` class), Locomotive Scroll, or similar. Default browser scrolling feels noticeably different and the user will spot it immediately.\n- **Don't dispatch builders without a spec file.** The spec file forces exhaustive extraction and creates an auditable artifact. Skipping it means the builder gets whatever you can fit in a prompt from memory.\n\n## Completion\n\nWhen done, report:\n- Source URL to destination-route mapping for every page built\n- Existing routes preserved and any explicitly approved replacements\n- Total sections built\n- Total components created\n- Total spec files written (should match components)\n- Total assets downloaded (images, videos, SVGs, fonts)\n- Build status (`npm run build` result)\n- Visual QA results (any remaining discrepancies)\n- Any known gaps or limitations\n","fileContext": ["AGENTS.md","docs/research/**"diff --git a/.augment/commands/clone-website.md b/.augment/commands/clone-website.mdindex 3eb92db4..d4301ad4 100644--- a/.augment/commands/clone-website.md+++ b/.augment/commands/clone-website.md@@ -79,7 +79,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -255,6 +255,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/.claude/skills/clone-website/SKILL.md b/.claude/skills/clone-website/SKILL.mdindex 189f76b2..3592f967 100644--- a/.claude/skills/clone-website/SKILL.md+++ b/.claude/skills/clone-website/SKILL.md@@ -78,7 +78,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -254,6 +254,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/.cline/skills/clone-website/SKILL.md b/.cline/skills/clone-website/SKILL.mdindex d3b5af3d..ff303321 100644--- a/.cline/skills/clone-website/SKILL.md+++ b/.cline/skills/clone-website/SKILL.md@@ -76,7 +76,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -252,6 +252,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/.codex/skills/clone-website/SKILL.md b/.codex/skills/clone-website/SKILL.mdindex 189f76b2..3592f967 100644--- a/.codex/skills/clone-website/SKILL.md+++ b/.codex/skills/clone-website/SKILL.md@@ -78,7 +78,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -254,6 +254,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/.continue/commands/clone-website.md b/.continue/commands/clone-website.mdindex e461e2b9..720e9fb5 100644--- a/.continue/commands/clone-website.md+++ b/.continue/commands/clone-website.md@@ -80,7 +80,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -256,6 +256,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/.cursor/commands/clone-website.md b/.cursor/commands/clone-website.mdindex e0dbcaf2..b3904781 100644--- a/.cursor/commands/clone-website.md+++ b/.cursor/commands/clone-website.md@@ -75,7 +75,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -251,6 +251,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/.gemini/commands/clone-website.toml b/.gemini/commands/clone-website.tomlindex 680d7dbf..bb7a6725 100644--- a/.gemini/commands/clone-website.toml+++ b/.gemini/commands/clone-website.toml@@ -79,7 +79,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -255,6 +255,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/.github/skills/clone-website/SKILL.md b/.github/skills/clone-website/SKILL.mdindex 189f76b2..3592f967 100644--- a/.github/skills/clone-website/SKILL.md+++ b/.github/skills/clone-website/SKILL.md@@ -78,7 +78,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -254,6 +254,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/.kiro/skills/clone-website/SKILL.md b/.kiro/skills/clone-website/SKILL.mdindex 189f76b2..3592f967 100644--- a/.kiro/skills/clone-website/SKILL.md+++ b/.kiro/skills/clone-website/SKILL.md@@ -78,7 +78,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -254,6 +254,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/.opencode/commands/clone-website.md b/.opencode/commands/clone-website.mdindex c8707c86..4e2d7224 100644--- a/.opencode/commands/clone-website.md+++ b/.opencode/commands/clone-website.md@@ -78,7 +78,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -254,6 +254,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/.roo/skills/clone-website/SKILL.md b/.roo/skills/clone-website/SKILL.mdindex d3b5af3d..ff303321 100644--- a/.roo/skills/clone-website/SKILL.md+++ b/.roo/skills/clone-website/SKILL.md@@ -76,7 +76,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -252,6 +252,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/.windsurf/workflows/clone-website.md b/.windsurf/workflows/clone-website.mdindex e0dbcaf2..b3904781 100644--- a/.windsurf/workflows/clone-website.md+++ b/.windsurf/workflows/clone-website.md@@ -75,7 +75,7 @@ Look at each section and judge its complexity. A simple banner with a heading an### 3. Real Content, Real Assets-Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. The only time you generate content is when something is clearly server-generated and unique per session.+Extract the actual text, images, videos, and SVGs from the live site. This is a clone, not a mockup. Use `element.textContent`, download every `<img>` and `<video>`, extract inline `<svg>` elements as React components. Generate content only when it is clearly server-generated and unique per session, or when the optional Atlas Cloud fallback below is explicitly approved after the original asset proves unrecoverable.**Layered assets matter.** A section that looks like one image is often multiple layers — a background watercolor/gradient, a foreground UI mockup PNG, an overlay icon. Inspect each container's full DOM tree and enumerate ALL `<img>` elements and background images within it, including absolutely-positioned overlays. Missing an overlay image makes the clone look empty even if the background is correct.@@ -251,6 +251,27 @@ JSON.stringify({Then use the uniquely named page download script to fetch everything into its planned asset root. Use batched parallel downloads (4 at a time) with proper error handling.+### Optional Atlas Cloud Fallback for Unrecoverable Visual Assets++This is an exception path, not part of the default clone workflow. Use it only when **all** of the following are true:++- The original asset still cannot be recovered after bounded download attempts and inspection of the rendered page, HTML, CSS, source maps, network responses, and same-site asset paths.+- No lawful local or same-site equivalent is available.+- The asset is not a logo, trademark, product screenshot, legal or certification mark, or other distinctive brand artwork. Those must remain exact originals or be reported as missing.+- The user explicitly approves a generated substitute and understands that it is not pixel-identical source material.+- `ATLASCLOUD_API_KEY` is available from the environment. Never print it, place it in a URL, save it in an artifact, or send it to an output CDN.++When approved, follow this contract:++1. Fetch the live model catalog from `GET https://api.atlascloud.ai/api/v1/models` and choose a currently available `Image` model that supports the required aspect ratio and style. Do not rely on a stale hard-coded model list.+2. Fetch that model's `schema` URL and validate the payload against its current required fields before submitting. `qwen-image-3.0/text-to-image` is an example, not a permanent default.+3. Submit exactly one authenticated `POST https://api.atlascloud.ai/api/v1/model/generateImage` request. Do not automatically retry the generation POST; surface an ambiguous or failed submission to the user.+4. Persist the returned prediction ID in the page's research artifacts, then poll `GET https://api.atlascloud.ai/api/v1/model/prediction/<id>` with bounded backoff (for example, every 3 seconds for at most 40 attempts). Stop immediately on `completed` or `failed`.+5. Accept only HTTPS output URLs from the completed prediction. Download them without the Atlas authorization header, validate the media type and dimensions, and save them under the planned namespaced asset root.+6. Record the model ID, prompt, prediction ID, output path, and the user's approval in `<artifact-root>/ARTIFACT_MANIFEST.md`. Label the file as generated fallback material so builders never treat it as an exact original.++If any condition is not met, keep the missing-asset finding in the artifact manifest and continue without fabricating the source site's identity.+## Phase 3: Component Specification & DispatchThis is the core loop. For each section in your page topology (top to bottom), you do THREE things: **extract**, **write the spec file**, then **dispatch builders**.diff --git a/README.md b/README.mdindex e79202c7..2aa0acad 100644--- a/README.md+++ b/README.md@@ -22,6 +22,16 @@ Give your AI coding agent a URL and watch it recreate the website as a clean Nex<a href="https://www.rapidproxy.io/?ref=JCM"><img src="docs/assets/sponsors/rapidproxy-banner.png" alt="RapidProxy residential proxy service" width="680" /></a><br /><sub>Power your scraping and automation with 90M+ residential IPs, 500MB free traffic, and non-expiring bandwidth. <a href="https://www.rapidproxy.io/?ref=JCM">Explore RapidProxy →</a></sub>+<br /><br />+<a href="https://www.atlascloud.ai/?utm_source=github&utm_medium=sponsor&utm_campaign=ai-website-cloner-template">+ <picture>+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/sponsors/atlas-cloud-logo-white.svg" />+ <source media="(prefers-color-scheme: light)" srcset="docs/assets/sponsors/atlas-cloud-logo.svg" />+ <img src="docs/assets/sponsors/atlas-cloud-logo.svg" alt="Atlas Cloud" width="240" />+ </picture>+</a>+<br />+<sub>Generate AI images, video, audio, and 3D assets through one API. <a href="https://www.atlascloud.ai/?utm_source=github&utm_medium=sponsor&utm_campaign=ai-website-cloner-template">Explore Atlas Cloud →</a></sub></div>diff --git a/docs/assets/sponsors/atlas-cloud-logo-white.svg b/docs/assets/sponsors/atlas-cloud-logo-white.svgnew file mode 100644index 00000000..66a6065a--- /dev/null+++ b/docs/assets/sponsors/atlas-cloud-logo-white.svg@@ -0,0 +1,12 @@+<svg width="163" height="26" viewBox="0 0 163 26" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M32.9477 25.7973C30.9997 25.7973 29.4796 25.2568 28.3986 24.1871C27.3176 23.1174 26.7771 21.6085 26.7771 19.6492V12.0148H23.8157V8.28764H24.131C24.9755 8.28764 25.6286 8.06243 26.0902 7.62328C26.5407 7.17287 26.7771 6.53104 26.7771 5.68652V4.34655H30.9772V8.28764H34.9521V12.0148H30.9772V19.4353C30.9772 20.0095 31.0785 20.4937 31.2812 20.8991C31.4839 21.3045 31.7992 21.6085 32.2383 21.8224C32.6775 22.0364 33.2292 22.1377 33.9049 22.1377C34.0512 22.1377 34.2314 22.1377 34.4341 22.104C34.6368 22.0814 34.8282 22.0589 35.0196 22.0364V25.6059C34.7269 25.6509 34.3778 25.696 34.0062 25.7297C33.6233 25.7748 33.2743 25.7973 32.959 25.7973H32.9477Z" fill="#FAF7F8"/>+<path d="M36.5734 25.6059V1.52026H40.7734V25.6059H36.5734Z" fill="#FAF7F8"/>+<path d="M48.284 25.9887C47.0792 25.9887 46.0207 25.7861 45.1199 25.3807C44.219 24.9753 43.5209 24.401 43.0367 23.6466C42.5525 22.8922 42.3048 22.0139 42.3048 21.023C42.3048 20.0321 42.5188 19.2101 42.9579 18.4556C43.3971 17.7012 44.0501 17.0706 44.951 16.5639C45.8405 16.0572 46.9665 15.6969 48.329 15.4829L53.9592 14.5596V17.7462L49.1173 18.602C48.2953 18.7484 47.6759 19.0074 47.2706 19.379C46.8652 19.7506 46.6625 20.246 46.6625 20.8541C46.6625 21.4621 46.8877 21.9238 47.3494 22.2729C47.7998 22.6219 48.3741 22.8021 49.0497 22.8021C49.9167 22.8021 50.6937 22.6219 51.358 22.2503C52.0224 21.8787 52.5404 21.3608 52.9007 20.7077C53.261 20.0546 53.4412 19.3339 53.4412 18.5795V14.0867C53.4412 13.3435 53.1597 12.7242 52.5854 12.2287C52.0111 11.7333 51.2454 11.4855 50.2996 11.4855C49.41 11.4855 48.6218 11.7333 47.9237 12.2175C47.2368 12.7017 46.7301 13.3322 46.4148 14.0979L43.0142 12.4427C43.352 11.5306 43.8925 10.7424 44.6244 10.0668C45.3563 9.39114 46.2234 8.87317 47.2143 8.49032C48.2164 8.10748 49.2974 7.91605 50.4572 7.91605C51.876 7.91605 53.1259 8.17504 54.2069 8.69301C55.2879 9.21098 56.1324 9.94289 56.7404 10.8775C57.3485 11.8121 57.6525 12.8818 57.6525 14.0867V25.6059H53.7114V22.6444L54.601 22.6107C54.1506 23.3313 53.6214 23.9506 52.9908 24.4573C52.3602 24.9641 51.6621 25.3469 50.8851 25.6059C50.1082 25.8649 49.2411 25.9887 48.2953 25.9887H48.284Z" fill="#FAF7F8"/>+<path d="M66.4804 25.9887C64.6337 25.9887 63.0235 25.5496 61.661 24.6713C60.2872 23.793 59.3414 22.5994 58.8121 21.0905L61.965 19.5929C62.4154 20.5726 63.0347 21.3383 63.8229 21.89C64.6224 22.4418 65.5007 22.712 66.4804 22.712C67.2235 22.712 67.8203 22.5431 68.2595 22.2053C68.7099 21.8675 68.9238 21.4171 68.9238 20.8653C68.9238 20.5275 68.8338 20.246 68.6536 20.0208C68.4734 19.7956 68.237 19.6042 67.9329 19.4465C67.6402 19.2889 67.2911 19.1538 66.9195 19.0524L64.0819 18.253C62.6406 17.8476 61.5371 17.2058 60.7827 16.3275C60.0282 15.4492 59.6566 14.4132 59.6566 13.2196C59.6566 12.1612 59.9269 11.2266 60.4674 10.4383C61.0079 9.65013 61.7623 9.01955 62.7307 8.58041C63.6991 8.13 64.8026 7.91605 66.0525 7.91605C67.6852 7.91605 69.1265 8.31016 70.3764 9.09838C71.6263 9.88659 72.5159 10.9901 73.0451 12.4089L69.8584 13.9065C69.5657 13.1183 69.059 12.499 68.3608 12.0486C67.6627 11.5982 66.8745 11.3617 66.0074 11.3617C65.3093 11.3617 64.7575 11.5193 64.3522 11.8234C63.9468 12.1274 63.7441 12.5553 63.7441 13.0845C63.7441 13.3773 63.8342 13.6475 64.0031 13.884C64.172 14.1204 64.4085 14.3119 64.7238 14.4583C65.0278 14.6046 65.3881 14.7398 65.7935 14.8749L68.5635 15.6969C69.9823 16.1248 71.0858 16.7553 71.8628 17.6111C72.6397 18.4556 73.0226 19.5028 73.0226 20.7302C73.0226 21.7661 72.7411 22.6895 72.2006 23.4777C71.6488 24.2772 70.8831 24.8965 69.9147 25.3356C68.9351 25.7861 67.7978 26 66.4804 26V25.9887Z" fill="#FAF7F8"/>+<path d="M90.2283 25.9889C88.528 25.9889 86.9628 25.6849 85.5215 25.0656C84.0802 24.4463 82.8303 23.5905 81.7718 22.487C80.7134 21.3835 79.8801 20.0886 79.2721 18.6022C78.664 17.1159 78.36 15.4944 78.36 13.7378C78.36 11.9812 78.6527 10.3484 79.2495 8.85083C79.8463 7.35322 80.6796 6.05829 81.7493 4.96605C82.819 3.8738 84.0689 3.02929 85.499 2.42123C86.929 1.81318 88.5055 1.50915 90.2283 1.50915C91.9511 1.50915 93.4487 1.79066 94.8 2.36493C96.1512 2.9392 97.2885 3.69364 98.2231 4.6395C99.1577 5.58536 99.822 6.6213 100.227 7.74733L96.3426 9.59401C95.8922 8.38916 95.149 7.39826 94.0793 6.6213C93.0208 5.84435 91.7372 5.4615 90.2283 5.4615C88.7194 5.4615 87.4357 5.81057 86.2985 6.5087C85.1612 7.20684 84.2829 8.17522 83.6523 9.40258C83.0217 10.63 82.7177 12.0713 82.7177 13.7265C82.7177 15.3818 83.033 16.8343 83.6523 18.073C84.2829 19.3116 85.1612 20.28 86.2985 20.9894C87.4357 21.6875 88.7419 22.0366 90.2283 22.0366C91.7146 22.0366 93.0208 21.6537 94.0793 20.8768C95.1378 20.0998 95.8922 19.1202 96.3426 17.9378L100.227 19.7507C99.822 20.8768 99.1577 21.9127 98.2231 22.8586C97.2885 23.8044 96.1512 24.5589 94.8 25.1331C93.4487 25.7074 91.9286 25.9889 90.2283 25.9889Z" fill="#FAF7F8"/>+<path d="M101.748 25.6059V1.52026H105.948V25.6059H101.748Z" fill="#FAF7F8"/>+<path d="M116.645 25.9884C114.967 25.9884 113.436 25.5943 112.051 24.806C110.666 24.0178 109.551 22.9481 108.729 21.5969C107.907 20.2344 107.49 18.6917 107.49 16.9464C107.49 15.2011 107.907 13.6584 108.729 12.2959C109.551 10.9334 110.655 9.86369 112.04 9.08674C113.413 8.29852 114.956 7.90441 116.656 7.90441C118.357 7.90441 119.922 8.29852 121.307 9.08674C122.681 9.87495 123.784 10.9334 124.606 12.2846C125.417 13.6359 125.833 15.1898 125.833 16.9464C125.833 18.703 125.417 20.2344 124.595 21.5969C123.773 22.9594 122.669 24.0291 121.284 24.806C119.911 25.5943 118.368 25.9884 116.668 25.9884H116.645ZM116.645 22.1711C117.602 22.1711 118.435 21.9459 119.145 21.5068C119.854 21.0564 120.417 20.4371 120.834 19.6488C121.25 18.8494 121.453 17.9598 121.453 16.9576C121.453 15.9555 121.25 15.0659 120.834 14.289C120.417 13.5008 119.854 12.8927 119.145 12.4423C118.435 11.9919 117.602 11.7779 116.645 11.7779C115.688 11.7779 114.888 12.0031 114.168 12.4423C113.447 12.8927 112.884 13.5008 112.467 14.289C112.051 15.0772 111.848 15.9667 111.848 16.9576C111.848 17.9485 112.051 18.8494 112.467 19.6488C112.884 20.4483 113.447 21.0676 114.168 21.5068C114.888 21.9572 115.722 22.1711 116.645 22.1711Z" fill="#FAF7F8"/>+<path d="M133.535 25.9883C132.173 25.9883 131.013 25.6956 130.033 25.0988C129.054 24.502 128.299 23.68 127.77 22.6215C127.241 21.5631 126.97 20.3244 126.97 18.8944V8.2985H131.171V18.5453C131.171 19.266 131.317 19.8965 131.598 20.437C131.88 20.9775 132.297 21.4054 132.837 21.7094C133.378 22.0135 133.986 22.1711 134.672 22.1711C135.359 22.1711 135.956 22.0135 136.485 21.7094C137.015 21.4054 137.431 20.9775 137.724 20.4258C138.017 19.874 138.174 19.2209 138.174 18.4552V8.2985H142.341V25.6055H138.4V22.2049L138.715 22.8129C138.31 23.8714 137.656 24.6709 136.744 25.2001C135.832 25.7294 134.763 25.9996 133.535 25.9996V25.9883Z" fill="#FAF7F8"/>+<path d="M152.7 25.9888C151.022 25.9888 149.525 25.5947 148.196 24.7952C146.867 23.9957 145.82 22.9147 145.066 21.5297C144.3 20.156 143.917 18.6246 143.917 16.9468C143.917 15.269 144.3 13.7264 145.077 12.3639C145.854 11.0014 146.901 9.9204 148.207 9.12093C149.525 8.31019 151.011 7.91608 152.666 7.91608C153.984 7.91608 155.155 8.17506 156.179 8.69304C157.204 9.21101 158.015 9.94292 158.612 10.8775L157.97 11.7333V1.52026H162.136V25.6059H158.195V22.2616L158.645 23.0836C158.049 24.0407 157.227 24.7614 156.168 25.2456C155.11 25.7298 153.95 25.9775 152.7 25.9775V25.9888ZM153.139 22.1715C154.074 22.1715 154.907 21.9463 155.639 21.5072C156.371 21.0568 156.945 20.4487 157.362 19.6605C157.778 18.8723 157.981 17.9715 157.981 16.9581C157.981 15.9446 157.778 15.0663 157.362 14.2894C156.945 13.5012 156.371 12.8931 155.639 12.4427C154.907 11.9923 154.074 11.7783 153.139 11.7783C152.205 11.7783 151.371 12.0035 150.628 12.4427C149.885 12.8931 149.311 13.5012 148.894 14.2894C148.477 15.0776 148.275 15.9672 148.275 16.9581C148.275 17.949 148.477 18.8836 148.894 19.6605C149.311 20.4487 149.885 21.0568 150.628 21.5072C151.371 21.9576 152.205 22.1715 153.139 22.1715Z" fill="#FAF7F8"/>+<path d="M13.4447 0L0 25.9886C6.22692 23.5226 11.249 23.1623 15.7643 23.3763L13.7037 18.8159C12.8029 18.7258 10.1905 18.7258 8.9519 19.0523L13.4447 9.06449C13.4447 9.06449 20.2009 23.7366 20.2121 23.7366C21.5183 23.9393 24.9977 25.1103 26.8895 25.9886L13.4447 0Z" fill="#FAF7F8"/>+</svg>diff --git a/docs/assets/sponsors/atlas-cloud-logo.svg b/docs/assets/sponsors/atlas-cloud-logo.svgnew file mode 100644index 00000000..a16d2025--- /dev/null+++ b/docs/assets/sponsors/atlas-cloud-logo.svg@@ -0,0 +1,12 @@+<svg width="163" height="26" viewBox="0 0 163 26" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M32.9475 25.7973C30.9995 25.7973 29.4793 25.2568 28.3984 24.1871C27.3174 23.1174 26.7769 21.6085 26.7769 19.6492V12.0148H23.8154V8.28766H24.1307C24.9752 8.28766 25.6283 8.06245 26.09 7.6233C26.5404 7.17289 26.7769 6.53106 26.7769 5.68654V4.34657H30.9769V8.28766H34.9518V12.0148H30.9769V19.4353C30.9769 20.0096 31.0783 20.4938 31.281 20.8991C31.4837 21.3045 31.7989 21.6085 32.2381 21.8225C32.6772 22.0364 33.229 22.1378 33.9046 22.1378C34.051 22.1378 34.2312 22.1378 34.4338 22.104C34.6365 22.0814 34.828 22.0589 35.0194 22.0364V25.6059C34.7266 25.6509 34.3775 25.696 34.006 25.7298C33.6231 25.7748 33.274 25.7973 32.9588 25.7973H32.9475Z" fill="#0F1111"/>+<path d="M36.5732 25.6059V1.52028H40.7733V25.6059H36.5732Z" fill="#0F1111"/>+<path d="M48.2839 25.9888C47.079 25.9888 46.0206 25.7861 45.1197 25.3807C44.2189 24.9753 43.5208 24.4011 43.0366 23.6466C42.5524 22.8922 42.3047 22.0139 42.3047 21.023C42.3047 20.0321 42.5186 19.2101 42.9578 18.4557C43.3969 17.7012 44.05 17.0706 44.9508 16.5639C45.8404 16.0572 46.9664 15.6969 48.3289 15.483L53.959 14.5596V17.7463L49.1171 18.602C48.2951 18.7484 47.6758 19.0074 47.2705 19.379C46.8651 19.7506 46.6624 20.246 46.6624 20.8541C46.6624 21.4621 46.8876 21.9238 47.3493 22.2729C47.7997 22.6219 48.374 22.8021 49.0496 22.8021C49.9166 22.8021 50.6936 22.6219 51.3579 22.2504C52.0223 21.8788 52.5403 21.3608 52.9006 20.7077C53.2609 20.0546 53.4411 19.334 53.4411 18.5795V14.0867C53.4411 13.3435 53.1596 12.7242 52.5853 12.2287C52.011 11.7333 51.2453 11.4856 50.2995 11.4856C49.4099 11.4856 48.6217 11.7333 47.9236 12.2175C47.2367 12.7017 46.73 13.3322 46.4147 14.0979L43.0141 12.4427C43.3519 11.5306 43.8924 10.7424 44.6243 10.0668C45.3562 9.39116 46.2233 8.87319 47.2142 8.49034C48.2163 8.10749 49.2973 7.91607 50.4571 7.91607C51.8759 7.91607 53.1258 8.17505 54.2068 8.69303C55.2878 9.211 56.1323 9.94291 56.7403 10.8775C57.3484 11.8121 57.6524 12.8818 57.6524 14.0867V25.6059H53.7113V22.6445L54.6009 22.6107C54.1505 23.3313 53.6212 23.9507 52.9907 24.4574C52.3601 24.9641 51.662 25.3469 50.885 25.6059C50.108 25.8649 49.241 25.9888 48.2951 25.9888H48.2839Z" fill="#0F1111"/>+<path d="M66.4802 25.9888C64.6336 25.9888 63.0233 25.5496 61.6609 24.6713C60.2871 23.793 59.3412 22.5994 58.812 21.0906L61.9649 19.5929C62.4153 20.5726 63.0346 21.3383 63.8228 21.89C64.6223 22.4418 65.5006 22.712 66.4802 22.712C67.2234 22.712 67.8202 22.5431 68.2594 22.2053C68.7098 21.8675 68.9237 21.4171 68.9237 20.8653C68.9237 20.5275 68.8336 20.246 68.6535 20.0208C68.4733 19.7956 68.2368 19.6042 67.9328 19.4466C67.64 19.2889 67.291 19.1538 66.9194 19.0524L64.0818 18.253C62.6405 17.8476 61.537 17.2058 60.7826 16.3275C60.0281 15.4492 59.6565 14.4132 59.6565 13.2196C59.6565 12.1612 59.9268 11.2266 60.4673 10.4384C61.0078 9.65015 61.7622 9.01957 62.7306 8.58042C63.699 8.13001 64.8025 7.91607 66.0524 7.91607C67.6851 7.91607 69.1264 8.31018 70.3763 9.09839C71.6262 9.88661 72.5157 10.9901 73.045 12.4089L69.8583 13.9065C69.5656 13.1183 69.0588 12.499 68.3607 12.0486C67.6626 11.5982 66.8743 11.3617 66.0073 11.3617C65.3092 11.3617 64.7574 11.5193 64.3521 11.8234C63.9467 12.1274 63.744 12.5553 63.744 13.0845C63.744 13.3773 63.8341 13.6475 64.003 13.884C64.1719 14.1205 64.4084 14.3119 64.7236 14.4583C65.0277 14.6047 65.388 14.7398 65.7934 14.8749L68.5634 15.6969C69.9822 16.1248 71.0857 16.7554 71.8626 17.6111C72.6396 18.4557 73.0224 19.5029 73.0224 20.7302C73.0224 21.7662 72.7409 22.6895 72.2005 23.4777C71.6487 24.2772 70.883 24.8965 69.9146 25.3357C68.935 25.7861 67.7977 26 66.4802 26V25.9888Z" fill="#0F1111"/>+<path d="M90.2282 25.9889C88.5279 25.9889 86.9627 25.6849 85.5214 25.0656C84.0801 24.4463 82.8302 23.5905 81.7717 22.487C80.7133 21.3835 79.88 20.0886 79.2719 18.6022C78.6639 17.1159 78.3599 15.4944 78.3599 13.7378C78.3599 11.9812 78.6526 10.3485 79.2494 8.85085C79.8462 7.35324 80.6795 6.05831 81.7492 4.96606C82.8189 3.87382 84.0688 3.0293 85.4989 2.42125C86.9289 1.8132 88.5053 1.50917 90.2282 1.50917C91.951 1.50917 93.4486 1.79068 94.7998 2.36495C96.1511 2.93922 97.2884 3.69366 98.223 4.63952C99.1576 5.58538 99.8219 6.62132 100.227 7.74735L96.3425 9.59403C95.8921 8.38918 95.1489 7.39828 94.0792 6.62132C93.0207 5.84436 91.737 5.46152 90.2282 5.46152C88.7193 5.46152 87.4356 5.81058 86.2983 6.50872C85.1611 7.20685 84.2828 8.17523 83.6522 9.4026C83.0216 10.63 82.7176 12.0713 82.7176 13.7265C82.7176 15.3818 83.0329 16.8344 83.6522 18.073C84.2828 19.3116 85.1611 20.28 86.2983 20.9894C87.4356 21.6875 88.7418 22.0366 90.2282 22.0366C91.7145 22.0366 93.0207 21.6537 94.0792 20.8768C95.1376 20.0998 95.8921 19.1202 96.3425 17.9379L100.227 19.7508C99.8219 20.8768 99.1576 21.9127 98.223 22.8586C97.2884 23.8045 96.1511 24.5589 94.7998 25.1332C93.4486 25.7074 91.9285 25.9889 90.2282 25.9889Z" fill="#0F1111"/>+<path d="M101.748 25.6059V1.52028H105.948V25.6059H101.748Z" fill="#0F1111"/>+<path d="M116.645 25.9884C114.968 25.9884 113.436 25.5943 112.051 24.8061C110.666 24.0178 109.551 22.9481 108.729 21.5969C107.907 20.2344 107.491 18.6917 107.491 16.9464C107.491 15.2011 107.907 13.6584 108.729 12.2959C109.551 10.9334 110.655 9.86371 112.04 9.08676C113.414 8.29854 114.956 7.90443 116.657 7.90443C118.357 7.90443 119.922 8.29854 121.307 9.08676C122.681 9.87497 123.784 10.9334 124.606 12.2847C125.417 13.6359 125.834 15.1898 125.834 16.9464C125.834 18.703 125.417 20.2344 124.595 21.5969C123.773 22.9594 122.67 24.0291 121.285 24.8061C119.911 25.5943 118.368 25.9884 116.668 25.9884H116.645ZM116.645 22.1712C117.602 22.1712 118.436 21.946 119.145 21.5068C119.854 21.0564 120.417 20.4371 120.834 19.6489C121.251 18.8494 121.453 17.9598 121.453 16.9577C121.453 15.9555 121.251 15.0659 120.834 14.289C120.417 13.5008 119.854 12.8927 119.145 12.4423C118.436 11.9919 117.602 11.778 116.645 11.778C115.688 11.778 114.889 12.0032 114.168 12.4423C113.447 12.8927 112.884 13.5008 112.468 14.289C112.051 15.0772 111.848 15.9668 111.848 16.9577C111.848 17.9486 112.051 18.8494 112.468 19.6489C112.884 20.4483 113.447 21.0677 114.168 21.5068C114.889 21.9572 115.722 22.1712 116.645 22.1712Z" fill="#0F1111"/>+<path d="M133.535 25.9884C132.172 25.9884 131.013 25.6956 130.033 25.0988C129.053 24.502 128.299 23.68 127.77 22.6215C127.24 21.5631 126.97 20.3245 126.97 18.8944V8.29852H131.17V18.5453C131.17 19.266 131.317 19.8966 131.598 20.4371C131.88 20.9775 132.296 21.4054 132.837 21.7095C133.377 22.0135 133.985 22.1711 134.672 22.1711C135.359 22.1711 135.956 22.0135 136.485 21.7095C137.014 21.4054 137.431 20.9775 137.724 20.4258C138.017 19.874 138.174 19.221 138.174 18.4553V8.29852H142.34V25.6055H138.399V22.2049L138.715 22.813C138.309 23.8714 137.656 24.6709 136.744 25.2001C135.832 25.7294 134.762 25.9996 133.535 25.9996V25.9884Z" fill="#0F1111"/>+<path d="M152.7 25.9888C151.022 25.9888 149.525 25.5947 148.196 24.7952C146.867 23.9957 145.82 22.9147 145.066 21.5297C144.3 20.156 143.917 18.6246 143.917 16.9468C143.917 15.269 144.3 13.7264 145.077 12.3639C145.854 11.0014 146.901 9.92042 148.207 9.12094C149.525 8.31021 151.011 7.9161 152.666 7.9161C153.984 7.9161 155.155 8.17508 156.179 8.69305C157.204 9.21103 158.015 9.94294 158.612 10.8775L157.97 11.7333V1.52028H162.136V25.6059H158.195V22.2616L158.645 23.0836C158.049 24.0408 157.227 24.7614 156.168 25.2456C155.11 25.7298 153.95 25.9775 152.7 25.9775V25.9888ZM153.139 22.1716C154.074 22.1716 154.907 21.9464 155.639 21.5072C156.371 21.0568 156.945 20.4487 157.362 19.6605C157.778 18.8723 157.981 17.9715 157.981 16.9581C157.981 15.9447 157.778 15.0664 157.362 14.2894C156.945 13.5012 156.371 12.8931 155.639 12.4427C154.907 11.9923 154.074 11.7784 153.139 11.7784C152.205 11.7784 151.371 12.0036 150.628 12.4427C149.885 12.8931 149.311 13.5012 148.894 14.2894C148.477 15.0776 148.275 15.9672 148.275 16.9581C148.275 17.949 148.477 18.8836 148.894 19.6605C149.311 20.4487 149.885 21.0568 150.628 21.5072C151.371 21.9576 152.205 22.1716 153.139 22.1716Z" fill="#0F1111"/>+<path d="M13.4447 1.71661e-05L0 25.9887C6.22692 23.5227 11.249 23.1623 15.7643 23.3763L13.7037 18.8159C12.8029 18.7258 10.1905 18.7258 8.9519 19.0523L13.4447 9.06451C13.4447 9.06451 20.2009 23.7366 20.2121 23.7366C21.5183 23.9393 24.9977 25.1104 26.8895 25.9887L13.4447 1.71661e-05Z" fill="#0F1111"/>+</svg>