astro-component-kit 0.3.1 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/README.md +133 -36
  2. package/package.json +17 -4
  3. package/src/components/index.ts +18 -202
  4. package/src/components/lib/Galaxy3D.astro +249 -137
  5. package/src/components/lib/app/AppSidebar.astro +249 -0
  6. package/src/components/lib/app/AppTopbar.astro +284 -0
  7. package/src/components/lib/app/ArrivalsBoard.astro +176 -0
  8. package/src/components/lib/app/AuthCard.astro +213 -0
  9. package/src/components/lib/app/DataTable.astro +346 -0
  10. package/src/components/lib/app/GuestProfileCard.astro +133 -0
  11. package/src/components/lib/app/HousekeepingBoard.astro +189 -0
  12. package/src/components/lib/app/PageHeader.astro +157 -0
  13. package/src/components/lib/app/PlanUsageCard.astro +112 -0
  14. package/src/components/lib/app/RoomRack.astro +207 -0
  15. package/src/components/lib/app/SettingsSection.astro +96 -0
  16. package/src/components/lib/app/SwitchRow.astro +71 -0
  17. package/src/components/lib/app/TeamMembers.astro +190 -0
  18. package/src/components/lib/app/app-icons.ts +52 -0
  19. package/src/components/lib/app/index.ts +19 -0
  20. package/src/components/lib/buttons/NeonBorderButton.astro +162 -0
  21. package/src/components/lib/buttons/RippleButton.astro +199 -0
  22. package/src/components/lib/buttons/SlideRevealButton.astro +159 -0
  23. package/src/components/lib/buttons/index.ts +4 -0
  24. package/src/components/lib/cards/GithubRepoCard.astro +176 -0
  25. package/src/components/lib/cards/PricingCompareMiniCard.astro +196 -0
  26. package/src/components/lib/cards/StatsTrendCard.astro +149 -0
  27. package/src/components/lib/cards/index.ts +3 -0
  28. package/src/components/lib/charts/ActivityRings.astro +105 -0
  29. package/src/components/lib/charts/AreaChart.astro +4 -4
  30. package/src/components/lib/charts/BarChart.astro +3 -3
  31. package/src/components/lib/charts/BoxPlotChart.astro +109 -0
  32. package/src/components/lib/charts/BubbleChart.astro +101 -0
  33. package/src/components/lib/charts/BulletChart.astro +160 -0
  34. package/src/components/lib/charts/BumpChart.astro +92 -0
  35. package/src/components/lib/charts/CandlestickChart.astro +105 -0
  36. package/src/components/lib/charts/ChartFrame.astro +373 -0
  37. package/src/components/lib/charts/DivergingBarChart.astro +98 -0
  38. package/src/components/lib/charts/DonutChart.astro +2 -2
  39. package/src/components/lib/charts/DumbbellChart.astro +92 -0
  40. package/src/components/lib/charts/ForecastLineChart.astro +125 -0
  41. package/src/components/lib/charts/FunnelChart.astro +122 -0
  42. package/src/components/lib/charts/GaugeChart.astro +111 -0
  43. package/src/components/lib/charts/GoalProgressChart.astro +97 -0
  44. package/src/components/lib/charts/GroupedBarChart.astro +125 -0
  45. package/src/components/lib/charts/HeatmapChart.astro +131 -0
  46. package/src/components/lib/charts/HistogramChart.astro +111 -0
  47. package/src/components/lib/charts/HorizontalBarChart.astro +155 -0
  48. package/src/components/lib/charts/KpiStatTile.astro +116 -0
  49. package/src/components/lib/charts/KpiTrendGrid.astro +60 -0
  50. package/src/components/lib/charts/LineChart.astro +160 -0
  51. package/src/components/lib/charts/LinearProgressGauge.astro +136 -0
  52. package/src/components/lib/charts/LollipopChart.astro +100 -0
  53. package/src/components/lib/charts/MeterGauge.astro +122 -0
  54. package/src/components/lib/charts/MetricDeltaTable.astro +125 -0
  55. package/src/components/lib/charts/PieChart.astro +135 -0
  56. package/src/components/lib/charts/PolarAreaChart.astro +85 -0
  57. package/src/components/lib/charts/PopulationPyramid.astro +122 -0
  58. package/src/components/lib/charts/PunchCardChart.astro +89 -0
  59. package/src/components/lib/charts/RadarChart.astro +94 -0
  60. package/src/components/lib/charts/RadarMetricChart.astro +168 -0
  61. package/src/components/lib/charts/RadialBarChart.astro +124 -0
  62. package/src/components/lib/charts/RangeAreaChart.astro +113 -0
  63. package/src/components/lib/charts/RetentionCohortTable.astro +126 -0
  64. package/src/components/lib/charts/SankeyChart.astro +128 -0
  65. package/src/components/lib/charts/ScatterPlot.astro +139 -0
  66. package/src/components/lib/charts/SegmentedBarChart.astro +119 -0
  67. package/src/components/lib/charts/SlopeChart.astro +105 -0
  68. package/src/components/lib/charts/SparklineChart.astro +87 -0
  69. package/src/components/lib/charts/StackedAreaChart.astro +130 -0
  70. package/src/components/lib/charts/StackedBarChart.astro +136 -0
  71. package/src/components/lib/charts/SunburstChart.astro +103 -0
  72. package/src/components/lib/charts/TreemapChart.astro +94 -0
  73. package/src/components/lib/charts/WaffleChart.astro +121 -0
  74. package/src/components/lib/charts/WaterfallChart.astro +118 -0
  75. package/src/components/lib/charts/chart-tooltip.ts +75 -0
  76. package/src/components/lib/charts/chart-utils.ts +271 -0
  77. package/src/components/lib/charts/index.ts +46 -0
  78. package/src/components/lib/data/ActivityHeatmapGrid.astro +157 -0
  79. package/src/components/lib/data/MetricComparisonRow.astro +109 -0
  80. package/src/components/lib/data/StatusTimelineFeed.astro +168 -0
  81. package/src/components/lib/data/index.ts +3 -0
  82. package/src/components/lib/ecommerce/CartDrawer.astro +483 -0
  83. package/src/components/lib/ecommerce/CartPageList.astro +290 -0
  84. package/src/components/lib/ecommerce/CartToast.astro +276 -0
  85. package/src/components/lib/ecommerce/CategoryTiles.astro +143 -0
  86. package/src/components/lib/ecommerce/CheckoutForm.astro +423 -0
  87. package/src/components/lib/ecommerce/CountdownBanner.astro +230 -0
  88. package/src/components/lib/ecommerce/FilterBar.astro +278 -0
  89. package/src/components/lib/ecommerce/FilterSidebar.astro +405 -0
  90. package/src/components/lib/ecommerce/LiveActivityToast.astro +213 -0
  91. package/src/components/lib/ecommerce/OrderSummary.astro +295 -0
  92. package/src/components/lib/ecommerce/ProductBuyBox.astro +247 -0
  93. package/src/components/lib/ecommerce/ProductCardMinimal.astro +229 -0
  94. package/src/components/lib/ecommerce/ProductGallery.astro +145 -0
  95. package/src/components/lib/ecommerce/ProductGrid.astro +118 -0
  96. package/src/components/lib/ecommerce/ProductMedia.astro +113 -0
  97. package/src/components/lib/ecommerce/ProductRating.astro +78 -0
  98. package/src/components/lib/ecommerce/ProductToolbar.astro +93 -0
  99. package/src/components/lib/ecommerce/PromoBar.astro +145 -0
  100. package/src/components/lib/ecommerce/StockIndicator.astro +127 -0
  101. package/src/components/lib/ecommerce/StoreHeader.astro +446 -0
  102. package/src/components/lib/ecommerce/StoreHero.astro +260 -0
  103. package/src/components/lib/ecommerce/StoreProductCard.astro +307 -0
  104. package/src/components/lib/ecommerce/TrustBadges.astro +101 -0
  105. package/src/components/lib/ecommerce/VariantPicker.astro +145 -0
  106. package/src/components/lib/ecommerce/cart-store.ts +151 -0
  107. package/src/components/lib/ecommerce/catalog-filter.ts +62 -0
  108. package/src/components/lib/ecommerce/index.ts +34 -0
  109. package/src/components/lib/ecommerce/product-icons.ts +28 -0
  110. package/src/components/lib/ecommerce/types.ts +70 -0
  111. package/src/components/lib/feedback/ProgressRingCounter.astro +118 -0
  112. package/src/components/lib/feedback/ToastNotificationGroup.astro +173 -0
  113. package/src/components/lib/feedback/index.ts +2 -0
  114. package/src/components/lib/forms/AnimatedInput.astro +4 -2
  115. package/src/components/lib/forms/CustomRadioGroup.astro +3 -1
  116. package/src/components/lib/forms/GlassInlineToggleGroup.astro +161 -0
  117. package/src/components/lib/forms/PasswordStrengthInput.astro +242 -0
  118. package/src/components/lib/forms/PhoneCountryInput.astro +145 -0
  119. package/src/components/lib/forms/TagsAutocompleteInput.astro +249 -0
  120. package/src/components/lib/forms/index.ts +5 -0
  121. package/src/components/lib/index.ts +2 -0
  122. package/src/components/lib/layout/BentoGrid3.astro +6 -4
  123. package/src/components/lib/layout/CenterFixedBox.astro +2 -2
  124. package/src/components/lib/layout/CenteredContainer.astro +4 -2
  125. package/src/components/lib/layout/ClusterHorizontal.astro +2 -2
  126. package/src/components/lib/layout/DiagonalSectionDivider.astro +69 -0
  127. package/src/components/lib/layout/FeatureHero.astro +4 -2
  128. package/src/components/lib/layout/FooterCenteredMinimal.astro +4 -2
  129. package/src/components/lib/layout/FullBleedSection.astro +2 -2
  130. package/src/components/lib/layout/GalleryGrid4.astro +2 -2
  131. package/src/components/lib/layout/HolyGrailGrid.astro +127 -0
  132. package/src/components/lib/layout/LandingSectionSplit.astro +5 -3
  133. package/src/components/lib/layout/MasonryGrid.astro +2 -2
  134. package/src/components/lib/layout/MinimalFooterGrid.astro +1 -1
  135. package/src/components/lib/layout/ScrollSnapSection.astro +1 -1
  136. package/src/components/lib/layout/SidebarLayoutWrapper.astro +4 -2
  137. package/src/components/lib/layout/SplitScreenLayout.astro +3 -3
  138. package/src/components/lib/layout/StepLayoutVertical.astro +1 -1
  139. package/src/components/lib/layout/StickySidebarWrapper.astro +4 -2
  140. package/src/components/lib/layout/index.ts +3 -1
  141. package/src/components/lib/navigation/QuickJumpDock.astro +125 -0
  142. package/src/components/lib/navigation/StepBreadcrumbBar.astro +151 -0
  143. package/src/components/lib/navigation/SubNavbarPills.astro +102 -0
  144. package/src/components/lib/navigation/index.ts +3 -0
  145. package/src/components/lib/overlays/CookiePreferencesDrawer.astro +226 -0
  146. package/src/components/lib/overlays/FloatingFeedbackWidget.astro +203 -0
  147. package/src/components/lib/overlays/ImageCompareSlider.astro +172 -0
  148. package/src/components/lib/overlays/index.ts +3 -0
  149. package/src/components/lib/sections/AgencyContactBrief.astro +194 -0
  150. package/src/components/lib/sections/AgencyFooterCta.astro +94 -0
  151. package/src/components/lib/sections/AgencyHeader.astro +161 -0
  152. package/src/components/lib/sections/AgencyHeroKinetic.astro +172 -0
  153. package/src/components/lib/sections/AgencyServicesList.astro +113 -0
  154. package/src/components/lib/sections/AgencyTeamGrid.astro +111 -0
  155. package/src/components/lib/sections/AgencyWorkGrid.astro +147 -0
  156. package/src/components/lib/sections/BlogGridSection.astro +133 -0
  157. package/src/components/lib/sections/ButtonsShowcase.astro +20 -18
  158. package/src/components/lib/sections/CardsShowcase.astro +28 -26
  159. package/src/components/lib/sections/CareersOpenings.astro +141 -0
  160. package/src/components/lib/sections/ChangelogSection.astro +151 -0
  161. package/src/components/lib/sections/ContactGlassForm.astro +10 -8
  162. package/src/components/lib/sections/ContactSplitMap.astro +141 -0
  163. package/src/components/lib/sections/CtaAppDownload.astro +13 -11
  164. package/src/components/lib/sections/CtaGlowBanner.astro +12 -10
  165. package/src/components/lib/sections/CtaNewsletterSection.astro +165 -0
  166. package/src/components/lib/sections/CtaSplitImage.astro +149 -0
  167. package/src/components/lib/sections/DataShowcase.astro +23 -21
  168. package/src/components/lib/sections/FaqAccordionSection.astro +8 -8
  169. package/src/components/lib/sections/FaqTwoColumn.astro +121 -0
  170. package/src/components/lib/sections/FeatureAlternatingRows.astro +192 -0
  171. package/src/components/lib/sections/FeatureBentoGrid.astro +13 -11
  172. package/src/components/lib/sections/FeatureIconGrid.astro +155 -0
  173. package/src/components/lib/sections/FeatureTabsShowcase.astro +182 -0
  174. package/src/components/lib/sections/FeatureTimelineFlow.astro +8 -6
  175. package/src/components/lib/sections/FeedbackShowcase.astro +15 -13
  176. package/src/components/lib/sections/FooterMegaSection.astro +157 -0
  177. package/src/components/lib/sections/FormsShowcase.astro +22 -20
  178. package/src/components/lib/sections/HeroDashboardPreview.astro +182 -0
  179. package/src/components/lib/sections/HeroGlass.astro +22 -20
  180. package/src/components/lib/sections/HeroGradient.astro +15 -13
  181. package/src/components/lib/sections/HeroMinimalCentered.astro +175 -0
  182. package/src/components/lib/sections/HeroShowcaseSplit.astro +306 -0
  183. package/src/components/lib/sections/HeroSplit.astro +13 -11
  184. package/src/components/lib/sections/HeroTerminal.astro +253 -0
  185. package/src/components/lib/sections/HeroWaitlist.astro +231 -0
  186. package/src/components/lib/sections/HowItWorksSteps.astro +180 -0
  187. package/src/components/lib/sections/IntegrationsGrid.astro +167 -0
  188. package/src/components/lib/sections/LayoutShowcase.astro +21 -19
  189. package/src/components/lib/sections/LogoCloudSection.astro +96 -0
  190. package/src/components/lib/sections/LogoWallGrid.astro +93 -0
  191. package/src/components/lib/sections/NavigationShowcase.astro +15 -13
  192. package/src/components/lib/sections/OverlaysShowcase.astro +21 -19
  193. package/src/components/lib/sections/PricingComparisonMatrix.astro +15 -13
  194. package/src/components/lib/sections/PricingSinglePlan.astro +159 -0
  195. package/src/components/lib/sections/PricingTierCards.astro +11 -9
  196. package/src/components/lib/sections/PricingToggleCards.astro +171 -0
  197. package/src/components/lib/sections/ShopCategoryHero.astro +103 -0
  198. package/src/components/lib/sections/ShopCollectionMosaic.astro +131 -0
  199. package/src/components/lib/sections/ShopFooterWordmark.astro +100 -0
  200. package/src/components/lib/sections/ShopHeaderEditorial.astro +396 -0
  201. package/src/components/lib/sections/ShopHeroEditorial.astro +151 -0
  202. package/src/components/lib/sections/ShopLookbook.astro +250 -0
  203. package/src/components/lib/sections/ShopNewsletterEditorial.astro +128 -0
  204. package/src/components/lib/sections/ShopProductRail.astro +150 -0
  205. package/src/components/lib/sections/ShopReviewsEditorial.astro +133 -0
  206. package/src/components/lib/sections/ShopValuesMarquee.astro +91 -0
  207. package/src/components/lib/sections/StatsCounterBand.astro +124 -0
  208. package/src/components/lib/sections/StatsDashboardSection.astro +85 -0
  209. package/src/components/lib/sections/StatsMetricShowcase.astro +9 -7
  210. package/src/components/lib/sections/TeamGridSection.astro +12 -10
  211. package/src/components/lib/sections/TestimonialCarousel.astro +167 -0
  212. package/src/components/lib/sections/TestimonialFeatured.astro +122 -0
  213. package/src/components/lib/sections/TestimonialGridSection.astro +188 -0
  214. package/src/components/lib/sections/TestimonialWallGlass.astro +11 -9
  215. package/src/components/lib/sections/TypographyShowcase.astro +10 -8
  216. package/src/components/lib/sections/index.ts +39 -0
  217. package/src/components/lib/templates/ecommerce/StoreCategoryPage.astro +160 -0
  218. package/src/components/lib/templates/ecommerce/StoreCheckoutPage.astro +98 -0
  219. package/src/components/lib/templates/ecommerce/StoreHomePage.astro +191 -0
  220. package/src/components/lib/templates/ecommerce/StoreLayout.astro +169 -0
  221. package/src/components/lib/templates/ecommerce/StoreProductPage.astro +165 -0
  222. package/src/components/lib/templates/ecommerce/data.ts +187 -0
  223. package/src/components/lib/templates/ecommerce/index.ts +14 -0
  224. package/src/components/lib/templates/ecommerce-editorial/EditorialBagPage.astro +52 -0
  225. package/src/components/lib/templates/ecommerce-editorial/EditorialCheckoutPage.astro +123 -0
  226. package/src/components/lib/templates/ecommerce-editorial/EditorialHomePage.astro +102 -0
  227. package/src/components/lib/templates/ecommerce-editorial/EditorialLayout.astro +216 -0
  228. package/src/components/lib/templates/ecommerce-editorial/EditorialProductPage.astro +205 -0
  229. package/src/components/lib/templates/ecommerce-editorial/EditorialShopPage.astro +112 -0
  230. package/src/components/lib/templates/ecommerce-editorial/data.ts +125 -0
  231. package/src/components/lib/templates/ecommerce-editorial/index.ts +16 -0
  232. package/src/components/lib/templates/saas-hotel/AppLayout.astro +83 -0
  233. package/src/components/lib/templates/saas-hotel/DashboardPage.astro +66 -0
  234. package/src/components/lib/templates/saas-hotel/GuestsPage.astro +65 -0
  235. package/src/components/lib/templates/saas-hotel/LandingPage.astro +213 -0
  236. package/src/components/lib/templates/saas-hotel/ReportsPage.astro +63 -0
  237. package/src/components/lib/templates/saas-hotel/ReservationsPage.astro +49 -0
  238. package/src/components/lib/templates/saas-hotel/RoomsPage.astro +48 -0
  239. package/src/components/lib/templates/saas-hotel/SettingsPage.astro +115 -0
  240. package/src/components/lib/templates/saas-hotel/SignInPage.astro +50 -0
  241. package/src/components/lib/templates/saas-hotel/data.ts +229 -0
  242. package/src/components/lib/templates/saas-hotel/index.ts +19 -0
  243. package/src/components/lib/templates/saas-hotel/lobby-theme.css +90 -0
  244. package/src/components/lib/typography/AnimatedCounterText.astro +102 -0
  245. package/src/components/lib/typography/CurvedPathHeading.astro +86 -0
  246. package/src/components/lib/typography/GradientTextMarquee.astro +105 -0
  247. package/src/components/lib/typography/HackerDecodeText.astro +85 -0
  248. package/src/components/lib/typography/index.ts +4 -0
  249. package/src/styles/global.css +113 -1
@@ -0,0 +1,253 @@
1
+ ---
2
+ /**
3
+ * HeroTerminal — Developer-focused split hero with an animated terminal showing
4
+ * install and build commands, plus a copyable install snippet.
5
+ *
6
+ * @param {string} eyebrow - Small label above the title.
7
+ * @param {string} title - Headline.
8
+ * @param {string} subtitle - Supporting paragraph.
9
+ * @param {string} command - Install command shown in the copy field.
10
+ * @param {Array<{type: 'cmd'|'out'|'ok', text: string}>} lines - Terminal transcript.
11
+ * @param {{label: string, href: string}} primary - Primary CTA.
12
+ * @param {string} variant - Terminal style (default|glass|minimal).
13
+ * @param {string} size - Vertical rhythm (sm|md|lg).
14
+ * @param {string} className - Extra CSS class.
15
+ */
16
+ interface Line { type: 'cmd' | 'out' | 'ok'; text: string }
17
+ interface Props {
18
+ eyebrow?: string;
19
+ title?: string;
20
+ subtitle?: string;
21
+ command?: string;
22
+ lines?: Line[];
23
+ primary?: { label: string; href: string };
24
+ variant?: 'default' | 'glass' | 'minimal';
25
+ size?: 'sm' | 'md' | 'lg';
26
+ className?: string;
27
+ }
28
+
29
+ const {
30
+ eyebrow = 'For developers',
31
+ title = 'From zero to production in one command',
32
+ subtitle = 'Scaffold a fully accessible Astro site with sections, charts and design tokens already wired up.',
33
+ command = 'npm create astro@latest -- --template kit',
34
+ lines = [
35
+ { type: 'cmd', text: 'npm create astro@latest -- --template kit' },
36
+ { type: 'out', text: 'Scaffolding project in ./my-site …' },
37
+ { type: 'ok', text: '50 sections installed' },
38
+ { type: 'ok', text: '45 SVG charts installed' },
39
+ { type: 'cmd', text: 'npm run build' },
40
+ { type: 'out', text: '12 pages built in 1.84s' },
41
+ { type: 'ok', text: 'Lighthouse: 100 · 100 · 100 · 100' },
42
+ ],
43
+ primary = { label: 'Get started', href: '#' },
44
+ variant = 'default',
45
+ size = 'md',
46
+ className = '',
47
+ } = Astro.props;
48
+
49
+ const id = `ht-${Math.random().toString(36).slice(2, 8)}`;
50
+ ---
51
+
52
+ <div class="cq-hero-terminal-cq">
53
+ <section class={`ht ht--${variant} ht--${size} ${className}`} aria-labelledby={id}>
54
+ <div class="ht__inner">
55
+ <div class="ht__copy">
56
+ <p class="ht__eyebrow">{eyebrow}</p>
57
+ <h1 id={id} class="ht__title">{title}</h1>
58
+ <p class="ht__subtitle">{subtitle}</p>
59
+ <div class="ht__install">
60
+ <code class="ht__cmd"><span aria-hidden="true">$ </span>{command}</code>
61
+ <button type="button" class="ht__copy-btn" data-copy={command} aria-label="Copy install command">
62
+ <svg class="ht__icon-copy" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2" /><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" /></svg>
63
+ <svg class="ht__icon-ok" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><path d="M20 6 9 17l-5-5" /></svg>
64
+ </button>
65
+ <span class="ht__status" role="status" aria-live="polite"></span>
66
+ </div>
67
+ <a class="ht__btn" href={primary.href}>
68
+ {primary.label}
69
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6" /></svg>
70
+ </a>
71
+ </div>
72
+
73
+ <div class="ht__terminal" role="img" aria-label={`Terminal transcript: ${lines.map((l) => l.text).join('. ')}`}>
74
+ <div class="ht__bar" aria-hidden="true">
75
+ <span></span><span></span><span></span>
76
+ <p>~/my-site — zsh</p>
77
+ </div>
78
+ <ol class="ht__lines" aria-hidden="true">
79
+ {lines.map((l, i) => (
80
+ <li class={`ht__line ht__line--${l.type}`} style={`--i:${i}`}>
81
+ {l.type === 'cmd' && <span class="ht__prompt">❯</span>}
82
+ {l.type === 'ok' && <span class="ht__ok">✓</span>}
83
+ {l.text}
84
+ </li>
85
+ ))}
86
+ <li class="ht__line ht__cursor" style={`--i:${lines.length}`}><span class="ht__prompt">❯</span><span class="ht__caret"></span></li>
87
+ </ol>
88
+ </div>
89
+ </div>
90
+ </section>
91
+ </div>
92
+ <script>
93
+ document.querySelectorAll<HTMLButtonElement>('.ht__copy-btn').forEach((btn) => {
94
+ btn.addEventListener('click', async () => {
95
+ const status = btn.parentElement?.querySelector('.ht__status');
96
+ try {
97
+ await navigator.clipboard.writeText(btn.dataset.copy || '');
98
+ btn.classList.add('is-copied');
99
+ if (status) status.textContent = 'Copied to clipboard';
100
+ setTimeout(() => {
101
+ btn.classList.remove('is-copied');
102
+ if (status) status.textContent = '';
103
+ }, 1800);
104
+ } catch {
105
+ if (status) status.textContent = 'Copy failed — select the text manually';
106
+ }
107
+ });
108
+ });
109
+ </script>
110
+
111
+ <style>
112
+ .cq-hero-terminal-cq { container-type: inline-size; }
113
+ .ht {
114
+ --ht-py: 5.5rem;
115
+ padding: var(--ht-py) var(--sp-6, 1.5rem);
116
+ background: radial-gradient(ellipse 50% 60% at 85% 40%, rgba(57, 135, 229, 0.08), transparent 70%), var(--c-bg, #050505);
117
+ }
118
+ .ht--sm { --ht-py: 3.5rem; }
119
+ .ht--lg { --ht-py: 7.5rem; }
120
+ .ht__inner {
121
+ max-width: 1180px;
122
+ margin: 0 auto;
123
+ display: grid;
124
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
125
+ gap: 4rem;
126
+ align-items: center;
127
+ }
128
+ .ht__eyebrow {
129
+ margin: 0 0 1rem;
130
+ font-family: var(--font-mono, monospace);
131
+ font-size: 0.8125rem;
132
+ color: var(--c-primary-light, #d4a017);
133
+ letter-spacing: 0.04em;
134
+ }
135
+ .ht__title {
136
+ margin: 0 0 1.25rem;
137
+ font-size: clamp(2.25rem, 4.5vw, 3.5rem);
138
+ font-weight: 800;
139
+ letter-spacing: -0.03em;
140
+ line-height: 1.08;
141
+ color: var(--c-text-1, #fff);
142
+ text-wrap: balance;
143
+ }
144
+ .ht__subtitle { margin: 0 0 2rem; font-size: 1.0625rem; line-height: 1.65; color: var(--c-text-2, #a3a3a3); max-width: 520px; }
145
+ .ht__install {
146
+ display: flex;
147
+ align-items: center;
148
+ gap: 0.5rem;
149
+ max-width: 520px;
150
+ padding: 0.4rem 0.4rem 0.4rem 1rem;
151
+ border-radius: var(--r-md, 12px);
152
+ border: 1px solid var(--c-border, rgb(var(--ink-rgb, 255 255 255) / 0.08));
153
+ background: rgb(var(--ink-rgb, 255 255 255) / 0.025);
154
+ margin-bottom: 1.5rem;
155
+ position: relative;
156
+ }
157
+ .ht__cmd {
158
+ flex: 1;
159
+ min-width: 0;
160
+ overflow-x: auto;
161
+ white-space: nowrap;
162
+ font-family: var(--font-mono, monospace);
163
+ font-size: 0.875rem;
164
+ color: var(--c-text-1, #fff);
165
+ }
166
+ .ht__cmd span { color: var(--c-text-3, #737373); }
167
+ .ht__copy-btn {
168
+ display: grid;
169
+ place-items: center;
170
+ width: 44px;
171
+ height: 44px;
172
+ flex-shrink: 0;
173
+ border: 0;
174
+ border-radius: var(--r-sm, 8px);
175
+ background: rgb(var(--ink-rgb, 255 255 255) / 0.05);
176
+ color: var(--c-text-2, #a3a3a3);
177
+ cursor: pointer;
178
+ transition: background 0.2s ease, color 0.2s ease;
179
+ }
180
+ .ht__copy-btn:hover { background: rgb(var(--ink-rgb, 255 255 255) / 0.1); color: var(--c-text-1, #fff); }
181
+ .ht__copy-btn:focus-visible, .ht__btn:focus-visible { outline: 2px solid var(--c-primary-light, #d4a017); outline-offset: 2px; }
182
+ .ht__icon-ok { display: none; color: var(--chart-pos, #34c38f); }
183
+ .ht__copy-btn.is-copied .ht__icon-copy { display: none; }
184
+ .ht__copy-btn.is-copied .ht__icon-ok { display: block; }
185
+ .ht__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
186
+ .ht__btn {
187
+ display: inline-flex;
188
+ align-items: center;
189
+ gap: 0.5rem;
190
+ min-height: 48px;
191
+ padding: 0 1.5rem;
192
+ border-radius: var(--r-md, 12px);
193
+ background: var(--c-text-1, #fff);
194
+ color: var(--c-on-primary, #0a0a0a);
195
+ font-weight: 650;
196
+ text-decoration: none;
197
+ transition: transform 0.2s ease;
198
+ }
199
+ .ht__btn:hover { transform: translateY(-1px); color: var(--c-on-primary, #0a0a0a); }
200
+
201
+ .ht__terminal {
202
+ border-radius: var(--r-lg, 20px);
203
+ border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.09);
204
+ background: #0b0b0d;
205
+ box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgb(var(--ink-rgb, 255 255 255) / 0.02) inset;
206
+ overflow: hidden;
207
+ }
208
+ .ht--glass .ht__terminal { background: rgba(14, 14, 18, 0.6); backdrop-filter: blur(18px); }
209
+ .ht--minimal .ht__terminal { box-shadow: none; }
210
+ .ht__bar {
211
+ display: flex;
212
+ align-items: center;
213
+ gap: 0.45rem;
214
+ padding: 0.85rem 1rem;
215
+ border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.06);
216
+ }
217
+ .ht__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgb(var(--ink-rgb, 255 255 255) / 0.12); }
218
+ .ht__bar p { margin: 0 auto; font-size: 0.75rem; color: var(--c-text-3, #737373); font-family: var(--font-mono, monospace); transform: translateX(-1.5rem); }
219
+ .ht__lines {
220
+ list-style: none;
221
+ margin: 0;
222
+ padding: 1.25rem 1.25rem 1.5rem;
223
+ font-family: var(--font-mono, monospace);
224
+ font-size: 0.8125rem;
225
+ line-height: 1.9;
226
+ min-height: 260px;
227
+ }
228
+ .ht__line {
229
+ display: flex;
230
+ gap: 0.6rem;
231
+ opacity: 0;
232
+ animation: ht-in 0.35s ease forwards;
233
+ animation-delay: calc(var(--i) * 0.45s + 0.3s);
234
+ white-space: nowrap;
235
+ overflow: hidden;
236
+ text-overflow: ellipsis;
237
+ }
238
+ .ht__line--cmd { color: var(--c-text-1, #fff); }
239
+ .ht__line--out { color: var(--c-text-3, #8a8a8a); padding-left: 1.2rem; }
240
+ .ht__line--ok { color: var(--c-text-2, #c4c4c4); padding-left: 1.2rem; }
241
+ .ht__prompt { color: var(--c-primary-light, #d4a017); }
242
+ .ht__ok { color: var(--chart-pos, #34c38f); }
243
+ .ht__caret { width: 8px; height: 1.1em; align-self: center; background: var(--c-text-1, #fff); animation: ht-blink 1s steps(1) infinite; }
244
+ @keyframes ht-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
245
+ @keyframes ht-blink { 50% { opacity: 0; } }
246
+ @container (max-width: 900px) {
247
+ .ht__inner { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
248
+ }
249
+ @media (prefers-reduced-motion: reduce) {
250
+ .ht__line { animation: none; opacity: 1; }
251
+ .ht__caret { animation: none; }
252
+ }
253
+ </style>
@@ -0,0 +1,231 @@
1
+ ---
2
+ /**
3
+ * HeroWaitlist — Pre-launch hero with an accessible email capture form,
4
+ * inline validation, success state and avatar-stack social proof.
5
+ *
6
+ * @param {string} badge - Status pill text (e.g. 'Private beta').
7
+ * @param {string} title - Headline.
8
+ * @param {string} subtitle - Supporting paragraph.
9
+ * @param {string} action - Form action URL (posts `email`).
10
+ * @param {string} buttonLabel - Submit button text.
11
+ * @param {string} successMessage - Message after a valid submission.
12
+ * @param {number} count - Number of people already on the list.
13
+ * @param {string} variant - Background treatment (default|aurora|minimal).
14
+ * @param {string} size - Vertical rhythm (sm|md|lg).
15
+ * @param {string} className - Extra CSS class.
16
+ */
17
+ interface Props {
18
+ badge?: string;
19
+ title?: string;
20
+ subtitle?: string;
21
+ action?: string;
22
+ buttonLabel?: string;
23
+ successMessage?: string;
24
+ count?: number;
25
+ variant?: 'default' | 'aurora' | 'minimal';
26
+ size?: 'sm' | 'md' | 'lg';
27
+ className?: string;
28
+ }
29
+
30
+ const {
31
+ badge = 'Private beta · Spring 2027',
32
+ title = 'Analytics that respect your users',
33
+ subtitle = 'Cookieless, privacy-first insights with beautiful dashboards. Join the waitlist for early access and founder pricing.',
34
+ action = '#',
35
+ buttonLabel = 'Join waitlist',
36
+ successMessage = "You're on the list! Check your inbox to confirm.",
37
+ count = 4280,
38
+ variant = 'aurora',
39
+ size = 'lg',
40
+ className = '',
41
+ } = Astro.props;
42
+
43
+ const id = `hw-${Math.random().toString(36).slice(2, 8)}`;
44
+ const initials = ['AK', 'MR', 'JS', 'LP', 'TW'];
45
+ const hues = ['var(--chart-1, #3987e5)', 'var(--chart-2, #d95926)', 'var(--chart-3, #199e70)', 'var(--chart-5, #d55181)', 'var(--chart-7, #9085e9)'];
46
+ ---
47
+
48
+ <div class="cq-hero-waitlist-cq">
49
+ <section class={`hw hw--${variant} hw--${size} ${className}`} aria-labelledby={id}>
50
+ <div class="hw__aurora" aria-hidden="true"><span></span><span></span><span></span></div>
51
+ <div class="hw__inner">
52
+ <span class="hw__badge"><span class="hw__pulse" aria-hidden="true"></span>{badge}</span>
53
+ <h1 id={id} class="hw__title">{title}</h1>
54
+ <p class="hw__subtitle">{subtitle}</p>
55
+
56
+ <form class="hw__form" action={action} method="post" novalidate data-success={successMessage}>
57
+ <label for={`${id}-email`} class="hw__sr">Email address</label>
58
+ <input id={`${id}-email`} class="hw__input" type="email" name="email" placeholder="you@company.com" autocomplete="email" required aria-describedby={`${id}-msg`} />
59
+ <button class="hw__btn" type="submit">
60
+ <span>{buttonLabel}</span>
61
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6" /></svg>
62
+ </button>
63
+ </form>
64
+ <p id={`${id}-msg`} class="hw__msg" role="status" aria-live="polite"></p>
65
+
66
+ <div class="hw__proof">
67
+ <div class="hw__avatars" aria-hidden="true">
68
+ {initials.map((ini, i) => <span style={`background:${hues[i]}`}>{ini}</span>)}
69
+ </div>
70
+ <p><strong>{count.toLocaleString('en-US')}+</strong> builders already joined</p>
71
+ </div>
72
+ </div>
73
+ </section>
74
+ </div>
75
+ <script>
76
+ document.querySelectorAll<HTMLFormElement>('.hw__form').forEach((form) => {
77
+ const input = form.querySelector<HTMLInputElement>('input[type="email"]');
78
+ const msg = document.getElementById(input?.getAttribute('aria-describedby') || '');
79
+ form.addEventListener('submit', (e) => {
80
+ e.preventDefault();
81
+ if (!input || !msg) return;
82
+ if (!input.value || !input.checkValidity()) {
83
+ input.setAttribute('aria-invalid', 'true');
84
+ msg.dataset.state = 'error';
85
+ msg.textContent = 'Please enter a valid email address.';
86
+ input.focus();
87
+ return;
88
+ }
89
+ input.removeAttribute('aria-invalid');
90
+ msg.dataset.state = 'success';
91
+ msg.textContent = form.dataset.success || 'Thanks!';
92
+ form.classList.add('is-done');
93
+ input.value = '';
94
+ });
95
+ input?.addEventListener('input', () => {
96
+ input.removeAttribute('aria-invalid');
97
+ if (msg && msg.dataset.state === 'error') msg.textContent = '';
98
+ });
99
+ });
100
+ </script>
101
+
102
+ <style>
103
+ .cq-hero-waitlist-cq { container-type: inline-size; }
104
+ .hw {
105
+ --hw-py: 6rem;
106
+ position: relative;
107
+ overflow: hidden;
108
+ padding: var(--hw-py) var(--sp-6, 1.5rem);
109
+ background: var(--c-bg, #050505);
110
+ text-align: center;
111
+ }
112
+ .hw--sm { --hw-py: 4rem; }
113
+ .hw--lg { --hw-py: 8.5rem; }
114
+ .hw__aurora { position: absolute; inset: 0; pointer-events: none; display: none; }
115
+ .hw--aurora .hw__aurora { display: block; }
116
+ .hw__aurora span {
117
+ position: absolute;
118
+ width: 40vw;
119
+ height: 40vw;
120
+ max-width: 520px;
121
+ max-height: 520px;
122
+ border-radius: 50%;
123
+ filter: blur(90px);
124
+ opacity: 0.22;
125
+ animation: hw-float 16s ease-in-out infinite alternate;
126
+ }
127
+ .hw__aurora span:nth-child(1) { background: var(--chart-7, #9085e9); top: -10%; left: 10%; }
128
+ .hw__aurora span:nth-child(2) { background: var(--chart-1, #3987e5); top: 10%; right: 5%; animation-delay: -5s; }
129
+ .hw__aurora span:nth-child(3) { background: var(--c-primary, #b8860b); bottom: -25%; left: 35%; animation-delay: -10s; }
130
+ @keyframes hw-float { to { transform: translate(6%, 8%) scale(1.1); } }
131
+ .hw__inner { position: relative; max-width: 680px; margin: 0 auto; }
132
+ .hw__badge {
133
+ display: inline-flex;
134
+ align-items: center;
135
+ gap: 0.55rem;
136
+ padding: 0.4rem 0.9rem;
137
+ border-radius: var(--r-full, 999px);
138
+ background: rgb(var(--ink-rgb, 255 255 255) / 0.05);
139
+ border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.09);
140
+ font-size: 0.8125rem;
141
+ color: var(--c-text-1, #fff);
142
+ }
143
+ .hw__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--chart-pos, #34c38f); box-shadow: 0 0 0 0 rgba(52, 195, 143, 0.6); animation: hw-pulse 2s infinite; }
144
+ @keyframes hw-pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 195, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 195, 143, 0); } }
145
+ .hw__title {
146
+ margin: 1.5rem 0 1rem;
147
+ font-size: clamp(2.4rem, 6vw, 4rem);
148
+ font-weight: 800;
149
+ letter-spacing: -0.035em;
150
+ line-height: 1.05;
151
+ color: var(--c-text-1, #fff);
152
+ text-wrap: balance;
153
+ }
154
+ .hw__subtitle { margin: 0 auto 2.25rem; max-width: 560px; font-size: 1.0625rem; line-height: 1.65; color: var(--c-text-2, #a3a3a3); }
155
+ .hw__form {
156
+ display: flex;
157
+ gap: 0.5rem;
158
+ max-width: 480px;
159
+ margin: 0 auto;
160
+ padding: 0.4rem;
161
+ border-radius: var(--r-lg, 16px);
162
+ background: rgb(var(--ink-rgb, 255 255 255) / 0.04);
163
+ border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.1);
164
+ backdrop-filter: blur(12px);
165
+ transition: border-color 0.2s ease;
166
+ }
167
+ .hw__form:focus-within { border-color: rgb(var(--ink-rgb, 255 255 255) / 0.28); }
168
+ .hw__input {
169
+ flex: 1;
170
+ min-width: 0;
171
+ min-height: 48px;
172
+ padding: 0 0.9rem;
173
+ border: 0;
174
+ background: transparent;
175
+ color: var(--c-text-1, #fff);
176
+ font-size: 1rem;
177
+ font-family: inherit;
178
+ }
179
+ .hw__input::placeholder { color: var(--c-text-3, #737373); }
180
+ .hw__input:focus { outline: none; }
181
+ .hw__input[aria-invalid='true'] { box-shadow: inset 0 -2px 0 var(--chart-neg, #f06a6a); }
182
+ .hw__btn {
183
+ display: inline-flex;
184
+ align-items: center;
185
+ gap: 0.45rem;
186
+ min-height: 48px;
187
+ padding: 0 1.25rem;
188
+ border: 0;
189
+ border-radius: var(--r-md, 12px);
190
+ background: var(--c-text-1, #fff);
191
+ color: var(--c-on-primary, #0a0a0a);
192
+ font-weight: 650;
193
+ font-size: 0.9375rem;
194
+ font-family: inherit;
195
+ cursor: pointer;
196
+ white-space: nowrap;
197
+ transition: transform 0.2s ease, background 0.2s ease;
198
+ }
199
+ .hw__btn:hover { background: var(--c-accent, #fef3c7); }
200
+ .hw__btn:focus-visible { outline: 2px solid var(--c-primary-light, #d4a017); outline-offset: 2px; }
201
+ .hw__form.is-done .hw__btn { background: var(--chart-pos, #34c38f); }
202
+ .hw__msg { min-height: 1.5rem; margin: 0.75rem 0 0; font-size: 0.875rem; }
203
+ .hw__msg[data-state='error'] { color: #ff9b9b; }
204
+ .hw__msg[data-state='success'] { color: #7ee2b8; }
205
+ .hw__proof { display: inline-flex; align-items: center; gap: 0.85rem; margin-top: 1.5rem; }
206
+ .hw__proof p { margin: 0; font-size: 0.875rem; color: var(--c-text-2, #a3a3a3); }
207
+ .hw__proof strong { color: var(--c-text-1, #fff); }
208
+ .hw__avatars { display: flex; }
209
+ .hw__avatars span {
210
+ display: grid;
211
+ place-items: center;
212
+ width: 32px;
213
+ height: 32px;
214
+ margin-left: -8px;
215
+ border-radius: 50%;
216
+ border: 2px solid var(--c-bg, #050505);
217
+ font-size: 0.625rem;
218
+ font-weight: 700;
219
+ color: #fff;
220
+ }
221
+ .hw__avatars span:first-child { margin-left: 0; }
222
+ .hw__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
223
+ @container (max-width: 520px) {
224
+ .hw__form { flex-direction: column; }
225
+ .hw__btn { justify-content: center; }
226
+ .hw__proof { flex-direction: column; }
227
+ }
228
+ @media (prefers-reduced-motion: reduce) {
229
+ .hw__aurora span, .hw__pulse { animation: none; }
230
+ }
231
+ </style>
@@ -0,0 +1,180 @@
1
+ ---
2
+ /**
3
+ * HowItWorksSteps — Numbered process section ("How it works") with a connecting
4
+ * line between steps. Horizontal on desktop, vertical on mobile.
5
+ *
6
+ * @param {string} eyebrow - Small label above the heading.
7
+ * @param {string} title - Section heading.
8
+ * @param {Array<{title: string, text: string, time?: string}>} steps - Ordered steps.
9
+ * @param {{label: string, href: string}} cta - Optional CTA under the steps.
10
+ * @param {string} variant - Step marker style (numbers|dots|cards).
11
+ * @param {string} size - Vertical rhythm (sm|md|lg).
12
+ * @param {string} className - Extra CSS class.
13
+ */
14
+ interface Step { title: string; text: string; time?: string }
15
+ interface Props {
16
+ eyebrow?: string;
17
+ title?: string;
18
+ steps?: Step[];
19
+ cta?: { label: string; href: string };
20
+ variant?: 'numbers' | 'dots' | 'cards';
21
+ size?: 'sm' | 'md' | 'lg';
22
+ className?: string;
23
+ }
24
+
25
+ const {
26
+ eyebrow = 'How it works',
27
+ title = 'Ship a polished page in four steps',
28
+ steps = [
29
+ { title: 'Pick sections', text: 'Browse heroes, features, pricing and more in the catalog.', time: '2 min' },
30
+ { title: 'Copy the code', text: 'Paste components into your Astro project. No install needed.', time: '1 min' },
31
+ { title: 'Customize props', text: 'Change copy, colors and data through typed props and tokens.', time: '10 min' },
32
+ { title: 'Deploy', text: 'Build static HTML and ship to any CDN or edge host.', time: '30 s' },
33
+ ],
34
+ cta = { label: 'Start building', href: '#' },
35
+ variant = 'numbers',
36
+ size = 'md',
37
+ className = '',
38
+ } = Astro.props;
39
+
40
+ const id = `hiw-${Math.random().toString(36).slice(2, 8)}`;
41
+ ---
42
+
43
+ <div class="cq-how-it-works-steps-cq">
44
+ <section class={`hiw hiw--${variant} hiw--${size} ${className}`} aria-labelledby={id} style={`--hiw-n:${steps.length}`}>
45
+ <div class="hiw__inner">
46
+ <header class="hiw__head">
47
+ <p class="hiw__eyebrow">{eyebrow}</p>
48
+ <h2 id={id} class="hiw__title">{title}</h2>
49
+ </header>
50
+ <ol class="hiw__steps">
51
+ {steps.map((s, i) => (
52
+ <li class="hiw__step" style={`--i:${i}`}>
53
+ <span class="hiw__marker" aria-hidden="true">{variant === 'dots' ? '' : String(i + 1).padStart(2, '0')}</span>
54
+ <div class="hiw__body">
55
+ <h3 class="hiw__step-title"><span class="hiw__sr">Step {i + 1}: </span>{s.title}</h3>
56
+ <p class="hiw__text">{s.text}</p>
57
+ {s.time && (
58
+ <span class="hiw__time">
59
+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="10" /><path d="M12 6v6l4 2" /></svg>
60
+ {s.time}
61
+ </span>
62
+ )}
63
+ </div>
64
+ </li>
65
+ ))}
66
+ </ol>
67
+ {cta && (
68
+ <div class="hiw__cta">
69
+ <a href={cta.href}>{cta.label}</a>
70
+ </div>
71
+ )}
72
+ </div>
73
+ </section>
74
+ </div>
75
+ <style>
76
+ .cq-how-it-works-steps-cq { container-type: inline-size; }
77
+ .hiw {
78
+ --hiw-py: 5.5rem;
79
+ padding: var(--hiw-py) var(--sp-6, 1.5rem);
80
+ background: var(--c-bg, #050505);
81
+ }
82
+ .hiw--sm { --hiw-py: 3.5rem; }
83
+ .hiw--lg { --hiw-py: 7.5rem; }
84
+ .hiw__inner { max-width: 1180px; margin: 0 auto; }
85
+ .hiw__head { text-align: center; margin-bottom: 3.5rem; }
86
+ .hiw__eyebrow { margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-primary-light, #d4a017); }
87
+ .hiw__title { margin: 0; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; color: var(--c-text-1, #fff); text-wrap: balance; }
88
+ .hiw__steps {
89
+ position: relative;
90
+ list-style: none;
91
+ margin: 0;
92
+ padding: 0;
93
+ display: grid;
94
+ grid-template-columns: repeat(var(--hiw-n), minmax(0, 1fr));
95
+ gap: 2rem;
96
+ }
97
+ .hiw__steps::before {
98
+ content: '';
99
+ position: absolute;
100
+ top: 24px;
101
+ left: calc(100% / var(--hiw-n) / 2);
102
+ right: calc(100% / var(--hiw-n) / 2);
103
+ height: 1px;
104
+ background: linear-gradient(90deg, color-mix(in srgb, var(--c-primary-light, #d4a017) 60%, transparent), rgb(var(--ink-rgb, 255 255 255) / 0.1));
105
+ }
106
+ .hiw--cards .hiw__steps::before { display: none; }
107
+ .hiw__step {
108
+ position: relative;
109
+ display: flex;
110
+ flex-direction: column;
111
+ align-items: center;
112
+ text-align: center;
113
+ animation: hiw-in 0.6s ease both;
114
+ animation-delay: calc(var(--i) * 120ms);
115
+ }
116
+ .hiw--cards .hiw__step {
117
+ align-items: flex-start;
118
+ text-align: left;
119
+ padding: 1.5rem;
120
+ border-radius: var(--r-lg, 20px);
121
+ background: rgb(var(--ink-rgb, 255 255 255) / 0.025);
122
+ border: 1px solid var(--c-border, rgb(var(--ink-rgb, 255 255 255) / 0.07));
123
+ }
124
+ @keyframes hiw-in { from { opacity: 0; transform: translateY(10px); } }
125
+ .hiw__marker {
126
+ position: relative;
127
+ z-index: 1;
128
+ display: grid;
129
+ place-items: center;
130
+ width: 48px;
131
+ height: 48px;
132
+ margin-bottom: 1.25rem;
133
+ border-radius: 50%;
134
+ background: var(--c-bg-1, #0a0a0a);
135
+ border: 1px solid color-mix(in srgb, var(--c-primary-light, #d4a017) 45%, transparent);
136
+ color: var(--c-primary-light, #d4a017);
137
+ font-family: var(--font-mono, monospace);
138
+ font-size: 0.875rem;
139
+ font-weight: 700;
140
+ box-shadow: 0 0 0 6px var(--c-bg, #050505);
141
+ }
142
+ .hiw--dots .hiw__marker { width: 16px; height: 16px; margin: 16px 0 1.5rem; background: var(--c-primary-light, #d4a017); }
143
+ .hiw__step-title { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 650; color: var(--c-text-1, #fff); }
144
+ .hiw__text { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--c-text-2, #a3a3a3); }
145
+ .hiw__time {
146
+ display: inline-flex;
147
+ align-items: center;
148
+ gap: 0.35rem;
149
+ margin-top: 0.85rem;
150
+ padding: 0.2rem 0.6rem;
151
+ border-radius: var(--r-full, 999px);
152
+ background: rgb(var(--ink-rgb, 255 255 255) / 0.05);
153
+ font-size: 0.75rem;
154
+ color: var(--c-text-2, #a3a3a3);
155
+ }
156
+ .hiw__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
157
+ .hiw__cta { text-align: center; margin-top: 3rem; }
158
+ .hiw__cta a {
159
+ display: inline-flex;
160
+ align-items: center;
161
+ min-height: 48px;
162
+ padding: 0 1.5rem;
163
+ border-radius: var(--r-md, 12px);
164
+ background: var(--c-primary-light, #d4a017);
165
+ color: var(--c-on-primary, #0a0a0a);
166
+ font-weight: 650;
167
+ text-decoration: none;
168
+ transition: background 0.2s ease;
169
+ }
170
+ .hiw__cta a:hover { background: var(--c-accent, #fef3c7); color: var(--c-on-primary, #0a0a0a); }
171
+ .hiw__cta a:focus-visible { outline: 2px solid var(--c-primary-light, #d4a017); outline-offset: 3px; }
172
+ @container (max-width: 820px) {
173
+ .hiw__steps { grid-template-columns: 1fr; gap: 1.75rem; }
174
+ .hiw__steps::before { top: 24px; bottom: 24px; left: 24px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, color-mix(in srgb, var(--c-primary-light, #d4a017) 60%, transparent), rgb(var(--ink-rgb, 255 255 255) / 0.1)); }
175
+ .hiw__step { flex-direction: row; align-items: flex-start; text-align: left; gap: 1.25rem; }
176
+ .hiw__marker { flex-shrink: 0; margin-bottom: 0; }
177
+ .hiw--dots .hiw__marker { margin: 16px 16px 0; }
178
+ }
179
+ @media (prefers-reduced-motion: reduce) { .hiw__step { animation: none; } }
180
+ </style>