:root {
  --gw-bg: #07080f;
  --gw-bg-soft: #0b0d17;
  --gw-panel: #10121d;
  --gw-panel-2: #161927;
  --gw-panel-3: #1c2031;
  --gw-text: #f2f1ec;
  --gw-muted: #b6b7b1;
  --gw-dim: #92958f;
  --gw-line: rgba(230, 225, 210, .1);
  --gw-line-strong: rgba(230, 225, 210, .2);
  --gw-accent: #37d6c4;
  --gw-accent-soft: rgba(55, 214, 196, .12);
  --gw-accent-line: rgba(55, 214, 196, .4);
  --gw-accent-deep: #0f766e;
  --gw-danger: #f08a7e;
  --gw-surface: linear-gradient(180deg, var(--gw-panel-2), var(--gw-panel));
  --gw-edge: inset 0 1px 0 rgba(255, 255, 255, .05);
  --gw-lift: 0 1px 0 rgba(255, 255, 255, .03), 0 24px 48px -24px rgba(0, 0, 0, .6);
  --gw-wrap: min(1160px, calc(100vw - 48px));
  --gw-sans: "Figtree", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --gw-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

/* Base */
.gateway-page { margin: 0; min-width: 320px; color: var(--gw-text); background: var(--gw-bg); font-family: var(--gw-sans); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.gateway-page *, .gateway-page *::before, .gateway-page *::after { box-sizing: border-box; }
.gateway-page a { color: inherit; text-decoration: none; }
.gateway-page button { font: inherit; }
.gateway-page [hidden] { display: none !important; }
.gateway-page h1, .gateway-page h2, .gateway-page h3 { margin: 0; color: #fff; font-weight: 600; letter-spacing: -.02em; }
.gateway-page svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gateway-wrap { width: var(--gw-wrap); margin-inline: auto; }

/* Header */
.gateway-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 32px; width: 100%; min-height: 64px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); background: rgba(7, 8, 15, .78); border-bottom: 1px solid transparent; backdrop-filter: blur(14px) saturate(140%); transition: border-color .2s ease, background .2s ease; }
.gateway-header.is-scrolled { background: rgba(7, 8, 15, .9); border-color: var(--gw-line); }
.gateway-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; white-space: nowrap; }
.gateway-brand img { width: 28px; height: 28px; object-fit: contain; }
.gateway-brand span { font-size: 15px; font-weight: 700; }
.gateway-brand b { color: var(--gw-accent); font-weight: 500; }
.gateway-nav { display: flex; gap: 28px; margin-left: auto; color: var(--gw-muted); font-size: 14px; }
.gateway-nav a, .gateway-text-link { transition: color .15s ease; }
.gateway-nav a:hover, .gateway-text-link:hover { color: #fff; }
.gateway-header-actions { display: flex; align-items: center; gap: 20px; }
.gateway-text-link { color: var(--gw-muted); font-size: 14px; }
.gateway-menu-toggle, .gateway-mobile-nav { display: none; }
.gateway-github-link { display: inline-flex; align-items: center; gap: 7px; }
.gateway-page .gateway-github-icon { width: 16px; height: 16px; flex: none; fill: currentColor; stroke: none; }
.gateway-button .gateway-github-icon { margin-right: 8px; }

/* Buttons */
.gateway-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; color: #04120f; background: linear-gradient(180deg, #4fe3d2, #2cc0ae); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -8px rgba(55, 214, 196, .5); font-size: 14px; font-weight: 600; transition: transform .15s ease, filter .15s ease; }
.gateway-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.gateway-button-small { min-height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; }
.gateway-button-ghost { color: var(--gw-text); background: rgba(255, 255, 255, .03); border-color: var(--gw-line-strong); box-shadow: var(--gw-edge); }
.gateway-button-ghost:hover { background: rgba(255, 255, 255, .06); filter: none; }

/* Shared section type */
.gateway-kicker { display: inline-block; margin: 0 0 18px; padding: 4px 10px; color: var(--gw-accent); background: var(--gw-accent-soft); border: 1px solid rgba(55, 214, 196, .22); border-radius: 999px; font-family: var(--gw-mono); font-size: 12px; letter-spacing: .04em; }
.gateway-section { padding: 120px 0; }
.gateway-section-alt { background: var(--gw-bg-soft); border-block: 1px solid var(--gw-line); }
.gateway-section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.gateway-section-head h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.22; }
.gateway-section-head > p:last-child { margin: 18px 0 0; color: var(--gw-muted); font-size: 16px; text-wrap: balance; word-break: keep-all; }

/* Hero: a soft top light and a fading grid give the first screen depth */
.gateway-hero { position: relative; padding: 112px 0 120px; overflow: hidden; text-align: center; isolation: isolate; }
.gateway-hero::before { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--gw-line) 1px, transparent 1px), linear-gradient(90deg, var(--gw-line) 1px, transparent 1px); background-size: 56px 56px; content: ""; mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%); }
.gateway-hero::after { position: absolute; top: -320px; left: 50%; z-index: -1; width: 1100px; height: 640px; background: radial-gradient(closest-side, rgba(55, 214, 196, .16), transparent); content: ""; transform: translateX(-50%); }
.gateway-hero h1 { font-size: clamp(38px, 6.2vw, 72px); line-height: 1.12; letter-spacing: -.035em; }
.gateway-hero h1 em { font-style: normal; background: linear-gradient(90deg, #7ff0e2, var(--gw-accent) 60%, #2fb3a5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gateway-lede { max-width: 600px; margin: 26px auto 0; color: var(--gw-muted); font-size: 18px; text-wrap: balance; word-break: keep-all; }
.gateway-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }

/* Hero console */
.gateway-console { max-width: 1000px; margin: 76px auto 0; overflow: hidden; text-align: left; background: var(--gw-panel); border: 1px solid var(--gw-line-strong); border-radius: 14px; box-shadow: var(--gw-edge), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .015); }
.gateway-console-bar { display: flex; align-items: center; gap: 14px; min-height: 42px; padding: 0 16px; color: var(--gw-muted); background: var(--gw-panel-2); border-bottom: 1px solid var(--gw-line); font-size: 13px; }
.gateway-console-bar small { margin-left: auto; color: var(--gw-dim); font-size: 12px; }
.gateway-console-dots { display: flex; gap: 6px; }
.gateway-console-dots i { width: 10px; height: 10px; background: var(--gw-panel-3); border: 1px solid var(--gw-line-strong); border-radius: 50%; }
.gateway-console-body { display: grid; grid-template-columns: 400px minmax(0, 1fr); }
.gateway-console-request { border-right: 1px solid var(--gw-line); }
.gateway-console-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 0; color: var(--gw-dim); font-size: 12px; }
.gateway-console-head button { padding: 3px 10px; color: var(--gw-muted); background: var(--gw-panel-2); border: 1px solid var(--gw-line); border-radius: 6px; cursor: pointer; font-size: 12px; }
.gateway-console-head button:hover { color: #fff; }
.gateway-console pre { margin: 0; padding: 14px 18px 22px; overflow-x: auto; color: #d9ece9; font-family: var(--gw-mono); font-size: 12px; line-height: 1.9; white-space: pre; }
.gateway-command-muted { color: var(--gw-dim); }
.gateway-command-string { color: #9fdcc0; }
.gateway-console table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12.5px; }
.gateway-console th { padding: 8px 14px; color: var(--gw-dim); font-weight: 400; text-align: left; border-bottom: 1px solid var(--gw-line); }
.gateway-console td { padding: 10px 14px; color: var(--gw-text); border-bottom: 1px solid var(--gw-line); white-space: nowrap; }
.gateway-console tr:last-child td { border-bottom: 0; }
.gateway-console tbody tr:first-child td { background: rgba(55, 214, 196, .05); }
td.gateway-col-time, td.gateway-col-latency { color: var(--gw-muted); font-family: var(--gw-mono); }
td.gateway-col-target { color: #cfe3e0; font-family: var(--gw-mono); }
.gateway-status { display: inline-block; padding: 1px 8px; color: var(--gw-accent); background: var(--gw-accent-soft); border-radius: 999px; font-family: var(--gw-mono); font-size: 11.5px; }
.gateway-status.is-denied { color: var(--gw-danger); background: rgba(240, 138, 126, .12); }

/* Capabilities: bento grid, the first card spans two columns */
.gateway-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gateway-feature { display: flex; flex-direction: column; padding: 28px; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: 16px; box-shadow: var(--gw-edge); transition: border-color .2s ease, transform .2s ease; }
.gateway-feature:hover { border-color: var(--gw-line-strong); transform: translateY(-2px); }
.gateway-feature-wide { grid-column: span 2; }
.gateway-feature-icon { display: grid; flex: none; width: 40px; height: 40px; place-items: center; margin-bottom: 22px; color: var(--gw-accent); background: var(--gw-accent-soft); border: 1px solid rgba(55, 214, 196, .24); border-radius: 10px; }
.gateway-feature-icon svg { width: 20px; height: 20px; }
.gateway-feature h3 { font-size: 19px; line-height: 1.35; }
.gateway-feature p { margin: 10px 0 0; color: var(--gw-muted); font-size: 15px; }
.gateway-visual { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--gw-line); font-family: var(--gw-mono); font-size: 12.5px; flex: 1; display: grid; align-content: end; }
.gateway-route { grid-template-columns: auto minmax(16px, 1fr) auto minmax(16px, 1fr) auto; align-items: center; gap: 0; }
.gateway-route-node { padding: 9px 12px; color: var(--gw-text); background: var(--gw-panel-3); border: 1px solid var(--gw-line-strong); border-radius: 8px; white-space: nowrap; }
.gateway-route-policy { color: var(--gw-accent); border-color: var(--gw-accent-line); }
.gateway-route-link { height: 1px; background: var(--gw-line-strong); }
.gateway-route-targets { display: grid; gap: 6px; }
.gateway-route-targets b { padding: 6px 12px; color: var(--gw-muted); border: 1px solid var(--gw-line); border-radius: 7px; font-weight: 400; text-align: center; }
.gateway-route-targets .is-active { color: var(--gw-accent); background: var(--gw-accent-soft); border-color: var(--gw-accent-line); }
.gateway-checks div { display: flex; justify-content: space-between; padding: 8px 0; }
.gateway-checks span { color: var(--gw-muted); }
.gateway-checks b { color: var(--gw-accent); font-weight: 400; }
.gateway-checks b::before { margin-right: 6px; content: "✓"; }
.gateway-trace { gap: 10px; }
.gateway-trace div { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; }
.gateway-trace span { color: var(--gw-muted); }
.gateway-trace i { position: relative; height: 8px; background: var(--gw-panel-3); border-radius: 4px; }
.gateway-trace i::after { position: absolute; top: 0; bottom: 0; left: var(--from); right: calc(100% - var(--to)); min-width: 4px; background: var(--gw-accent); border-radius: 4px; content: ""; }
.gateway-code span { margin-bottom: 8px; color: var(--gw-dim); }
.gateway-code code { color: #c8dcd9; font: inherit; line-height: 1.9; }
.gateway-cost { grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 20px; }
.gateway-cost small { display: block; color: var(--gw-dim); font-size: 11.5px; }
.gateway-cost strong { display: block; margin-top: 6px; color: #fff; font-family: var(--gw-sans); font-size: 24px; font-weight: 600; }
.gateway-cost-bars { display: flex; align-items: end; justify-content: space-between; height: 64px; }
.gateway-cost-bars i { width: 10%; height: var(--bar); background: linear-gradient(180deg, var(--gw-accent), rgba(55, 214, 196, .25)); border-radius: 3px 3px 0 0; }

/* Getting started: numbered nodes joined by a line */
.gateway-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gateway-steps::before { position: absolute; top: 47px; right: calc(100% / 6); left: calc(100% / 6); height: 1px; background: linear-gradient(90deg, var(--gw-accent-line), var(--gw-line-strong)); content: ""; }
.gateway-steps li { position: relative; padding: 28px; text-align: center; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: 16px; box-shadow: var(--gw-edge); }
.gateway-step-number { position: relative; z-index: 1; display: grid; width: 40px; height: 40px; place-items: center; margin: 0 auto 22px; color: var(--gw-accent); background: var(--gw-panel); border: 1px solid var(--gw-accent-line); border-radius: 50%; font-family: var(--gw-mono); font-size: 14px; }
.gateway-steps h3 { font-size: 19px; }
.gateway-steps p { margin: 10px 0 0; color: var(--gw-muted); font-size: 15px; }
.gateway-step-link { display: inline-block; margin-top: 14px; color: var(--gw-accent); font-family: var(--gw-mono); font-size: 13px; }
.gateway-step-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Integrations */
.gateway-integrations { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.gateway-integration { padding: 26px; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: 16px; box-shadow: var(--gw-edge); }
.gateway-integration header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.gateway-integration .gateway-feature-icon { margin: 0; }
.gateway-integration h3 { font-size: 17px; }
.gateway-integration ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gateway-integration li { padding: 5px 11px; color: #d8dcd8; background: var(--gw-panel-3); border: 1px solid var(--gw-line); border-radius: 7px; font-size: 13px; }

/* Footer */
.gateway-footer { border-top: 1px solid var(--gw-line); }
.gateway-footer-inner { display: flex; justify-content: space-between; gap: 48px; padding: 56px 0; }
.gateway-footer-brand p { margin: 14px 0 0; color: var(--gw-dim); font-size: 13px; }
.gateway-footer-brand p span { display: block; margin-top: 6px; }
.gateway-footer-brand p span a { color: var(--gw-accent); }
.gateway-footer-links { display: flex; gap: 72px; }
.gateway-footer-links div { display: flex; flex-direction: column; gap: 10px; }
.gateway-footer-links strong { margin-bottom: 4px; color: var(--gw-text); font-size: 13px; font-weight: 600; }
.gateway-footer-links a { color: var(--gw-dim); font-size: 13px; transition: color .15s ease; }
.gateway-footer-links a:hover { color: var(--gw-text); }
.gateway-footer-bottom { padding: 18px 0 28px; color: var(--gw-dim); border-top: 1px solid var(--gw-line); font-size: 12px; }

@media (max-width: 960px) {
  .gateway-nav, .gateway-header-actions { display: none; }
  .gateway-menu-toggle { display: grid; gap: 6px; margin-left: auto; padding: 10px 6px; background: none; border: 0; cursor: pointer; }
  .gateway-menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--gw-text); transition: transform .2s ease; }
  .gateway-header.is-menu-open .gateway-menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .gateway-header.is-menu-open .gateway-menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .gateway-mobile-nav { position: sticky; top: 64px; z-index: 49; display: grid; padding: 8px 24px 16px; background: var(--gw-bg); border-bottom: 1px solid var(--gw-line); }
  .gateway-mobile-nav a { padding: 12px 0; color: var(--gw-muted); font-size: 15px; }

  .gateway-console-body { grid-template-columns: minmax(0, 1fr); }
  .gateway-console-request { border-right: 0; border-bottom: 1px solid var(--gw-line); }

  .gateway-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gateway-integrations { grid-template-columns: minmax(0, 1fr); }
  .gateway-steps { grid-template-columns: minmax(0, 1fr); }
  .gateway-steps::before { display: none; }
  .gateway-footer-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  :root { --gw-wrap: calc(100vw - 32px); }
  .gateway-header { padding: 0 16px; }
  .gateway-mobile-nav { padding-inline: 16px; }
  .gateway-section { padding: 84px 0; }
  .gateway-section-head { margin-bottom: 40px; }
  .gateway-section-head > p:last-child, .gateway-lede { font-size: 15px; }
  .gateway-hero { padding: 72px 0 84px; }
  .gateway-hero h1 { font-size: 32px; }
  .gateway-console { margin-top: 52px; }
  .gateway-console-bar > span:nth-child(2) { font-size: 12px; }
  .gateway-col-time, .gateway-col-target { display: none; }
  .gateway-console th, .gateway-console td { padding-inline: 14px; }
  .gateway-features { grid-template-columns: minmax(0, 1fr); }
  .gateway-feature-wide { grid-column: auto; }
  .gateway-feature { padding: 22px; }
  .gateway-route { grid-template-columns: minmax(0, 1fr); gap: 8px; text-align: center; }
  .gateway-route-link { width: 1px; height: 12px; justify-self: center; }
  .gateway-route-targets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gateway-route-targets b { padding-inline: 4px; }
  .gateway-footer-links { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .gateway-page *, .gateway-page *::before, .gateway-page *::after { transition-duration: .01ms !important; }
}

/* Clawee editorial system: a warmer, more authored layer for the gateway page. */
:root {
  --gw-bg: #0b100f;
  --gw-bg-soft: #111816;
  --gw-panel: #151d1a;
  --gw-panel-2: #1a2420;
  --gw-panel-3: #23302a;
  --gw-text: #f4f0e6;
  --gw-muted: #adb4aa;
  --gw-dim: #788279;
  --gw-line: rgba(244, 240, 230, .12);
  --gw-line-strong: rgba(244, 240, 230, .27);
  --gw-accent: #37d6c4;
  --gw-accent-soft: rgba(55, 214, 196, .12);
  --gw-accent-line: rgba(55, 214, 196, .48);
  --gw-accent-deep: #0f766e;
  --gw-teal: #8eeadd;
  --gw-danger: #ef9184;
  --gw-surface: #151d1a;
  --gw-edge: inset 0 1px 0 rgba(255, 255, 255, .06);
  --gw-lift: 0 24px 56px -32px rgba(0, 0, 0, .84);
  --gw-wrap: min(1240px, calc(100vw - 64px));
  --gw-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --gw-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.gateway-page {
  background-color: var(--gw-bg);
  background-image: radial-gradient(circle at 12% 0%, rgba(55, 214, 196, .08), transparent 24rem), radial-gradient(circle at 92% 20%, rgba(142, 234, 221, .07), transparent 28rem);
}

.gateway-page h1, .gateway-page h2, .gateway-page h3 { letter-spacing: -.04em; }
.gateway-header { display: grid; grid-template-columns: 1fr auto 1fr; width: min(800px, calc(100vw - 64px)); min-height: 72px; margin-inline: auto; padding-inline: 0; background: rgba(11, 16, 15, .82); border-bottom-color: var(--gw-line); }
.gateway-header .gateway-nav { margin-left: 0; }
.gateway-header-actions, .gateway-menu-toggle { justify-self: end; }
.gateway-header::before { position: absolute; inset: 0 -100vw; z-index: -1; background: #0b100f; content: ""; pointer-events: none; }
.gateway-header, .gateway-header.is-scrolled { border-bottom: 0; }
.gateway-header.is-scrolled { background: rgba(11, 16, 15, .96); }
.gateway-brand { gap: 10px; }
.gateway-brand img { width: 26px; height: 26px; }
.gateway-brand span { font-size: 16px; letter-spacing: -.025em; }
.gateway-brand b { color: var(--gw-accent); }
.gateway-nav { gap: 32px; color: #c9cbc4; font-size: 13px; }
.gateway-nav a { position: relative; }
.gateway-nav a::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 1px; background: var(--gw-accent); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.gateway-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.gateway-header-actions { gap: 24px; }
.gateway-text-link { font-size: 13px; }

.gateway-page .gateway-button { min-height: 46px; padding-inline: 20px; color: #000; background: var(--gw-accent); border: 1px solid var(--gw-accent); border-radius: 6px; box-shadow: 0 12px 26px -16px rgba(55, 214, 196, .85); font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.gateway-button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.gateway-button-small { min-height: 36px; padding-inline: 16px; border-radius: 5px; font-size: 12px; }
.gateway-page .gateway-button-ghost { color: var(--gw-text); background: transparent; border-color: var(--gw-line-strong); box-shadow: none; }
.gateway-page .gateway-button-ghost:hover { color: #fff; background: rgba(244, 240, 230, .06); }

.gateway-hero { padding: 112px 0 104px; text-align: center; }
.gateway-hero::before { background-size: 72px 72px; opacity: .7; mask-image: linear-gradient(to bottom, #000 0%, transparent 76%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 76%); }
.gateway-hero::after { top: -300px; width: 980px; height: 620px; background: radial-gradient(closest-side, rgba(106, 215, 197, .11), transparent 68%); }
.gateway-hero-spotlight { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(142, 234, 221, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 234, 221, .45) 1px, transparent 1px); background-size: 72px 72px; opacity: 0; transition: opacity .25s ease; mask-image: radial-gradient(circle 240px at var(--gateway-pointer-x, 50%) var(--gateway-pointer-y, 32%), #000 0%, transparent 78%); -webkit-mask-image: radial-gradient(circle 240px at var(--gateway-pointer-x, 50%) var(--gateway-pointer-y, 32%), #000 0%, transparent 78%); }
.gateway-hero.is-pointer-active .gateway-hero-spotlight { opacity: .95; }
.gateway-hero .gateway-wrap { position: relative; z-index: 1; display: block; }
.gateway-hero h1 { max-width: 1000px; margin-inline: auto; font-size: clamp(48px, 6vw, 80px); line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; word-break: keep-all; }
.gateway-hero h1 em { color: var(--gw-accent); background: none; -webkit-text-fill-color: currentColor; }
.gateway-hero h1 em::after { display: block; width: 92px; height: 3px; margin: 20px auto 0; background: var(--gw-teal); content: ""; }
.gateway-lede { max-width: 680px; margin: 30px auto 0; color: var(--gw-muted); font-size: 16px; line-height: 1.8; }
.gateway-hero-actions { justify-content: center; margin: 36px auto 0; }
.gateway-install-command { display: flex; align-items: center; gap: 12px; max-width: 700px; margin: 30px auto 0; padding: 14px 16px; text-align: left; background: rgba(11, 16, 15, .82); border: 1px solid var(--gw-line-strong); border-radius: 8px; box-shadow: var(--gw-edge); }
.gateway-install-command > span { flex: none; color: var(--gw-accent); font-family: var(--gw-mono); font-size: 12px; }
.gateway-install-command code { flex: 1; min-width: 0; color: var(--gw-text); font-family: var(--gw-mono); font-size: 12px; line-height: 1.8; white-space: normal; overflow-wrap: anywhere; scrollbar-width: none; }
.gateway-install-command code::-webkit-scrollbar { display: none; }
.gateway-install-command button { flex: none; padding: 5px 10px; color: var(--gw-muted); background: var(--gw-panel-2); border: 1px solid var(--gw-line); border-radius: 5px; cursor: pointer; font: inherit; font-size: 11px; }
.gateway-install-command button:hover { color: var(--gw-accent); border-color: var(--gw-accent-line); }
.gateway-kicker-link { color: inherit; }
.gateway-console { width: 100%; max-width: 1000px; margin: 76px auto 0; transform: none; border-color: rgba(55, 214, 196, .3); border-radius: 8px; box-shadow: var(--gw-edge), 0 46px 100px -42px rgba(0, 0, 0, .9), 0 0 0 1px rgba(142, 234, 221, .08); animation: none; }
.gateway-console-bar { min-height: 44px; padding-inline: 18px; background: #17211d; border-bottom-color: var(--gw-line-strong); }
.gateway-console-dots i:first-child { background: var(--gw-accent); border-color: var(--gw-accent); }
.gateway-console-dots i:nth-child(2) { background: var(--gw-teal); border-color: var(--gw-teal); }
.gateway-console-head { color: var(--gw-dim); }
.gateway-console-head button { color: var(--gw-accent); background: transparent; border-color: var(--gw-accent-line); }
.gateway-console tbody tr:first-child td { background: rgba(106, 215, 197, .06); }
.gateway-status { color: var(--gw-teal); background: rgba(106, 215, 197, .12); }

.gateway-section { padding: 150px 0; }
.gateway-section-alt { background: rgba(17, 24, 22, .72); border-block-color: var(--gw-line); }
.gateway-section-head { display: grid; grid-template-columns: minmax(0, .85fr) minmax(260px, .7fr); align-items: end; gap: 72px; max-width: none; margin: 0 0 68px; text-align: left; }
.gateway-section-head h2 { max-width: 630px; font-size: clamp(38px, 4.5vw, 64px); line-height: 1.02; }
.gateway-section-head > p:last-child { max-width: 420px; margin: 0 0 5px; color: var(--gw-muted); font-size: 15px; line-height: 1.8; }

#architecture.gateway-section { padding: 104px 0; }
#architecture > .gateway-section-head { display: block; max-width: 1000px; margin: 0 auto 46px; text-align: center; }
#architecture > .gateway-section-head h2 { max-width: none; margin-inline: auto; font-size: clamp(34px, 3.5vw, 48px); text-align: center; white-space: nowrap; }
#architecture > .gateway-section-head > p:last-child { max-width: 640px; margin: 18px auto 0; }

.gateway-map { --map-gap: 104px; position: relative; display: grid; grid-template-columns: minmax(150px, .8fr) minmax(250px, 1fr) minmax(150px, .8fr); align-items: center; gap: var(--map-gap); padding: 30px 0; border-block: 1px solid var(--gw-line-strong); }
.gateway-map-sources, .gateway-map-core, .gateway-map-destinations { position: relative; z-index: 1; }
.gateway-map-connections { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.gateway-map.has-connections .gateway-map-source::before, .gateway-map.has-connections .gateway-map-source::after, .gateway-map.has-connections .gateway-map-target::before { display: none; }
.gateway-map-connection-base { fill: none; stroke: rgba(55, 214, 196, .2); stroke-width: 1; }
.gateway-map-connection-flow { fill: none; stroke: var(--gw-teal); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 18 142; filter: drop-shadow(0 0 3px rgba(55, 214, 196, .65)); animation: gateway-map-dash 3.2s linear infinite; }
.gateway-map-sources { display: grid; gap: 14px; }
.gateway-map-column-title { margin-bottom: 4px; color: var(--gw-dim); font-family: var(--gw-mono); font-size: 10px; letter-spacing: .08em; }
.gateway-map-source { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; background: var(--gw-panel); border: 1px solid var(--gw-line); border-radius: 7px; }
.gateway-map-source::after { position: absolute; top: calc(50% - 1px); left: 100%; width: var(--map-gap); height: 2px; background-image: linear-gradient(90deg, transparent, rgba(142, 234, 221, .95), transparent), linear-gradient(90deg, rgba(55, 214, 196, .08), rgba(55, 214, 196, .24)); background-repeat: no-repeat; background-size: 45% 100%, 100% 100%; content: ""; filter: drop-shadow(0 0 3px rgba(55, 214, 196, .3)); animation: gateway-map-flow 2.2s linear infinite; }
.gateway-map-source::before { position: absolute; top: calc(50% - 3px); left: calc(100% + var(--map-gap) - 3px); z-index: 1; width: 6px; height: 6px; background: var(--gw-accent); border-radius: 50%; content: ""; opacity: .7; animation: gateway-map-node-pulse 2.2s ease-in-out infinite; }
.gateway-map-source:nth-child(2)::before, .gateway-map-source:nth-child(2)::after { animation-delay: -.2s; }
.gateway-map-source:nth-child(3)::before, .gateway-map-source:nth-child(3)::after { animation-delay: -.7s; }
.gateway-map-source:nth-child(4)::before, .gateway-map-source:nth-child(4)::after { animation-delay: -1.2s; }
.gateway-map-source:nth-child(5)::before, .gateway-map-source:nth-child(5)::after { animation-delay: -1.7s; }
.gateway-map-icon { display: grid; flex: none; width: 34px; height: 34px; place-items: center; color: var(--gw-muted); background: var(--gw-panel-3); border: 1px solid var(--gw-line); border-radius: 6px; }
.gateway-map-icon svg { width: 18px; height: 18px; }
.gateway-map-source strong, .gateway-map-entry strong { display: block; font-size: 14px; font-weight: 500; }
.gateway-map-source small, .gateway-map-entry small { display: block; margin-top: 3px; color: var(--gw-dim); font-size: 11px; line-height: 1.4; }
.gateway-map-source-catalog { display: block; min-height: 0; padding: 18px; }
.gateway-map-source-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.gateway-map-agent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
.gateway-map-agent-grid > span { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.gateway-map-agent-grid img { width: 28px; height: 28px; object-fit: contain; }
.gateway-map-agent-grid img[src*="logo-v2-white-logo.png"] { transform: scale(1.35); }
.gateway-map-agent-grid small { margin: 0; color: var(--gw-dim); font-size: 9px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.gateway-map-agent-grid img[src*="gateway-moonshot.svg"], .gateway-map-agent-grid img[src*="gateway-cursor.svg"], .gateway-map-agent-grid img[src*="gateway-anthropic.svg"], .gateway-map-agent-grid img[src*="opencreator.svg"] { filter: brightness(0) invert(1) opacity(.9); }
.gateway-map-source > div { min-width: 0; }
.gateway-map-agent-logos { display: flex; flex: none; align-items: center; gap: 8px; margin-left: auto; padding-left: 8px; }
.gateway-map-agent-logos img { display: block; width: 28px; height: 28px; object-fit: contain; }
.gateway-map-agent-logos img[src*="gateway-moonshot.svg"], .gateway-map-agent-logos img[src*="gateway-cursor.svg"], .gateway-map-agent-logos img[src*="gateway-anthropic.svg"] { filter: invert(1) opacity(.82); }
.gateway-map-agent-logos img[src*="opencode.png"] { border-radius: 6px; }
.gateway-map-core { position: relative; width: 100%; max-width: 360px; justify-self: center; padding: 18px; background: radial-gradient(circle at 50% 0%, rgba(55, 214, 196, .12), transparent 58%), var(--gw-panel); border: 1px solid var(--gw-accent-line); border-radius: 10px; box-shadow: 0 0 0 7px rgba(55, 214, 196, .02), var(--gw-lift); }
.gateway-map-core-title { display: flex; align-items: center; gap: 10px; margin-top: 0; font-size: 22px; letter-spacing: -.04em; }
.gateway-map-core-title img { width: 26px; height: 26px; }
.gateway-map-entries { display: grid; gap: 8px; }
.gateway-map-entry { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(55, 214, 196, .035); border: 1px solid rgba(55, 214, 196, .22); border-radius: 6px; }
.gateway-map-entry-icon { display: grid; flex: none; width: 34px; height: 34px; place-items: center; color: var(--gw-accent); background: var(--gw-accent-soft); border: 1px solid var(--gw-accent-line); border-radius: 5px; font-family: var(--gw-mono); font-size: 9px; }
.gateway-map-entry strong { font-size: 13px; }
.gateway-map-entry small { margin-top: 2px; font-size: 10px; }
.gateway-map-destinations { display: grid; gap: 18px; }
.gateway-map-group { display: grid; gap: 7px; }
.gateway-map-group-models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gateway-map-group-models h3 { grid-column: 1 / -1; }
.gateway-map-group-models .gateway-map-target { gap: 7px; padding-inline: 9px; }
.gateway-map-target-more { justify-content: center; color: var(--gw-accent); border-color: var(--gw-accent-line); font-size: 11px; text-align: center; }
.gateway-map-group h3 { margin: 0 0 2px; color: var(--gw-dim); font-family: var(--gw-mono); font-size: 10px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.gateway-map-group-business { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gateway-map-group-business h3 { grid-column: 1 / -1; }
.gateway-map-group-business .gateway-map-target { justify-content: center; padding-inline: 8px; }
.gateway-map-target { position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 12px; background: var(--gw-panel); border: 1px solid var(--gw-line); border-radius: 6px; }
.gateway-map-target::before { position: absolute; top: calc(50% - 1px); right: 100%; width: var(--map-gap); height: 2px; background-image: linear-gradient(90deg, transparent, rgba(142, 234, 221, .95), transparent), linear-gradient(90deg, rgba(55, 214, 196, .08), rgba(55, 214, 196, .24)); background-repeat: no-repeat; background-size: 45% 100%, 100% 100%; content: ""; filter: drop-shadow(0 0 3px rgba(55, 214, 196, .3)); animation: gateway-map-flow 2.2s linear infinite; }
.gateway-map-target:nth-child(2)::before { animation-delay: -.5s; }
.gateway-map-target:nth-child(3)::before { animation-delay: -1s; }
.gateway-map-target:nth-child(4)::before { animation-delay: -1.5s; }
.gateway-map-target:nth-child(5)::before { animation-delay: -2s; }
.gateway-map-target img { width: 18px; height: 18px; object-fit: contain; }
.gateway-map-target span { color: var(--gw-text); font-size: 12px; }
.gateway-map-target img[src*="gateway-openai.svg"], .gateway-map-target img[src*="gateway-anthropic.svg"], .gateway-map-target img[src*="gateway-mcp.svg"], .gateway-map-target img[src*="gateway-moonshot.svg"], .gateway-map-target img[src*="agent-grok.svg"] { filter: brightness(0) invert(1) opacity(.9); }
.gateway-map-caption { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; margin: 10px 0 16px; padding-top: 0; color: var(--gw-dim); border-top: 0; font-size: 10px; }
.gateway-map-caption span { display: inline-flex; align-items: center; gap: 8px; }
.gateway-map-caption span::before { width: 5px; height: 5px; background: var(--gw-accent); border-radius: 50%; content: ""; opacity: .7; }

.gateway-features { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.gateway-feature, .gateway-feature-wide { grid-column: span 4; min-height: 310px; padding: 28px; background: var(--gw-panel); border: 1px solid var(--gw-line); border-radius: 6px; box-shadow: none; }
.gateway-feature-wide { grid-column: span 7; }
.gateway-feature:nth-child(2) { grid-column: span 5; }
.gateway-feature:nth-child(3), .gateway-feature:nth-child(4), .gateway-feature:nth-child(5) { grid-column: span 4; }
.gateway-feature:hover { border-color: var(--gw-accent-line); transform: translateY(-3px); }
.gateway-feature-icon { width: 38px; height: 38px; margin-bottom: 26px; color: var(--gw-accent); background: transparent; border: 1px solid var(--gw-accent-line); border-radius: 50%; }
.gateway-feature h3 { font-size: 20px; }
.gateway-feature p { color: var(--gw-muted); font-size: 14px; line-height: 1.75; }
.gateway-visual { border-top-color: var(--gw-line-strong); }
.gateway-route-node { background: transparent; border-color: var(--gw-line-strong); border-radius: 4px; }
.gateway-route-policy { color: var(--gw-accent); border-color: var(--gw-accent-line); }
.gateway-route-targets b { border-radius: 4px; }
.gateway-cost strong { color: var(--gw-accent); }
.gateway-cost-bars i { background: var(--gw-teal); border-radius: 1px 1px 0 0; }

#start-title { font-size: clamp(36px, 4vw, 56px); white-space: nowrap; }
.gateway-steps { gap: 0; border-top: 1px solid var(--gw-line-strong); }
.gateway-steps::before { top: -1px; right: 66.66%; left: 33.33%; background: var(--gw-accent); }
.gateway-steps li { min-height: 256px; padding: 30px 34px 32px 0; text-align: left; background: transparent; border: 0; border-right: 1px solid var(--gw-line); border-radius: 0; box-shadow: none; }
.gateway-steps li + li { padding-left: 34px; }
.gateway-steps li:last-child { border-right: 0; }
.gateway-step-number { width: auto; height: auto; justify-content: start; margin: 0 0 48px; color: var(--gw-accent); background: transparent; border: 0; border-radius: 0; font-size: 16px; }
.gateway-steps h3 { font-size: 22px; }
.gateway-steps p { max-width: 290px; color: var(--gw-muted); font-size: 14px; line-height: 1.75; }
.gateway-step-link { color: var(--gw-accent); }

.gateway-integration-lanes { border-top: 1px solid var(--gw-line-strong); }
.gateway-integration-lane { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--gw-line); }
.gateway-integration-lane-label strong { display: block; font-size: 18px; font-weight: 500; }
.gateway-integration-lane-label span { display: block; margin-top: 5px; color: var(--gw-dim); font-family: var(--gw-mono); font-size: 10px; }
.gateway-integration-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.gateway-integration-sequence { display: flex; gap: 10px; width: max-content; }
.gateway-integration-sequence.is-cloned { animation: gateway-integration-scroll 32s linear infinite; }
.gateway-integration-sequence.is-reverse.is-cloned { animation-direction: reverse; }
.gateway-integration-track:hover .gateway-integration-sequence { animation-play-state: paused; }
.gateway-integration-chip { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 42px; padding: 0 12px; color: var(--gw-muted); background: var(--gw-panel); border: 1px solid var(--gw-line); border-radius: 6px; white-space: nowrap; }
.gateway-integration-chip img { width: 22px; height: 22px; object-fit: contain; }
.gateway-integration-chip span { font-size: 11px; }
.gateway-integration-chip img[src*="gateway-moonshot.svg"], .gateway-integration-chip img[src*="gateway-cursor.svg"], .gateway-integration-chip img[src*="gateway-anthropic.svg"], .gateway-integration-chip img[src*="opencreator.svg"], .gateway-integration-chip img[src*="gateway-openai.svg"] { filter: brightness(0) invert(1) opacity(.9); }

#integrations.gateway-section-alt { border-bottom: 0; }
.gateway-bottom-cta { margin-bottom: 104px; padding: 56px 32px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(55, 214, 196, .16), transparent 68%), var(--gw-panel); border: 1px solid var(--gw-accent-line); border-radius: 12px; box-shadow: var(--gw-lift); }
.gateway-bottom-cta h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }
.gateway-bottom-cta > p { margin: 16px auto 0; color: var(--gw-muted); font-size: 15px; }
.gateway-bottom-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.gateway-footer { border-top-color: var(--gw-line-strong); }
.gateway-footer-inner { padding: 72px 0 64px; }
.gateway-footer-links { gap: 58px; }
.gateway-footer-links strong { font-family: var(--gw-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.gateway-footer-bottom { padding-bottom: 30px; border-top-color: var(--gw-line); }

.gateway-console-showcase { margin-top: 0; }
.gateway-console-intro { max-width: 700px; margin-bottom: 28px; }
.gateway-console-intro h3 { font-size: 24px; line-height: 1.35; letter-spacing: -.03em; }
.gateway-console-intro p { margin: 10px 0 0; color: var(--gw-muted); font-size: 14px; line-height: 1.75; }
.gateway-console-showcase .gateway-console-tabs { margin-top: 0; }
.gateway-console-tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 56px auto 0; padding: 5px; background: var(--gw-panel); border: 1px solid var(--gw-line); border-radius: 8px; }
.gateway-console-tabs button { padding: 9px 18px; color: var(--gw-dim); background: transparent; border: 1px solid transparent; border-radius: 5px; cursor: pointer; font: inherit; font-size: 13px; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.gateway-console-tabs button:hover { color: var(--gw-text); }
.gateway-console-tabs button.is-active { color: var(--gw-accent); background: var(--gw-accent-soft); border-color: var(--gw-accent-line); }
.gateway-console-tabs + .gateway-console { margin-top: 20px; }
.gateway-console-body { min-height: 300px; }
.gateway-console-policy { display: grid; gap: 10px; padding: 20px 18px; }
.gateway-console-policy > div { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 14px; background: rgba(255, 255, 255, .018); border: 1px solid var(--gw-line); border-radius: 5px; }
.gateway-console-policy span { color: var(--gw-dim); font-size: 12px; }
.gateway-console-policy strong { color: var(--gw-text); font-family: var(--gw-mono); font-size: 12px; font-weight: 400; }
.gateway-console-policy b { color: var(--gw-accent); font-size: 11px; font-weight: 400; }
.gateway-console-metrics { display: grid; gap: 24px; padding: 26px 22px; }
.gateway-console-metrics > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--gw-line); }
.gateway-console-metrics > div:last-child { padding-bottom: 0; border-bottom: 0; }
.gateway-console-metrics small { color: var(--gw-dim); font-size: 12px; }
.gateway-console-metrics strong { color: var(--gw-text); font-size: 26px; font-weight: 500; letter-spacing: -.04em; }
.gateway-console-cost-chart { display: flex; align-items: end; gap: 12px; height: 196px; padding: 28px 24px 18px; }
.gateway-console-cost-chart i { flex: 1; height: var(--bar); background: linear-gradient(180deg, var(--gw-accent), rgba(55, 214, 196, .16)); border-radius: 3px 3px 0 0; }
.gateway-console-cost-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0 24px 22px; color: var(--gw-dim); font-size: 11px; }
.gateway-console-cost-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gateway-console-cost-legend i { width: 6px; height: 6px; background: var(--gw-accent); border-radius: 50%; opacity: .9; }
.gateway-console-cost-legend span:nth-child(2) i { opacity: .55; }
.gateway-console-cost-legend span:nth-child(3) i { opacity: .25; }

.gateway-comparison { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); align-items: stretch; }
#comparison-title { text-wrap: balance; word-break: keep-all; }
.gateway-comparison-card { padding: 36px; background: var(--gw-panel); border: 1px solid var(--gw-line); border-radius: 8px; }
.gateway-comparison-card.is-before { background: rgba(17, 24, 22, .45); }
.gateway-comparison-card.is-after { border-color: var(--gw-accent-line); box-shadow: inset 0 1px 0 rgba(142, 234, 221, .05); }
.gateway-comparison-label { color: var(--gw-dim); font-family: var(--gw-mono); font-size: 11px; letter-spacing: .06em; }
.gateway-comparison-card.is-after .gateway-comparison-label { color: var(--gw-accent); }
.gateway-comparison-card h3 { margin: 14px 0 24px; font-size: 23px; line-height: 1.4; }
.gateway-comparison-card ul { margin: 0; padding: 0; list-style: none; }
.gateway-comparison-card li { position: relative; padding: 13px 0 13px 26px; color: var(--gw-muted); border-top: 1px solid var(--gw-line); font-size: 14px; }
.gateway-comparison-card li::before { position: absolute; left: 0; color: var(--gw-danger); content: "×"; }
.gateway-comparison-card.is-after li::before { color: var(--gw-accent); content: "✓"; }
.gateway-comparison-bridge { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; color: var(--gw-dim); }
.gateway-comparison-bridge span { font-family: var(--gw-mono); font-size: 10px; line-height: 1.5; text-align: center; }
.gateway-comparison-bridge i { color: var(--gw-accent); font-size: 25px; font-style: normal; }

.gateway-flow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 48px; }
.gateway-flow-steps { display: grid; gap: 8px; }
.gateway-flow-steps button { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 14px; padding: 18px; color: var(--gw-text); text-align: left; background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font: inherit; transition: background .18s ease, border-color .18s ease; }
.gateway-flow-steps button:hover { background: rgba(255, 255, 255, .025); }
.gateway-flow-steps button.is-active { background: var(--gw-panel); border-color: var(--gw-accent-line); }
.gateway-flow-number { color: var(--gw-dim); font-family: var(--gw-mono); font-size: 12px; }
.gateway-flow-steps button.is-active .gateway-flow-number { color: var(--gw-accent); }
.gateway-flow-steps strong { display: block; font-size: 15px; font-weight: 500; }
.gateway-flow-steps small { display: block; margin-top: 5px; color: var(--gw-dim); font-size: 12px; line-height: 1.5; }
.gateway-flow-console { overflow: hidden; background: var(--gw-panel); border: 1px solid var(--gw-line-strong); border-radius: 8px; box-shadow: var(--gw-lift); }
.gateway-flow-console-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; color: var(--gw-dim); border-bottom: 1px solid var(--gw-line); font-family: var(--gw-mono); font-size: 11px; }
.gateway-flow-console-bar small { font: inherit; }
.gateway-flow-request { display: flex; align-items: center; gap: 12px; margin: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--gw-line); }
.gateway-flow-request > span { color: var(--gw-accent); font-family: var(--gw-mono); font-size: 11px; }
.gateway-flow-request strong { color: var(--gw-text); font-family: var(--gw-mono); font-size: 13px; font-weight: 400; }
.gateway-flow-request b { margin-left: auto; padding: 2px 8px; color: var(--gw-accent); background: var(--gw-accent-soft); border-radius: 999px; font-family: var(--gw-mono); font-size: 11px; font-weight: 400; }
.gateway-flow-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 24px 24px 30px; list-style: none; }
.gateway-flow-track li { position: relative; display: grid; justify-items: center; gap: 11px; color: var(--gw-dim); font-family: var(--gw-mono); font-size: 10px; }
.gateway-flow-track li::before { position: absolute; top: 5px; left: -50%; width: 100%; height: 1px; background: var(--gw-line-strong); content: ""; }
.gateway-flow-track li:first-child::before { display: none; }
.gateway-flow-track i { position: relative; z-index: 1; width: 11px; height: 11px; background: var(--gw-panel-3); border: 1px solid var(--gw-line-strong); border-radius: 50%; }
.gateway-flow-track li.is-active { color: var(--gw-accent); }
.gateway-flow-track li.is-active::before { background: var(--gw-accent-line); }
.gateway-flow-track li.is-active i { background: var(--gw-accent); border-color: var(--gw-accent); box-shadow: 0 0 0 4px var(--gw-accent-soft); }
.gateway-flow-result { margin: 0 24px 24px; padding: 20px; background: var(--gw-bg-soft); border: 1px solid var(--gw-line); border-radius: 6px; }
.gateway-flow-result > span { color: var(--gw-accent); font-family: var(--gw-mono); font-size: 11px; }
.gateway-flow-result > strong { display: block; margin-top: 10px; color: var(--gw-text); font-family: var(--gw-mono); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.gateway-flow-result > p { margin: 9px 0 0; color: var(--gw-muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 960px) {
  .gateway-console-body { min-height: 0; }
  .gateway-comparison { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
  .gateway-comparison-card { padding: 28px; }
  .gateway-flow { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 640px) {
  .gateway-console-showcase { margin-top: 44px; }
  .gateway-console-tabs { width: 100%; margin-top: 42px; }
  .gateway-console-tabs button { flex: 1; padding: 9px 6px; font-size: 12px; }
  .gateway-console-policy > div { grid-template-columns: minmax(0, 1fr) auto; }
  .gateway-console-policy strong { grid-column: 1; grid-row: 2; }
  .gateway-console-policy b { grid-column: 2; grid-row: 1 / span 2; }
  .gateway-console-cost-chart { gap: 8px; height: 170px; padding-inline: 18px; }
  .gateway-console-cost-legend { padding-inline: 18px; }
  .gateway-comparison { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gateway-comparison-card { padding: 24px; }
  .gateway-comparison-card h3 { font-size: 20px; }
  .gateway-comparison-bridge { flex-direction: row; gap: 12px; }
  .gateway-comparison-bridge br { display: none; }
  .gateway-comparison-bridge i { transform: rotate(90deg); }
  .gateway-flow-steps button { padding: 14px; }
  .gateway-flow-request { margin: 18px; }
  .gateway-flow-request strong { font-size: 11px; overflow-wrap: anywhere; }
  .gateway-flow-track { padding-inline: 12px; }
  .gateway-flow-result { margin: 0 18px 18px; }
}

@keyframes gateway-integration-scroll {
  to { transform: translateX(-50%); }
}

@keyframes gateway-map-dash {
  to { stroke-dashoffset: -160; }
}

@keyframes gateway-map-flow {
  from { background-position: -60% 0, 0 0; }
  to { background-position: 160% 0, 0 0; }
}

@keyframes gateway-map-node-pulse {
  0%, 100% { opacity: .45; box-shadow: 0 0 0 0 rgba(55, 214, 196, 0); }
  50% { opacity: 1; box-shadow: 0 0 0 4px var(--gw-accent-soft), 0 0 10px rgba(55, 214, 196, .5); }
}

@keyframes gateway-console-enter {
  from { opacity: .2; transform: perspective(1400px) translateY(16px) rotateY(-5deg) rotateX(1deg); }
  to { opacity: 1; transform: perspective(1400px) translateY(0) rotateY(-5deg) rotateX(1deg); }
}

@media (max-width: 1100px) {
  .gateway-map { --map-gap: 64px; }
}

@media (max-width: 960px) {
  .gateway-header { padding-inline: 24px; }
  .gateway-hero { padding-top: 84px; }
  .gateway-hero .gateway-wrap { display: block; }
  .gateway-hero h1 { max-width: 720px; }
  .gateway-lede { max-width: 560px; }
  .gateway-hero-actions { margin-top: 30px; }
  .gateway-console { margin-top: 64px; transform: none; }
  .gateway-section-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gateway-section-head > p:last-child { margin: 0; }
  .gateway-map { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gateway-map-source::before, .gateway-map-source::after, .gateway-map-target::before { display: none; }
  .gateway-map-sources, .gateway-map-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gateway-map-column-title, .gateway-map-group h3 { grid-column: 1 / -1; }
  .gateway-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gateway-feature, .gateway-feature-wide, .gateway-feature:nth-child(2), .gateway-feature:nth-child(3), .gateway-feature:nth-child(4), .gateway-feature:nth-child(5) { grid-column: span 1; }
  .gateway-feature-wide { grid-column: span 2; }
  .gateway-integrations { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .gateway-integration, .gateway-integration + .gateway-integration { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--gw-line); }
  .gateway-integration:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  :root { --gw-wrap: calc(100vw - 32px); }
  .gateway-header { padding-inline: 16px; }
  .gateway-hero { padding: 72px 0 92px; }
  .gateway-hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .gateway-hero h1 em::after { width: 64px; height: 2px; margin-top: 14px; }
  .gateway-lede { margin-top: 24px; font-size: 15px; }
  .gateway-hero-actions { align-items: stretch; flex-direction: column; max-width: 240px; }
  .gateway-install-command { gap: 9px; margin-top: 24px; padding: 12px; }
  .gateway-install-command code { font-size: 11px; }
  .gateway-button { width: 100%; }
  .gateway-console { margin-top: 54px; }
  .gateway-console-body { grid-template-columns: minmax(0, 1fr); }
  .gateway-console-request { border-right: 0; border-bottom: 1px solid var(--gw-line); }
  .gateway-col-time, .gateway-col-target { display: none; }
  .gateway-section { padding: 104px 0; }
  .gateway-section-head { margin-bottom: 46px; }
  .gateway-section-head h2 { font-size: 40px; }
  .gateway-section-head > p:last-child { font-size: 14px; }
  #architecture.gateway-section { padding: 84px 0; }
  #architecture > .gateway-section-head { margin-bottom: 36px; }
  .gateway-map-sources { grid-template-columns: minmax(0, 1fr); }
  .gateway-map-agent-logos { gap: 7px; }
  .gateway-map-agent-logos img { width: 26px; height: 26px; }
  .gateway-map-core { padding: 20px; }
  .gateway-map-entry { padding: 12px; }
  .gateway-map-caption { gap: 10px 16px; }
  .gateway-features { grid-template-columns: minmax(0, 1fr); }
  .gateway-feature, .gateway-feature-wide, .gateway-feature:nth-child(2), .gateway-feature:nth-child(3), .gateway-feature:nth-child(4), .gateway-feature:nth-child(5) { grid-column: auto; min-height: 286px; }
  .gateway-feature { padding: 24px; }
  .gateway-route { grid-template-columns: minmax(0, 1fr); gap: 8px; text-align: center; }
  .gateway-route-link { width: 1px; height: 12px; justify-self: center; }
  .gateway-route-targets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gateway-steps li, .gateway-steps li + li { min-height: auto; padding: 26px 0 30px; border-right: 0; border-bottom: 1px solid var(--gw-line); }
  .gateway-steps li:last-child { border-bottom: 0; }
  .gateway-steps::before { display: none; }
  .gateway-step-number { margin-bottom: 26px; }
  .gateway-footer-inner { padding-top: 56px; }
  .gateway-footer-links { flex-wrap: wrap; gap: 36px 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .gateway-console, .gateway-map-source::before, .gateway-map-source::after, .gateway-map-target::before, .gateway-map-connection-flow, .gateway-integration-sequence { animation: none; }
  .gateway-console { transform: none; }
  .gateway-map-connection-flow, .gateway-hero-spotlight { display: none; }
}

.gateway-header-actions { gap: 16px; }
.gateway-header-actions .gateway-button { flex: none; white-space: nowrap; }
.gateway-language-toggle { display: inline-grid; flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; align-items: center; min-height: 34px; padding: 3px; color: var(--gw-dim); background: transparent; border: 1px solid var(--gw-line-strong); border-radius: 6px; cursor: pointer; font: inherit; font-size: 11px; line-height: 1; white-space: nowrap; }
.gateway-language-toggle span { display: grid; min-width: 31px; height: 26px; padding-inline: 5px; place-items: center; border-radius: 3px; white-space: nowrap; transition: color .15s ease, background .15s ease; }
.gateway-language-toggle span.is-active { color: #07110e; background: var(--gw-accent); }
.gateway-language-toggle:hover { color: var(--gw-text); border-color: var(--gw-accent-line); }
.gateway-language-toggle:focus-visible { outline: 2px solid var(--gw-accent); outline-offset: 3px; }
.gateway-mobile-nav .gateway-language-toggle { justify-self: start; margin-top: 8px; }
.gateway-header-actions .gateway-language-toggle { grid-template-columns: minmax(0, 1fr); min-width: 38px; min-height: 30px; padding: 2px; }
.gateway-header-actions .gateway-language-toggle span { display: none; }
.gateway-header-actions .gateway-language-toggle::after { display: grid; min-width: 28px; height: 24px; place-items: center; font-size: 10px; content: "EN"; }
html[lang="en"] .gateway-header-actions .gateway-language-toggle::after { content: "中"; }
html[lang="en"] #architecture > .gateway-section-head h2 { white-space: normal; text-wrap: balance; }
html[lang="en"] #start-title { white-space: normal; }
html[lang="en"] .gateway-bottom-cta h2 { white-space: pre-line; }
