mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
341 lines
36 KiB
CSS
341 lines
36 KiB
CSS
/* The hero's three devices (components/home/Devices.jsx): the Hanzo desktop window, the terminal running `hanzo dev` and the
|
|
Hanzo mobile app, drawn at the stage's own 720 x 590 and scaled to fit. */
|
|
.x-win, .x-term, .x-phone { position: absolute; transform-style: preserve-3d; }
|
|
@media (min-width: 641px) and (prefers-reduced-motion: no-preference) {
|
|
.x-term { transform: translateZ(70px); }
|
|
.x-phone { transform: translateZ(130px); }
|
|
}
|
|
/* the stage is drawn at one size and scaled: small type keeps its spaces and its weights only at its true size */
|
|
.x-3d { text-rendering: geometricPrecision; }
|
|
|
|
/* ---------- the desktop: the window's bar, the rail, the lit place's sidebar, the pane inset in the window ---------- */
|
|
.x-win { --tap-target: 0px; left: 0; top: 8px; width: 576px; height: 344px; border-radius: 16px; background: var(--x-sunk); border: 1px solid light-dark(var(--x-e10), rgba(255, 255, 255, .09)); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .28), 0 0 0 1px light-dark(rgba(255, 255, 255, .6), transparent) inset; overflow: hidden; display: flex; flex-direction: column; }
|
|
.x-win button, .x-win a { min-height: 0; min-width: 0; }
|
|
.x-win-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px; }
|
|
.x-win-bar > i, .x-term-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #d9d9de; }
|
|
.xw-nav { display: flex; gap: 2px; color: var(--faint); }
|
|
.xw-nav-b { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--soft); cursor: pointer; transition: background-color .16s var(--ease), color .16s var(--ease), transform .12s var(--ease); }
|
|
@media (hover: hover) { .xw-nav-b:hover { background: light-dark(#ededed, var(--muted)); color: var(--ink); } }
|
|
.xw-nav-b:active { transform: scale(.92); }
|
|
.xs-sidet { position: relative; display: grid; place-items: center; width: 24px; height: 24px; margin-left: 8px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--soft); cursor: pointer; }
|
|
@media (hover: hover) { .xs-sidet:hover { background: light-dark(#ededed, var(--muted)); color: var(--ink); } }
|
|
.xs-sidet:active { transform: scale(.94); }
|
|
.xs-sidet:focus-visible, .xw-nav-b:focus-visible, .xw-mark:focus-visible, .xw-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
|
|
.xs-tip { position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--x-on-ink); font: 500 10px/1.2 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); z-index: 5; }
|
|
.xs-sidet:hover .xs-tip, .xs-sidet:focus-visible .xs-tip { opacity: 1; }
|
|
.xs-tip span[hidden] { display: none; }
|
|
|
|
.x-win-body { flex: 1; display: grid; grid-template-columns: 40px 140px minmax(0, 1fr); min-height: 0; }
|
|
.x-win.xs-noside .x-win-body { grid-template-columns: 40px minmax(0, 1fr); }
|
|
.x-win.xs-noside .x-side { display: none; }
|
|
.xw-rail { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 0 8px; }
|
|
.xw-mark { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--soft); cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), transform .14s var(--ease); }
|
|
@media (hover: hover) { .xw-mark:hover { background: light-dark(rgba(0, 0, 0, .05), rgba(255, 255, 255, .08)); color: var(--ink); } }
|
|
.xw-mark:active { transform: scale(.92); }
|
|
.xw-mark[data-on] { background: light-dark(rgba(0, 0, 0, .07), var(--muted)); color: var(--ink); }
|
|
.xw-rail > hr { width: 16px; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
|
|
.x-acct { margin-top: auto; position: relative; }
|
|
.x-acct-b { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--x-raised); color: var(--soft); cursor: pointer; transition: transform .3s var(--ease), color .2s; }
|
|
.x-acct-b:hover, .x-acct-b[aria-expanded='true'] { color: var(--ink); transform: scale(1.06); }
|
|
.x-acct-m { position: absolute; left: 0; bottom: calc(100% + 6px); width: 168px; padding: 6px; display: flex; flex-direction: column; background: var(--x-raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35); z-index: 3; opacity: 0; visibility: hidden; transform: translateY(6px) scale(.96); transform-origin: 0 100%; transition: opacity .2s, transform .4s var(--ease), visibility 0s .4s; }
|
|
.x-acct-m[data-open='true'] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
|
|
.x-acct-who { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
|
|
.x-acct-who b { font-size: 12px; font-weight: 560; }
|
|
.x-acct-who span { font-size: 11px; color: var(--faint); }
|
|
.x-acct-m button { text-align: left; padding: 6px 8px; border: 0; border-radius: 8px; background: none; font: 400 12px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
|
|
.x-acct-m button:hover { background: var(--x-fill); }
|
|
.x-acct-b:focus-visible, .x-acct-m button:focus-visible { outline: 2px solid var(--focus, #0a0a0b); outline-offset: 1px; }
|
|
|
|
.x-side { padding: 0 6px 8px 0; min-width: 0; font-size: 11.5px; }
|
|
.xw-side { display: none; flex-direction: column; gap: 1px; }
|
|
.xw-side small { padding: 9px 8px 3px; color: var(--faint); font-size: 10.5px; }
|
|
.xw-side-t { padding: 4px 8px 8px; font: 600 13px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink); } /* the place's name, as the app heads its sidebar */
|
|
/* the window's way out, as the phone's Download App: shown while the window is pointed at */
|
|
.x-win-open { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--x-e15); background: var(--x-raised); color: var(--ink); font: 500 11px/1 var(--sans); text-decoration: none; opacity: 0; translate: 0 -2px; pointer-events: none; transition: opacity .2s var(--ease), translate .2s var(--ease); }
|
|
.x-win:hover .x-win-open, .x-win-open:focus-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
|
|
@media (hover: hover) { .x-win-open:hover { border-color: var(--ink); } }
|
|
@media (hover: none) { .x-win-open { opacity: 1; translate: 0 0; pointer-events: auto; } }
|
|
.xw-row { display: flex; align-items: center; gap: 7px; width: 100%; height: 25px; padding: 0 8px; border: 0; border-radius: 7px; background: none; font: inherit; text-align: left; color: var(--soft); white-space: nowrap; cursor: pointer; transition: background-color .16s var(--ease), color .16s var(--ease); }
|
|
@media (hover: hover) { .xw-row:hover { background: light-dark(rgba(0, 0, 0, .04), rgba(255, 255, 255, .06)); color: var(--ink); } }
|
|
.xw-row > span { overflow: hidden; text-overflow: ellipsis; }
|
|
.xw-row svg { flex: none; }
|
|
.xw-row[data-on] { background: light-dark(rgba(0, 0, 0, .06), var(--muted)); color: var(--ink); }
|
|
.xw-dot { flex: none; width: 6px; height: 6px; margin: 0 3px; border-radius: 50%; background: var(--ink); }
|
|
.x-win[data-place='chat'] .xw-side[data-p='chat'], .x-win[data-place='dev'] .xw-side[data-p='dev'], .x-win[data-place='design'] .xw-side[data-p='design'], .x-win[data-place='studio'] .xw-side[data-p='studio'], .x-win[data-place='tabs'] .xw-side[data-p='tabs'] { display: flex; }
|
|
|
|
.xw-pane { margin: 0 8px 8px 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--line); background: var(--x-raised); overflow: hidden; }
|
|
.x-win.xs-noside .xw-pane { margin-left: 0; }
|
|
.xw-view { display: none; flex: 1; min-height: 0; flex-direction: column; }
|
|
.x-win[data-place='chat'] .xw-view[data-p='chat'], .x-win[data-place='dev'] .xw-view[data-p='dev'], .x-win[data-place='design'] .xw-view[data-p='design'], .x-win[data-place='studio'] .xw-view[data-p='studio'], .x-win[data-place='tabs'] .xw-view[data-p='tabs'] { display: flex; }
|
|
.xw-log { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 72px 8px 16px; overflow: hidden; }
|
|
.xw-view[data-p='chat'] .xw-log { justify-content: flex-end; }
|
|
.xw-open, .xs-scene { display: none; flex-direction: column; gap: 9px; min-width: 0; }
|
|
.xw-pane:not([data-scene]) .xw-open, .xs-scene.on { display: flex; }
|
|
.xs-scene.on { animation: xs-in .45s cubic-bezier(.16, 1, .3, 1) both; }
|
|
@keyframes xs-in { from { opacity: 0; transform: translateY(8px); } }
|
|
.x-bub { max-width: 82%; padding: 9px 12px; border-radius: 14px; background: light-dark(#f1f1f3, var(--muted)); color: var(--ink); font-size: 12px; line-height: 1.4; }
|
|
.x-bub.me { align-self: flex-end; background: light-dark(#ededed, var(--muted)); color: light-dark(#0a0a0a, #ffffff); border-bottom-right-radius: 5px; }
|
|
.xs-me { align-self: flex-end; max-width: 82%; padding: 9px 12px; border-radius: 14px 14px 5px 14px; background: light-dark(#ededed, var(--muted)); color: light-dark(#0a0a0a, #ffffff); font-size: 12px; line-height: 1.4; }
|
|
.xs-ai { align-self: flex-start; max-width: 92%; font-size: 12px; line-height: 1.5; color: var(--ink); }
|
|
.xs-k { margin: 0; font: 500 10.5px/1 var(--mono); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
|
|
.xs-steps { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; font-size: 12px; color: light-dark(#525252, var(--muted-foreground)); }
|
|
.xs-steps li { display: flex; align-items: center; gap: 8px; }
|
|
.xs-steps svg { flex: none; color: var(--ink); }
|
|
.xs-made { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
|
|
.xs-made button, .xs-made span { aspect-ratio: 4 / 5; max-height: 150px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #171717; outline: 2px solid transparent; outline-offset: 1px; cursor: pointer; }
|
|
.xs-made button.on, .xs-made span.on { outline-color: var(--ink); }
|
|
.xs-made img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.xs-status { margin: 0; font-size: 11.5px; color: light-dark(#525252, var(--muted-foreground)); }
|
|
.xs-panes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 10px; line-height: 1.5; color: light-dark(#525252, var(--muted-foreground)); }
|
|
.xs-pane { min-width: 0; padding: 8px; border-radius: 10px; background: light-dark(#f5f5f5, var(--muted)); overflow: hidden; }
|
|
.xs-pane p { margin: 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
|
|
.xs-pane .xs-run { color: var(--ink); font-weight: 500; }
|
|
.xs-pane .x-dim { color: var(--faint); }
|
|
.x-appcard { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--x-raised); font-size: 12px; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .2); }
|
|
.x-appcard b { display: block; }
|
|
.x-appcard small { color: var(--faint); font-size: 10.5px; }
|
|
.x-appicon { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--x-on-ink); display: grid; place-items: center; }
|
|
.x-open { margin-left: 8px; padding: 5px 10px; border: 0; border-radius: 999px; background: light-dark(#f1f1f3, var(--muted)); color: var(--ink); font: 500 11px/1 var(--sans); cursor: pointer; transition: background-color .16s var(--ease), transform .12s var(--ease); }
|
|
@media (hover: hover) { .x-open:hover { background: light-dark(#e5e5e8, rgba(255, 255, 255, .14)); } }
|
|
.x-open:active { transform: scale(.95); }
|
|
.x-input { flex: none; display: flex; align-items: center; gap: 8px; min-height: 38px; margin: 0 72px 10px 12px; padding: 4px 5px 4px 11px; border-radius: 14px; border: 1px solid var(--x-e12); background: var(--x-raised); box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .25); font-size: 12px; color: var(--faint); }
|
|
.x-input-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
|
|
.x-input-t em { font-style: normal; color: var(--faint); }
|
|
.x-input-t em[hidden], .x-input-t span[hidden] { display: none; }
|
|
.x-send { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; flex: none; border-radius: 50%; background: var(--ink); color: var(--x-on-ink); cursor: pointer; }
|
|
.x-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: currentColor; animation: x-blink 1s steps(1) infinite; }
|
|
@keyframes x-blink { 50% { opacity: 0; } }
|
|
|
|
/* ---------- the terminal: `install · cli · dev · mcp · up` as each session types and prints ---------- */
|
|
.x-term { --tap-target: 0px; left: 18px; top: 360px; width: 458px; height: 222px; border-radius: 14px; background: #0b0b0c; color: #e9e9ec; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .55); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: border-color .22s var(--ease); }
|
|
.x-term:hover, .x-term[data-active] { border-color: rgba(255, 255, 255, .15); }
|
|
.x-term button { min-height: 0; min-width: 0; }
|
|
.x-term-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
|
|
.x-term-bar > i { background: #3a3a3e; }
|
|
.xt-tab { margin-left: 2px; height: 22px; padding: 0 8.5px; border: 0; border-radius: 6px; background: none; font: 500 10.5px/1 var(--mono); color: #8a8a90; cursor: pointer; display: inline-flex; align-items: center; transition: background-color .16s var(--ease), color .16s var(--ease); }
|
|
@media (hover: hover) { .xt-tab:hover { color: #d6d6db; background: rgba(255, 255, 255, .05); } }
|
|
.xt-tab:first-of-type { margin-left: 8px; }
|
|
.xt-tab[aria-selected='true'] { background: #1d1d20; color: #f4f4f6; }
|
|
.xt-dots { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding-right: 2px; }
|
|
.xt-dots b { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: background-color .2s var(--ease), transform .2s var(--ease); }
|
|
.xt-dots b[data-on] { background: rgba(255, 255, 255, .72); transform: scale(1.15); }
|
|
.x-term-body { flex: 1; min-height: 0; padding: 12px 16px 4px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; font-size: 11.5px; line-height: 1.5; }
|
|
.xs-sh { display: none; flex-direction: column; gap: 1px; min-width: 0; }
|
|
.xs-sh.on { display: flex; }
|
|
.xs-sh p, .xt-out p { margin: 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; color: #a3a3a8; }
|
|
.xt-out { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
|
|
.xt-out > :not([data-shown]) { visibility: hidden; }
|
|
.xt-out > p[data-shown] { animation: xs-in .26s cubic-bezier(.16, 1, .3, 1) both; }
|
|
.xs-sh p.run, .xs-sh p.head { color: #f5f5f7; }
|
|
.xs-sh p.sub { color: #d4d4d8; margin-top: 2px; }
|
|
.xs-sh p.ok { color: #e4e4e7; }
|
|
.xs-sh p.ask, .xt-ask { color: #f5f5f7; }
|
|
/* hanzo up's Sandboxes console (Devices.tsx Console), drawn in the terminal's own greys */
|
|
.xt-con { margin-top: 5px; padding: 5px 9px 6px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 7px; display: flex; flex-direction: column; gap: 1px; font-size: 10.5px; line-height: 1.45; }
|
|
.xt-con[data-shown] { animation: xs-in .26s cubic-bezier(.16, 1, .3, 1) both; }
|
|
.xt-con p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #a3a3a8; }
|
|
.xt-con-h { display: flex; justify-content: space-between; gap: 10px; }
|
|
.xt-con-h b { color: #f5f5f7; font-weight: 600; }
|
|
.xt-con-v { display: flex; gap: 12px; padding-bottom: 3px; margin-bottom: 2px !important; border-bottom: 1px solid rgba(255, 255, 255, .08); }
|
|
.xt-con-v b { color: #f5f5f7; font-weight: 500; }
|
|
.xt-con-r { display: grid; grid-template-columns: 1.45fr 1fr 1.3fr .35fr .55fr; gap: 8px; }
|
|
.xt-con-r span { overflow: hidden; text-overflow: ellipsis; }
|
|
.xt-con-r span:first-child, .xt-con-n span { color: #e4e4e7; }
|
|
@media (prefers-reduced-motion: reduce) { .xt-con { animation: none; } }
|
|
.x-dim { color: #77777d; }
|
|
/* the one way out, under the session (never over it, never under the phone): shown under the pointer */
|
|
.x-term-f { flex: none; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 6px 12px 9px; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s var(--ease), transform .24s var(--ease); }
|
|
.x-term:hover .x-term-f, .x-term:has(:focus-visible) .x-term-f { opacity: 1; transform: translateY(0); pointer-events: auto; }
|
|
@media (hover: none) { .x-term-f { opacity: 1; transform: none; pointer-events: auto; } }
|
|
.x-term-f .xh-copy { position: relative; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 0; border-radius: 7px; background: #17171a; color: #d4d4d8; font: 500 11px/1 var(--sans); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
|
|
.x-term-f .xh-copy::after { content: ''; position: absolute; inset: -10px -6px; }
|
|
.x-term-f .xh-copy[data-on] { background: #e5e5e5; color: #0a0a0a; }
|
|
.x-term-f .xh-copy:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.x-term-f .xh-copy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
|
|
@media (hover: hover) { .x-term-f .xh-copy:hover { background: #323236; color: #fff; } }
|
|
.xh-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: none; }
|
|
|
|
/* ---------- the phone: iPhone Duo / Fold (9:16 closed on right half, book-folding via 3D rotateY(-180deg) into 9:8 Duo) ---------- */
|
|
.x-phone { --tap-target: 0px; right: 0; top: 132px; width: 378px; height: 336px; pointer-events: none; }
|
|
.x-phone button { min-height: 0; min-width: 0; }
|
|
.xm-stage { position: relative; width: 100%; height: 100%; perspective: 1300px; transform-style: flat; }
|
|
|
|
/* stationary inner-right half: straight hinge edge (0px left radius always so outer mockup iPhone lines never show mid-flip), clipped only when closed */
|
|
.xm-base { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; padding: 5px 5px 5px 0; border-radius: 0 29px 29px 0; background: #262626; box-shadow: inset -1px 0 0 #404040, inset 0 1px 0 #404040, inset 0 -1px 0 #404040, 0 38px 80px -24px rgba(0, 0, 0, .62); opacity: 0; visibility: hidden; clip-path: inset(0 0 0 0 round 29px); pointer-events: none; z-index: 1; transition: opacity .08s ease .68s, clip-path .12s ease .62s, visibility 0s linear .78s; }
|
|
.x-phone.duo .xm-base { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0 round 0 29px 29px 0); pointer-events: auto; transition: opacity .06s ease, clip-path .14s ease, visibility 0s; }
|
|
.xm-scr-r { position: relative; width: 100%; height: 100%; border-radius: 0 24px 24px 0; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
|
|
|
|
/* 3D book-folding left leaf: pivots on the center hinge (0% 50%), crossing -90deg (0px edge-on) at exact 273ms in both directions */
|
|
.xm-leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; z-index: 2; transform-origin: 0% 50%; transform-style: preserve-3d; transform: rotateY(0deg); transition: transform .78s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
|
|
.x-phone.duo .xm-leaf { transform: rotateY(-180deg); }
|
|
|
|
.xm-face-front, .xm-face-back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
|
|
.xm-face-front { padding: 5px; border-radius: 29px; background: #262626; box-shadow: inset 0 0 0 1px #404040, 0 44px 88px -26px rgba(0, 0, 0, .66); transform: translateZ(.6px); visibility: visible; pointer-events: auto; transition: visibility 0s linear .273s; }
|
|
.x-phone.duo .xm-face-front { visibility: hidden; pointer-events: none; transition: visibility 0s linear .273s; }
|
|
.xm-face-back { padding: 5px 0 5px 5px; border-radius: 29px 0 0 29px; background: #262626; box-shadow: inset 1px 0 0 #404040, inset 0 1px 0 #404040, inset 0 -1px 0 #404040, -14px 38px 80px -26px rgba(0, 0, 0, .56); transform: rotateY(180deg) translateZ(.6px); visibility: hidden; pointer-events: none; transition: visibility 0s linear .273s; }
|
|
.x-phone.duo .xm-face-back { visibility: visible; pointer-events: auto; transition: visibility 0s linear .273s; }
|
|
|
|
.xm-cover, .xm-scr-l { position: relative; width: 100%; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; font: 400 10.5px/1.38 var(--sans); }
|
|
.xm-cover { border-radius: 24px; }
|
|
.xm-scr-l { border-radius: 24px 0 0 24px; }
|
|
|
|
/* status bars: cover has Dynamic Island; unfolded Duo spans 9:41 on left half + signal/wifi/battery on right half */
|
|
.xm-status-cover { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; height: 25px; padding: 3px 14px 0 18px; }
|
|
.xm-status-cover b, .xm-status-l b { font-size: 9.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
|
|
.x-island { position: absolute; left: 50%; top: 6px; width: 48px; height: 13px; margin-left: -24px; border-radius: 999px; background: #000; }
|
|
.xm-sys, .xm-status-r { display: flex; align-items: center; gap: 3.5px; color: var(--ink); }
|
|
.xm-status-l { flex: none; display: flex; align-items: center; height: 22px; padding: 2px 12px 0 18px; }
|
|
.xm-status-r { flex: none; justify-content: flex-end; height: 22px; padding: 2px 16px 0 10px; }
|
|
|
|
/* round bar controls + rising mobile place menu (no backdrop-filter inside preserve-3d so backface culling stays crisp) */
|
|
.xm-bar-glass { position: relative; flex: none; display: flex; justify-content: space-between; padding: 2px 10px 0; z-index: 8; }
|
|
.xm-round { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid var(--x-e12); background: light-dark(rgba(255, 255, 255, .92), rgba(28, 28, 31, .92)); color: var(--ink); cursor: pointer; transition: background-color .16s var(--ease), transform .14s var(--ease); }
|
|
@media (hover: hover) { .xm-round:hover { background: light-dark(#f2f2f5, #27272b); transform: scale(1.06); } }
|
|
.xm-round:active { transform: scale(.93); }
|
|
.xm-round:focus-visible, .xm-menu-b:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
|
|
.xm-menu { position: absolute; left: 10px; top: calc(100% + 5px); width: 118px; padding: 4px; display: flex; flex-direction: column; gap: 1px; background: light-dark(#ffffff, #18181b); border: 1px solid var(--x-e15); border-radius: 11px; box-shadow: 0 18px 38px -12px rgba(0, 0, 0, .58); z-index: 14; opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.96); transform-origin: 0 0; transition: opacity .16s ease, transform .28s var(--ease), visibility 0s .28s; }
|
|
.xm-menu[data-open='true'] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
|
|
.xm-menu-b { display: flex; align-items: center; gap: 7px; width: 100%; height: 23px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: 450 9.5px/1.2 var(--sans); text-align: left; cursor: pointer; transition: background-color .14s var(--ease); }
|
|
.xm-menu-b svg { flex: none; opacity: .82; }
|
|
.xm-menu-b[data-on] { background: light-dark(rgba(0, 0, 0, .06), rgba(255, 255, 255, .1)); font-weight: 600; }
|
|
@media (hover: hover) { .xm-menu-b:hover { background: light-dark(rgba(0, 0, 0, .05), rgba(255, 255, 255, .08)); } }
|
|
|
|
.xm-main { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 6px 10px 6px; overflow: hidden; }
|
|
.xm-scr-l .xm-main { overflow-y: auto; scrollbar-width: none; }
|
|
.xm-scr-l .xm-main::-webkit-scrollbar { display: none; }
|
|
.xm-hi { display: none; margin: auto 0 4px; text-align: center; font-size: 14px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; }
|
|
.xm-hi[data-on] { display: block; }
|
|
.xm-turn { display: none; flex-direction: column; gap: 6px; min-height: 0; }
|
|
.xm-turn[data-on] { display: flex; animation: xs-in .4s cubic-bezier(.16, 1, .3, 1) both; }
|
|
.xm-me { align-self: flex-end; max-width: 92%; padding: 5px 8.5px; border-radius: 11px 11px 4px 11px; background: light-dark(#ededed, var(--muted)); color: light-dark(#0a0a0a, #ffffff); font-size: 9px; line-height: 1.34; }
|
|
.xm-ai { display: flex; flex-direction: column; gap: 6px; font-size: 9px; line-height: 1.38; color: var(--ink); }
|
|
.xm-ai > * { opacity: 0; transition: opacity .45s var(--ease); }
|
|
.xm-ai[data-on] > * { opacity: 1; }
|
|
.xm-ai p { margin: 0; }
|
|
.xm-cover .xm-ai p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.xm-meta { font-size: 8px; color: var(--faint); }
|
|
.xm-beta-link { align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--x-on-ink); font: 600 8px/1.2 var(--sans); text-decoration: none; }
|
|
.xm-duo-card { display: flex; align-items: center; gap: 6px; padding: 5.5px 7px; border-radius: 10px; border: 1px solid var(--line); background: light-dark(#f8f8fa, var(--x-raised)); }
|
|
.xm-duo-card-i { width: 19px; height: 19px; flex: none; border-radius: 6px; background: var(--ink); color: var(--x-on-ink); display: grid; place-items: center; }
|
|
.xm-duo-card-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
|
|
.xm-duo-card-t b { font-size: 9px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.xm-duo-card-t small { font-size: 7.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.xm-duo-open { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 7.5px; border-radius: 999px; border: 1px solid var(--x-e12); background: transparent; color: var(--ink); font: 500 8px/1 var(--sans); cursor: default; transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .12s var(--ease); }
|
|
.xm-code { margin: 0; padding: 5.5px 7.5px; border-radius: 8px; background: light-dark(#f4f4f5, var(--muted)); font-size: 7.8px; line-height: 1.42; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
|
|
.xm-art { width: 112px; max-width: 100%; aspect-ratio: 4 / 5; border-radius: 9px; object-fit: cover; background: #171717; }
|
|
.xm-made-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
|
|
.xm-made-grid button { aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: #171717; outline: 1.5px solid transparent; outline-offset: 1px; cursor: pointer; }
|
|
.xm-made-grid button.on { outline-color: var(--ink); }
|
|
.xm-made-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
|
|
.xm-foot { flex: none; padding: 0 10px 13px; }
|
|
.xm-pill-comp { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 3px 0 10px; border-radius: 999px; border: 1px solid var(--x-e12); background: light-dark(rgba(255, 255, 255, .94), rgba(28, 28, 31, .94)); }
|
|
.xm-pill-comp input, .xm-pill-comp > span:first-child { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0; font: 400 9px/1.2 var(--sans); color: var(--ink); }
|
|
.xm-pill-comp input::placeholder, .xm-pill-comp > span:first-child { color: var(--faint); }
|
|
.xm-pill-send { flex: none; width: 19px; height: 19px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--x-on-ink); opacity: .45; display: grid; place-items: center; cursor: pointer; transition: opacity .16s ease, transform .12s ease; }
|
|
.xm-pill-send[data-ready], .xm-pill-send:hover { opacity: 1; }
|
|
.xm-pill-send:active { transform: scale(.92); }
|
|
|
|
/* home indicators: centered on cover (9:16), and continuous across the hinge on unfolded Duo (9:8) */
|
|
.xm-home { position: absolute; left: 50%; bottom: 5px; width: 52px; height: 3px; margin-left: -26px; border-radius: 3px; background: var(--ink); opacity: .82; pointer-events: none; }
|
|
|
|
/* optical center fold crease (only when folded OPEN, stopping cleanly above the home indicator) + clickable hinge seam */
|
|
.xm-crease { position: absolute; left: 50%; top: 6px; bottom: 12px; width: 1px; translate: -50% 0; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .08) 15%, rgba(255, 255, 255, .08) 85%, transparent); opacity: 0; pointer-events: none; z-index: 4; transition: opacity .12s ease; }
|
|
.x-phone.duo .xm-crease { opacity: 1; transition: opacity .24s ease .44s; }
|
|
.xm-hinge { position: absolute; left: 50%; top: 22px; bottom: 22px; width: 16px; translate: -50% 0; border: 0; padding: 0; background: none; display: block; cursor: e-resize; z-index: 6; pointer-events: auto; }
|
|
.x-phone.duo .xm-hinge { cursor: w-resize; }
|
|
.xm-hinge:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 6px; }
|
|
|
|
/* ---------- the foldable Duo right half: live maxpower app (compact lanes so 7-8 agent rows show when open) ---------- */
|
|
.xm-duo-wrap { flex: 1; min-height: 0; padding: 0 7px 13px; display: flex; flex-direction: column; }
|
|
.xm-duo { flex: 1; min-height: 0; border-radius: 15px; border: 1px solid var(--line); background: light-dark(#fcfcfd, #0c0c0e); padding: 7.5px 7.5px 7px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
|
|
.xm-duo-h { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 0 2px 1px; }
|
|
.xm-duo-brand { display: flex; align-items: center; gap: 4.5px; min-width: 0; }
|
|
.xm-duo-icon { width: 16px; height: 16px; flex: none; border-radius: 5px; background: var(--ink); color: var(--x-on-ink); display: grid; place-items: center; }
|
|
.xm-duo-brand b { font: 600 10px/1.2 var(--sans); color: var(--ink); letter-spacing: -.01em; }
|
|
.xm-duo-all { display: flex; align-items: center; gap: 4px; font: 500 8px/1 var(--sans); color: var(--faint); }
|
|
.xm-sw { position: relative; width: 18px; height: 10.5px; padding: 1.5px; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; display: flex; align-items: center; flex: none; transition: background-color .2s var(--ease); }
|
|
.xm-sw[aria-checked='true'] { background: var(--ink); }
|
|
.xm-sw i { width: 7.5px; height: 7.5px; border-radius: 50%; background: var(--x-raised); transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
|
|
.xm-sw[aria-checked='true'] i { transform: translateX(7.5px); }
|
|
.xm-duo-lanes { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2.5px; overflow-y: auto; scrollbar-width: none; }
|
|
.xm-duo-lanes::-webkit-scrollbar { display: none; }
|
|
.xm-lane { flex: none; display: flex; align-items: center; gap: 5px; height: 22.5px; padding: 0 6px; border-radius: 7px; background: light-dark(#f2f2f5, rgba(255, 255, 255, .055)); }
|
|
.xm-lane[data-off] { opacity: .52; }
|
|
.xm-lane-i { width: 13px; height: 13px; flex: none; display: grid; place-items: center; color: var(--ink); }
|
|
.xm-lane-i svg, .xm-lane-i img { width: 11px; height: 11px; }
|
|
.xm-lane-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5px; }
|
|
.xm-lane-t > span { font: 500 8.5px/1.12 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.xm-lane-sub { display: flex; align-items: center; gap: 3.5px; font: 500 7.5px/1.1 var(--sans); }
|
|
.xm-lane-sub b { color: var(--ink); font-weight: 600; }
|
|
.xm-lane-sub code { font: 400 7.5px/1.1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
|
|
.xm-meter { flex: none; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
|
|
.xm-bars { display: flex; align-items: flex-end; gap: 2.5px; height: 11px; padding: 0 2px; }
|
|
.xm-bars i { flex: 1; height: 100%; border-radius: 2px 2px 0 0; background: var(--ink); transform-origin: bottom; transition: transform .75s ease-out, opacity .75s ease-out; }
|
|
.xm-meter-f { display: flex; justify-content: space-between; align-items: center; font: 400 7.5px/1.1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
|
|
.xm-meter-f b { color: var(--ink); font-weight: 700; }
|
|
.xm-duo-pills { flex: none; display: flex; flex-wrap: wrap; gap: 3px; }
|
|
.xm-duo-pill { padding: 1.5px 5px; border-radius: 999px; background: light-dark(#f2f2f5, rgba(255, 255, 255, .07)); font: 500 7px/1.1 var(--sans); color: var(--ink); }
|
|
.xm-duo-run { flex: none; height: 19px; border: 0; border-radius: 999px; background: var(--ink); color: var(--x-on-ink); font: 600 8.5px/1 var(--sans); cursor: pointer; transition: transform .15s var(--ease), opacity .15s; }
|
|
.xm-duo-run:active { transform: scale(.96); }
|
|
|
|
/* hover action: Download App pill centered under closed right half (75%) or open Duo (50%), matching @hanzo/app */
|
|
.x-phone-dl { position: absolute; left: 75%; top: calc(100% + 10px); translate: -50% -4px; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--x-e15); background: var(--x-raised); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); font: 600 10.5px/1 var(--sans); text-decoration: none; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .18s ease, translate .24s var(--ease), left .45s cubic-bezier(.32, .72, 0, 1); z-index: 8; }
|
|
.x-phone.duo .x-phone-dl { left: 50%; }
|
|
@media (hover: none) { .x-phone-dl { opacity: 1; pointer-events: auto; translate: -50% 0; } } /* a phone has no hover: the way to the apps stays shown */
|
|
.x-phone-dl::before { content: ''; position: absolute; inset: -14px -10px; }
|
|
.xm-stage:has(.xm-face-front:hover, .xm-face-back:hover, .xm-base:hover, .xm-hinge:hover) ~ .x-phone-dl, .x-phone-dl:hover, .x-phone-dl:focus-visible { opacity: 1; pointer-events: auto; translate: -50% 0; }
|
|
|
|
@media (prefers-reduced-motion: reduce) { .xs-scene.on, .xs-sh.on p, .xt-out > [data-shown], .xm-turn[data-on] { animation: none; } .xm-leaf, .xm-base, .xm-face-front, .xm-face-back, .xm-crease, .x-phone-dl { transition: none; } }
|
|
|
|
/* Mobile stage (<= 640px): native 360px width (k ~ 1.0 on iPhones, zero shrink), stacked cleanly with zero overlap:
|
|
1. Full-width Hanzo Desktop app at top (360 x 248) with full-width chat + AppCard + composer
|
|
2. Prominent centered iPhone (240 x 328) that unfolds into full-bleed 360 x 328 Duo + Download App pill below
|
|
3. Full-width unclipped Terminal underneath (360 x 174) so every CLI command and output line is 100% readable */
|
|
@media (max-width: 640px) {
|
|
.x-3d, .x-win, .x-term, .x-phone { transform-style: flat; }
|
|
.x-win { left: 0; top: 0; width: 360px; height: 248px; border-radius: 15px; }
|
|
.x-win-bar { height: 32px; padding: 0 10px; }
|
|
.x-win .x-win-body { grid-template-columns: 36px minmax(0, 1fr); }
|
|
.x-win .x-side, .x-win .xs-sidet { display: none; }
|
|
.xw-rail { gap: 2px; padding: 2px 0 6px; }
|
|
.xw-rail > hr, .xw-rail > .xw-mark:nth-of-type(n+6) { display: none; }
|
|
.xw-pane { margin: 0 6px 6px 0; border-radius: 11px; }
|
|
.xw-log { padding: 9px 11px 5px 11px; gap: 6px; }
|
|
.x-bub, .xs-me { max-width: 90%; padding: 6.5px 10px; font-size: 11.5px; line-height: 1.34; }
|
|
.xs-ai { max-width: 96%; font-size: 11px; line-height: 1.36; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.x-appcard { padding: 6px 9px; gap: 8px; border-radius: 12px; font-size: 11.5px; }
|
|
.x-appicon { width: 24px; height: 24px; border-radius: 7px; }
|
|
.x-input { margin: 0 9px 7px 9px; min-height: 32px; border-radius: 12px; font-size: 11.5px; }
|
|
.x-send { width: 24px; height: 24px; }
|
|
|
|
.x-phone { left: 0; right: auto; top: 260px; width: 360px; height: 328px; }
|
|
.xm-face-front { left: -120px; width: 240px; right: auto; }
|
|
.xm-cover .xm-status-cover { height: 26px; padding: 3px 16px 0 20px; }
|
|
.xm-cover .xm-status-cover b { font-size: 10.5px; }
|
|
.xm-cover .xm-main { gap: 8px; padding: 6px 12px 6px; }
|
|
.xm-cover .xm-me { padding: 6.5px 10px; font-size: 10.5px; line-height: 1.36; border-radius: 12px 12px 4px 12px; }
|
|
.xm-cover .xm-ai { gap: 7px; font-size: 10.5px; line-height: 1.38; }
|
|
.xm-cover .xm-duo-card { padding: 7px 9px; gap: 8px; border-radius: 11px; }
|
|
.xm-cover .xm-duo-card-i { width: 22px; height: 22px; border-radius: 7px; }
|
|
.xm-cover .xm-duo-card-t b { font-size: 10.5px; }
|
|
.xm-cover .xm-duo-card-t small { font-size: 9px; }
|
|
.xm-cover .xm-duo-open { height: 22px; padding: 0 9px; font-size: 9px; }
|
|
.xm-cover .xm-code { font-size: 9px; padding: 6px 8.5px; }
|
|
.xm-cover .xm-foot { padding: 0 12px 14px; }
|
|
.xm-cover .xm-pill-comp { height: 29px; padding: 0 4px 0 11px; }
|
|
.xm-cover .xm-pill-comp input, .xm-cover .xm-pill-comp > span:first-child { font-size: 10px; }
|
|
.xm-cover .xm-pill-send { width: 21px; height: 21px; }
|
|
.x-phone:not(.duo) .xm-hinge { left: 60px; width: 24px; }
|
|
.x-phone.duo .xm-hinge { left: 50%; width: 24px; }
|
|
.x-phone-dl { left: 50%; top: calc(100% + 8px); }
|
|
|
|
.x-term { left: 0; top: 636px; width: 360px; height: 174px; border-radius: 14px; }
|
|
.x-term-bar { height: 32px; gap: 4px; padding: 0 10px; }
|
|
.x-term-bar > i { width: 8.5px; height: 8.5px; }
|
|
.xt-tab { padding-inline: 6.5px; font-size: 10.5px; }
|
|
.xt-tab:first-of-type { margin-left: 6px; }
|
|
.x-term-body { padding: 8px 14px 2px; font-size: 11px; line-height: 1.44; }
|
|
.x-term-f { padding: 4px 12px 8px; justify-content: flex-end; }
|
|
}
|