/* A flat Pong-inspired exchange between an agent and Wick assets. */
.gateway-mcp-hero.platform-page-hero {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 3.8vw, 64px);
  padding-top: 60px;
  padding-bottom: 64px;
  align-items: center;
}
.gateway-mcp-hero .hero-copy h1 {
  font-size: clamp(44px, 4.1vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin-bottom: 26px;
}
.gateway-mcp-hero .hero-copy > .eyebrow {
  display: block;
  width: auto;
  padding: 0;
  margin: 0 0 20px;
  background: transparent;
  border: 0;
  font-size: 12px;
  letter-spacing: .08em;
}
.gateway-mcp-hero .hero-copy > p:not(.eyebrow) { font-size: 19px; line-height: 1.6; max-width: 530px; }
.gateway-mcp-hero .hero-copy > p.gateway-hero-support { margin-top: 18px; font-size: 16px; line-height: 1.55; color: #555960; max-width: 400px; }
.gateway-demo-link { display: inline-flex; gap: 32px; align-items: center; min-height: 54px; padding: 12px 24px; background: #FFE45C; border: 2px solid #0B0D10; box-shadow: 3px 3px 0 #0B0D10; font-size: 17px; font-weight: 800; }
.gateway-demo-link:hover { background: #FFEB85; }
.gateway-demo-link:focus-visible, .gateway-demo button:focus-visible { outline: 3px solid #0B0D10; outline-offset: 5px; }
.gateway-demo { margin: 0; width: 100%; min-width: 0; color: #0B0D10; }
.gateway-scene { --gateway-frame: .24cqw; --gateway-shadow: .55cqw; --gateway-paper: #FFFDF8; --gateway-titlebar: #DCE6F2; container-type: inline-size; position: relative; width: 100%; aspect-ratio: 800 / 550; isolation: isolate; }
.gateway-scene *, .gateway-scene *::before, .gateway-scene *::after { box-sizing: border-box; }
.gateway-wick-panel { border-radius: 1.3cqw; position: absolute; z-index: 1; left: 57.5%; top: 22%; width: 42%; display: flex; flex-direction: column; background: var(--gateway-paper); border: var(--gateway-frame) solid #0B0D10; box-shadow: var(--gateway-shadow) var(--gateway-shadow) 0 #0B0D10; }
.gateway-platform-header { border-radius: 1cqw 1cqw 0 0; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:6.3cqw; padding:1cqw 1.6cqw; border-bottom:var(--gateway-frame) solid #0B0D10; background:#EBECEE; }
.gateway-window-controls { justify-self:start; display:flex; align-items:center; gap:.5cqw; flex-shrink:0; }
.gateway-platform-header .gateway-browser-brand { display:block; width:5.8cqw; height:2.5cqw; object-fit:contain; }
.gateway-window-controls i { display:block; width:.85cqw; height:.85cqw; border:.14cqw solid #0B0D10; border-radius:50%; background:#FFFDF8; }
.gateway-toolstrip { display: flex; align-items: center; gap: 1.2cqw; height: 6.8cqw; flex: 0 0 6.8cqw; padding: 1cqw 1.8cqw; border-top: var(--gateway-frame) solid #0B0D10; }
.gateway-tools { display: flex; gap: .8cqw; }
.gateway-tool { display: grid; place-items: center; width: 4cqw; height: 4cqw; border: .18cqw solid #0B0D10; background: #FFFDF8; --gateway-icon-primary: #CACDD1; --gateway-icon-secondary: #EBECEE; --gateway-icon-highlight: #EBECEE; --gateway-icon-soft: #EBECEE; }
.gateway-tool svg { width: 3.5cqw; height: 3.5cqw; }
.gateway-tool.is-hit { --gateway-icon-primary: #74A9E8; --gateway-icon-secondary: #68B8AD; --gateway-icon-highlight: #FFE45C; --gateway-icon-soft: #DCE6F2; }
.gateway-tool-status { font-size: 1.9cqw; line-height: 1.25; font-weight: 750; }
.gateway-asset-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 12.2cqw; gap: 1.8cqw 2.4cqw; padding: 1.8cqw 2.4cqw 2.2cqw; }
.gateway-asset-icon { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-width: 0; --gateway-icon-primary: #CACDD1; --gateway-icon-secondary: #EBECEE; --gateway-icon-highlight: #EBECEE; --gateway-icon-soft: #EBECEE; }
.gateway-asset-target { display: grid; grid-template-rows: 8.4cqw 1fr; place-items: center; width: 100%; height: 12.2cqw; padding: .4cqw .4cqw .4cqw; border-radius: .7cqw; border: var(--gateway-frame) solid #0B0D10; background: var(--gateway-paper); box-shadow: .35cqw .35cqw 0 #0B0D10; }
.gateway-asset-target svg { display: block; width: 8.4cqw; height: 8.4cqw; }
.gateway-asset-target > span { display: block; font-size: 1.95cqw; line-height: 1.1; font-weight: 700; text-align: center; }
.gateway-asset-icon.is-used { --gateway-icon-primary: #B8C9D4; --gateway-icon-secondary: #C3D7D2; --gateway-icon-highlight: #E9E1D5; --gateway-icon-soft: #E2E8EB; }
.gateway-asset-icon.is-hit, .gateway-demo.is-answer-ready .gateway-asset-icon, .gateway-demo:not(.is-animated) .gateway-asset-icon { --gateway-icon-primary: #74A9E8; --gateway-icon-secondary: #68B8AD; --gateway-icon-highlight: #FFE45C; --gateway-icon-soft: #DCE6F2; }
.gateway-asset-target svg, .gateway-tool svg { transform-box: fill-box; transform-origin: center; }
/* MCP is the connector itself: its measured opening owns the request and return path. */
.gateway-mcp-gate { position: absolute; z-index: 3; left: 50.5%; top: 46%; width: 9.5cqw; padding: 1.2cqw 1.1cqw 1.5cqw; display: flex; flex-direction: column; align-items: center; gap: 1.5cqw; transform: translate(-50%, -50%); border: var(--gateway-frame) solid #0B0D10; border-radius: 2.1cqw; background: #DCEDEA; transition: background-color 150ms; box-shadow: .45cqw .55cqw 0 #0B0D10; }
.gateway-mcp-gate:is(.is-reading, .is-crossing) { background: #68B8AD; }
.gateway-mcp-gate::before, .gateway-mcp-gate::after { content: ''; position: absolute; top: calc(100% - 5.8cqw); width: 1.1cqw; height: 2.8cqw; border: var(--gateway-frame) solid #0B0D10; background: #DCEDEA; transition: background-color 150ms; }
.gateway-mcp-gate::before { right: 100%; border-radius: .5cqw 0 0 .5cqw; }
.gateway-mcp-gate::after { left: 100%; border-radius: 0 .5cqw .5cqw 0; }
.gateway-mcp-mark { display: grid; place-items: center; width: 5.4cqw; height: 5.4cqw; }
.gateway-mcp-mark img { display: block; width: 100%; height: 100%; }
.gateway-mcp-port { position: relative; flex: 0 0 auto; width: 5.4cqw; height: 5.4cqw; overflow: hidden; border: .3cqw solid #0B0D10; border-radius: 50%; background: #FFFDF8; box-shadow: 0 0 0 .35cqw #DCEDEA; transition: box-shadow 150ms; }
.gateway-mcp-shutter { position: absolute; inset: 0 50% 0 0; border-right: .12cqw solid #0B0D10; background: #DCEDEA; transition: transform 160ms ease-out; }
.gateway-mcp-shutter + .gateway-mcp-shutter { inset: 0 0 0 50%; border-right: 0; border-left: .12cqw solid #0B0D10; }
.gateway-mcp-gate:is(.is-reading, .is-crossing) .gateway-mcp-port { box-shadow: 0 0 0 .35cqw #A9D4CE; }
.gateway-mcp-gate:is(.is-reading, .is-crossing) .gateway-mcp-shutter { transform: translateX(-100%); }
.gateway-mcp-gate:is(.is-reading, .is-crossing) .gateway-mcp-shutter + .gateway-mcp-shutter { transform: translateX(100%); }
.gateway-mcp-gate:is(.is-reading, .is-crossing)::before, .gateway-mcp-gate:is(.is-reading, .is-crossing)::after { background: #A9D4CE; }
.gateway-chat-shell { position: absolute; z-index: 6; left: .5%; top: 22%; width: 42%; }
.gateway-chat { position: relative; border: var(--gateway-frame) solid #0B0D10; border-radius: 1.3cqw; background: var(--gateway-paper); box-shadow: var(--gateway-shadow) var(--gateway-shadow) 0 #0B0D10; }
.gateway-chat-port { position: absolute; left: 100%; top: 55%; width: 0; height: 0; }
.gateway-chat-header { padding: 1.4cqw 2.3cqw; border-radius: 1cqw 1cqw 0 0; border-bottom: var(--gateway-frame) solid #0B0D10; background: var(--gateway-titlebar); }
.gateway-chat-body { padding: 2cqw 1.8cqw 1.3cqw; font-size: 2.05cqw; line-height: 1.4; }
.gateway-chat-question { display: flex; align-items: center; margin-left: 3cqw; min-height: 7.5cqw; padding: 1.1cqw 1.5cqw; border-radius: 1.2cqw 1.2cqw 0 1.2cqw; background: #DCE6F2; font-weight: 600; }
.gateway-chat-response { position: relative; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(3.2cqw,auto) auto; align-content: start; align-items: start; gap: 1.2cqw; min-height: 14cqw; padding-top: 1.4cqw; }
.gateway-chat-response [hidden] { display: none !important; }
.gateway-chat-response .gateway-chat-answer[hidden] { display: block !important; visibility: hidden; }
.gateway-chat-response .gateway-chat-evidence[hidden] { display: flex !important; visibility: hidden; }
.gateway-question-line { display: inline-flex; align-items: baseline; white-space: nowrap; }
.gateway-question-line [data-question-text], .gateway-question-line [data-question-mark] { display: inline-block; }
.gateway-question-line [data-question-text] { clip-path: inset(0); }
.gateway-question-line [data-question-mark] { margin-left: 0; }
.gateway-working-status { grid-area: 1 / 1; display: block; color: #0B0D10; font-weight: 400; }
.gateway-chat-answer { grid-area: 1 / 1; font-weight: 400; }
.gateway-chat-evidence { grid-area: 2 / 1; display: flex; gap: 1cqw; align-items: center; padding: 1.1cqw .9cqw; border: .15cqw solid #9EB1BA; border-radius: .6cqw; background: #F5FAF8; }
.gateway-file-icon { flex: 0 0 auto; width: 2.8cqw; height: 3.4cqw; }
.gateway-chat-evidence strong { display: block; font-size: 1.85cqw; font-weight: 400; }
.gateway-chat-evidence small { display: block; margin-top: .4cqw; font-size: 1.35cqw; color: #555960; }
.gateway-file-arrow { margin-left: auto; font-size: 2.1cqw; }
.gateway-chat-composer { margin: 0 1.8cqw 1.5cqw; padding: .7cqw 1cqw; border: .15cqw solid #B8BEC5; border-radius: 1cqw; display: flex; align-items: center; justify-content: space-between; font-size: 1.75cqw; line-height: 1; color: #70767C; }
.gateway-chat-send { color: #0B0D10; background: #FFEB85; border: .15cqw solid #0B0D10; border-radius: .6cqw; display: grid; place-items: center; width: 3.2cqw; height: 3.2cqw; font-size: 2.7cqw; }
.gateway-providers { display: flex; align-items: center; justify-content: space-between; gap: 2.5cqw; }
.gateway-provider { display: grid; place-items: center; width: 3.5cqw; height: 3.5cqw; opacity: .45; transition: opacity 180ms; }
.gateway-provider.is-active { opacity: 1; }
.gateway-provider img, .gateway-provider svg { width: 100%; height: 100%; object-fit: contain; }
.gateway-ball { position: absolute; left: 0; top: 0; z-index: 7; display: grid; place-items: center; width: 3.5cqw; height: 3.5cqw; border-radius: 50%; background: #FFE45C; border: .23cqw solid #0B0D10; box-shadow: .15cqw .15cqw 0 #0B0D10; color: #0B0D10; font-size: 2.4cqw; font-weight: 800; line-height: 1; opacity: 0; pointer-events: none; will-change: transform; }
.gateway-ball > span { transform: translateY(-.04em); }
.gateway-motion-caption { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 20px 0 0; }
.gateway-motion-caption p { margin: 0; font-size: 14px; line-height: 1.5; color: #555960; }
.gateway-motion-toggle { border: 0; background: transparent; color: #555960; padding: 5px 0 5px 12px; font-size: 12px; min-height: 44px; flex-shrink: 0; }
.gateway-motion-toggle[hidden] { display: none; }
.gateway-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1650px) { .gateway-mcp-hero.platform-page-hero { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); } }
@media (max-width: 1120px) {
  .gateway-mcp-hero.platform-page-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .gateway-mcp-hero .hero-copy { max-width: 800px; }
  .gateway-mcp-hero .hero-copy h1 { max-width: 800px; font-size: clamp(46px,6.1vw,64px); }
  .gateway-title-break { display: none; }
  .gateway-demo { max-width: 720px; justify-self: center; }
}
@media (max-width: 760px) {
  .gateway-mcp-hero.platform-page-hero { padding-top: 32px; padding-bottom: 36px; gap: 30px; }
  .gateway-mcp-hero .hero-copy h1 { font-size: clamp(39px,7.2vw,54px); line-height: 1.06; letter-spacing: -.045em; }
  .gateway-mcp-hero .hero-copy > p:not(.eyebrow) { font-size: 17px; }
  .gateway-mcp-hero .hero-copy > p.gateway-hero-support { font-size: 15px; }
  .gateway-title-break { display: initial; }
  .gateway-motion-caption { margin-left: 0; gap: 6px; margin-top: 16px; }
  .gateway-motion-caption p { font-size: 12px; }

}
@media (prefers-reduced-motion: reduce) {
  .gateway-demo *, .gateway-demo *::before, .gateway-demo *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 600px) {
  .gateway-scene { --gateway-frame: .4cqw; --gateway-shadow: .8cqw; aspect-ratio: 400 / 475; }
  .gateway-chat-shell { left: 4%; top: 0; width: 92%; }
  .gateway-chat, .gateway-wick-panel { border-radius: 2cqw; }
  .gateway-chat-header { padding: 2cqw 4cqw; border-radius: 1.6cqw 1.6cqw 0 0; }
  .gateway-provider { width: 5cqw; height: 5cqw; }
  .gateway-chat-body { padding: 3cqw 4cqw; font-size: 3.5cqw; line-height: 1.35; }
  .gateway-chat-question { margin-left: 16cqw; min-height: 11cqw; padding: 2cqw 3cqw; border-radius: 2cqw 2cqw 0 2cqw; }
  .gateway-chat-response { min-height: 19cqw; grid-template-rows:minmax(4.8cqw,auto) auto; padding-top: 2cqw; gap: 1.5cqw; }
  .gateway-chat-evidence { padding: 1.5cqw 2cqw; gap: 2cqw; }
  .gateway-file-icon { width: 4cqw; height: 5cqw; }
  .gateway-chat-evidence strong { font-size: 3.2cqw; }
  .gateway-chat-evidence small { font-size: 2.3cqw; }
  .gateway-file-arrow { font-size: 3.5cqw; }
  .gateway-chat-composer { display: none; }
  .gateway-chat-port { left: 50%; top: 100%; }
  .gateway-mcp-gate { left: 50%; top: 51%; width: 29cqw; height: 15cqw; padding: 2cqw 2.5cqw; flex-direction: row; justify-content: space-between; gap: 3cqw; border-radius: 3.2cqw; box-shadow: .7cqw .8cqw 0 #0B0D10; }
  .gateway-mcp-mark { width: 8.5cqw; height: 8.5cqw; }
  .gateway-mcp-port { width: 8cqw; height: 8cqw; border-width: .45cqw; box-shadow: 0 0 0 .55cqw #DCEDEA; }
  .gateway-mcp-gate:is(.is-reading, .is-crossing) .gateway-mcp-port { box-shadow: 0 0 0 .55cqw #A9D4CE; }
  .gateway-mcp-gate::before, .gateway-mcp-gate::after { left: auto; right: 5cqw; width: 3cqw; height: 1.5cqw; }
  .gateway-mcp-gate::before { top: auto; bottom: 100%; border-radius: .6cqw .6cqw 0 0; }
  .gateway-mcp-gate::after { top: 100%; border-radius: 0 0 .6cqw .6cqw; }
  .gateway-wick-panel { left: 4%; top: 62%; width: 92%; }
  .gateway-platform-header { min-height:9cqw; gap:2cqw; padding:1.5cqw 3cqw; border-radius:1.6cqw 1.6cqw 0 0; }
  .gateway-window-controls { gap:1cqw; }
  .gateway-platform-header .gateway-browser-brand { width:9cqw; height:4cqw; }
  .gateway-window-controls i { width:1.5cqw; height:1.5cqw; border-width:.25cqw; }
  .gateway-toolstrip { gap: 3cqw; height: 8cqw; flex-basis: 8cqw; padding: 1.2cqw 2.5cqw; }
  .gateway-tool { width: 4.6cqw; height: 4.6cqw; }
  .gateway-tool svg { width: 4cqw; height: 4cqw; }
  .gateway-tool-status { font-size: 2.6cqw; }
  .gateway-asset-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 20cqw; gap: 2cqw; padding: 2.5cqw 2cqw 3cqw; }
  .gateway-asset-target { height: 20cqw; grid-template-rows: 12cqw 1fr; border-radius: 1.2cqw; padding: 1.2cqw .4cqw .7cqw; box-shadow: .5cqw .5cqw 0 #0B0D10; }
  .gateway-asset-target svg { width: 12cqw; height: 12cqw; }
  .gateway-asset-target > span { font-size: 2.5cqw; }
  .gateway-question-line [data-question-mark] { margin-left: 0; }
  .gateway-ball { width: 5.2cqw; height: 5.2cqw; border-width: .35cqw; font-size: 3.5cqw; }
}

/* Compact browser frame: unboxed Wick mark, short address bar, right controls. */
.gateway-wick-panel { border-width:.18cqw; box-shadow:var(--gateway-shadow) var(--gateway-shadow) 0 #0B0D10; }
.gateway-platform-header { display:flex; justify-content:flex-start; gap:1.5cqw; padding-inline:2.4cqw; background:var(--gateway-paper); border-bottom:.14cqw solid #C6C9CD; }
.gateway-platform-header .gateway-browser-brand { width:3.5cqw; height:3.5cqw; filter:grayscale(1) contrast(10); mix-blend-mode:multiply; }
.gateway-browser-address { display:block; flex:0 0 14cqw; height:1.6cqw; border-radius:.4cqw; background:#E4E5E7; border:.1cqw solid #D8DADE; }
.gateway-platform-header .gateway-window-controls { margin-left:auto; }
.gateway-wick-panel .gateway-asset-target { box-shadow:none; border-width:.18cqw; }
.gateway-wick-panel .gateway-toolstrip { border-top-width:.14cqw; }
@media(max-width:600px) {
 .gateway-wick-panel { border-width:.3cqw; }
 .gateway-platform-header { padding-inline:3cqw; }
 .gateway-platform-header .gateway-browser-brand { width:5cqw; height:5cqw; }
 .gateway-browser-address { flex-basis:26cqw; height:2.4cqw; border-radius:.6cqw; }
 .gateway-wick-panel .gateway-asset-target { border-width:.3cqw; }
}

/* Use the transparent wordmark's exact first glyph, without the app-icon tile. */
.gateway-platform-header .gateway-browser-brand.wick-glyph { width:2.7cqw; height:1.85cqw; background:url("wick-logo.png") left bottom / auto 2.7cqw no-repeat; filter:none; mix-blend-mode:normal; }
@media(max-width:600px) { .gateway-platform-header .gateway-browser-brand.wick-glyph { width:4.4cqw; height:3cqw; background-size:auto 4.4cqw; } }
