/* --- Agent Gateway Shared Design System --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #06090f;
  --bg-card: #0c1018;
  --bg-card-hover: #101620;
  --border: #151d2e;
  --border-glow: #1a3a6a;
  --text: #b8c4d6;
  --text-dim: #4a5568;
  --text-bright: #e8edf5;
  --accent: #3b82f6;
  --accent-glow: #2563eb;
  --accent-dim: #1e40af;
  --green: #34d399;
  --green-dim: #065f46;
  --amber: #fbbf24;
  --red: #f87171;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Grid background */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Shared Nav --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,9,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo:hover { text-decoration: none; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text-bright); }

.nav-cta {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--accent) !important;
  border: 1px solid var(--border-glow);
  padding: 7px 16px;
  border-radius: 6px;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: rgba(59,130,246,0.08) !important;
  border-color: var(--accent) !important;
  color: var(--text-bright) !important;
}

/* --- Page content area --- */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px 64px;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

/* --- Shared card / section --- */
.card {
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

/* --- Code --- */
code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  color: #94a3b8;
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}

/* --- Shared footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .left {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.site-footer .center {
  display: flex;
  gap: 16px;
}

.site-footer .center a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  opacity: 0.7;
}

.site-footer .center a:hover { color: var(--text); opacity: 1; text-decoration: none; }

.site-footer .right {
  display: flex;
  gap: 20px;
}

.site-footer .right a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer .right a:hover { color: var(--text); }

/* --- Utility --- */
.hidden { display: none; }

/* --- Note callout --- */
.note {
  background: rgba(37,99,235,0.06);
  border-left: 3px solid var(--accent-glow);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
  font-size: 13px;
}
