/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
*, ::after, ::before, ::backdrop, ::file-selector-button {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}
html, :host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}
hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  -webkit-text-decoration: inherit;
  text-decoration: inherit;
}
b, strong {
  font-weight: bolder;
}
code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}
:-moz-focusring:where(:not(iframe)) {
  outline: auto;
}
progress {
  vertical-align: baseline;
}
summary {
  display: list-item;
}
ol, ul, menu {
  list-style: none;
}
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}
img, video {
  max-width: 100%;
  height: auto;
}
button, input, select, optgroup, textarea, ::file-selector-button {
  font: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
  color: inherit;
  border-radius: 0;
  background-color: transparent;
  opacity: 1;
}
:where(select:is([multiple], [size])) optgroup {
  font-weight: bolder;
}
:where(select:is([multiple], [size])) optgroup option {
  padding-inline-start: 20px;
}
::file-selector-button {
  margin-inline-end: 4px;
}
::placeholder {
  opacity: 1;
}
@supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
  ::placeholder {
    color: currentcolor;
    @supports (color: color-mix(in lab, red, red)) {
      color: color-mix(in oklab, currentcolor 50%, transparent);
    }
  }
}
textarea {
  resize: vertical;
}
::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-date-and-time-value {
  min-height: 1lh;
  text-align: inherit;
}
::-webkit-datetime-edit {
  display: inline-flex;
}
::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}
::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
  padding-block: 0;
}
::-webkit-calendar-picker-indicator {
  line-height: 1;
}
:-moz-ui-invalid {
  box-shadow: none;
}
button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button {
  appearance: button;
}
::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
  height: auto;
}
[hidden]:where(:not([hidden='until-found'])) {
  display: none !important;
}

body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.agent-gateway {
  --agent-bg: #ffffff;
  --agent-fg: #111111;
  --agent-fg-soft: #4b5563;
  --agent-muted: #6b7280;
  --agent-border: #e5e7eb;
  --agent-hover: #f3f4f6;
  --agent-soft: #faf9f7;
  --agent-accent: #b45100;
  --agent-accent-hover: #8f3e00;
  --agent-accent-soft: #fff3e9;
  --agent-brand: #ff6a00;
  --agent-brand-hover: #e85f00;
  --agent-terminal: #1d1b1a;
  --agent-terminal-bar: #2a2725;
  --agent-terminal-fg: #e9e6e2;
  --agent-terminal-muted: #9a938b;
  --agent-success: #167446;
  --agent-danger: #a5382a;
  --agent-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --agent-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", Inter, sans-serif;
  min-height: 100vh;
  background: var(--agent-bg);
  color: var(--agent-fg);
  font-family: var(--agent-sans);
  font-size: 16px;
  line-height: 1.6;
}

.agent-gateway a {
  color: inherit;
  text-decoration: none;
}

.agent-gateway code,
.agent-gateway pre {
  font-family: var(--agent-mono);
}

.agent-gateway .ag-static-fallback {
  width: min(48rem, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.agent-gateway .ag-static-fallback h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.1;
}

.agent-gateway .ag-static-fallback code {
  border-radius: 4px;
  background: var(--agent-hover);
  padding: 2px 6px;
}

.agent-gateway .ag-static-fallback a {
  color: var(--agent-accent);
  text-decoration: underline;
}

.agent-gateway .ag-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;
}

.agent-gateway.agent-pointer {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  font-family: var(--agent-mono);
}

.agent-gateway .agp-topbar {
  display: flex;
  width: min(760px, calc(100% - 40px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid var(--agent-border);
}

.agent-gateway .agp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.2px;
}

.agent-gateway .agp-brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--agent-brand);
  color: var(--agent-fg);
  font-size: 13px;
  line-height: 1;
}

.agent-gateway .agp-view-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--agent-border);
  border-radius: 5px;
  padding: 5px 11px;
  color: var(--agent-muted);
  font-size: 12px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.agent-gateway .agp-view-toggle:hover {
  border-color: var(--agent-accent);
  background: var(--agent-hover);
  color: var(--agent-accent);
}

.agent-gateway .agp-main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 56px 20px;
}

.agent-gateway .agp-view {
  width: min(620px, 100%);
  text-align: center;
  font-family: var(--agent-sans);
}

.agent-gateway .agp-eyebrow {
  margin: 0 0 14px;
  color: var(--agent-accent);
  font-family: var(--agent-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.agent-gateway .agp-view h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 820;
  letter-spacing: -0.7px;
  line-height: 1.12;
}

.agent-gateway .agp-lede {
  margin: 0 auto 26px;
  color: var(--agent-fg-soft);
  font-size: 16px;
  line-height: 1.7;
}

.agent-gateway .agp-terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--agent-terminal-bar);
  border-radius: 10px;
  background: var(--agent-terminal);
  box-shadow: 0 18px 46px color-mix(in srgb, var(--agent-accent) 16%, transparent);
  color: var(--agent-terminal-fg);
  text-align: left;
}

.agent-gateway .agp-terminal-bar {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  background: var(--agent-terminal-bar);
  color: var(--agent-terminal-muted);
  font-family: var(--agent-mono);
  font-size: 10px;
}

.agent-gateway .agp-terminal-bar > span:last-child {
  margin-left: 4px;
}

.agent-gateway .agp-terminal-body {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 9px;
  padding: 18px 78px 18px 17px;
  font-family: var(--agent-mono);
  font-size: 13px;
  line-height: 1.65;
}

.agent-gateway .agp-terminal-body code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.agent-gateway .agp-copy {
  position: absolute;
  right: 11px;
  bottom: 18px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--agent-terminal-fg) 20%, transparent);
  border-radius: 5px;
  background: var(--agent-terminal-bar);
  padding: 4px 8px;
  color: var(--agent-terminal-fg);
  font-family: var(--agent-mono);
  font-size: 10px;
  cursor: pointer;
}

.agent-gateway .agp-copy:hover {
  border-color: var(--agent-brand);
}

.agent-gateway .agp-copy svg {
  width: 12px;
  height: 12px;
}

.agent-gateway .agp-boundary {
  margin: 18px 0 8px;
  color: var(--agent-muted);
  font-size: 12px;
}

.agent-gateway .agp-references {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  color: var(--agent-muted);
  font-family: var(--agent-mono);
  font-size: 11px;
}

.agent-gateway .agp-references a {
  color: var(--agent-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agent-gateway .agp-references a:hover {
  color: var(--agent-accent-hover);
}

.agent-gateway .agp-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 9px;
  padding: 18px 20px 24px;
  color: var(--agent-muted);
  font-size: 10px;
  letter-spacing: 0.7px;
}

.agent-gateway .ag-nav-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--agent-border);
  background: color-mix(in srgb, var(--agent-bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
}

.agent-gateway .ag-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(1080px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
}

.agent-gateway .ag-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1px;
}

.agent-gateway .ag-brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--agent-brand);
  color: var(--agent-fg);
  font-family: var(--agent-mono);
  font-size: 14px;
  line-height: 1;
}

.agent-gateway .ag-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.agent-gateway .ag-nav-links a,
.agent-gateway .ag-login-link,
.agent-gateway .ag-agent-link {
  color: var(--agent-fg-soft);
  font-size: 14px;
  font-weight: 550;
}

.agent-gateway .ag-nav-links a:hover,
.agent-gateway .ag-login-link:hover,
.agent-gateway .ag-agent-link:hover,
.agent-gateway .ag-footer a:hover {
  color: var(--agent-accent);
}

.agent-gateway .ag-login-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.agent-gateway .ag-agent-link {
  display: inline-flex;
  align-items: center;
}

.agent-gateway .ag-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.agent-gateway .ag-login-link svg {
  width: 15px;
  height: 15px;
}

.agent-gateway .ag-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 52px;
  width: min(1080px, calc(100% - 48px));
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 0 64px;
}

.agent-gateway .ag-eyebrow {
  margin: 0 0 14px;
  color: var(--agent-accent);
  font-family: var(--agent-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.agent-gateway .ag-hero h1 {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 850;
  letter-spacing: -1.6px;
  line-height: 1.05;
}

.agent-gateway .ag-lede,
.agent-gateway .ag-section-lede {
  max-width: 66ch;
  margin: 0;
  color: var(--agent-fg-soft);
  font-size: 17px;
  line-height: 1.7;
}

.agent-gateway .ag-lede code {
  border-radius: 4px;
  background: var(--agent-hover);
  padding: 2px 6px;
  color: var(--agent-fg);
  font-size: 0.92em;
}

.agent-gateway .ag-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.agent-gateway .ag-trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--agent-brand) 28%, var(--agent-border));
  border-radius: 999px;
  background: var(--agent-accent-soft);
  padding: 5px 11px;
  color: var(--agent-accent);
  font-family: var(--agent-mono);
  font-size: 11px;
  font-weight: 700;
}

.agent-gateway .ag-trust-row svg {
  width: 14px;
  height: 14px;
}

.agent-gateway .ag-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agent-gateway .ag-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease, transform 80ms ease;
}

.agent-gateway .ag-button svg {
  width: 16px;
  height: 16px;
}

.agent-gateway .ag-button-primary {
  border-color: var(--agent-accent);
  background: var(--agent-accent);
  color: var(--agent-bg);
}

.agent-gateway .ag-button-primary:hover {
  border-color: var(--agent-accent-hover);
  background: var(--agent-accent-hover);
}

.agent-gateway .ag-button-secondary {
  border-color: var(--agent-border);
  background: var(--agent-bg);
  color: var(--agent-fg);
}

.agent-gateway .ag-button-secondary:hover {
  background: var(--agent-hover);
}

.agent-gateway .ag-button:active {
  transform: translateY(1px);
}

.agent-gateway .ag-hero-terminal {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--agent-terminal) 88%, var(--agent-border));
  border-radius: 13px;
  background: var(--agent-terminal);
  box-shadow: 0 26px 70px color-mix(in srgb, var(--agent-accent) 24%, transparent);
  color: var(--agent-terminal-fg);
  font-family: var(--agent-mono);
  font-size: 13px;
}

.agent-gateway .ag-terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  background: var(--agent-terminal-bar);
}

.agent-gateway .ag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.agent-gateway .ag-dot-red { background: #ff5f57; }
.agent-gateway .ag-dot-yellow { background: #febc2e; }
.agent-gateway .ag-dot-green { background: #28c840; }

.agent-gateway .ag-terminal-title {
  margin-left: 5px;
  color: var(--agent-terminal-muted);
  font-size: 11px;
}

.agent-gateway .ag-terminal-body {
  min-height: 230px;
  padding: 24px 20px 30px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.agent-gateway .ag-terminal-body p {
  margin: 0;
}

.agent-gateway .ag-terminal-body p + p {
  margin-top: 5px;
}

.agent-gateway .ag-prompt { color: #ff9f5a; }
.agent-gateway .ag-ok { color: #5fd38b; }
.agent-gateway .ag-terminal-dim { color: var(--agent-terminal-muted); }

.agent-gateway .ag-terminal-copy {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--agent-terminal-fg) 22%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--agent-terminal-bar) 90%, transparent);
  padding: 5px 8px;
  color: var(--agent-terminal-fg);
  font-family: var(--agent-mono);
  font-size: 11px;
  cursor: pointer;
}

.agent-gateway .ag-terminal-copy:hover {
  border-color: var(--agent-brand);
}

.agent-gateway .ag-terminal-copy svg {
  width: 13px;
  height: 13px;
}

.agent-gateway .ag-context-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--agent-border);
  border-bottom: 1px solid var(--agent-border);
  background: var(--agent-soft);
}

.agent-gateway .ag-context-band > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  width: 100%;
  max-width: 300px;
  min-height: 112px;
  align-content: center;
  justify-self: center;
  padding: 20px 24px;
}

.agent-gateway .ag-context-band > div + div {
  border-left: 1px solid var(--agent-border);
}

.agent-gateway .ag-context-band strong {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--agent-brand);
  font-family: var(--agent-mono);
  font-size: 34px;
  line-height: 1;
}

.agent-gateway .ag-context-band span {
  color: var(--agent-fg);
  font-family: var(--agent-mono);
  font-size: 12px;
  font-weight: 700;
}

.agent-gateway .ag-context-band small {
  color: var(--agent-muted);
  font-size: 12px;
}

.agent-gateway .ag-section {
  padding: 88px 24px;
  scroll-margin-top: 64px;
}

.agent-gateway .ag-section-soft {
  border-bottom: 1px solid var(--agent-border);
  background: var(--agent-soft);
}

.agent-gateway .ag-section-inner {
  width: min(1020px, 100%);
  margin: 0 auto;
}

.agent-gateway .ag-section h2,
.agent-gateway .ag-final-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 830;
  letter-spacing: -0.7px;
  line-height: 1.16;
}

.agent-gateway .ag-workflow-list {
  display: grid;
  gap: 22px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.agent-gateway .ag-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--agent-border);
  border-radius: 12px;
  background: var(--agent-bg);
  padding: 26px;
  box-shadow: 0 3px 14px color-mix(in srgb, var(--agent-accent) 6%, transparent);
}

.agent-gateway .ag-step-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--agent-accent-soft);
  color: var(--agent-accent);
  font-family: var(--agent-mono);
  font-size: 15px;
  font-weight: 800;
}

.agent-gateway .ag-step-body {
  min-width: 0;
}

.agent-gateway .ag-step h3 {
  margin: 0 0 5px;
  font-size: 19px;
  line-height: 1.35;
}

.agent-gateway .ag-step-body > p {
  margin: 0 0 18px;
  color: var(--agent-fg-soft);
  font-size: 14px;
}

.agent-gateway .ag-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.agent-gateway .ag-command {
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--agent-terminal) 88%, var(--agent-border));
  border-radius: 9px;
  background: var(--agent-terminal);
  color: var(--agent-terminal-fg);
}

.agent-gateway .ag-command-bar {
  position: relative;
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--agent-terminal-fg) 13%, transparent);
  background: var(--agent-terminal-bar);
  padding: 7px 10px 7px 13px;
  color: var(--agent-terminal-muted);
  font-family: var(--agent-mono);
  font-size: 11px;
  font-weight: 700;
}

.agent-gateway .ag-copy {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--agent-terminal-fg) 18%, transparent);
  border-radius: 5px;
  background: transparent;
  padding: 3px 7px;
  color: var(--agent-terminal-fg);
  font-family: var(--agent-mono);
  font-size: 10px;
  cursor: pointer;
}

.agent-gateway .ag-copy:hover {
  border-color: var(--agent-brand);
  color: var(--agent-bg);
}

.agent-gateway .ag-copy svg {
  width: 12px;
  height: 12px;
}

.agent-gateway .ag-command pre {
  min-height: 86px;
  margin: 0;
  overflow-x: auto;
  padding: 14px;
  color: var(--agent-terminal-fg);
  font-size: 11.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.agent-gateway .ag-safety-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 48px;
}

.agent-gateway .ag-safety-heading > p {
  margin: 0 0 16px;
  color: var(--agent-fg-soft);
  font-size: 15px;
}

.agent-gateway .ag-boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.agent-gateway .ag-boundary-grid article {
  border: 1px solid var(--agent-border);
  border-radius: 11px;
  padding: 24px;
}

.agent-gateway .ag-boundary-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
}

.agent-gateway .ag-boundary-icon svg {
  width: 20px;
  height: 20px;
}

.agent-gateway .ag-boundary-allow {
  background: color-mix(in srgb, var(--agent-success) 11%, var(--agent-bg));
  color: var(--agent-success);
}

.agent-gateway .ag-boundary-deny {
  background: color-mix(in srgb, var(--agent-danger) 10%, var(--agent-bg));
  color: var(--agent-danger);
}

.agent-gateway .ag-boundary-grid h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.agent-gateway .ag-boundary-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--agent-fg-soft);
  font-size: 14px;
}

.agent-gateway .ag-boundary-grid li + li {
  margin-top: 7px;
}

.agent-gateway .ag-security-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
  border: 1px solid color-mix(in srgb, var(--agent-brand) 32%, var(--agent-border));
  border-radius: 10px;
  background: var(--agent-accent-soft);
  padding: 19px;
  color: var(--agent-accent);
}

.agent-gateway .ag-security-note > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.agent-gateway .ag-security-note strong {
  color: var(--agent-fg);
}

.agent-gateway .ag-security-note p {
  margin: 3px 0 0;
  color: var(--agent-fg-soft);
  font-size: 13px;
}

.agent-gateway .ag-machine-section {
  border-top: 1px solid var(--agent-border);
  border-bottom: 1px solid var(--agent-border);
  background: var(--agent-soft);
}

.agent-gateway .ag-machine-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 52px;
}

.agent-gateway .ag-reference-list {
  display: grid;
  gap: 10px;
}

.agent-gateway .ag-reference-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--agent-border);
  border-radius: 9px;
  background: var(--agent-bg);
  padding: 13px;
  transition: border-color 150ms ease, transform 100ms ease;
}

.agent-gateway .ag-reference-list a:hover {
  border-color: var(--agent-brand);
  transform: translateY(-1px);
}

.agent-gateway .ag-reference-list > a > svg:first-child {
  width: 19px;
  height: 19px;
  color: var(--agent-brand);
}

.agent-gateway .ag-reference-list > a > svg:last-child {
  width: 14px;
  height: 14px;
  color: var(--agent-muted);
}

.agent-gateway .ag-reference-list span {
  min-width: 0;
}

.agent-gateway .ag-reference-list strong,
.agent-gateway .ag-reference-list small {
  display: block;
}

.agent-gateway .ag-reference-list strong {
  overflow: hidden;
  font-family: var(--agent-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-gateway .ag-reference-list small {
  margin-top: 2px;
  color: var(--agent-muted);
  font-size: 11px;
}

.agent-gateway .ag-final-cta {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(1020px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
}

.agent-gateway .ag-final-cta > svg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--agent-accent-soft);
  padding: 10px;
  color: var(--agent-brand);
}

.agent-gateway .ag-final-cta h2 {
  margin-bottom: 5px;
  font-size: 25px;
}

.agent-gateway .ag-final-cta p {
  margin: 0;
  color: var(--agent-fg-soft);
  font-size: 14px;
}

.agent-gateway .ag-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.agent-gateway .ag-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--agent-border);
  padding: 28px max(24px, calc((100% - 1080px) / 2));
  color: var(--agent-muted);
  font-size: 12px;
}

.agent-gateway .ag-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}

.agent-gateway :where(a, button, pre):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--agent-brand) 62%, transparent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .agent-gateway .ag-nav {
    width: min(100% - 32px, 1080px);
  }

  .agent-gateway .ag-nav-links {
    display: none;
  }

  .agent-gateway .ag-hero {
    grid-template-columns: 1fr;
    width: min(100% - 40px, 760px);
    min-height: auto;
    gap: 42px;
    padding: 68px 0 58px;
  }

  .agent-gateway .ag-context-band {
    grid-template-columns: 1fr;
  }

  .agent-gateway .ag-context-band > div + div {
    border-left: 0;
    border-top: 1px solid var(--agent-border);
  }

  .agent-gateway .ag-provider-grid,
  .agent-gateway .ag-safety-heading,
  .agent-gateway .ag-machine-grid {
    grid-template-columns: 1fr;
  }

  .agent-gateway .ag-safety-heading,
  .agent-gateway .ag-machine-grid {
    gap: 24px;
  }
}

@media (pointer: coarse) {
  .agent-gateway .ag-button,
  .agent-gateway .ag-copy,
  .agent-gateway .ag-terminal-copy,
  .agent-gateway .agp-copy,
  .agent-gateway .agp-view-toggle,
  .agent-gateway .ag-login-link,
  .agent-gateway .ag-agent-link {
    min-height: 44px;
  }

  .agent-gateway .agp-view-toggle,
  .agent-gateway .ag-agent-link {
    min-width: 44px;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .agent-gateway .agp-topbar {
    width: min(100% - 28px, 760px);
  }

  .agent-gateway .agp-brand {
    font-size: 12px;
  }

  .agent-gateway .agp-main {
    padding: 42px 16px;
  }

  .agent-gateway .agp-view h1 {
    font-size: 30px;
  }

  .agent-gateway .agp-lede {
    font-size: 14px;
  }

  .agent-gateway .agp-terminal-body {
    min-height: 108px;
    align-items: flex-start;
    padding: 17px 14px 52px;
    font-size: 11px;
  }

  .agent-gateway .agp-copy {
    right: 10px;
    bottom: 10px;
  }

  .agent-gateway .ag-nav {
    min-height: 58px;
  }

  .agent-gateway .ag-brand {
    font-size: 13px;
  }

  .agent-gateway .ag-brand-mark {
    width: 28px;
    height: 28px;
  }

  .agent-gateway .ag-login-link {
    font-size: 12px;
  }

  .agent-gateway .ag-nav-actions {
    gap: 8px;
  }

  .agent-gateway .ag-nav-actions .ag-login-link {
    display: none;
  }

  .agent-gateway .ag-hero {
    width: min(100% - 32px, 760px);
    padding-top: 54px;
  }

  .agent-gateway .ag-hero h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .agent-gateway .ag-lede,
  .agent-gateway .ag-section-lede {
    font-size: 15px;
  }

  .agent-gateway .ag-button {
    width: 100%;
  }

  .agent-gateway .ag-hero-terminal {
    font-size: 11.5px;
  }

  .agent-gateway .ag-terminal-body {
    min-height: 250px;
    padding: 20px 15px 48px;
  }

  .agent-gateway .ag-context-band > div {
    min-height: 88px;
  }

  .agent-gateway .ag-section {
    padding: 66px 16px;
  }

  .agent-gateway .ag-step {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 15px;
  }

  .agent-gateway .ag-step-number {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .agent-gateway .ag-command pre {
    font-size: 10.5px;
    white-space: pre;
    overflow-wrap: normal;
  }

  .agent-gateway .ag-boundary-grid {
    grid-template-columns: 1fr;
  }

  .agent-gateway .ag-final-cta {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 1020px);
    padding: 52px 0;
  }

  .agent-gateway .ag-final-actions {
    display: grid;
    justify-content: stretch;
  }

  .agent-gateway .ag-footer,
  .agent-gateway .ag-footer > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-gateway *,
  .agent-gateway *::before,
  .agent-gateway *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------------------
 * 一句話登記（/agent/welcome 改版）：貼給 AI 的句子卡、對話預覽、AI 做／你做標記、
 * 句子卡片格、任務種類格、流程線、工程細節折疊區。
 * ------------------------------------------------------------------------- */

.agent-gateway .ag-say {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--agent-brand) 42%, var(--agent-border));
  border-radius: 14px;
  background: var(--agent-accent-soft);
  padding: 16px 18px 18px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--agent-accent) 9%, transparent);
}

.agent-gateway .ag-hero-copy .ag-say {
  margin: 28px 0 22px;
}

.agent-gateway .ag-say-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.agent-gateway .ag-say-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--agent-accent);
  font-family: var(--agent-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.agent-gateway .ag-say-label svg {
  width: 14px;
  height: 14px;
}

.agent-gateway .ag-say-copy {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--agent-accent);
  border-radius: 7px;
  background: var(--agent-accent);
  padding: 5px 11px;
  color: var(--agent-bg);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.agent-gateway .ag-say-copy:hover {
  border-color: var(--agent-accent-hover);
  background: var(--agent-accent-hover);
}

.agent-gateway .ag-say-copy svg {
  width: 14px;
  height: 14px;
}

.agent-gateway .ag-say-text {
  margin: 0;
  color: var(--agent-fg);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  user-select: all;
}

.agent-gateway .ag-say-hero .ag-say-text {
  font-size: clamp(18px, 2.1vw, 23px);
}

.agent-gateway .ag-say-note {
  margin: 12px 0 0;
  color: var(--agent-fg-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

.agent-gateway .ag-chat .ag-chat-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
}

.agent-gateway .ag-chat .ag-chat-line + .ag-chat-line {
  margin-top: 10px;
}

.agent-gateway .ag-role {
  display: inline-grid;
  width: 28px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.agent-gateway .ag-role-you {
  background: #ff9f5a;
  color: var(--agent-terminal);
}

.agent-gateway .ag-role-ai {
  background: color-mix(in srgb, var(--agent-terminal-fg) 16%, transparent);
  color: var(--agent-terminal-fg);
}

.agent-gateway .ag-you-turn {
  color: #ffd166;
}

.agent-gateway .ag-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.agent-gateway .ag-step-head h3 {
  margin: 0;
}

.agent-gateway .ag-step-body > p:last-child {
  margin-bottom: 0;
}

.agent-gateway .ag-step-body code {
  border-radius: 4px;
  background: var(--agent-hover);
  padding: 1px 5px;
  color: var(--agent-fg);
  font-size: 0.92em;
}

.agent-gateway .ag-actor {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 9px;
  font-family: var(--agent-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.agent-gateway .ag-actor svg {
  width: 12px;
  height: 12px;
}

.agent-gateway .ag-actor-ai {
  background: color-mix(in srgb, var(--agent-success) 12%, var(--agent-bg));
  color: var(--agent-success);
}

.agent-gateway .ag-actor-you {
  border-color: color-mix(in srgb, var(--agent-brand) 35%, transparent);
  background: var(--agent-accent-soft);
  color: var(--agent-accent);
}

.agent-gateway .ag-step-you {
  border-color: color-mix(in srgb, var(--agent-brand) 45%, var(--agent-border));
  background: color-mix(in srgb, var(--agent-accent-soft) 55%, var(--agent-bg));
}

.agent-gateway .ag-say-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.agent-gateway .ag-say-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--agent-border);
  border-radius: 13px;
  background: var(--agent-bg);
  padding: 20px;
}

.agent-gateway .ag-say-card h3 {
  margin: 0;
  font-size: 17px;
}

.agent-gateway .ag-say-card > p {
  margin: 0;
  color: var(--agent-fg-soft);
  font-size: 14px;
  line-height: 1.65;
}

.agent-gateway .ag-say-card .ag-say {
  background: var(--agent-bg);
  box-shadow: none;
}

.agent-gateway .ag-say-card .ag-say-text {
  font-size: 15.5px;
}

.agent-gateway .ag-kind-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.agent-gateway .ag-kind {
  border: 1px solid var(--agent-border);
  border-radius: 11px;
  background: var(--agent-bg);
  padding: 18px;
}

.agent-gateway .ag-kind strong {
  display: block;
  margin-bottom: 6px;
  color: var(--agent-brand);
  font-family: var(--agent-mono);
  font-size: 12px;
  letter-spacing: 0.6px;
}

.agent-gateway .ag-kind h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.agent-gateway .ag-kind p {
  margin: 0;
  color: var(--agent-fg-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

.agent-gateway .ag-flowline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.agent-gateway .ag-flowline li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--agent-fg-soft);
  font-size: 13.5px;
}

.agent-gateway .ag-flowline li > span {
  border: 1px solid var(--agent-border);
  border-radius: 999px;
  background: var(--agent-bg);
  padding: 6px 12px;
}

.agent-gateway .ag-flowline li.ag-flow-you > span {
  border-color: color-mix(in srgb, var(--agent-brand) 45%, var(--agent-border));
  background: var(--agent-accent-soft);
  color: var(--agent-accent);
  font-weight: 700;
}

.agent-gateway .ag-flowline li:not(:last-child)::after {
  content: "→";
  color: var(--agent-muted);
}

.agent-gateway .ag-details {
  margin-top: 36px;
  border: 1px solid var(--agent-border);
  border-radius: 13px;
  background: var(--agent-bg);
}

.agent-gateway .ag-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 800;
}

.agent-gateway .ag-details > summary::-webkit-details-marker {
  display: none;
}

.agent-gateway .ag-details-toggle {
  flex: 0 0 auto;
  color: var(--agent-accent);
  font-family: var(--agent-mono);
  font-size: 12px;
  font-weight: 700;
}

.agent-gateway .ag-details > summary small {
  display: block;
  margin-top: 4px;
  color: var(--agent-fg-soft);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.agent-gateway .ag-details-body {
  padding: 0 26px 26px;
}

.agent-gateway .ag-details-body .ag-workflow-list {
  margin-top: 6px;
}

.agent-gateway .ag-step-body > p a,
.agent-gateway .ag-section-lede a {
  color: var(--agent-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .agent-gateway .ag-say-grid,
  .agent-gateway .ag-kind-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .agent-gateway .ag-nav {
    flex-wrap: wrap;
    row-gap: 8px;
    padding-block: 10px;
  }

  .agent-gateway .ag-say {
    padding: 14px 14px 16px;
  }

  .agent-gateway .ag-say-bar {
    flex-wrap: wrap;
  }

  .agent-gateway .ag-say-hero .ag-say-text,
  .agent-gateway .ag-say-text {
    font-size: 16px;
  }

  .agent-gateway .ag-details > summary {
    padding: 18px 16px;
    font-size: 17px;
  }

  .agent-gateway .ag-details-body {
    padding: 0 12px 16px;
  }

  .agent-gateway .ag-flowline li {
    font-size: 12.5px;
  }
}

/* ---------------------------------------------------------------------------
 * Hero 海報感：大字、關鍵詞強調、柔光背景、品牌小標
 * ------------------------------------------------------------------------- */

.agent-gateway .ag-brand-tag {
  border: 1px solid color-mix(in srgb, var(--agent-brand) 40%, var(--agent-border));
  border-radius: 999px;
  background: var(--agent-accent-soft);
  padding: 2px 9px;
  color: var(--agent-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.agent-gateway .ag-hero {
  background:
    radial-gradient(60% 55% at 78% 30%, color-mix(in srgb, var(--agent-brand) 14%, transparent), transparent 70%),
    radial-gradient(45% 40% at 12% 85%, color-mix(in srgb, var(--agent-accent) 8%, transparent), transparent 70%);
}

.agent-gateway .ag-hero h1.ag-hero-poster {
  max-width: 760px;
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 900;
  letter-spacing: -1.8px;
  line-height: 1.08;
}

.agent-gateway .ag-hero-accent {
  color: var(--agent-accent);
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--agent-brand) 28%, transparent) 62%);
}

.agent-gateway .ag-lede-poster {
  margin-bottom: 8px;
  color: var(--agent-fg);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 750;
  letter-spacing: -0.3px;
}

@media (max-width: 620px) {
  .agent-gateway .ag-hero h1.ag-hero-poster {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .agent-gateway .ag-lede-poster {
    font-size: 18px;
  }

  .agent-gateway .ag-brand-tag {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
 * SkillHub 式細節：導覽膠囊按鈕（emoji + 文字）、功能卡 40px 淡橘 icon 方塊
 * ------------------------------------------------------------------------- */

.agent-gateway .ag-agent-link {
  gap: 7px;
  border: 1px solid var(--agent-border);
  border-radius: 999px;
  background: var(--agent-bg);
  padding: 7px 14px;
  color: var(--agent-fg);
  font-size: 13px;
  font-weight: 650;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.agent-gateway .ag-agent-link:hover {
  border-color: var(--agent-accent);
  background: var(--agent-hover);
  color: var(--agent-accent);
}

.agent-gateway .ag-toggle-emoji {
  font-size: 14px;
  line-height: 1;
}

.agent-gateway .ag-feature-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--agent-accent-soft);
  color: var(--agent-accent);
}

.agent-gateway .ag-feature-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.agent-gateway .ag-final-cta > svg {
  width: 40px;
  height: 40px;
  padding: 10px;
  stroke-width: 1.75;
}

/* 語系切換（比照 SkillHub：EN 繁 简 日） */
.agent-gateway .ag-locale {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--agent-border);
  border-radius: 999px;
  background: var(--agent-bg);
  padding: 3px;
}

.agent-gateway .ag-locale-option {
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 9px;
  color: var(--agent-muted);
  font-family: var(--agent-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.agent-gateway .ag-locale-option:hover {
  color: var(--agent-fg);
}

.agent-gateway .ag-locale-active {
  background: var(--agent-fg);
  color: var(--agent-bg);
}

/* 多語系下英日文導覽較長：導覽項、品牌標籤、For Agent 膠囊不折行 */
.agent-gateway .ag-nav-links a,
.agent-gateway .ag-brand,
.agent-gateway .ag-brand-tag,
.agent-gateway .ag-agent-link,
.agent-gateway .ag-locale-option {
  white-space: nowrap;
}
