mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
Sign-in is hanzo.ai's own page again: Log in, Sign up and every link to them go to hanzo.ai/login and /signup, which the edge serves from the app. hanzo.ai's /_next is the app's for those pages, so this build's own files move to /assets/_next (assetPrefix, and `build` moves out/_next under out/assets). Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
402 lines
32 KiB
CSS
402 lines
32 KiB
CSS
/* ---------- mcp (v2, deck scale: MASTER.md) ---------- */
|
|
|
|
/* hero: words left, the live stream right */
|
|
.mcp-hero { padding: clamp(104px, 13vh, 140px) 0 0; }
|
|
.mcp-hero-grid { align-items: start; row-gap: 48px; }
|
|
.mcp-hero-copy { grid-column: 1 / span 7; }
|
|
.mcp-h1 { max-width: none; }
|
|
.mcp-h1-d { display: block; }
|
|
.mcp-h1-p { display: none; }
|
|
/* Hanzo's label lines sit under their headline as a caption, never over it */
|
|
.mcp-cap.a2-kick.show { margin: 18px 0 0; color: #737373; text-wrap: balance; }
|
|
.mcp-cfg .mcp-cap.a2-kick.show { color: #a3a3a3; }
|
|
.mcp-lede { margin: 24px 0 32px; max-width: 50ch; }
|
|
.mcp-hero-obj { grid-column: 8 / span 5; }
|
|
.mcp-stream { position: relative; border-radius: var(--r-hero); background: #0a0a0a; color: #fafafa; overflow: hidden; }
|
|
.mcp-pause { position: absolute; top: 4px; right: 8px; z-index: 1; }
|
|
.mcp-stream-top { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 64px 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 13px/1 var(--mono); color: #d4d4d4; }
|
|
.mcp-live { width: 8px; height: 8px; border-radius: 50%; background: #fafafa; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); animation: mcp-pulse 1.6s ease-in-out infinite; }
|
|
@keyframes mcp-pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
|
|
.mcp-stream-t { margin-left: auto; color: #a3a3a3; }
|
|
.mcp-rows { position: relative; list-style: none; margin: 0; padding: 10px 0 16px; height: 432px; overflow: hidden; }
|
|
.mcp-row { position: absolute; top: 10px; left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: center; gap: 12px; height: 46px; padding: 0 22px; }
|
|
.mcp-tool { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #e5e5e5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.mcp-tool i { width: 8px; height: 8px; border-radius: 2px; flex: none; background: #737373; }
|
|
.mcp-lane { position: relative; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .04); }
|
|
.mcp-lane b { position: absolute; top: 7px; height: 8px; border-radius: 4px; background: #737373; transform-origin: 0 50%; animation: mcp-bar .3s var(--a2-ease) both; }
|
|
.mcp-lane em { position: absolute; top: 3px; font-style: normal; font-size: 13px; color: #fafafa; }
|
|
@keyframes mcp-bar { from { transform: scaleX(0); } }
|
|
.mcp-row.now .mcp-tool { color: #fff; }
|
|
.mcp-row.now .mcp-tool i, .mcp-row.now .mcp-lane b { background: #fafafa; }
|
|
.mcp-via { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; margin-top: clamp(64px, 7vw, 104px); padding: 28px 0; border-top: 1px solid var(--line); }
|
|
.mcp-oss { margin: 0; font-size: 14px; line-height: 1.55; color: #525252; max-width: 52ch; }
|
|
.mcp-via-l { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 28px; }
|
|
.mcp-via-l ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
|
|
.mcp-via-l li { font-size: 17px; font-weight: 497; letter-spacing: -.01em; color: var(--ink); }
|
|
.mcp-via.seen .mcp-via-l li { animation: mcp-client .9s calc(var(--k) * .75s) ease-in-out 1 both; }
|
|
@keyframes mcp-client { 0%, 100% { color: var(--ink); transform: none; } 40%, 60% { color: #a3a3a3; transform: translateY(-3px); } }
|
|
|
|
/* figures: 64px at rest; the row grows while it crosses the screen (A2Grow) */
|
|
.mcp-figs { padding-bottom: clamp(72px, 8vw, 128px); }
|
|
.mcp-sum { display: flex; align-items: flex-start; justify-content: center; gap: clamp(20px, 3vw, 48px); margin: 0; }
|
|
.mcp-f { display: grid; gap: 12px; justify-items: start; }
|
|
.mcp-f .a2-fig { font-size: 64px; color: var(--ink); }
|
|
.mcp-f > span:last-child { font-size: 16px; color: #525252; }
|
|
.mcp-plus { display: inline-block; font-size: 32px; font-weight: 300; line-height: 2; color: #a3a3a3; }
|
|
/* arrival: the two "+" breathe three times (under 5 s), then rest */
|
|
.mcp-figs.seen .mcp-plus { animation: mcp-breathe 1.5s ease-in-out 3; }
|
|
.mcp-figs.seen .mcp-plus:last-of-type { animation-delay: .4s; }
|
|
@keyframes mcp-breathe { 50% { opacity: .35; transform: scale(.8); } }
|
|
.mcp-fig { display: inline-flex; padding-bottom: .06em; }
|
|
/* one box per character; the boxes never change size (count-roll draws its reel in a ::after over a clear digit) */
|
|
.mcp-fig > .mcp-dg { position: relative; display: inline-block; height: 1em; line-height: 1em; overflow: hidden; }
|
|
|
|
/* ---------- motion map: the five entrances, each its own (all start only from a client class; JS off = final) ---------- */
|
|
/* 1 diagonal-wipe (hero): a diagonal clip sweeps left to right; fill backwards, so no clip stays once it has played */
|
|
@keyframes mcp-diag { from { clip-path: polygon(0 0, 0 0, -45% 100%, -45% 100%); } to { clip-path: polygon(0 0, 145% 0, 100% 100%, -45% 100%); } }
|
|
html.js .mcp-wipe { animation: mcp-diag 1s cubic-bezier(.65, 0, .25, 1) backwards; }
|
|
html.js .mcp-hero-obj.mcp-wipe { animation-delay: .2s; }
|
|
html.js .mcp-via.mcp-wipe { animation-delay: .42s; }
|
|
/* 3 count-roll (figures): each digit's reel rolls up one full turn and stops on Hanzo's digit */
|
|
.mcp-figs.e-arm .mcp-dg:not(.s) { color: transparent; }
|
|
.mcp-figs.e-arm .mcp-dg:not(.s)::after { content: '0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9'; position: absolute; left: 0; right: 0; top: 0; white-space: pre; text-align: center; color: var(--ink); }
|
|
.mcp-figs.e-go .mcp-dg:not(.s)::after { transform: translateY(calc(-1em * (10 + var(--n)))); transition: transform 1.3s cubic-bezier(.16, 1, .3, 1) var(--t); }
|
|
.mcp-figs.e-arm .mcp-dg.s { opacity: 0; transform: translateY(.4em); }
|
|
.mcp-figs.e-go .mcp-dg.s { opacity: 1; transform: none; transition: opacity .4s var(--t), transform .6s cubic-bezier(.16, 1, .3, 1) var(--t); }
|
|
.mcp-figs.e-arm .mcp-f > span:last-child { opacity: 0; }
|
|
.mcp-figs.e-go .mcp-f > span:last-child { opacity: 1; transition: opacity .5s .7s; }
|
|
/* 4 side-carousel (domains): the cards ride in from the right along their snapping rail, one after another */
|
|
.mcp-doms.e-arm .mcp-rail > li { transform: translateX(72vw); opacity: 0; }
|
|
.mcp-doms.e-go .mcp-rail > li { transform: none; opacity: 1; transition: transform 1.05s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 80ms), opacity .35s linear calc(var(--i) * 80ms); }
|
|
/* 5 curtain-rise (config): the words, then each block, rise from below as a clip lifts off them like a curtain */
|
|
.mcp-cfg.e-arm .mcp-cur { clip-path: inset(100% 0 0 0); transform: translateY(56px); }
|
|
.mcp-cfg.e-go .mcp-cur { clip-path: inset(0 0 0 0); transform: none; transition: clip-path 1s cubic-bezier(.65, 0, .25, 1) calc(var(--c, 0) * .16s), transform 1s cubic-bezier(.16, 1, .3, 1) calc(var(--c, 0) * .16s); }
|
|
|
|
/* ---------- the signature: before / after (McpCompare.jsx) ---------- */
|
|
.mcp-cmp-sec { padding-top: clamp(40px, 5vw, 72px); }
|
|
.mcp-cmp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
|
|
.mcp-cmp-head .a2-headline { max-width: none; }
|
|
.mcp-cmp-hint { margin: 0; flex: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #737373; }
|
|
.mcp-cmp { position: relative; display: grid; border-radius: var(--r-hero); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
|
|
.mcp-cmp-l { grid-area: 1 / 1; padding: clamp(24px, 3vw, 40px); }
|
|
.mcp-cmp-l.before { background: #f5f5f5; color: var(--ink); }
|
|
.mcp-cmp-l.after { background: #0a0a0a; color: #fafafa; }
|
|
.mcp-cmp-side { margin: 0 0 24px; font: 500 13px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #525252; }
|
|
.after .mcp-cmp-side { text-align: right; color: #a3a3a3; }
|
|
.mcp-cmp-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: stretch; }
|
|
.mcp-cmp-code { padding: 18px 20px; border-radius: var(--r-card); background: #fff; min-width: 0; }
|
|
.after .mcp-cmp-code { background: #171717; }
|
|
.mcp-cmp-code > span { display: block; margin-bottom: 12px; font-size: 13px; color: #737373; }
|
|
.mcp-cmp-code pre { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre; overflow: hidden; }
|
|
.mcp-cmp-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; min-height: 22px; margin: 0 0 16px; font-size: 13px; color: #525252; }
|
|
.after .mcp-cmp-bar { color: #a3a3a3; }
|
|
.mcp-cmp-live { display: inline-flex; align-items: center; gap: 8px; color: #d4d4d4; }
|
|
.mcp-cmp-live > span:last-child { color: #a3a3a3; }
|
|
.mcp-cmp-tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.mcp-cmp-tools li { padding: 9px 13px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; line-height: 1.2; }
|
|
.before .mcp-cmp-tools li { border: 1px dashed #a3a3a3; color: transparent; }
|
|
.after .mcp-cmp-tools li { background: #262626; color: #fafafa; }
|
|
.mcp-cmp-div { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #a3a3a3; pointer-events: none; }
|
|
.mcp-cmp-h { position: absolute; top: 50%; left: var(--p); display: flex; align-items: center; justify-content: center; gap: 4px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #fafafa; color: #0a0a0a; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); font: 400 20px/1 var(--sans); translate: -50% -50%; cursor: ew-resize; touch-action: none; transition: scale .2s var(--a2-ease); }
|
|
.mcp-cmp-h:focus-visible { outline: 3px solid #737373; outline-offset: 3px; }
|
|
.mcp-cmp.drag .mcp-cmp-h { scale: .94; }
|
|
@media (hover: hover) { .mcp-cmp-h:hover { scale: 1.08; } }
|
|
/* entrance 2, cursor-trail: a cursor and a trail of dots (difference blend, so they read on both halves) */
|
|
.mcp-cmp-cur, .mcp-cmp-trail i { position: absolute; left: 0; top: 0; border-radius: 50%; background: #fafafa; mix-blend-mode: difference; pointer-events: none; will-change: transform; }
|
|
.mcp-cmp-cur { width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: 0; transition: opacity .35s; }
|
|
.mcp-cmp.intro .mcp-cmp-cur { opacity: 1; }
|
|
.mcp-cmp-trail { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
|
|
.mcp-cmp-trail i { width: 10px; height: 10px; margin: -5px 0 0 -5px; opacity: 0; }
|
|
|
|
/* the runtime: sheets that stack, flat fills (no outline, no shadow) */
|
|
.mcp-parts { padding-top: 0; padding-bottom: 72px; }
|
|
.mcp-parts-in { position: relative; }
|
|
.mcp-parts-pause { position: absolute; right: 0; top: -60px; }
|
|
/* motion map: plain sheets one after another (they used to pin and stack while scrolling) */
|
|
.mcp-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
|
|
.mcp-sheet { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: start; padding: clamp(32px, 4vw, 56px); border-radius: var(--r-hero); background: #f5f5f5; }
|
|
.mcp-sheet:nth-child(2) { background: #ededed; }
|
|
.mcp-sheet:nth-child(3) { background: #e5e5e5; }
|
|
.mcp-sheet-n { display: block; font-size: 13px; letter-spacing: .08em; color: #737373; }
|
|
.mcp-sheet-copy .a2-body { color: #525252; }
|
|
.mcp-sheet-art { height: 100%; min-height: 340px; display: grid; place-items: center; border-radius: var(--r-card); background: #fff; overflow: hidden; }
|
|
.mcp-art.a0 { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 32px; }
|
|
.mcp-art.a0 span { padding: 10px 14px; border-radius: 12px; background: #f5f5f5; font-size: 14px; animation: mcp-call 6.3s var(--d) ease-in-out infinite; }
|
|
@keyframes mcp-call { 0%, 8% { background: #0a0a0a; color: #fff; } 16%, 100% { background: #f5f5f5; color: #0a0a0a; } }
|
|
.mcp-art.a1 { display: grid; grid-template-columns: repeat(13, 14px); gap: 10px; }
|
|
.mcp-art.a1 i { width: 14px; height: 14px; border-radius: 4px; background: #d4d4d4; animation: mcp-svc 4.7s ease-in-out infinite; }
|
|
@keyframes mcp-svc { 0%, 70%, 100% { background: #d4d4d4; } 80% { background: #0a0a0a; } }
|
|
.mcp-art.a2 { position: relative; width: 100%; height: 100%; min-height: 340px; }
|
|
.mcp-gate { position: absolute; left: 50%; top: 10%; bottom: 10%; width: 4px; translate: -2px 0; border-radius: 2px; background: #0a0a0a; }
|
|
.mcp-gate span { position: absolute; left: 14px; font-size: 13px; color: var(--ink); white-space: nowrap; }
|
|
.mcp-gate span:first-child { top: -2px; } .mcp-gate span:last-child { bottom: -2px; }
|
|
.mcp-cmds { position: absolute; inset: 22% 8%; display: grid; gap: 14px; align-content: center; }
|
|
.mcp-cmds span { position: relative; height: 12px; }
|
|
.mcp-cmds b { position: absolute; left: 0; top: 0; width: 22%; height: 12px; border-radius: 6px; background: var(--ink); animation: mcp-pass 3.6s var(--a2-ease) infinite; }
|
|
.mcp-cmds span.stop b { background: #a3a3a3; animation-name: mcp-stop; }
|
|
@keyframes mcp-pass { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 80% { transform: translateX(360%); opacity: 1; } 100% { transform: translateX(360%); opacity: 0; } }
|
|
@keyframes mcp-stop { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 45%, 80% { transform: translateX(160%); opacity: 1; } 100% { transform: translateX(160%); opacity: 0; } }
|
|
/* one mover per screen: only the sheet on top runs its art; the ones under it hold their frame */
|
|
.mcp-sheet:not(.on) .mcp-art, .mcp-sheet:not(.on) .mcp-art * { animation-play-state: paused !important; }
|
|
|
|
/* tool domains: a rail of cards that open */
|
|
.mcp-doms { padding-top: clamp(56px, 6vw, 96px); padding-bottom: 96px; }
|
|
.mcp-doms-head { align-items: end; row-gap: 24px; margin-bottom: 48px; }
|
|
.mcp-doms-t { grid-column: 1 / span 6; }
|
|
.mcp-doms-t .a2-headline { margin: 0; }
|
|
.mcp-doms-r { grid-column: 8 / span 5; display: flex; align-items: flex-end; gap: 20px; }
|
|
.mcp-doms-l { margin: 0; }
|
|
.mcp-doms-pause { margin-left: auto; }
|
|
.mcp-rail { list-style: none; margin: 0; padding: 8px max(var(--gut), (100% - 1152px) / 2) 40px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
|
|
.mcp-rail::-webkit-scrollbar { display: none; }
|
|
.mcp-rail.grab { cursor: grabbing; scroll-snap-type: none; }
|
|
.mcp-rail { scroll-padding-inline: max(var(--gut), (100% - 1152px) / 2); }
|
|
.mcp-rail li { flex: none; scroll-snap-align: start; }
|
|
.mcp-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: min(360px, 82vw); height: 440px; padding: 28px; border: 0; border-radius: var(--r-hero); background: var(--card); color: var(--ink); text-align: left; cursor: pointer; user-select: none; transition: transform .09s, translate .35s var(--a2-ease); }
|
|
.mcp-card:active { transform: scale(.98); }
|
|
.mcp-card-n { position: absolute; left: 28px; top: 28px; font-size: 13px; color: #737373; }
|
|
.mcp-card h3 { margin: 4px 64px 14px 0; font-size: 17px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
|
|
.mcp-card p { margin: 0; font-size: 15px; line-height: 1.55; color: #525252; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.mcp-card-tools { position: relative; width: 100%; margin-top: auto; }
|
|
.mcp-chips { display: flex; flex-wrap: wrap; gap: 6px; transition: opacity .25s, transform .35s var(--a2-ease); }
|
|
.mcp-chips.peek { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(8px); }
|
|
.mcp-card-tools i { font-style: normal; padding: 7px 10px; border-radius: 8px; background: #fff; font-size: 13px; }
|
|
/* idle: the card nearest the rail's centre calls its tools in turn (one mover on the rail) */
|
|
.mcp-card.live .mcp-chips.rest i { animation: mcp-chip 7.2s var(--cd, 0s) ease-in-out infinite; }
|
|
@keyframes mcp-chip { 0%, 6% { background: #0a0a0a; color: #fafafa; } 12%, 100% { background: #fff; color: var(--ink); } }
|
|
.mcp-card.d5.live .mcp-chips.rest i { animation-name: mcp-chip-d; }
|
|
@keyframes mcp-chip-d { 0%, 6% { background: #fafafa; color: #0a0a0a; } 12%, 100% { background: #262626; color: #fafafa; } }
|
|
.mcp-card.live .mcp-chips.rest i.more { animation: none; }
|
|
.mcp-card.live .mcp-card-open { animation: mcp-ring 2.4s ease-out infinite; }
|
|
@keyframes mcp-ring { 0% { box-shadow: 0 0 0 0 rgba(10, 10, 10, .28); } 70%, 100% { box-shadow: 0 0 0 12px rgba(10, 10, 10, 0); } }
|
|
.mcp-card.d5.live .mcp-card-open { animation-name: mcp-ring-d; }
|
|
@keyframes mcp-ring-d { 0% { box-shadow: 0 0 0 0 rgba(250, 250, 250, .35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(250, 250, 250, 0); } }
|
|
/* hover or keyboard focus previews the sheet: the card lifts 4px and two more of its tools slide in with what remains */
|
|
.mcp-card:focus-visible { translate: 0 -4px; }
|
|
.mcp-card:focus-visible .mcp-chips.rest:has(+ .peek) { opacity: 0; transform: translateY(-6px); }
|
|
.mcp-card:focus-visible .mcp-chips.peek { opacity: 1; transform: none; }
|
|
@media (hover: hover) {
|
|
.mcp-card:hover { translate: 0 -4px; }
|
|
.mcp-card:hover .mcp-chips.rest:has(+ .peek) { opacity: 0; transform: translateY(-6px); }
|
|
.mcp-card:hover .mcp-chips.peek { opacity: 1; transform: none; }
|
|
}
|
|
.mcp-card-open { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 22px; line-height: 1; transition: transform .3s var(--a2-ease); }
|
|
@media (hover: hover) { .mcp-card:hover .mcp-card-open { transform: rotate(90deg); } }
|
|
.mcp-card.d5 { background: #0a0a0a; color: #fafafa; }
|
|
.mcp-card.d5 p { color: #a3a3a3; }
|
|
.mcp-card.d5 .mcp-card-n { color: #a3a3a3; }
|
|
.mcp-card.d5 .mcp-card-tools i { background: #262626; }
|
|
.mcp-card.d5 .mcp-card-open { background: #fafafa; color: #000; }
|
|
.mcp-open { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 24px; }
|
|
.mcp-open-scrim { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: rgba(0, 0, 0, .4); cursor: pointer; }
|
|
.mcp-open-card { position: relative; width: min(1000px, 100%); max-height: calc(100svh - 48px); overflow-y: auto; border-radius: var(--r-hero); background: #fff; color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .45); }
|
|
.mcp-open-card.d5 { background: #0a0a0a; color: #fafafa; }
|
|
.mcp-open-card.d5 .a2-lede { color: #d4d4d4; }
|
|
.mcp-open-card.d5 .mcp-open-tools li { background: #262626; }
|
|
.mcp-open-card.d5 .mcp-open-more { color: #fafafa; }
|
|
.mcp-open-card.d5 .mcp-open-x { background: #171717; color: #fafafa; border-color: rgba(255, 255, 255, .16); }
|
|
.mcp-open-in { padding: clamp(28px, 4vw, 48px); }
|
|
.mcp-open-top { display: flex; justify-content: flex-end; margin-bottom: 16px; }
|
|
.mcp-open-top .mcp-card-n { position: static; }
|
|
.mcp-open-x { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #000; font: 400 24px/1 var(--sans); cursor: pointer; transition: transform .09s; }
|
|
.mcp-open-x:active { transform: scale(.96); }
|
|
.mcp-open-h { margin: 0 0 20px; font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
|
|
.mcp-open-card .a2-lede { max-width: 56ch; }
|
|
.mcp-open-tools { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.mcp-open-tools li { padding: 10px 14px; border-radius: 12px; background: var(--card); font-size: 14px; animation: mcp-tool .3s var(--a2-ease) both; }
|
|
@keyframes mcp-tool { from { opacity: 0; transform: translateY(8px); } }
|
|
.mcp-open-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px; font: 500 16px/1 var(--sans); color: var(--ink); text-decoration: none; }
|
|
@media (hover: hover) { .mcp-open-more:hover { text-decoration: underline; text-underline-offset: 4px; } }
|
|
|
|
/* the dark room: config in kit CodeBlocks */
|
|
.mcp-cfg .a2-grid { align-items: center; row-gap: 40px; }
|
|
.mcp-cfg-copy { grid-column: 1 / span 5; }
|
|
.mcp-cfg-copy .a2-headline { margin: 0; }
|
|
.mcp-cfg-copy .a2-body { margin: 20px 0 24px; }
|
|
.mcp-ref { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 16px/1 var(--sans); color: #fafafa; text-decoration: none; }
|
|
.mcp-ref svg { flex: none; transition: transform .3s var(--a2-ease); }
|
|
.mcp-ref:active svg { transform: translateX(2px); }
|
|
@media (hover: hover) { .mcp-ref:hover svg { transform: translateX(5px); } }
|
|
.mcp-codes { grid-column: 7 / span 6; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
|
|
.mcp-codes > div { min-width: 0; }
|
|
.mcp-code-c { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: #a3a3a3; white-space: normal; overflow-wrap: anywhere; }
|
|
/* the bash block: one row per command, each with its own Copy; "$ " and Hanzo's "#" notes are shown, never copied */
|
|
.mcp-sh-rows { list-style: none; margin: 0; padding: 8px 6px; }
|
|
.mcp-sh-rows li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 6px 6px 12px; border-radius: 10px; }
|
|
.mcp-sh-line { flex: 1; min-width: 0; padding-left: 5ch; text-indent: -5ch; font-size: 14px; line-height: 1.5; color: #e5e5e5; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
.mcp-sh .x-copy { flex: none; }
|
|
.mcp-sh.go li { animation: mcp-sh-step 1.4s calc(var(--k) * 1.3s) ease-in-out 1 both; }
|
|
@keyframes mcp-sh-step { 0%, 100% { background: transparent; } 30%, 70% { background: rgba(255, 255, 255, .07); } }
|
|
main.mcp .x-copy { height: 44px; padding: 0 16px; }
|
|
.mcp-cfg .x-codeblock pre { font-size: 14px; }
|
|
|
|
/* the close: the one solid ask, light, beside the repository card (the dark room stays the config's alone) */
|
|
.mcp-close { padding: clamp(72px, 7vw, 112px) 0 clamp(80px, 8vw, 128px); }
|
|
.mcp-close-grid { align-items: center; row-gap: 48px; }
|
|
.mcp-close-copy { grid-column: 1 / span 6; }
|
|
.mcp-close-h { max-width: none; }
|
|
.mcp-close-l { margin: 24px 0 32px; }
|
|
.mcp-close-acts .x-btn { height: 52px; padding: 0 30px; font-size: 16px; }
|
|
.mcp-add-more { display: flex; align-items: center; gap: 16px; margin: 28px 0 0; }
|
|
.mcp-docs { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 17px/1 var(--sans); color: var(--ink); text-decoration: none; }
|
|
.mcp-docs span { display: inline-block; transition: transform .3s var(--a2-ease); }
|
|
.mcp-docs:active span { transform: translateX(2px); }
|
|
@media (hover: hover) { .mcp-docs:hover span { transform: translateX(5px); } }
|
|
.mcp-add-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
|
|
.mcp .x-arrow { min-height: 44px; display: inline-flex; align-items: center; }
|
|
.mcp-repo { grid-column: 8 / span 5; padding: 32px; border-radius: var(--r-hero); background: var(--card); }
|
|
.mcp-repo .a2-headline { margin: 0; }
|
|
.mcp-repo > p { margin: 6px 0 20px; font-size: 16px; color: #525252; }
|
|
.mcp-repo dl { display: flex; gap: 24px; margin: 0 0 20px; font-size: 13px; }
|
|
.mcp-repo dl div { display: flex; gap: 6px; } .mcp-repo dt { color: #737373; } .mcp-repo dd { margin: 0; }
|
|
.mcp-repo > p.mcp-typed, .mcp-typed { position: relative; display: flex; align-items: center; height: 48px; margin: 0 0 12px; padding: 0 16px; border-radius: 12px; background: #0a0a0a; color: #fafafa; font-size: 14px; white-space: nowrap; overflow: hidden; }
|
|
.mcp-typed-p { margin-right: 10px; color: #737373; }
|
|
.mcp-caret { width: 8px; height: 16px; margin-left: 2px; background: #fafafa; }
|
|
.mcp-caret.on { animation: mcp-blink 1s steps(1) 4 both; }
|
|
@keyframes mcp-blink { 50% { opacity: 0; } }
|
|
.mcp-typed-ok { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-left: 16px; color: #d4d4d4; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--a2-ease); }
|
|
.mcp-typed-ok.on { opacity: 1; transform: none; }
|
|
@media (max-width: 520px) { .mcp-typed-name { display: none; } }
|
|
.mcp-typed-ok > span:last-child { color: #a3a3a3; }
|
|
.mcp-gh { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-size: 14px; color: var(--ink); text-decoration: none; }
|
|
@media (hover: hover) { .mcp-gh:hover { text-decoration: underline; text-underline-offset: 4px; } }
|
|
.mcp-gh { margin-left: -10px; padding: 0 10px; border-radius: 10px; transition: background-color .2s, transform .09s; }
|
|
.mcp-gh:active { transform: scale(.98); }
|
|
@media (hover: hover) {
|
|
.mcp-gh:hover { background: #e5e5e5; }
|
|
.mcp-parts-pause:hover, .mcp-pause:hover { transform: scale(1.06); }
|
|
.mcp-parts-pause:hover { border-color: var(--ink); }
|
|
.mcp-cfg .x-codeblock .x-copy:hover { background: rgba(255, 255, 255, .16); color: #fff; }
|
|
.mcp-cfg .x-codeblock { transition: border-color .2s; }
|
|
.mcp-cfg .x-codeblock:hover { border-color: rgba(255, 255, 255, .22); }
|
|
}
|
|
.mcp-repo-acts { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
|
|
.mcp-repo .x-btn:not(.solid) { background: transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
|
|
.mcp-repo .x-btn { min-height: 44px; }
|
|
/* the sheet's number sits beside its title */
|
|
.mcp-sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin: 0 0 20px; }
|
|
.mcp-sheet-head .a2-headline { margin: 0; }
|
|
.mcp-sheet-head .mcp-sheet-n { margin: 0; flex: none; }
|
|
/* phones: Hanzo's header button goes quiet so the hero's ask is the one solid on screen */
|
|
@media (max-width: 700px) {
|
|
html:has(main.mcp) header[data-slot=masthead] a[href='https://hanzo.ai/signup'] { background-color: transparent; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border, rgba(0, 0, 0, .14)); }
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
/* phone hero, its own composition: the h1 at the deck's phone size in four lines, Hanzo's caption, then the live
|
|
stream (three rows, so the product is on screen inside 660px), then the lede and the asks */
|
|
.mcp-hero { padding-top: 80px; }
|
|
.mcp-h1-d { display: none; }
|
|
.mcp-h1-p { display: block; }
|
|
.mcp-h1 { font-size: 40px !important; line-height: 1.04; }
|
|
.mcp-hero-grid { row-gap: 0; }
|
|
.mcp-hero-copy { display: contents; }
|
|
.mcp-hero-grid > *, .mcp-hero-copy > * { grid-column: 1 / -1; }
|
|
.mcp-hero-copy > .mcp-h1 { order: 1; }
|
|
.mcp-hero-copy > .mcp-cap { order: 2; margin-top: 14px; }
|
|
.mcp-hero-obj { order: 3; margin-top: 20px; }
|
|
.mcp-hero-copy > .mcp-lede { order: 4; margin: 20px 0 20px; }
|
|
.mcp-hero-copy > .a2-acts { order: 5; }
|
|
/* the copy is display:contents here (no box to clip), so each of its parts takes the diagonal wipe in turn */
|
|
html.js .mcp-hero-copy.mcp-wipe { animation: none; }
|
|
html.js .mcp-hero-copy > * { animation: mcp-diag 1s cubic-bezier(.65, 0, .25, 1) backwards; }
|
|
html.js .mcp-hero-copy > .mcp-cap { animation-delay: .1s; }
|
|
html.js .mcp-hero-copy > .mcp-lede { animation-delay: .32s; }
|
|
html.js .mcp-hero-copy > .a2-acts { animation-delay: .42s; }
|
|
html.js .mcp-via.mcp-wipe { animation-delay: .5s; }
|
|
.mcp-cmp-head { flex-direction: column; gap: 10px; margin-bottom: 20px; }
|
|
.mcp-cmp-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
|
|
.mcp-cmp-l { padding: 20px 16px; }
|
|
.mcp-cmp-side { margin-bottom: 16px; }
|
|
.mcp-cmp-code { padding: 14px 12px; }
|
|
.mcp-cmp-code pre { font-size: 13px; }
|
|
/* the stream's tool names get the wider column so the longest (kai_command_guard) is never cut */
|
|
.mcp-row { grid-template-columns: minmax(0, 62%) minmax(0, 1fr); }
|
|
.mcp-tool { font-size: 13px; }
|
|
.mcp-cmp-tools li { padding: 8px 11px; font-size: 13px; }
|
|
.mcp-stream-top { height: 44px; }
|
|
.mcp-pause { top: 0; }
|
|
.mcp-rows { height: 136px; padding: 8px 0; }
|
|
.mcp-row { top: 8px; }
|
|
.mcp-row { padding: 0 16px; height: 40px; }
|
|
.mcp-via { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
|
|
.mcp-via-l { justify-content: flex-start; }
|
|
.mcp-via-l li { font-size: 16px; }
|
|
.mcp-sum { flex-direction: column; gap: 8px; }
|
|
.mcp-plus { line-height: 1; font-size: 26px; }
|
|
.mcp-f .a2-fig { font-size: 52px; }
|
|
.mcp-parts-pause { position: static; margin: 0 0 16px auto; display: flex; }
|
|
.mcp-sheet { position: relative; top: auto; grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 24px; min-height: 0; }
|
|
.mcp-stack { gap: 16px; }
|
|
.mcp-sheet-art { min-height: 180px; }
|
|
.mcp-art.a0 { padding: 20px; gap: 8px; }
|
|
.mcp-art.a0 span { padding: 8px 12px; font-size: 13px; }
|
|
.mcp-art.a1 { grid-template-columns: repeat(13, 10px); gap: 7px; }
|
|
.mcp-art.a1 i { width: 10px; height: 10px; }
|
|
.mcp-art.a2 { min-height: 220px; }
|
|
/* the gate moves left so Hanzo's two guard names fit inside the panel at 375 and 320 */
|
|
.mcp-gate { left: 30%; }
|
|
.mcp-gate span { font-size: 12px; left: 12px; }
|
|
.mcp-doms-head { margin-bottom: 32px; }
|
|
.mcp-doms-t, .mcp-doms-r { grid-column: 1 / -1; }
|
|
.mcp-rail { padding-inline: var(--gut); scroll-padding-inline: var(--gut); gap: 12px; }
|
|
.mcp-card { height: 420px; padding: 24px; }
|
|
.mcp-card-n { left: 24px; top: 24px; }
|
|
.mcp-open { padding: 0; align-items: end; }
|
|
.mcp-open-card { max-height: 92svh; border-radius: var(--r-hero) var(--r-hero) 0 0; }
|
|
.mcp-codes { grid-column: 1 / -1; }
|
|
.mcp-repo { padding: 24px; }
|
|
.mcp-close-copy, .mcp-repo { grid-column: 1 / -1; }
|
|
.mcp-cfg { padding-top: 72px; }
|
|
.mcp-sh-rows li { padding-left: 10px; }
|
|
}
|
|
/* below 375 the four lines keep their breaks: the size follows the width (about 33px at 320) */
|
|
@media (max-width: 374px) {
|
|
.mcp-h1 { font-size: calc((100vw - 32px) / 8.7) !important; }
|
|
}
|
|
@media (max-width: 360px) {
|
|
/* at 320 the longest .mcp.json line cannot fit at a readable size: it wraps once instead of being cut */
|
|
.mcp-cmp-l { padding: 18px 12px; }
|
|
.mcp-cmp-code pre { white-space: pre-wrap; }
|
|
.mcp-art.a0 { padding: 16px 12px; gap: 6px; }
|
|
.mcp-art.a0 span { padding: 8px 10px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.mcp *, .mcp *::before, .mcp *::after { animation: none !important; }
|
|
}
|
|
|
|
/* ---------- dark (docs/DARK-MODE.md): live hanzo.ai/mcp in dark, by role, in Hanzo's own tokens ----------
|
|
The stream, the "after" half, the config room and the black domain card are black in both modes and stay. A2.css
|
|
(shared) states its light greys as fixed values, so this page restates them: Hanzo's foreground for headings, muted
|
|
foreground for body, tertiary text for captions, its border for hairlines and its muted surface for every quiet fill;
|
|
ink fills and highlights turn to Hanzo's primary (light fill, dark type), as live's selected pills and asks do. */
|
|
html:not(.light) .a2.mcp {
|
|
--ink: var(--foreground); --acc: var(--foreground); --acc-soft: var(--x-fill); --soft: var(--muted-foreground);
|
|
--faint: var(--text-tertiary); --card: var(--x-fill); --line: var(--border);
|
|
& .mcp-hero { position: relative; background: radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--foreground) 9%, transparent), transparent 70%); }
|
|
& .mcp-hero .mcp-cap.a2-kick.show, & .mcp-cmp-hint, & .mcp-cmp-code > span, & .mcp-sheet-n, & .mcp-card-n, & .mcp-repo dt { color: var(--faint); }
|
|
& :is(.mcp-oss, .mcp-f > span:last-child, .mcp-cmp-side, .mcp-cmp-bar, .mcp-sheet-copy .a2-body, .mcp-card p, .mcp-repo > p) { color: var(--muted-foreground); }
|
|
& .after :is(.mcp-cmp-side, .mcp-cmp-bar), & .mcp-card.d5 :is(p, .mcp-card-n) { color: var(--muted-foreground); }
|
|
/* before / after: "before" on Hanzo's secondary with a muted code well, "after" stays black */
|
|
& .mcp-cmp-l.before { background: var(--secondary); }
|
|
& .before .mcp-cmp-code { background: var(--x-fill); }
|
|
/* the runtime sheets: muted surfaces, the art on the page's own background inside a hairline */
|
|
& .mcp-sheet, & .mcp-sheet:nth-child(2), & .mcp-sheet:nth-child(3) { background: var(--x-fill); }
|
|
& .mcp-sheet-art { background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); }
|
|
& .mcp-art.a0 span { background: var(--x-fill); animation-name: mcp-call-d; }
|
|
& .mcp-art.a1 i { background: var(--secondary); animation-name: mcp-svc-d; }
|
|
& .mcp-gate { background: var(--foreground); }
|
|
& .mcp-cmds span.stop b { background: var(--neutral-600); }
|
|
/* domain cards: muted cards, chips on Hanzo's secondary that light up in primary (the black card's own motion) */
|
|
& .mcp-card-tools i { background: var(--secondary); color: var(--foreground); }
|
|
& .mcp-card.live .mcp-chips.rest i { animation-name: mcp-chip-d; }
|
|
& .mcp-card.live .mcp-card-open { animation-name: mcp-ring-d; }
|
|
& .mcp-card-open { color: var(--x-on-ink); }
|
|
& .mcp-open-card { background: var(--popover); box-shadow: 0 0 0 1px var(--border), 0 40px 120px -30px rgb(0 0 0 / .6); }
|
|
& .mcp-open-x { background: var(--secondary); color: var(--foreground); border-color: var(--border-strong); }
|
|
& .mcp-repo .x-btn:not(.solid) { box-shadow: inset 0 0 0 1px var(--border-strong); }
|
|
}
|
|
@media (hover: hover) { html:not(.light) .a2.mcp .mcp-gh:hover { background: var(--secondary); } }
|
|
@keyframes mcp-call-d { 0%, 8% { background: var(--primary); color: var(--primary-foreground); } 16%, 100% { background: var(--muted); color: var(--foreground); } }
|
|
@keyframes mcp-svc-d { 0%, 70%, 100% { background: var(--secondary); } 80% { background: var(--primary); } }
|