The Open Standard for Generative UI
.section {
width: 100%;
}
/* ── Shared typography ── */
.desktopTitle,
.mobileTitle {
margin: 0;
font-family: "Inter Display", sans-serif;
font-weight: 600;
line-height: 1;
color: var(--openui-text-neutral-primary);
}
.desktopTitle {
font-size: 10rem;
letter-spacing: -3px;
}
.desktopTitleCompact {
font-size: 6rem;
letter-spacing: -2px;
}
.titleAccent {
color: inherit;
}
.mobileTitle {
text-align: center;
font-size: clamp(96px, 25vw, 120px);
letter-spacing: -2px;
}
/* Compound selector so it wins over the @media (max-width:767px) .mobileTitle rule. */
.mobileTitle.mobileTitleCompact {
font-size: clamp(40px, 10vw, 52px);
letter-spacing: -1px;
}
.desktopSubtitle,
.mobileSubtitle,
.tagline {
margin: 0;
font-family: "Inter Display", sans-serif;
font-weight: 500;
color: var(--openui-text-neutral-secondary);
}
.desktopSubtitle {
font-size: 1.75rem;
line-height: 1.25;
margin-top: 1.5rem;
text-align: center;
white-space: nowrap;
}
.mobileSubtitle {
margin-top: 8px;
text-align: center;
font-size: 22px;
line-height: 1.2;
text-wrap: balance;
}
/* With no title above it, the subtitle is the mobile headline. */
.mobileSubtitle.mobileSubtitleLead {
font-family: var(--home-font-display);
margin-top: 0;
font-size: clamp(32px, 9vw, 40px);
font-weight: 600;
line-height: 1.1;
letter-spacing: -0.5px;
color: var(--openui-text-neutral-primary);
/* A headline must wrap: the nowrap the subtitle gets on wider phones would
push it off both edges between 480px and the desktop layout. */
white-space: normal;
text-wrap: balance;
}
.tagline {
text-align: center;
font-size: clamp(1.875rem, 4vw, 2.5rem);
line-height: 1.2;
letter-spacing: var(--home-title-tracking);
color: var(--openui-text-neutral-primary);
}
.taglineCompact {
font-size: 16px;
color: var(--openui-text-neutral-primary);
}
.taglineBreak {
display: none;
}
/* ── Shared label typography ── */
/* Command pill text (npx / install commands): regular weight, mono. */
.npmDesktopLabel,
.npmTickerText {
font-size: 18px;
font-weight: 400;
line-height: 1.5rem;
}
.desktopPlaygroundButton,
.mobilePlaygroundLabel {
font-size: 18px;
font-weight: 500;
line-height: 1.5rem;
}
.desktopPlaygroundButton,
.mobilePlaygroundLabel {
font-family: "Inter Display", sans-serif;
}
/* ── Shared inline-flex icon helper ── */
.npmIconBadge,
.heroBannerIcon,
.mobileCtaArrow {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.npmIconBadge {
width: 2rem;
height: 2rem;
border-radius: var(--openui-radius-full);
background: var(--openui-inverted-background);
/* Icon (currentColor) must contrast with the inverted-background chip, which
flips dark<->light by theme; --openui-background is its paired opposite. */
color: var(--openui-background);
}
.mobileCtaArrow {
color: currentColor;
}
/* ── NPM button ── */
.npmButtonWrapper {
position: relative;
z-index: 5;
display: inline-block;
width: max-content;
max-width: 100%;
}
.copyToast {
position: absolute;
top: 100%;
left: 50%;
z-index: 50;
margin-top: 0.375rem;
padding: 0.3125rem 0.75rem;
border-radius: var(--openui-radius-full);
background: rgba(0, 0, 0, 0.06);
color: var(--openui-text-neutral-secondary);
font-family: "Inter", sans-serif;
font-size: 0.75rem;
line-height: 1;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transform: translate(-50%, -6px);
transition:
opacity 0.2s ease,
transform 0.2s ease;
}
.copyToastVisible {
opacity: 1;
transform: translate(-50%, 0);
}
/* Dark page: the default rgba(0,0,0,.06) tint is invisible, so give the toast a
visible light background. */
[data-theme="dark"] .copyToast {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.7);
}
.commandGroup {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.commandTabs {
position: relative;
display: inline-flex;
align-items: center;
gap: 0.125rem;
padding: 0.375rem;
flex-shrink: 0;
}
.commandTabs::after {
content: "";
position: absolute;
top: 50%;
right: 0;
width: 1px;
height: 1.25rem;
background: var(--openui-border-default);
transform: translateY(-50%);
}
.commandTab {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.25rem;
height: 2.25rem;
border: 0;
border-radius: var(--openui-radius-full);
overflow: hidden;
background: transparent;
color: var(--openui-text-neutral-secondary);
opacity: 0.5;
cursor: pointer;
transition:
background-color 0.2s ease,
color 0.2s ease,
opacity 0.2s ease;
}
.commandTab:hover {
opacity: 0.8;
}
.commandTab[aria-label="Linux"] .commandTabIcon {
width: 1.25rem;
height: 1.25rem;
}
.commandTab[aria-label="Windows"] .commandTabIcon {
width: 0.875rem;
height: 0.875rem;
}
.commandTabIcon {
width: 1rem;
height: 1rem;
flex-shrink: 0;
}
.commandTabActive {
border: 1px solid var(--openui-border-default);
background: var(--openui-highlight);
color: var(--openui-text-neutral-primary);
opacity: 1;
}
.commandTabActive:hover {
opacity: 1;
}
.commandItem {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.npmButton {
display: flex;
height: 3rem;
flex-shrink: 0;
align-items: center;
justify-content: center;
gap: 0.625rem;
padding-left: 1.25rem;
padding-right: 0.5rem;
border: 1px solid var(--openui-border-default);
border-radius: var(--openui-radius-full);
background: var(--openui-foreground);
box-shadow: var(--openui-shadow-l);
cursor: pointer;
transition: box-shadow 0.2s ease;
}
.npmButton:hover {
box-shadow: none;
}
.npmDesktopLabel {
display: none;
font-family: var(--font-geist-mono);
white-space: nowrap;
color: var(--openui-text-neutral-primary);
}
.npmMobileLabel {
position: relative;
display: block;
min-width: 0;
flex: 1;
overflow: hidden;
}
.npmTicker {
display: flex;
width: max-content;
align-items: center;
animation: npmTickerScroll 10s linear infinite;
}
.npmTickerText {
font-family: var(--font-geist-mono);
white-space: nowrap;
padding-right: 2rem;
color: var(--openui-text-neutral-primary);
}
/* ── Command dropdown button (isolated pill + sliding-highlight dropdown) ── */
/* Isolated wrapper + trigger, so restyling never affects other buttons. The
width/padding tokens keep the trigger, the rows, and the sliding highlight in
exact lockstep. */
.commandDropdown {
--cmd-width: 26.75rem;
--cmd-pad: 0.375rem;
--cmd-stride: 3.125rem;
position: relative;
z-index: 20;
display: inline-block;
width: max-content;
max-width: 100%;
}
.commandTrigger {
display: flex;
height: 3rem;
/* Row width, so the first row overlaps the trigger exactly. */
min-width: var(--cmd-width);
align-items: center;
justify-content: space-between;
gap: 0.625rem;
padding-left: 1.25rem;
padding-right: 0.5rem;
border: 1px solid rgba(0, 0, 0, 0.08);
border-radius: var(--openui-radius-full);
background: var(--home-surface-raised);
box-shadow: var(--home-bevel);
white-space: nowrap;
cursor: pointer;
transition: opacity 0.18s ease;
}
[data-theme="dark"] .commandTrigger {
border-color: rgba(255, 255, 255, 0.1);
background: var(--home-surface-ink);
box-shadow: var(--home-bevel-on-dark);
}
/* While open the first row sits exactly on the trigger; hide the trigger so the
two never ghost and the button appears to become the menu. */
.commandDropdownOpen .commandTrigger {
opacity: 0;
pointer-events: none;
}
.commandTriggerLabel {
font-family: var(--font-geist-mono);
font-size: 1rem;
white-space: nowrap;
color: var(--openui-text-neutral-primary);
}
.commandTriggerRunner {
font-weight: 600;
}
/* Filled copy chip on the trigger. */
.commandTriggerBadge {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 2rem;
height: 2rem;
border-radius: var(--openui-radius-full);
background: var(--openui-inverted-background);
color: var(--openui-background);
}
/* Dropdown. Shifted up + left by the padding + border, so the first row lands
exactly on the trigger while the card's padding sits outside it. Fades only
(no slide/scale), so the overlap holds and the text never re-rasterises. */
.commandMenu {
position: absolute;
top: calc(-1 * (var(--cmd-pad) + 1px));
left: calc(-1 * (var(--cmd-pad) + 1px));
width: calc(var(--cmd-width) + 2 * var(--cmd-pad) + 2px);
z-index: 60;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition:
opacity 0.18s ease,
visibility 0s linear 0.18s;
}
.commandMenuOpen {
opacity: 1;
visibility: visible;
pointer-events: auto;
transition:
opacity 0.18s ease,
visibility 0s;
}
/* White container; its padding sits outside the rows. Positioned so the sliding
highlight can be placed against it. */
.commandMenuCard {
position: relative;
display: flex;
flex-direction: column;
gap: 0.125rem;
width: 100%;
padding: var(--cmd-pad);
border: 1px solid var(--openui-border-default);
/* Row-pill radius (1.5rem) + the padding, so the container's corners run
concentric with the rows inside. */
border-radius: 1.875rem;
background: var(--openui-foreground);
box-shadow: var(--openui-shadow-l);
}
/* A single highlight pill that slides between rows, so the hover glides instead
of popping. It sits behind the rows, so their text and chip never move. */
.commandMenuHighlight {
position: absolute;
top: var(--cmd-pad);
left: var(--cmd-pad);
z-index: 0;
width: var(--cmd-width);
height: 3rem;
border: 1px solid rgba(0, 0, 0, 0.08);
border-radius: var(--openui-radius-full);
background: var(--home-surface-raised);
box-shadow: var(--home-bevel);
opacity: 0;
transition:
transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
opacity 0.15s ease;
}
[data-theme="dark"] .commandMenuHighlight {
border-color: rgba(255, 255, 255, 0.1);
background: var(--home-surface-ink);
box-shadow: var(--home-bevel-on-dark);
}
.commandMenuCard:has(.commandMenuItem:nth-of-type(1):hover) .commandMenuHighlight {
opacity: 1;
transform: translateY(0);
}
.commandMenuCard:has(.commandMenuItem:nth-of-type(2):hover) .commandMenuHighlight {
opacity: 1;
transform: translateY(var(--cmd-stride));
}
.commandMenuCard:has(.commandMenuItem:nth-of-type(3):hover) .commandMenuHighlight {
opacity: 1;
transform: translateY(calc(2 * var(--cmd-stride)));
}
.commandMenuCard:has(.commandMenuItem:nth-of-type(4):hover) .commandMenuHighlight {
opacity: 1;
transform: translateY(calc(3 * var(--cmd-stride)));
}
@media (prefers-reduced-motion: reduce) {
.commandMenuHighlight {
transition: opacity 0.15s ease;
}
}
/* Rows share the trigger's exact insets, so every copy chip lines up with the
trigger's badge. Transparent + above the highlight, which glides behind. */
.commandMenuItem {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
width: 100%;
height: 3rem;
padding: 0 0.5rem 0 1.25rem;
/* Transparent border matching the trigger's, so the text + chip sit at the
exact same inset and don't shift a pixel when the menu opens. */
border: 1px solid transparent;
border-radius: var(--openui-radius-full);
background: transparent;
color: var(--openui-text-neutral-primary);
font-family: var(--font-geist-mono);
font-size: 1rem;
line-height: 1.5rem;
white-space: nowrap;
cursor: pointer;
}
.commandMenuItemLabel {
overflow: hidden;
text-overflow: ellipsis;
/* Own layer, so the highlight gliding behind never re-rasterises the text. */
transform: translateZ(0);
}
.commandMenuItemRunner {
font-weight: 600;
color: var(--openui-text-neutral-primary);
}
/* Copy chip: hidden until the row is hovered (space reserved so nothing shifts),
then filled like the trigger's badge. */
.commandMenuItemIcon {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 2rem;
height: 2rem;
border-radius: var(--openui-radius-full);
background: transparent;
color: var(--openui-text-neutral-secondary);
opacity: 0;
transition: opacity 0.12s ease;
/* Own compositing layer so fading in doesn't nudge the chip a sub-pixel. */
transform: translateZ(0);
}
.commandMenuItem:hover .commandMenuItemIcon {
opacity: 1;
background: var(--openui-inverted-background);
color: var(--openui-background);
}
/* ── CTA pill buttons (shared base) ── */
.desktopPlaygroundButton,
.mobilePlaygroundButton {
display: flex;
height: 3rem;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding-inline: 1.25rem;
border-radius: var(--openui-radius-full);
text-decoration: none;
transition: background-color 0.2s ease;
}
.desktopPlaygroundButton {
color: var(--openui-text-neutral-primary);
}
.desktopPlaygroundButton:hover {
background: var(--openui-highlight);
}
.mobilePlaygroundButton {
flex-shrink: 0;
background: var(--openui-highlight-strong);
color: var(--openui-text-neutral-primary);
}
.mobilePlaygroundButton:hover {
background: var(--openui-highlight);
}
.mobilePlaygroundLabel {
white-space: nowrap;
color: inherit;
}
/* ── Hero banner ── */
.heroBanner {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
min-height: 0;
padding: 0.375rem 0.375rem 0.375rem 1rem;
border: 0;
border-radius: var(--openui-radius-full);
background: #f3eeff;
color: var(--openui-text-neutral-primary);
font-family: "Inter Display", sans-serif;
font-size: 14px;
font-weight: 500;
line-height: 1.25rem;
text-align: center;
text-decoration: none;
margin-bottom: 24px;
transition: background-color 0.2s ease;
}
.heroBanner:hover {
background: #ede5ff;
}
.heroBannerDesktop {
display: none;
}
.heroBannerMobile {
display: inline-flex;
text-decoration: none;
}
.heroBannerLabel {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
color: inherit;
text-decoration: none;
}
.heroBannerBadge {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 1.5rem;
padding-inline: 0.4rem;
border-radius: var(--openui-radius-s);
background: var(--openui-text-info-primary);
border: 1px solid var(--openui-border-default);
font-size: 0.75rem;
font-weight: 600;
line-height: 1;
letter-spacing: 0.02em;
text-transform: uppercase;
color: var(--openui-text-info-inverted);
}
.heroBannerActions {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.heroBannerButton {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 1.5rem;
height: 1.5rem;
border-radius: var(--openui-radius-full);
background: var(--openui-foreground);
color: var(--openui-text-neutral-primary);
text-decoration: none;
font-size: 13px;
font-weight: 500;
line-height: 1;
border: 1px solid var(--openui-border-default);
transition: border-color 0.2s ease;
}
.heroBannerButton:hover {
border-color: var(--openui-border-interactive);
}
.heroBannerButtonPrimary {
background: var(--openui-inverted-background);
color: var(--openui-text-accent-primary);
}
.heroBannerButtonPrimary:hover {
background: rgb(0 0 0 / 85%);
}
.heroBannerLead {
display: inline-flex;
align-items: center;
gap: 0.375rem;
min-width: 0;
}
/* ── Mobile GitHub button ── */
/* Match the desktop GitHub CTA: glowing black pill with a beveled top highlight. */
.mobileGithubButton {
min-height: 3rem;
margin-bottom: 0;
padding-inline: 1.25rem;
border: 1px solid var(--home-border-on-dark);
border-radius: var(--openui-radius-full);
background: var(--home-surface-ink);
color: var(--openui-text-accent-primary);
font-size: 18px;
line-height: 1.5rem;
box-shadow: var(--home-bevel-on-dark);
}
/* Keep it black on hover (the .heroBanner base would otherwise turn it purple). */
.mobileGithubButton:hover {
background: var(--home-surface-ink);
}
.mobileGithubButton .heroBannerIcon {
filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.45));
}
/* Live star count shown before the label, glowing like the desktop CTA. */
.mobileGithubCount {
font-variant-numeric: tabular-nums;
color: #fff;
text-shadow: 0 0 4px rgba(255, 255, 255, 0.55);
}
/* Faded "stars" label matching the desktop star button. */
.mobileGithubStars {
color: rgba(255, 255, 255, 0.55);
}
/* Dark mode: the mobile GH stars banner flips to a white-bevel primary (dark
content, no glow), matching the desktop GH stars button. */
[data-theme="dark"] .mobileGithubButton {
background: var(--home-surface-raised);
border-color: rgba(0, 0, 0, 0.08);
color: var(--home-surface-ink);
box-shadow: var(--home-bevel);
}
[data-theme="dark"] .mobileGithubButton:hover {
background: var(--home-surface-raised);
}
[data-theme="dark"] .mobileGithubButton .heroBannerIcon {
filter: none;
}
[data-theme="dark"] .mobileGithubCount {
color: var(--home-surface-ink);
text-shadow: none;
}
[data-theme="dark"] .mobileGithubStars {
color: rgba(0, 0, 0, 0.55);
}
/* ── Desktop hero layout ── */
.desktopHero {
display: none;
}
.desktopHeroInner {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
max-width: 75rem;
margin-inline: auto;
}
.desktopHeroLockup {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
width: 100%;
}
.desktopCtaStack {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
margin-top: 1rem;
}
.desktopCtaStackShadowRoom {
padding-bottom: 0.75rem;
}
/* ── Left-aligned desktop hero variant ── */
/* Hero text component: groups the headline, subheadline, and CTAs into one
left-aligned frame with padding on both sides. */
.desktopHeroInnerLeft {
align-items: flex-start;
padding-block: 5rem 3rem;
padding-inline: 2rem;
}
.desktopHeroInnerFlushInline {
padding-inline: 0;
}
.desktopHeroLockupLeft {
align-items: flex-start;
text-align: left;
gap: 0.5rem;
}
.desktopHeroLockupSplit {
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
gap: 32px;
}
.desktopTitleLeft {
font-size: 3.75rem;
font-weight: 600;
letter-spacing: -1px;
}
.desktopSubtitleLeft {
text-align: left;
font-size: 3.75rem;
font-weight: 600;
line-height: 1.1;
letter-spacing: -1px;
margin-top: 0;
white-space: normal;
}
/* With no title above it, the subtitle is the headline, at the home page's
headline size whichever way the hero is aligned. */
.desktopSubtitleLead {
font-family: var(--home-font-display);
color: var(--openui-text-neutral-primary);
font-size: 3.75rem;
font-weight: 600;
line-height: 1.1;
letter-spacing: -1px;
margin-top: 0;
white-space: normal;
}
/* Sub-product pages reuse the left hero but want a smaller secondary headline
than the home page's 3.75rem (the one intended difference from home). */
.desktopSubtitleSmall {
font-size: 2.25rem;
letter-spacing: -0.5px;
}
.mobileSubtitleSmall {
font-size: 18px;
}
.desktopCtaStackLeft {
flex-direction: row;
align-items: center;
gap: 0.5rem;
}
/* Secondary hero CTA — white pill mirroring the primary button's bevel, subtler. */
.desktopCtaStackLeft .npmButton {
--npm-bevel: var(--home-bevel);
border: 1px solid rgba(0, 0, 0, 0.08);
background: var(--home-surface-raised);
box-shadow: var(--npm-bevel);
}
.desktopCtaStackLeft .npmButton:hover {
box-shadow: var(--npm-bevel);
}
.subtitleLogo {
display: block;
margin: 0.75rem auto 0;
width: 64px;
height: 64px;
}
.subtitleLogoTile {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.15em;
height: 1.15em;
margin: 0 0.3em 0 0.15em;
padding: 0.2em;
border-radius: 0.35em;
background: #ffffff;
border: 1px solid rgba(15, 23, 42, 0.08);
box-shadow:
0 1px 2px rgba(15, 23, 42, 0.06),
0 4px 8px rgba(15, 23, 42, 0.05);
vertical-align: middle;
position: relative;
top: -0.15em;
}
[data-theme="dark"] .subtitleLogoTile {
background: var(--openui-foreground);
border-color: rgba(255, 255, 255, 0.12);
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.4),
0 4px 8px rgba(0, 0, 0, 0.3);
}
.subtitleLogoTile img {
width: 100%;
height: 100%;
display: block;
}
/* ── Mobile hero layout ── */
.mobileHero {
position: relative;
/* clip the horizontal bleed at the screen edge, but let the framed image's
shadow show vertically (overflow-y stays visible). */
overflow-x: clip;
padding-top: 4rem;
}
.mobileHeroIntro {
position: relative;
padding: 24px var(--home-section-padding-inline) 0;
}
.mobileHeroStack {
display: flex;
width: 100%;
max-width: 345px;
margin-inline: auto;
flex-direction: column;
align-items: center;
gap: 0.875rem;
padding: 1rem 0 0.5rem;
}
.mobileBrandGroup {
display: flex;
flex-direction: column;
align-items: center;
}
.mobileCtaStack {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 40px;
gap: 0.625rem;
padding: 0.5rem 1.5rem 6rem;
}
.mobileCtaStack .commandGroup {
flex-direction: column;
gap: 0.75rem;
}
.mobileCtaStack .commandTabs::after {
display: none;
}
.mobileCtaButtonWidth {
width: 320px;
max-width: 100%;
justify-content: space-between;
}
/* Match the desktop npm CTA: light bevel pill rather than the drop-shadow pill. */
.mobileCtaStack .npmButton {
--npm-bevel: var(--home-bevel);
border: 1px solid rgba(0, 0, 0, 0.08);
background: var(--home-surface-raised);
box-shadow: var(--npm-bevel);
}
.mobileCtaStack .npmButton:hover {
box-shadow: var(--npm-bevel);
}
/* Dark mode: the npm command pill is a black-bevel secondary (matching the dark
BevelButton), so the theme's light command text stays readable. */
[data-theme="dark"] .desktopCtaStackLeft .npmButton,
[data-theme="dark"] .mobileCtaStack .npmButton {
--npm-bevel: var(--home-bevel-on-dark);
border-color: rgba(255, 255, 255, 0.1);
background: var(--home-surface-ink);
}
.mobileIllustrationViewport,
.previewFrame {
position: relative;
width: 100%;
margin-inline: auto;
overflow: hidden;
-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}
.mobileIllustrationViewport {
max-width: 402px;
}
/* Homepage mobile hero: inset the illustration from the screen edges (the framed
directory variant manages its own bleed/padding, so it's excluded). */
.mobileIllustrationViewport:not(.mobileIllustrationViewportFramed) {
box-sizing: border-box;
padding-inline: 1.25rem;
}
.previewFrame {
max-width: 75rem;
}
.previewFrameWide {
max-width: 130rem;
}
.previewFrameSlot {
max-width: 1280px;
-webkit-mask-image: none;
mask-image: none;
}
/* Custom screenshot override (e.g. OpenClaw OS): a thin padded surface with a soft,
wide-blur shadow; the screenshot itself carries the gray stroke. No bottom fade. */
.previewFrameCustom {
-webkit-mask-image: none;
mask-image: none;
padding: clamp(0.375rem, 0.8vw, 0.625rem);
border: 1px solid var(--openui-border-default);
border-radius: 16px;
background: var(--openui-foreground);
box-shadow: 0 16px 56px -12px rgba(0, 0, 0, 0.16);
}
[data-theme="dark"] .previewFrameCustom {
box-shadow: 0 16px 56px -12px rgba(0, 0, 0, 0.6);
}
.previewFrameCustom .previewImage {
border: 1px solid var(--openui-border-default);
border-radius: 12px;
}
/* Mobile: frame a custom hero screenshot like the desktop .previewFrameCustom,
but with less padding. Only applied when a mobile image override is set. */
.mobileIllustrationViewportFramed {
/* No mask on the frame itself, so its drop shadow stays visible (a mask would
clip the box-shadow). The right-fade lives on the image below instead. */
-webkit-mask-image: none;
mask-image: none;
/* 50% bigger, anchored left with outer padding, bleeding off the right edge
(clipped by .mobileHero's overflow:hidden at the screen edge). */
width: 150%;
max-width: none;
margin-inline: 1.25rem 0;
padding: 0.25rem;
border: 1px solid var(--openui-border-default);
border-radius: 16px;
background: var(--openui-foreground);
box-shadow: 0 16px 56px -12px rgba(0, 0, 0, 0.16);
}
.mobileIllustrationViewportSlot {
-webkit-mask-image: none;
mask-image: none;
}
[data-theme="dark"] .mobileIllustrationViewportFramed {
box-shadow: 0 16px 56px -12px rgba(0, 0, 0, 0.6);
}
.mobileIllustrationViewportFramed .mobileIllustrationImage {
border: 1px solid var(--openui-border-default);
border-radius: 12px;
/* Right-fade on the image (not the frame) so the frame's drop shadow survives.
The shot dissolves toward the right where it bleeds off the screen edge; it's
only ~63% visible before the edge clips it, so it's gone by then. */
-webkit-mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 64%);
mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 64%);
}
/* The <picture> only chooses the source; the image lays out as if it were the
container's own child. */
.heroPicture {
display: contents;
}
.mobileIllustrationImage,
.previewImage {
display: block;
width: 100%;
height: auto;
}
.previewFrameWide .previewImage {
width: 118%;
margin-inline: -9%;
max-width: none;
}
.previewSection {
width: 100%;
/* Clip horizontal overflow (the wide home preview spills sideways) but let the
custom frame's drop shadow extend below without being cropped. */
overflow-x: clip;
overflow-y: visible;
margin-top: 4.75rem;
}
.previewSectionTight {
margin-top: 0.5rem;
}
.previewDesktopOnly {
display: none;
width: 100%;
justify-content: center;
}
/* ── Tagline section ── */
.taglineSection {
margin-top: 4rem;
padding-inline: 1.25rem;
padding-bottom: 2.5rem;
}
.taglineContainer {
max-width: 75rem;
margin-inline: auto;
}
/* ── Animation ── */
@keyframes npmTickerScroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
/* ── Responsive: subtitle no-wrap on wider phones ── */
@media (min-width: 480px) {
.mobileSubtitle {
white-space: nowrap;
}
}
/* Product and homepage heroes still have enough horizontal room in the
900–1023px range. Keep their desktop lockup and use a narrower, inset
illustration instead of falling into the tall phone composition. */
@media (min-width: 900px) and (max-width: 1023px) {
.desktopFromTablet .npmDesktopLabel {
display: inline-block;
vertical-align: middle;
}
.desktopFromTablet .npmMobileLabel,
.desktopFromTablet .mobileHero {
display: none;
}
.desktopFromTablet .desktopHero {
position: relative;
display: block;
width: 100%;
padding: 4rem 1.5rem 0;
}
.desktopFromTablet .desktopHeroInnerLeft {
padding-block: 4rem 2.5rem;
}
.desktopFromTablet .desktopHeroLockupSplit {
gap: 24px;
}
.desktopFromTablet .previewSection {
margin-top: 4.75rem;
}
.desktopFromTablet .previewDesktopOnly {
display: flex;
}
.desktopFromTablet .previewFrame {
width: calc(100% - 3rem);
max-width: 56rem;
}
}
/* Below the desktop lockup the install command shows in full rather than as a
scrolling ticker, sized down with the screen so it always fits the pill. */
@media (max-width: 1023px) {
.npmButton,
.mobileCtaButtonWidth {
width: auto;
max-width: calc(100vw - 2rem);
}
.npmDesktopLabel {
display: inline-block;
vertical-align: middle;
font-size: clamp(11px, 3.3vw, 18px);
}
.npmMobileLabel {
display: none;
}
}
/* ── Responsive: desktop (≥1024px) ── */
@media (min-width: 1024px) {
.npmDesktopLabel {
display: inline-block;
vertical-align: middle;
}
.npmMobileLabel,
.mobileHero {
display: none;
}
.desktopHero {
display: block;
position: relative;
width: 100%;
padding: 6rem 2rem 0;
}
/* Directory heroes (openclaw-os, agent-interface) sit closer to the top:
2rem here + 5rem from .desktopHeroInnerLeft = 7rem, matching PageHero. */
.desktopHero.desktopHeroTight {
padding-top: 2rem;
}
.heroBanner {
gap: 0.75rem;
}
.heroBannerActions {
flex-direction: row;
align-items: center;
}
.previewSection {
margin-top: 5.75rem;
}
.previewDesktopOnly {
display: flex;
}
.taglineSection {
margin-top: 8rem;
padding: 0 2rem 4rem;
}
.taglineCompact {
font-size: 18px;
}
.taglineBreak {
display: inline;
}
}
/* Mobile-only (phones): smaller hero wordmark so it isn't edge-to-edge. */
@media (max-width: 767px) {
.mobileTitle {
font-size: clamp(72px, 21vw, 88px);
font-weight: 600;
letter-spacing: 0;
}
.mobileTitle.mobileTitleCompact,
.heroBannerBadge {
letter-spacing: 0;
}
/* Tagline matches the section-title size and uses more width. */
.tagline {
font-size: 1.5rem;
font-weight: 400;
letter-spacing: 0;
}
.taglineSection {
padding-inline: 0.75rem;
}
}