diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/constants.ts b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/constants.ts index 85fe58015..a7b6fe3a8 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/constants.ts +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/constants.ts @@ -8,9 +8,10 @@ export const STORAGE_KEY_ACTIVE_ID = 'craftbot.dashboard.activeLayoutId' * Stored layouts under any other version are discarded on read and the * dashboard reseeds from the default; there is no migration code. Bumped * for grid-unit changes AND for changes to the shipped default (v4 hid - * Recent Activity by default). + * Recent Activity by default; v5 introduced the hero default with the 2x2 + * CraftBot intro). */ -export const STORAGE_VERSION = 4 +export const STORAGE_VERSION = 5 /** * One grid cell IS one original dashboard card. diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts index 03d210612..b349ed570 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts @@ -6,17 +6,15 @@ import { WIDGET_REGISTRY } from '../widgets/registry' /** * The seed/default arrangement — and what "Reset layout" restores. * - * This is the ORIGINAL pre-revamp dashboard (the monolithic DashboardPage this - * branch replaced): eight equal-sized panels flowing five per row, in its - * exact source order — Task Statistics, Token Usage, System Resources, Usage - * Patterns, MCP Servers, Skills, Integrations, Model Information. One grid - * cell IS one of those panels (see WIDGET_MIN_CELLS), so every widget seeds at - * 1x1 and the lg row holds exactly the original five; narrower breakpoints - * reflow to fewer per row, same as the old CSS grid did. + * A hero composition: the CraftBot intro widget sits 2x2 at the top-left, with + * the stat cards (Token Usage / System Resources / Usage Patterns over Task + * Statistics / Skills / Model Information) filling the columns beside it, and + * a bottom row of MCP Servers, Integrations, and Living UI next to a 2-wide + * Mascot scene. Narrower breakpoints keep the hero on top and reflow the 1x1 + * cards in pairs. * - * The widgets this revamp introduced (Mascot, Recent Activity, Living UI) - * weren't part of that dashboard, so they trail after the original eight in - * the flow instead of being woven into it. + * Recent Activity deliberately isn't here: it's hidden by default and only + * appears when added via the Add Widget modal. * * Explicit coordinates, not shelf packing: packing by each widget's default * size leaves holes wherever row heights disagree (a taller neighbor blocks @@ -25,40 +23,46 @@ import { WIDGET_REGISTRY } from '../widgets/registry' */ type Placement = { id: string; x: number; y: number; w: number; h: number } -const ORIGINAL_ORDER = [ - 'taskStats', - 'tokenUsage', - 'systemResources', - 'usagePatterns', - 'mcpServers', - 'skills', - 'integrations', - 'modelInfo', -] - -// Recent Activity deliberately isn't here: it's hidden by default and only -// appears when added via the Add Widget modal. Living UI takes the slot it -// used to occupy. -const REVAMP_EXTRAS = ['mascot', 'livingUi'] - -// Uniform 1x1 cards flowed left-to-right, one per column — the same reflow -// the old dashboard's repeat(5, 1fr) / 4 / 2 container queries produced. -function flow(ids: string[], perRow: number): Placement[] { - return ids.map((id, i) => ({ - id, - x: i % perRow, - y: Math.floor(i / perRow), - w: 1, - h: 1, - })) -} - -const ALL_IDS = [...ORIGINAL_ORDER, ...REVAMP_EXTRAS] - const DEFAULT_PLACEMENT: Record = { - lg: flow(ALL_IDS, 5), // 5 per row, the original full-width look - md: flow(ALL_IDS, 4), - sm: flow(ALL_IDS, 2), + lg: [ + { id: 'craftBotIntro', x: 0, y: 0, w: 2, h: 2 }, + { id: 'tokenUsage', x: 2, y: 0, w: 1, h: 1 }, + { id: 'systemResources', x: 3, y: 0, w: 1, h: 1 }, + { id: 'usagePatterns', x: 4, y: 0, w: 1, h: 1 }, + { id: 'taskStats', x: 2, y: 1, w: 1, h: 1 }, + { id: 'skills', x: 3, y: 1, w: 1, h: 1 }, + { id: 'modelInfo', x: 4, y: 1, w: 1, h: 1 }, + { id: 'mcpServers', x: 0, y: 2, w: 1, h: 1 }, + { id: 'integrations', x: 1, y: 2, w: 1, h: 1 }, + { id: 'livingUi', x: 2, y: 2, w: 1, h: 1 }, + { id: 'mascot', x: 3, y: 2, w: 2, h: 1 }, + ], + md: [ + { id: 'craftBotIntro', x: 0, y: 0, w: 2, h: 2 }, + { id: 'tokenUsage', x: 2, y: 0, w: 1, h: 1 }, + { id: 'systemResources', x: 3, y: 0, w: 1, h: 1 }, + { id: 'taskStats', x: 2, y: 1, w: 1, h: 1 }, + { id: 'skills', x: 3, y: 1, w: 1, h: 1 }, + { id: 'usagePatterns', x: 0, y: 2, w: 1, h: 1 }, + { id: 'modelInfo', x: 1, y: 2, w: 1, h: 1 }, + { id: 'mcpServers', x: 2, y: 2, w: 1, h: 1 }, + { id: 'integrations', x: 3, y: 2, w: 1, h: 1 }, + { id: 'livingUi', x: 0, y: 3, w: 1, h: 1 }, + { id: 'mascot', x: 1, y: 3, w: 2, h: 1 }, + ], + sm: [ + { id: 'craftBotIntro', x: 0, y: 0, w: 2, h: 2 }, + { id: 'tokenUsage', x: 0, y: 2, w: 1, h: 1 }, + { id: 'systemResources', x: 1, y: 2, w: 1, h: 1 }, + { id: 'taskStats', x: 0, y: 3, w: 1, h: 1 }, + { id: 'skills', x: 1, y: 3, w: 1, h: 1 }, + { id: 'usagePatterns', x: 0, y: 4, w: 1, h: 1 }, + { id: 'modelInfo', x: 1, y: 4, w: 1, h: 1 }, + { id: 'mcpServers', x: 0, y: 5, w: 1, h: 1 }, + { id: 'integrations', x: 1, y: 5, w: 1, h: 1 }, + { id: 'livingUi', x: 0, y: 6, w: 2, h: 1 }, + { id: 'mascot', x: 0, y: 7, w: 2, h: 1 }, + ], } function clamp(value: number, min: number, max: number): number { diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/normalizeLayouts.ts b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/normalizeLayouts.ts index 8ed67029c..429fe37ad 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/normalizeLayouts.ts +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/normalizeLayouts.ts @@ -105,13 +105,26 @@ function normalizeBreakpoint(items: unknown, widgetIds: string[], bp: Breakpoint * bounds is pulled back to the nearest one rather than left as an odd shape. */ export function normalizeLayout(layout: NamedLayout): NamedLayout { - const widgetIds = (Array.isArray(layout.widgetIds) ? layout.widgetIds : []) + const baseWidgetIds = (Array.isArray(layout.widgetIds) ? layout.widgetIds : []) .filter(id => typeof id === 'string' && !!WIDGET_REGISTRY[id]) + // Ensure craftBotIntro is ALWAYS included at top-left by default if missing + const widgetIds = baseWidgetIds.includes('craftBotIntro') + ? baseWidgetIds + : ['craftBotIntro', ...baseWidgetIds] + const stored = (layout.layouts ?? {}) as Partial const layouts = BREAKPOINT_KEYS.reduce((acc, bp) => { - acc[bp] = normalizeBreakpoint(stored[bp], widgetIds, bp) + const bpItems = normalizeBreakpoint(stored[bp], widgetIds, bp) + const introIndex = bpItems.findIndex(item => item.i === 'craftBotIntro') + if (introIndex !== -1) { + bpItems[introIndex] = { ...bpItems[introIndex], x: 0, y: 0 } + } else { + const bounds = boundsFor(bp, 'craftBotIntro') + bpItems.unshift({ i: 'craftBotIntro', x: 0, y: 0, w: 1, h: 1, ...bounds }) + } + acc[bp] = bpItems return acc }, {} as BreakpointLayouts) diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/CraftBotIntroWidget.tsx b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/CraftBotIntroWidget.tsx new file mode 100644 index 000000000..f53def108 --- /dev/null +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/CraftBotIntroWidget.tsx @@ -0,0 +1,352 @@ +import { useState, useRef, useEffect } from 'react' +import { Cloud, Users, Github, Box, ChevronRight, ArrowLeft, ExternalLink } from 'lucide-react' +import { CraftBotMascot, useMascotState, getPose } from '@mascot' +import type { MascotState } from '@mascot' +import { Button } from '../../../components/ui' +import styles from './widgets.module.css' + +interface IntroCard { + id: string + variant: 'vision' | 'chips' | 'articles' + categoryLabel: string + title: string + subtitle: string + /* Short one-liner shown at the smallest (1x1) size instead of items */ + desc: string + items: { label: string; tag?: string; href?: string }[] + cta: { label: string; href: string } + icon: typeof Cloud +} + +/* Copy comes from craftbot.live and the CraftBot docs. Keep in sync. */ +const CARDS: IntroCard[] = [ + { + id: 'cloud', + variant: 'vision', + categoryLabel: 'CraftBot Live', + title: 'CraftBot Live', + subtitle: 'Your personal CraftBot, always online', + desc: 'Your personal CraftBot, always online', + items: [ + { label: 'No SSH' }, + { label: 'No Docker' }, + { label: 'Runs while you sleep' }, + { label: 'Reach it from any device' } + ], + cta: { label: 'Start free', href: 'https://craftbot.live' }, + icon: Cloud + }, + { + id: 'livingui', + variant: 'chips', + categoryLabel: 'Living UI', + title: 'An agent that builds and operates its own software', + subtitle: 'Ask for an app and the agent designs, codes, tests, and launches it inside its own interface.', + desc: 'Ask for an app. The agent designs, codes, tests, and launches it.', + items: [ + { label: 'Kanban board' }, + { label: 'CRM' }, + { label: 'Habit tracker' }, + { label: 'Community marketplace' } + ], + cta: { label: 'Browse the Living UI marketplace', href: 'https://craftos.net/marketplace' }, + icon: Box + }, + { + id: 'bundles', + variant: 'chips', + categoryLabel: 'Agent Bundles', + title: '40+ prebuilt agent personas', + subtitle: 'Import CEO, finance, and DevOps agents with one click. 120 ready-made playbooks cover common automations.', + desc: 'CEO, finance, DevOps, and 40+ other personas. One click to import.', + items: [ + { label: 'CEO agent' }, + { label: 'Finance agent' }, + { label: 'DevOps engineer' }, + { label: '120 playbooks' }, + { label: 'One-click import' } + ], + cta: { label: 'Get agent bundles', href: 'https://github.com/CraftOS-dev/craftbot-agent-bundles' }, + icon: Users + }, + { + id: 'community', + variant: 'articles', + categoryLabel: 'Open Source', + title: 'One agent. Every kind of work.', + subtitle: 'MIT-licensed and free to self-host. Active development, weekly improvements.', + desc: 'MIT-licensed, self-hostable, built in the open.', + items: [ + { + label: 'CraftOS-dev/CraftBot', + tag: 'GitHub', + href: 'https://github.com/CraftOS-dev/CraftBot' + }, + { + label: 'Join the CraftBot community', + tag: 'Discord', + href: 'https://discord.gg/ZN9YHc37HG' + }, + { + label: 'Community-built Living UIs', + tag: 'Market', + href: 'https://craftos.net/marketplace' + } + ], + cta: { label: 'Star on GitHub', href: 'https://github.com/CraftOS-dev/CraftBot' }, + icon: Github + } +] + +export function CraftBotIntroWidget() { + const mascotState = useMascotState() + // This widget's mascot never sleeps: any state whose pose renders the + // sleeping silhouette shows the awake 'resting' pose here instead. Scoped to + // this widget only — the Mascot widget and chat mascot keep sleep behavior. + const awakeMascotState: MascotState = getPose(mascotState.state).sleeping + ? 'resting' + : mascotState.state + const containerRef = useRef(null) + const bannerScrollRef = useRef(null) + + const [showDetails, setShowDetails] = useState(false) + const [currentBannerIndex, setCurrentBannerIndex] = useState(0) + const [isEnlarged, setIsEnlarged] = useState(false) + const [isFourBlocks, setIsFourBlocks] = useState(false) + const [isHovered, setIsHovered] = useState(false) + + const [reaction, setReaction] = useState<'happy' | null>(null) + const [beacon, setBeacon] = useState(false) + const [completedCount, setCompletedCount] = useState(0) + const timerRef = useRef(null) + + // Track widget dimensions for 1x1, 2x1/1x2, and 2x2 (4 blocks) + useEffect(() => { + const node = containerRef.current + if (!node) return + + const observer = new ResizeObserver((entries) => { + for (const entry of entries) { + const { width, height } = entry.contentRect + setIsFourBlocks(width >= 400 && height >= 340) + setIsEnlarged(width > 320 || height > 270) + } + }) + + observer.observe(node) + return () => observer.disconnect() + }, []) + + // Auto-advance slides every 4.5 seconds when open and not hovered + useEffect(() => { + if (!showDetails || isHovered) return + + const interval = setInterval(() => { + setCurrentBannerIndex((prev) => { + const nextIdx = (prev + 1) % CARDS.length + scrollToIndex(nextIdx) + return nextIdx + }) + }, 4500) + + return () => clearInterval(interval) + }, [showDetails, isHovered]) + + const handleMascotClick = () => { + setReaction('happy') + setBeacon(true) + setCompletedCount((prev) => prev + 1) + + if (timerRef.current !== null) { + clearTimeout(timerRef.current) + } + + timerRef.current = window.setTimeout(() => { + setReaction(null) + setBeacon(false) + }, 1800) + } + + const handleScroll = () => { + if (!bannerScrollRef.current) return + const { scrollLeft, clientWidth } = bannerScrollRef.current + if (clientWidth > 0) { + const idx = Math.round(scrollLeft / clientWidth) + setCurrentBannerIndex(idx) + } + } + + const scrollToIndex = (index: number) => { + if (!bannerScrollRef.current) return + const width = bannerScrollRef.current.clientWidth + bannerScrollRef.current.scrollTo({ + left: index * width, + behavior: 'smooth' + }) + setCurrentBannerIndex(index) + } + + if (showDetails) { + return ( +
setIsHovered(true)} + onMouseLeave={() => setIsHovered(false)} + > + {/* Header Bar */} +
+ +
+ + {/* Hero Split Card Banner Showcase */} +
+
+ {CARDS.map((card) => { + const Icon = card.icon + const showItems = isEnlarged || isFourBlocks + + return ( +
+
+ {card.variant !== 'vision' && showItems && ( + + + {card.categoryLabel} + + )} + +

+ {card.variant === 'vision' && ( + + )} + {card.title} +

+ {showItems &&

{card.subtitle}

} + + {card.variant === 'articles' && showItems ? ( +
+ {card.items.slice(0, isFourBlocks ? 3 : 2).map((item) => ( + + {item.tag} + {item.label} + + ))} +
+ ) : card.variant !== 'articles' && showItems ? ( +
+ {card.items.slice(0, isFourBlocks ? card.items.length : 5).map((item) => ( + + {item.label} + + ))} +
+ ) : ( +

{card.desc}

+ )} + + + {card.cta.label} + + +
+
+ ) + })} +
+
+ + {/* Footer Row: Indicator Dots + craftbot.live Link */} +
+
+ {CARDS.map((card, idx) => ( +
+ + + craftbot.live + + +
+
+ ) + } + + return ( +
+
+ +
+ +
+

Welcome to CraftBot

+

+ One agent. Every kind of work. +

+
+ + +
+ ) +} diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/registry.ts b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/registry.ts index 49f0e1a5d..60fc43a1d 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/registry.ts +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/registry.ts @@ -13,9 +13,11 @@ import { History, Package, Plug, + Sparkles, TrendingUp, } from 'lucide-react' import type { WidgetDefinition } from './types' +import { CraftBotIntroWidget } from './CraftBotIntroWidget' import { TaskStatsWidget, TaskStatsHeaderBadge } from './TaskStatsWidget' import { TokenUsageWidget, TokenUsageHeaderBadge } from './TokenUsageWidget' import { SystemResourcesWidget } from './SystemResourcesWidget' @@ -46,6 +48,15 @@ import { RecentActivityWidget } from './RecentActivityWidget' // editing them does reach people who already have a saved dashboard, with no // migration to write. export const WIDGET_REGISTRY: Record = { + craftBotIntro: { + id: 'craftBotIntro', + title: 'Welcome to CraftBot', + icon: Sparkles, + description: 'Introduction to CraftBot capabilities, system pillars, and mascot companion.', + component: CraftBotIntroWidget, + sizing: { default: { w: 1, h: 1 }, max: { w: 2, h: 2 } }, + singleton: true, + }, taskStats: { id: 'taskStats', title: 'Task Statistics', diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css index 1b6288d4b..845df73fc 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css @@ -191,7 +191,7 @@ display: flex; justify-content: center; flex-wrap: wrap; - gap: var(--w-gap); + column-gap: clamp(12px, calc(6px + 2cqmin), 20px); row-gap: calc(var(--w-gap) * 0.5); } @@ -723,3 +723,389 @@ min-width: 0; } } + +/* Compact Simple 1x1 Welcome View */ +.compactSimpleContainer { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + text-align: center; + gap: calc(var(--w-gap) * 0.5); + height: 100%; + width: 100%; + padding: calc(var(--w-pad) * 0.7); + box-sizing: border-box; +} + +.compactMascotWrapper { + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + cursor: pointer; + transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); +} + +.compactMascotWrapper:hover { + transform: scale(1.08); +} + +.compactSimpleContent { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 3px; + width: 100%; + min-width: 0; +} + +.compactSimpleTitle { + font-family: inherit; + font-size: var(--w-title, 15px); + font-weight: 700; + letter-spacing: -0.015em; + color: var(--text-primary); + margin: 0; + line-height: 1.25; + text-align: center; +} + +.compactSimpleSubtitle { + font-family: inherit; + font-size: calc(var(--w-text-xs) * 0.88); + font-weight: 450; + letter-spacing: -0.005em; + color: var(--text-muted); + margin: 0; + line-height: 1.3; + text-align: center; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + max-width: 100%; +} + +.compactSimpleContainer .compactLearnMoreBtn { + margin-top: 12px; + border-radius: 9999px; + /* Extra left padding offsets the chevron's optical whitespace on the right */ + padding-left: 26px; + padding-right: 22px; +} + +/* Compact Detailed View (Showcase Carousel) */ +.introDetailsContainer { + display: flex; + flex-direction: column; + height: 100%; + gap: calc(var(--w-gap) * 0.4); + padding: calc(var(--w-pad) * 0.6); + overflow: hidden; + box-sizing: border-box; +} + +.introDetailsHeader { + display: flex; + align-items: center; + gap: 8px; + padding-bottom: 2px; + border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.05)); +} + +.backButton { + display: inline-flex; + align-items: center; + gap: 3px; + padding: 3px 8px; + background: var(--bg-secondary); + color: var(--text-muted); + font-family: inherit; + font-size: calc(var(--w-text-xs) * 0.8); + font-weight: 600; + letter-spacing: -0.005em; + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); + border-radius: 4px; + cursor: pointer; + transition: all 0.15s ease; +} + +.backButton:hover { + color: var(--text-primary); + background: var(--bg-tertiary); +} + +.heroBannerShowcase { + display: flex; + flex: 1; + min-height: 0; + overflow: hidden; + border-radius: var(--radius-sm); + background: var(--bg-tertiary); + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); +} + +.bannerScrollContainer { + display: flex; + flex: 1; + height: 100%; + overflow-x: auto; + overflow-y: hidden; + scroll-snap-type: x mandatory; + scrollbar-width: none; + -ms-overflow-style: none; +} + +.bannerScrollContainer::-webkit-scrollbar { + display: none; +} + +/* Carousel card. Type and spacing scale with the widget box via cqmin + (the WidgetChrome .chrome element is the size container), so the card + reads like a proper marketing slide at 2x2 without dwarfing 1x1. */ +.heroBannerCard { + flex: 0 0 100%; + width: 100%; + height: 100%; + scroll-snap-align: start; + display: flex; + box-sizing: border-box; + padding: clamp(18px, calc(9px + 4.5cqmin), 36px); +} + +/* Content column: grouped at the vertical center with tight rhythm — + eyebrow / title+subtitle / items / CTA — instead of scattered. */ +.heroContentSide { + flex: 1; + min-width: 0; + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; +} + +.visionCard .heroContentSide { + align-items: center; + text-align: center; +} + +.visionCard .chipRow { + justify-content: center; +} + +.visionCard .heroTitle { + display: inline-flex; + align-items: center; + gap: clamp(6px, calc(3px + 1.5cqmin), 11px); +} + +.titleFavicon { + width: clamp(18px, calc(9px + 3.4cqmin), 30px); + height: clamp(18px, calc(9px + 3.4cqmin), 30px); + flex-shrink: 0; +} + +.cardEyebrow { + display: inline-flex; + align-items: center; + gap: 5px; + font-family: inherit; + font-size: clamp(9px, calc(7.5px + 0.6cqmin), 11.5px); + font-weight: 700; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--color-primary, #3b82f6); + margin-bottom: clamp(6px, calc(2px + 1.8cqmin), 16px); +} + +.heroTitle { + font-family: inherit; + font-size: clamp(13px, calc(4.5px + 3.4cqmin), 25px); + font-weight: 750; + letter-spacing: -0.02em; + color: var(--text-primary); + margin: 0; + line-height: 1.15; + text-wrap: balance; + max-width: 26ch; +} + +.heroSubtitle { + font-family: inherit; + font-size: clamp(11px, calc(7.5px + 1.4cqmin), 15px); + font-weight: 480; + letter-spacing: -0.005em; + color: var(--text-secondary); + margin: clamp(3px, calc(1px + 1.2cqmin), 10px) 0 0; + line-height: 1.45; + max-width: 46ch; +} + +.heroSimpleDesc { + font-family: inherit; + font-size: clamp(11px, calc(8px + 1.1cqmin), 13.5px); + font-weight: 450; + color: var(--text-secondary); + line-height: 1.45; + margin: clamp(6px, calc(2px + 1.8cqmin), 16px) 0 0; + max-width: 46ch; +} + +/* Card variant: chip/tag showcase (marketplace apps, agent bundle roles) */ +.chipRow { + display: flex; + flex-wrap: wrap; + gap: 6px; + margin-top: clamp(10px, calc(5px + 2cqmin), 20px); +} + +.chip { + font-family: inherit; + font-size: clamp(10px, calc(8px + 0.8cqmin), 12.5px); + font-weight: 550; + color: var(--text-primary); + padding: clamp(2px, calc(1px + 0.6cqmin), 4px) clamp(8px, calc(5px + 1.2cqmin), 12px); + border-radius: 9999px; + background: var(--bg-secondary); + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); + white-space: nowrap; +} + +/* Card variant: article rows (blog) */ +.articleList { + display: flex; + flex-direction: column; + gap: 6px; + margin-top: clamp(10px, calc(5px + 2cqmin), 20px); + align-self: stretch; + min-width: 0; +} + +.articleRow { + display: flex; + align-items: center; + gap: 8px; + min-width: 0; + padding: clamp(6px, calc(3px + 1.2cqmin), 10px) clamp(10px, calc(6px + 1.5cqmin), 14px); + border-radius: var(--radius-sm, 8px); + background: var(--bg-secondary); + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); + text-decoration: none; + transition: border-color 0.15s ease; +} + +.articleRow:hover { + border-color: var(--color-primary, #3b82f6); +} + +.articleTag { + font-family: inherit; + font-size: clamp(8.5px, calc(7px + 0.6cqmin), 10.5px); + font-weight: 700; + letter-spacing: 0.06em; + text-transform: uppercase; + color: var(--color-primary, #3b82f6); + background: color-mix(in srgb, var(--color-primary, #3b82f6) 14%, transparent); + padding: 2px 7px; + border-radius: 4px; + flex-shrink: 0; +} + +.articleTitle { + font-family: inherit; + font-size: clamp(11px, calc(8.5px + 1cqmin), 13.5px); + font-weight: 500; + color: var(--text-primary); + line-height: 1.35; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +/* Per-card call-to-action: pill button matching the compact Learn More */ +.cardCta { + display: inline-flex; + align-items: center; + gap: 5px; + margin-top: clamp(10px, calc(4px + 2.6cqmin), 24px); + height: clamp(24px, calc(14px + 2.8cqmin), 34px); + padding: 0 clamp(11px, calc(6px + 1.8cqmin), 18px); + border-radius: 9999px; + background: var(--color-primary, #3b82f6); + color: var(--color-white, #ffffff); + font-family: inherit; + font-size: clamp(10.5px, calc(8.5px + 0.8cqmin), 12.5px); + font-weight: 600; + letter-spacing: -0.005em; + text-decoration: none; + transition: background 0.15s ease; +} + +.cardCta:hover { + background: var(--color-primary-hover, #2563eb); + color: var(--color-white, #ffffff); + text-decoration: none; +} + +/* Hero Footer Row */ +.heroFooterRow { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + padding-top: 4px; + margin-top: 2px; +} + +.heroDotsGroup { + display: flex; + align-items: center; + gap: 6px; + padding: 3px 8px; + background: var(--bg-tertiary); + border-radius: 12px; + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); +} + +.heroDot { + width: 7px; + height: 7px; + border-radius: 4px; + background: var(--text-muted); + opacity: 0.4; + border: none; + padding: 0; + cursor: pointer; + transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); +} + +.heroDot:hover { + opacity: 0.8; +} + +.activeHeroDot { + width: 20px; + height: 7px; + border-radius: 4px; + background: var(--primary-color, var(--color-primary, #3b82f6)); + opacity: 1; + box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); +} + +.redirectLink { + display: inline-flex; + align-items: center; + gap: 4px; + font-family: inherit; + font-size: calc(var(--w-text-xs) * 0.85); + font-weight: 500; + letter-spacing: -0.005em; + color: var(--color-primary, #3b82f6); + text-decoration: underline; +} + +.redirectLink:hover { + color: var(--color-primary, #3b82f6); + text-decoration-color: currentColor; +}