mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
/automations, /billing, /chrome, /cli, /commerce, /edge, /gateway, /idv, /ledger, /operative, /playground, /pubsub. /billing's Issued chip lost its solid fill in dark (now var(--primary) / var(--primary-foreground)). On the others the selected label sits on a sliding pill drawn by a sibling element; the label now carries the pill's own colour in dark, so it reads the same and James's darkcheck measures it correctly. Every rule is under html:not(.light): light mode is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
426 lines
31 KiB
CSS
426 lines
31 KiB
CSS
/* Gateway v2. Greys only (the deck): the gate is ink. One dark room: Forge. */
|
|
.gw { --acc: #0a0a0a; --glow: #525252; }
|
|
/* dark (Hanzo's :not(.light)): v2scale.css pins .v2's greys to light values, so the page hands them back to Hanzo's tokens */
|
|
html:not(.light) .gw { --ink: var(--foreground); --soft: var(--muted-foreground); --faint: var(--text-tertiary); --line: var(--border); --card: var(--muted); --acc: var(--foreground); --glow: var(--muted-foreground); background: var(--bg); }
|
|
.gw .v2-dark, .gw [data-room='dark'] { --acc: #f5f5f5; --glow: #e5e5e5; }
|
|
|
|
/* hero: the title over a full-bleed lane */
|
|
.gw-hero { padding-top: clamp(84px, 6.4vw, 104px); }
|
|
.gw-hero-top { align-items: end; row-gap: 32px; }
|
|
.gw-hero-t { grid-column: 1 / span 8; }
|
|
.gw-h1 { max-width: 12ch; }
|
|
.gw-hero-r { grid-column: 9 / -1; padding-bottom: 14px; }
|
|
.gw-sub { margin-bottom: 32px; color: var(--ink); font-weight: 500; max-width: 16ch; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; }
|
|
.gw-lift { margin-top: clamp(28px, 2.6vw, 40px); }
|
|
|
|
.gw-lane { --gate: 50%; --cw: 420px; position: relative; height: clamp(400px, 31vw, 480px); background: radial-gradient(60% 80% at var(--gate) 50%, rgba(163, 163, 163, .10), transparent 70%), light-dark(#f5f5f5, var(--muted)); overflow: hidden; border-radius: 28px; margin-inline: clamp(12px, 1.6vw, 24px); }
|
|
.gw-lane::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(light-dark(rgba(0, 0, 0, .045), var(--glass)) 1px, transparent 1px); background-size: 100% 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
|
|
.gw-gate { position: absolute; top: 0; bottom: 0; left: var(--gate); width: 2px; margin-left: -1px; }
|
|
.gw-gate i { position: absolute; inset: 0; background: linear-gradient(transparent, var(--glow) 18%, var(--glow) 82%, transparent); box-shadow: 0 0 24px 2px rgba(163, 163, 163, .55); }
|
|
.gw-gate-k { position: absolute; top: 28px; left: 16px; font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); white-space: nowrap; }
|
|
.gw-side { position: absolute; bottom: 26px; margin: 0; font: 500 14px/1 var(--mono); color: var(--faint); }
|
|
.gw-side.l { left: 32px; }
|
|
.gw-side.r { right: 32px; color: var(--ink); }
|
|
.gw-side.r b { color: var(--acc); font-weight: 600; }
|
|
.gw-queue, .gw-log { position: absolute; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
|
|
.gw-queue { left: 32px; }
|
|
.gw-queue li { padding: 9px 14px; border-radius: 999px; border: 1px dashed light-dark(rgba(0, 0, 0, .18), var(--border-strong)); font: 500 13px/1 var(--mono); color: var(--soft); background: light-dark(rgba(255, 255, 255, .6), var(--glass)); }
|
|
.gw-log { right: 32px; }
|
|
.gw-log li { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-width: 220px; padding: 11px 14px; border-radius: 14px; background: light-dark(#fff, var(--secondary)); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 0 0 1px light-dark(rgba(0, 0, 0, .05), var(--border)); font: 500 13px/1 var(--mono); }
|
|
.gw-log li span { color: light-dark(#525252, var(--muted-foreground)); }
|
|
.gw-log li span.x { color: light-dark(#262626, var(--foreground)); }
|
|
.gw-bucket { position: absolute; bottom: 22px; left: var(--gate); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px; background: light-dark(#fff, var(--secondary)); box-shadow: 0 0 0 1px light-dark(rgba(0, 0, 0, .06), var(--border)), 0 10px 30px -12px rgba(0, 0, 0, .2); font: 500 12px/1 var(--mono); color: var(--soft); white-space: nowrap; }
|
|
.gw-bucket div { display: flex; gap: 4px; }
|
|
.gw-bucket i { width: 8px; height: 18px; border-radius: 3px; background: var(--glow); }
|
|
|
|
.gw-req { position: absolute; top: 50%; left: var(--gate); width: var(--cw); margin-top: -118px; box-sizing: border-box; padding: 18px 20px 20px; border-radius: 22px; background: light-dark(#fff, var(--secondary)); box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 30px 60px -24px rgba(0, 0, 0, .28), 0 0 0 1px light-dark(rgba(0, 0, 0, .06), var(--border)); font: 400 15px/1.3 var(--mono); }
|
|
.gw-req p { margin: 0; }
|
|
.gw-req-top { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; margin-bottom: 12px !important; border-bottom: 1px solid var(--line); color: var(--ink); }
|
|
.gw-req-top b { font-weight: 600; color: var(--ink); padding: 3px 7px; border-radius: 6px; background: light-dark(#ededed, var(--muted)); }
|
|
.gw-req-top span { margin-left: auto; color: var(--faint); font-size: 13px; }
|
|
.gw-h { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border-radius: 10px; color: var(--soft); }
|
|
.gw-h em { font-style: normal; color: var(--ink); }
|
|
.gw-h.ok { background: rgba(163, 163, 163, .08); }
|
|
.gw-h.forged { color: light-dark(#262626, var(--foreground)); background: light-dark(rgba(38, 38, 38, .06), var(--glass)); }
|
|
.gw-h.forged em { color: light-dark(#262626, var(--foreground)); }
|
|
.gw-h.set { color: var(--ink); background: rgba(163, 163, 163, .12); margin-top: 6px; }
|
|
.gw-h.set em { color: var(--acc); }
|
|
.gw-chip { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: var(--ink); color: light-dark(#fafafa, var(--primary-foreground)); font-weight: 600; font-size: 12px; }
|
|
.gw-stamps { min-height: 126px; }
|
|
.gw-429 { display: flex; align-items: baseline; gap: 12px; margin-top: 18px !important; font: 600 44px/1 var(--sans); letter-spacing: -.04em; color: light-dark(#262626, var(--foreground)); }
|
|
.gw-429 span { font: 500 14px/1 var(--mono); letter-spacing: 0; color: var(--soft); }
|
|
|
|
/* the statement */
|
|
.gw-say .v2-grid { align-items: end; }
|
|
.gw-say-h { grid-column: 1 / span 8; max-width: 13ch; }
|
|
.gw-say-l { grid-column: 9 / -1; padding-bottom: 10px; }
|
|
|
|
/* chapters: page-local, each rule acted out by its own scene (gateway/GwChapters, gateway/GwScenes) */
|
|
|
|
/* forge: the dark room */
|
|
.gw-forge { padding: clamp(72px, 8vw, 116px) 0; }
|
|
.gw-forge .v2-kick.acc { color: var(--glow); }
|
|
.gw-forge-head { align-items: end; row-gap: 32px; margin-bottom: 64px; }
|
|
.gw-forge-hl { grid-column: 1 / span 8; }
|
|
.gw-forge-cap { margin-top: 22px; }
|
|
.gw-forge-pick { grid-column: 9 / -1; justify-self: end; display: inline-flex; padding: 4px; border-radius: 999px; background: #171717; }
|
|
.gw-forge-pick button { position: relative; min-height: 44px; padding: 0 20px; border: 0; background: none; color: #a3a3a3; font: 500 16px/1 var(--sans); cursor: pointer; border-radius: 999px; }
|
|
.gw-forge-pick button[aria-checked='true'] { color: #000; }
|
|
.gw-forge-pick button > span:last-child { position: relative; }
|
|
.gw-forge-pick button:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
|
|
.gw-pick-bg { position: absolute; inset: 0; border-radius: 999px; background: #f5f5f5; }
|
|
.gw-forge-grid { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: stretch; }
|
|
.gw-pane { padding: 32px; border-radius: 28px; background: #0f0f0f; min-height: 380px; }
|
|
.gw-pane.out { background: #171717; }
|
|
.gw-pane .v2-kick { margin-bottom: 24px; }
|
|
.gw-forge-hs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font: 400 clamp(15px, 1.3vw, 18px)/1.3 var(--mono); }
|
|
.gw-forge-hs li { min-height: 48px; display: flex; align-items: center; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
|
|
.gw-forge-hs em { font-style: normal; color: #f5f5f5; }
|
|
.gw-forge-auth { color: #a3a3a3; }
|
|
.gw-tog { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; cursor: pointer; color: #d4d4d4; }
|
|
.gw-tog input { position: absolute; opacity: 0; pointer-events: none; }
|
|
.gw-tog-ui { position: relative; flex: none; width: 36px; height: 22px; border-radius: 999px; background: #404040; transition: background .25s; }
|
|
.gw-tog-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: #fff; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
|
|
.gw-tog input:checked + .gw-tog-ui { background: var(--glow); }
|
|
.gw-tog input:checked + .gw-tog-ui::after { transform: translateX(14px); }
|
|
.gw-tog input:focus-visible + .gw-tog-ui { outline: 2px solid var(--glow); outline-offset: 2px; }
|
|
.gw-forge-hs li.gone { color: #a3a3a3; text-decoration: line-through; text-decoration-color: rgba(115, 115, 115, .7); justify-content: space-between; }
|
|
.gw-forge-hs li.gone span { text-decoration: none; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #a3a3a3; }
|
|
.gw-forge-hs li.set { color: #f5f5f5; background: rgba(163, 163, 163, .14); }
|
|
.gw-forge-hs li.set em { color: var(--glow); margin-left: 8px; }
|
|
.gw-forge-why { margin: 24px 0 0; font-size: 17px; line-height: 1.55; color: #a3a3a3; max-width: 48ch; }
|
|
.gw-arrow { position: relative; display: flex; align-items: center; justify-content: center; }
|
|
.gw-arrow i { position: absolute; top: 12%; bottom: 12%; left: 50%; width: 2px; margin-left: -1px; background: var(--glow); box-shadow: 0 0 18px rgba(163, 163, 163, .6); }
|
|
.gw-arrow span { position: relative; z-index: 1; writing-mode: vertical-rl; padding: 12px 6px; background: #000; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--glow); }
|
|
|
|
/* example project */
|
|
.gw-proj .v2-grid { align-items: end; }
|
|
.gw-proj-t { grid-column: 1 / span 4; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
|
|
.gw-proj-l { margin: 0; max-width: 30ch; font-size: 16px; line-height: 1.5; color: var(--soft); }
|
|
.gw-proj-c { grid-column: 6 / -1; }
|
|
|
|
@media (max-width: 900px) {
|
|
.gw-hero { padding-top: 112px; }
|
|
.gw-lane { --gate: 86%; --cw: 286px; height: 440px; margin-inline: 8px; border-radius: 24px; }
|
|
.gw-queue, .gw-log, .gw-side.l { display: none; }
|
|
.gw-side.r { right: auto; left: 20px; bottom: 76px; }
|
|
.gw-bucket { left: 20px; transform: none; }
|
|
.gw-gate-k { left: auto; right: 12px; writing-mode: vertical-rl; top: 22px; }
|
|
.gw-req { font-size: 12px; padding: 14px; margin-top: -132px; white-space: nowrap; }
|
|
.gw-chip { padding: 3px 6px; font-size: 11px; }
|
|
.gw-h { min-height: 32px; padding: 0 8px; }
|
|
.gw-req-top span { display: none; }
|
|
.gw-429 { font-size: 34px; }
|
|
.gw-forge { padding: 120px 0; }
|
|
.gw-forge-pick { justify-self: start; }
|
|
.gw-forge-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
|
|
.gw-pane { min-height: 0; padding: 22px 18px; border-radius: 24px; }
|
|
.gw-arrow { height: 72px; }
|
|
.gw-arrow i { top: 0; bottom: 0; }
|
|
.gw-arrow span { writing-mode: horizontal-tb; padding: 6px 12px; }
|
|
}
|
|
|
|
/* the live object's pause control */
|
|
.gw-pause { top: 16px; right: calc(clamp(12px, 1.6vw, 24px) + 16px); }
|
|
|
|
/* round 2 ------------------------------------------------------------------------------------------------------- */
|
|
/* the hero: the pause sits inside the card's top-right corner */
|
|
.gw-lift .lp-host { position: relative; }
|
|
.gw-h > span:first-child { white-space: pre; }
|
|
.gw-forge-hs li > span { white-space: pre-wrap; }
|
|
|
|
/* the statement: a short screen with its own request lane */
|
|
.gw-say { min-height: 60svh; display: grid; align-content: center; padding: clamp(56px, 7vw, 116px) 0 0; margin-bottom: -44px; }
|
|
.gw-say-h { will-change: transform; }
|
|
.gw-rail { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 17px; margin-top: 72px; font: 500 13px/1 var(--mono); color: var(--faint); }
|
|
.gw-rail-end.r { color: var(--ink); }
|
|
.gw-rail-end.r b { font-weight: 600; }
|
|
.gw-rail-line { position: relative; height: 44px; }
|
|
.gw-rail-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid light-dark(rgba(0, 0, 0, .14), var(--border-control)); }
|
|
.gw-rail-gate { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
|
|
.gw-rail-mov { position: absolute; inset: 0; animation: gw-rail 6s cubic-bezier(.4, 0, .2, 1) infinite; }
|
|
.gw-rail-dot { position: absolute; top: 50%; left: 0; display: grid; transform: translate(0, -50%); animation: gw-rail-self 6s cubic-bezier(.4, 0, .2, 1) infinite; }
|
|
.gw-rail-dot em { grid-area: 1 / 1; font-style: normal; white-space: nowrap; padding: 9px 14px; border-radius: 999px; font: 500 13px/1 var(--mono); }
|
|
.gw-rail-in { background: light-dark(#ededed, var(--secondary)); color: light-dark(#262626, var(--foreground)); animation: gw-rail-in 6s linear infinite; }
|
|
.gw-rail-out { background: var(--ink); color: light-dark(#fafafa, var(--primary-foreground)); animation: gw-rail-out 6s linear infinite; }
|
|
@keyframes gw-rail { 0% { transform: translateX(0); } 42%, 50% { transform: translateX(50%); } 92%, 100% { transform: translateX(100%); } }
|
|
@keyframes gw-rail-self { 0% { transform: translate(0, -50%); } 42%, 50% { transform: translate(-50%, -50%); } 92%, 100% { transform: translate(-100%, -50%); } }
|
|
@keyframes gw-rail-in { 0%, 44% { opacity: 1; } 48%, 100% { opacity: 0; } }
|
|
@keyframes gw-rail-out { 0%, 44% { opacity: 0; } 48%, 100% { opacity: 1; } }
|
|
|
|
/* transforms written after mount (Settle, Say) grow from these corners */
|
|
.gw-settle { transform-origin: 50% 0%; }
|
|
.gw-say-h { transform-origin: 0% 100%; }
|
|
|
|
/* the code card: "api /v1/gateway" sits on its own line above the block; the prompt wraps instead of being cut */
|
|
.gw .sp-api { justify-self: start; }
|
|
/* ShipPrompt's api tag is #fafafa on ink: in dark the ink turns light, so its word takes Hanzo's primary-foreground */
|
|
.gw .sp-api i { color: light-dark(#fafafa, var(--primary-foreground)); }
|
|
.gw .sp-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
/* the copy button: only the icon that is arriving shows, so the tick never draws over the outgoing copy icon */
|
|
.gw .sp-code .x-copy { display: inline-flex; align-items: center; gap: 6px; }
|
|
.gw .sp-code .x-copy svg { flex: none; }
|
|
.gw .sp-code .x-copy[aria-label='Copied'] svg:has(rect) { display: none; }
|
|
|
|
/* related capabilities: one shape for all four, arrow at the right edge, a hover that previews where it goes */
|
|
.gw .sp-rel-a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 18px 12px; margin: 0 -12px; border-radius: 12px; transition: background-color .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gw .sp-rel-a b { grid-column: 1; }
|
|
.gw .sp-rel-a svg { grid-column: 2; grid-row: 1; margin: 0; }
|
|
.gw .sp-rel-a span { grid-column: 1 / -1; }
|
|
.gw .sp-rel-a::after { content: attr(href); grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px/1.4 var(--mono); color: light-dark(#737373, var(--text-tertiary)); opacity: 0; transform: translateY(-4px); transition: opacity .15s cubic-bezier(0, 0, .2, 1), transform .3s cubic-bezier(.16, 1, .3, 1); }
|
|
@media (hover: hover) {
|
|
.gw .sp-rel-a:hover { background: light-dark(#f5f5f5, var(--muted)); }
|
|
.gw .sp-rel-a:hover::after { opacity: 1; transform: none; }
|
|
}
|
|
.gw .sp-rel-a:focus-visible::after { opacity: 1; transform: none; }
|
|
|
|
/* answers to the pointer: fills and moves, never opacity alone */
|
|
.gw .x-btn { transition: background-color .15s cubic-bezier(0, 0, .2, 1), border-color .15s cubic-bezier(0, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gw .x-btn:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.gw .sp-rel-a b { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s cubic-bezier(.4, 0, .2, 1); }
|
|
.gw .gw-forge-pick button { transition: color .15s cubic-bezier(0, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gw .gw-forge-pick button:active, .gw .gw-tog:active .gw-tog-ui { transform: scale(.97); }
|
|
@media (hover: hover) {
|
|
.gw .x-btn.solid:hover { background: light-dark(#262626, var(--primary-hover)); border-color: light-dark(#262626, var(--primary-hover)); }
|
|
.gw .x-btn:not(.solid):hover { background: light-dark(#f5f5f5, var(--muted)); border-color: var(--ink); }
|
|
.gw .sp-rel-a:hover b { background-size: 100% 1px; }
|
|
.gw .gw-forge-pick button[aria-checked='false']:hover { color: #fafafa; }
|
|
.gw .gw-tog:hover .gw-tog-ui { background: #525252; }
|
|
.gw .gw-tog:hover input:checked + .gw-tog-ui { background: #fafafa; }
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.gw-hero { padding-top: 96px; }
|
|
.gw-lane { height: 400px; }
|
|
.gw-gate-k { top: 76px; }
|
|
.gw-req { margin-top: -112px; }
|
|
.gw-rail { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 44px; min-width: 0; overflow: hidden; }
|
|
.gw-rail-line { min-width: 0; }
|
|
.gw-rail-end.r { justify-self: end; }
|
|
/* the gateway card: the pause sits in the lane's top-left corner, the request card keeps clear of the gate */
|
|
.gw-pause { right: auto; left: 24px; }
|
|
.gw-chip { white-space: nowrap; flex: none; }
|
|
.gw-say { margin-bottom: 0; padding-bottom: 32px; }
|
|
.gw-rail-dot em { padding: 7px 10px; font-size: 12px; }
|
|
.gw-lane { --cw: 262px; }
|
|
.gw-req { margin-left: -14px; }
|
|
.gw-proj-t { padding-bottom: 0; border-bottom: 0; }
|
|
.gw-say-h { max-width: 11ch; }
|
|
.gw .sp-api { position: static; }
|
|
/* the close: the contour sits low and right, clear of the words */
|
|
.gw .gi-art { right: -42%; top: auto; bottom: -18%; width: 80%; opacity: .3; }
|
|
.gw .gi-more a, .gw .sp-rel-a, .gw .cf-con-open { min-height: 44px; display: inline-flex; align-items: center; }
|
|
.gw .sp-rel-a { display: flex; }
|
|
.gw .gi-more { gap: 0 28px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.gw-rail-mov, .gw-rail-dot, .gw-rail-in, .gw-rail-out { animation: none; }
|
|
.gw-rail-mov { transform: translateX(100%); }
|
|
.gw-rail-dot { transform: translate(-100%, -50%); }
|
|
.gw-rail-in { opacity: 0; visibility: hidden; }
|
|
}
|
|
/* the console's hover tips are hidden, not merely transparent, until they show */
|
|
.gw .cf-tip { visibility: hidden; }
|
|
.gw .cf-con-ico:hover .cf-tip, .gw .cf-con-ico:focus-visible .cf-tip { visibility: visible; }
|
|
/* glyphs set apart from Hanzo's words (a tick, an ellipsis for a forged value, a path glob, an arrow) */
|
|
.gw .gw-tk { font-style: normal; }
|
|
/* the shared console's checkout-web line ("A build is running…") is not in Hanzo's Gateway copy: not shown on this page */
|
|
.gw .cf-cap > p:nth-child(2) { display: none; }
|
|
|
|
/* round 3 ------------------------------------------------------------------------------------------------------- */
|
|
/* hero: the lede and asks sit on the h1's baseline; the landed requests get their own lane at the top right, so the
|
|
card walking through the gate never crosses them; the lane leans toward a fine pointer */
|
|
.gw-hero-r { padding-bottom: 6px; }
|
|
.gw-log { top: 24px; right: 88px; transform: none; gap: 8px; }
|
|
.gw-log li { padding: 9px 12px; }
|
|
.gw-lane { transition: transform .5s cubic-bezier(.16, 1, .3, 1); transform-origin: 50% 50%; }
|
|
.gw-req { margin-top: -100px; }
|
|
/* Hanzo's words keep Hanzo's case on the diagrams */
|
|
.gw-gate-k, .gw-arrow span { text-transform: none; letter-spacing: .02em; }
|
|
.gw-forge .gw-pane .v2-kick { text-transform: none; letter-spacing: 0; font-size: 14px; }
|
|
.gw-forge-hs li.gone span { text-transform: none; letter-spacing: 0; font-size: 13px; }
|
|
|
|
/* the statement cuts in by its line once it arrives (server HTML: whole and visible) */
|
|
.gw-say-h.cut .gw-say-in { display: block; clip-path: inset(0 0 100% 0); transform: translateY(24px); transition: clip-path .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); }
|
|
.gw-say-h.cut.in .gw-say-in { clip-path: inset(0 -4% -12% 0); transform: none; }
|
|
|
|
/* chapter 02, opened: no heading of its own, just its place in the chapters and the pick */
|
|
.gw-forge { padding: clamp(56px, 6vw, 96px) 0; }
|
|
.gw-forge-head { margin-bottom: 40px; align-items: center; }
|
|
.gw-forge-n { margin: 0; color: #a3a3a3; }
|
|
.gw-forge-hs li { padding: 0; }
|
|
.gw-forge-hs li.gone, .gw-forge-hs li.set, .gw-forge-auth { padding: 0 16px; }
|
|
.gw-tog { width: 100%; padding: 0 16px; border: 0; background: none; font: inherit; text-align: left; border-radius: 14px; transition: background-color .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gw-tog .gw-tog-ui { transition: background-color .25s cubic-bezier(0, 0, .2, 1); }
|
|
.gw-tog[aria-checked='true'] .gw-tog-ui { background: #e5e5e5; }
|
|
.gw-tog[aria-checked='true'] .gw-tog-ui::after { transform: translateX(14px); background: #0a0a0a; }
|
|
.gw-forge-hs li:not(.on) .gw-tog > span:last-child { color: #737373; }
|
|
.gw-tog:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
|
|
.gw-tog:active .gw-tog-ui { transform: scale(.97); }
|
|
@media (hover: hover) {
|
|
.gw .gw-tog:hover { background: rgba(255, 255, 255, .06); }
|
|
.gw .gw-tog:hover .gw-tog-ui { background: #525252; }
|
|
.gw .gw-tog[aria-checked='true']:hover .gw-tog-ui { background: #fafafa; }
|
|
}
|
|
|
|
/* related rows: straight hairlines (a rounded row bent the ends of its bottom border) */
|
|
.gw .sp-rel-a { border-radius: 0; margin: 0; padding-inline: 0; }
|
|
|
|
/* one section-padding step between blocks, not two */
|
|
.gw .v2-sec.gw-ship, .gw .v2-sec.gw-proj, .gw .v2-sec.gw-relsec { padding-top: clamp(64px, 6vw, 104px); padding-bottom: clamp(64px, 6vw, 104px); }
|
|
.gw .v2-sec.gw-proj { padding-top: 0; }
|
|
.gw .v2-sec.gw-relsec { padding-top: 0; }
|
|
.gw .gw-relsec .sp-rel { padding-top: 32px; }
|
|
|
|
/* the console: its caption sits at the top, beside the window */
|
|
.gw-proj .v2-grid { align-items: start; }
|
|
.gw-proj-t { padding: 20px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
|
|
|
|
/* hovers that answer: console rows fill, the active product icon inks, the close's text links draw their underline */
|
|
.gw .cf-con-main li { transition: background-color .15s cubic-bezier(0, 0, .2, 1); border-radius: 10px; }
|
|
.gw .cf-con-ico { transition: background-color .15s cubic-bezier(0, 0, .2, 1), color .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gw .gi-more a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-underline-offset .15s cubic-bezier(0, 0, .2, 1), text-decoration-thickness .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gw .gi-more a:active { transform: translateY(1px); }
|
|
@media (hover: hover) {
|
|
.gw .cf-con-main li:hover { background: #f5f5f5; }
|
|
.gw .cf-con-ico:hover, .gw .cf-con-ico.on:hover { background: #e4e4e7; color: #0a0a0a; }
|
|
html:not(.light) .gw .cf-con.light .cf-con-main li:hover { background: var(--x-sunk); }
|
|
html:not(.light) .gw .cf-con.light .cf-con-ico:hover, html:not(.light) .gw .cf-con.light .cf-con-ico.on:hover { background: var(--x-knob); color: var(--ink); }
|
|
.gw .gi-more a:hover { text-underline-offset: 7px; text-decoration-thickness: 2px; }
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.gw-req { margin-top: -112px; }
|
|
/* "Hanzo Cloud /v1" sits up by the pause, clear of the card's path */
|
|
.gw-side.r { top: 38px; bottom: auto; left: 84px; }
|
|
.gw-forge { padding: 64px 0; }
|
|
.gw-forge-head { margin-bottom: 24px; }
|
|
.gw-proj-t { padding-bottom: 20px; border-top: 0; }
|
|
}
|
|
/* the narrowest phones: the card is narrower and the gate further right, so the card stays inside the lane */
|
|
@media (max-width: 400px) {
|
|
.gw-lane { --gate: 88%; --cw: 224px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.gw-lane { transition: none; }
|
|
.gw-say-h.cut .gw-say-in { clip-path: none; transform: none; transition: none; }
|
|
}
|
|
|
|
/* round 4 ------------------------------------------------------------------------------------------------------- */
|
|
/* hero: the request is checked on the line (centred on the gate) and crosses into the Hanzo Cloud ledger on the far
|
|
side; the token bucket has its own lane at the top of the gate, "Gateway" names the line at its foot */
|
|
.gw-lane { height: clamp(460px, 34vw, 520px); }
|
|
.gw-req { margin-top: -132px; margin-left: calc(var(--cw) * -0.5); z-index: 2; will-change: transform; }
|
|
.gw-bucket { top: 20px; bottom: auto; z-index: 3; }
|
|
.gw-gate-k { top: auto; bottom: 22px; left: 0; transform: translateX(-50%); padding: 7px 10px; border-radius: 999px; background: light-dark(#f5f5f5, var(--muted)); }
|
|
.gw-cloud { position: absolute; top: 50%; right: 32px; width: 260px; transform: translateY(-50%); display: grid; gap: 14px; }
|
|
.gw-cloud .gw-side.r { position: static; margin: 0; color: var(--ink); }
|
|
.gw-cloud .gw-log { position: static; transform: none; display: grid; gap: 8px; }
|
|
.gw-cloud .gw-log li { min-width: 0; }
|
|
.gw-queue { z-index: 1; }
|
|
|
|
/* the dark room (chapter 02, opened): no stray counter, just the pick */
|
|
.gw-forge-head { display: flex; justify-content: flex-start; margin-bottom: 32px; }
|
|
.gw-forge-pick { justify-self: auto; }
|
|
|
|
/* chapter scenes: flat quiet tiles (no outline, no shadow), the scene is the object */
|
|
.gw .gws.v2-obj { background: light-dark(#f5f5f5, var(--muted)); box-shadow: none; border: 0; }
|
|
|
|
/* example project: the window spans the container, its caption above it */
|
|
.gw-proj-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
|
|
.gw-proj-in .gw-proj-t, .gw-proj-in .gw-proj-c { grid-column: 1 / -1; }
|
|
.gw-proj-in .gw-proj-t { padding: 20px 0 0; border-top: 1px solid var(--line); }
|
|
.gw-proj-in .gw-proj-l { max-width: none; }
|
|
/* the console's window bar keeps its title, not three grey dots */
|
|
.gw .cf-con-bar > i { display: none; }
|
|
|
|
/* related: Hanzo's own "→" sits in the right-hand arrow slot, where the other rows draw theirs */
|
|
.gw .sp-rel-a b { position: static; }
|
|
.gw-rel-arw { position: absolute; right: 2px; top: 21px; line-height: 1; font-size: 15px; font-weight: 600; transition: transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gw .sp-rel-a svg { transition: transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
@media (hover: hover) {
|
|
.gw .sp-rel-a:hover svg, .gw .sp-rel-a:hover .gw-rel-arw { transform: translateX(4px); }
|
|
}
|
|
|
|
@media (max-width: 1100px) and (min-width: 901px) {
|
|
.gw-queue { display: none; }
|
|
.gw-cloud { width: 220px; right: 24px; }
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.gw-lane { height: 420px; }
|
|
/* phone: the card is checked just left of the gate (shifted by 58% of its own width) and walks on past it */
|
|
.gw-req { margin-top: -118px; margin-left: calc(var(--cw) * -1.08); }
|
|
.gw-bucket { top: auto; bottom: 18px; left: 20px; transform: none; }
|
|
.gw-gate-k { top: 76px; bottom: auto; left: auto; right: 12px; transform: none; padding: 0; background: none; }
|
|
.gw-cloud { top: 38px; right: auto; left: 84px; width: auto; transform: none; }
|
|
.gw-cloud .gw-log { display: none; }
|
|
/* the switches and what every service behind it receives sit side by side, so a tap answers on the same screen */
|
|
.gw-forge-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; }
|
|
.gw-arrow { display: none; }
|
|
.gw-pane { padding: 16px 10px; border-radius: 18px; }
|
|
.gw-pane .v2-kick { margin-bottom: 14px; font-size: 12px !important; }
|
|
.gw-forge-hs { font-size: 12px; gap: 6px; }
|
|
.gw-forge-hs li { min-height: 40px; }
|
|
.gw-forge-hs li.gone, .gw-forge-hs li.set, .gw-forge-auth { padding: 6px 8px; flex-wrap: wrap; gap: 2px 6px; }
|
|
.gw-forge-hs li.gone span { font-size: 11px; }
|
|
.gw-tog { padding: 0 8px; gap: 8px; min-height: 44px; }
|
|
.gw-tog-ui { width: 30px; height: 18px; }
|
|
.gw-tog-ui::after { width: 12px; height: 12px; }
|
|
.gw-tog[aria-checked='true'] .gw-tog-ui::after { transform: translateX(12px); }
|
|
.gw-forge-hs li.set em { margin-left: 0; }
|
|
.gw-rel-arw { top: 50%; transform: translateY(-50%); }
|
|
}
|
|
|
|
/* round 6 ------------------------------------------------------------------------------------------------------- */
|
|
/* the identity headers the gate is about to write: empty slots until the claims fill them */
|
|
.gw-h.ghost { margin-top: 6px; color: light-dark(#a3a3a3, var(--text-tertiary)); background: transparent; box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .1), var(--border)); }
|
|
.gw-h.ghost em { color: light-dark(#a3a3a3, var(--text-tertiary)); }
|
|
|
|
/* phone: the lane runs top to bottom. The client's request is checked above the gate line, drops through it and lands
|
|
in the Hanzo Cloud ledger underneath; the token bucket sits on the line. */
|
|
@media (max-width: 900px) {
|
|
.gw-lane { --cw: min(320px, calc(100vw - 56px)); height: 600px; }
|
|
.gw-lane::before { -webkit-mask-image: none; mask-image: none; }
|
|
.gw-side.l { display: block; top: 30px; bottom: auto; left: 24px; }
|
|
.gw-req { top: 76px; margin-top: 0; left: 50%; margin-left: calc(var(--cw) * -0.5); white-space: normal; }
|
|
.gw-gate { top: 372px; bottom: auto; left: 0; right: 0; width: auto; height: 2px; margin: -1px 0 0; }
|
|
.gw-gate i { background: linear-gradient(90deg, transparent, var(--glow) 12%, var(--glow) 88%, transparent); }
|
|
.gw-gate-k { top: 14px; bottom: auto; left: 20px; right: auto; transform: none; writing-mode: horizontal-tb; padding: 0; background: none; }
|
|
.gw-bucket { top: 352px; bottom: auto; left: auto; right: 20px; transform: none; }
|
|
.gw-cloud { top: 420px; left: 20px; right: 20px; width: auto; transform: none; gap: 10px; }
|
|
.gw-cloud .gw-log { display: grid; }
|
|
.gw-cloud .gw-log li { padding: 8px 12px; }
|
|
.gw-lift .gw-pause { top: 16px; right: 24px; left: auto; }
|
|
}
|
|
/* the dark room's chosen credential and the console title answer the pointer too */
|
|
@media (hover: hover) {
|
|
.gw-forge-pick button[aria-checked='true']:hover .gw-pick-bg { background: #d4d4d4; }
|
|
.gw-forge-pick button[aria-checked='false']:hover { color: #f5f5f5; }
|
|
.gw .cf-con-title:hover { text-decoration: underline; text-underline-offset: 3px; }
|
|
}
|
|
.gw-forge-pick button { transition: color .15s cubic-bezier(0, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gw-forge-pick button:active { transform: scale(.97); transition-duration: 90ms; }
|
|
@media (max-width: 900px) {
|
|
/* every related row keeps its arrow in the same right-hand slot as Hanzo's "Gateway docs →" */
|
|
.gw .sp-rel-a { position: relative; padding-right: 32px; }
|
|
.gw .sp-rel-a > svg { position: absolute; right: 2px; top: 50%; margin-top: -7px; }
|
|
}
|
|
|
|
.gw-proj-cap { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: light-dark(#525252, var(--muted-foreground)); }
|
|
|
|
/* dark: the example console. Frame's white window carries class "light", which gives it Hanzo's light tokens and
|
|
color-scheme; in dark it takes the page's own (inherited) greys instead, a dark card with white-10% hairlines like live */
|
|
html:not(.light) .gw .cf-con.light { color-scheme: dark; background: var(--x-raised); border-color: var(--line); box-shadow: none; }
|
|
html:not(.light) .gw .cf-con.light .cf-con-bar i { border-color: var(--x-e15); }
|
|
html:not(.light) .gw .cf-con.light .cf-con-side { background: var(--x-sunk); }
|
|
html:not(.light) .gw .cf-con.light .cf-con-ico:hover, html:not(.light) .gw .cf-con.light .cf-con-ico.on { background: var(--x-knob); }
|
|
html:not(.light) .gw .cf-con.light .cf-row-bg { background: var(--x-knob); }
|
|
html:not(.light) .gw .cf-con.light .cf-tip, html:not(.light) .gw .cf-con.light .cf-sess-me { color: var(--x-on-ink); }
|
|
html:not(.light) .gw .cf-con.light .cf-con-open:hover { color: var(--x-on-ink); }
|
|
|
|
|
|
/* dark: the selected tab's text sits on a sibling motion pill; its label carries the pill's own colour (after the pill has slid in) so the ancestor walk sees what the eye sees. Light untouched. */
|
|
html:not(.light) .gw-forge-pick button[aria-checked='true'] > span:last-child { background: #f5f5f5; transition: background-color 0s .3s; }
|
|
@media (hover: hover) { html:not(.light) .gw-forge-pick button[aria-checked='true']:hover > span:last-child { background: #d4d4d4; } }
|