@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
  --ink-950: #12100e;
  --ink-900: #1a1715;
  --ink-800: #24201d;
  --ink-700: #3a3430;
  --ink-600: #57504a;
  --brand-300: #f8b27a;
  --brand-400: #f39248;
  --brand-500: #e8762a;
  --brand-600: #c25a14;
  --text: #ece8e4;
  --text-muted: #a8a09a;
  --text-dim: #7a726c;
  --pass: #6fcf97;
  --fail: #f2766b;
  --warn: #f2c14e;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--ink-950);
  color: var(--text);
  font-family: Oxanium, Inter, ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232, 118, 42, 0.3); color: #fff; }

/* Layout */
.page-container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 6rem 0; }
.section-border { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.bg-grid {
  background-size: 48px 48px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-400);
}
.section-title { font-size: clamp(1.875rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: #fff; }
.section-lead { font-size: 1.125rem; line-height: 1.7; color: var(--text-muted); max-width: 42rem; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 16, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); transition: color 0.15s; }
.nav-link:hover, .nav-link[aria-current='page'] { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.4375rem 0.875rem; font-size: 0.875rem; }
.btn-primary { background: var(--brand-500); color: #fff; }
.btn-primary:hover { background: var(--brand-400); }
.btn-ghost { border: 1px solid var(--ink-700); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--ink-600); }

/* Surfaces */
.card {
  background: rgba(36, 32, 29, 0.6);
  border: 1px solid var(--ink-700);
  border-radius: 0.75rem;
}
.card-hover { transition: border-color 0.2s, background-color 0.2s; }
.card-hover:hover { border-color: rgba(232, 118, 42, 0.45); background: rgba(36, 32, 29, 0.9); }
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(232, 118, 42, 0.12);
  border: 1px solid rgba(232, 118, 42, 0.25);
  color: var(--brand-400);
}
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid var(--brand-600);
  color: var(--brand-300);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.8125rem;
}

/* Code */
.code-window { background: #0d0b0a; border: 1px solid var(--ink-700); border-radius: 0.75rem; overflow: hidden; }
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--ink-700);
  background: var(--ink-900);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.code-body {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: #d6d0ca;
  white-space: pre;
}
.tok-comment { color: #7a726c; font-style: italic; }
.tok-cmd { color: var(--brand-300); }
.tok-flag { color: #8cc4e8; }
.tok-str { color: #b5d99c; }
.tok-key { color: #8cc4e8; }
.tok-num { color: #e8a6d0; }

/* Status pills (mirrors app run/gate states) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill-pass { color: var(--pass); background: rgba(111, 207, 151, 0.1); border-color: rgba(111, 207, 151, 0.3); }
.pill-fail { color: var(--fail); background: rgba(242, 118, 107, 0.1); border-color: rgba(242, 118, 107, 0.3); }
.pill-warn { color: var(--warn); background: rgba(242, 193, 78, 0.1); border-color: rgba(242, 193, 78, 0.3); }
.pill-neutral { color: var(--text-muted); background: rgba(255, 255, 255, 0.04); border-color: var(--ink-700); }
.pill-brand { color: var(--brand-300); background: rgba(232, 118, 42, 0.1); border-color: rgba(232, 118, 42, 0.3); }

/* Field rows used in check/report mockups */
.field-label { font-family: 'Fira Code', ui-monospace, monospace; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.field-row { padding: 0.875rem 1rem; border-top: 1px solid var(--ink-700); }

/* Docs / long-form content */
.doc-sidebar-link { display: block; padding: 0.375rem 0.75rem; border-left: 1px solid var(--ink-700); font-size: 0.875rem; color: var(--text-muted); transition: color 0.15s, border-color 0.15s; }
.doc-sidebar-link:hover { color: #fff; border-color: var(--brand-500); }
.prose-doc { color: var(--text-muted); line-height: 1.75; }
.prose-doc h2 { margin: 3.5rem 0 1rem; font-size: 1.75rem; font-weight: 700; color: #fff; scroll-margin-top: 5rem; }
.prose-doc h3 { margin: 2rem 0 0.75rem; font-size: 1.1875rem; font-weight: 600; color: #fff; scroll-margin-top: 5rem; }
.prose-doc p { margin: 0 0 1rem; }
.prose-doc ul, .prose-doc ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose-doc ul { list-style: disc; }
.prose-doc ol { list-style: decimal; }
.prose-doc li { margin: 0.375rem 0; }
.prose-doc a { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }
.prose-doc strong { color: var(--text); }
.prose-doc :not(pre) > code { padding: 0.125rem 0.375rem; border-radius: 0.25rem; background: var(--ink-800); border: 1px solid var(--ink-700); font-family: 'Fira Code', ui-monospace, monospace; font-size: 0.85em; color: var(--brand-200, #fbd2ad); }
.prose-doc .code-window { margin: 0 0 1.5rem; }
.prose-doc table { width: 100%; margin: 0 0 1.5rem; border-collapse: collapse; font-size: 0.9rem; }
.prose-doc th { text-align: left; padding: 0.625rem 0.75rem; color: var(--text); border-bottom: 1px solid var(--ink-600); font-weight: 600; }
.prose-doc td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--ink-700); vertical-align: top; }

/* HTTP method badges */
.method { display: inline-block; min-width: 3.75rem; text-align: center; padding: 0.0625rem 0.375rem; border-radius: 0.25rem; font-family: 'Fira Code', ui-monospace, monospace; font-size: 0.6875rem; font-weight: 600; }
.method-get { color: #8cc4e8; background: rgba(140, 196, 232, 0.1); }
.method-post { color: var(--pass); background: rgba(111, 207, 151, 0.1); }
.method-patch, .method-put { color: var(--warn); background: rgba(242, 193, 78, 0.1); }
.method-delete { color: var(--fail); background: rgba(242, 118, 107, 0.1); }

/* FAQ accordion */
.faq-item > summary { list-style: none; cursor: pointer; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.2s; }

/* Video dialog */
.video-dialog {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  width: min(1024px, calc(100vw - 2rem));
  max-width: min(1024px, calc(100vw - 2rem));
  overflow: visible;
}
.video-dialog::backdrop { background: rgba(12, 10, 9, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
