:root {
  --bg: #f5efe3;
  --bg-strong: #efe5d3;
  --ink: #1b1a16;
  --muted: #625d53;
  --line: rgba(27, 26, 22, 0.1);
  --card: rgba(255, 252, 245, 0.78);
  --card-strong: #fffaf0;
  --accent: #0c6b58;
  --accent-deep: #07483c;
  --accent-soft: rgba(12, 107, 88, 0.12);
  --gold: #be8a2f;
  --shadow: 0 24px 70px rgba(70, 50, 20, 0.14);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
  --nav-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(190, 138, 47, 0.15), transparent 35%),
    linear-gradient(180deg, #fbf6ed 0%, var(--bg) 100%);
  color: var(--ink);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(27, 26, 22, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(27, 26, 22, 0.028) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 82%);
}

.docs-body {
  background:
    linear-gradient(180deg, #f8f1e6 0%, #f4ebde 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 241, 230, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-nav.scrolled,
.site-nav-solid {
  background: rgba(248, 241, 230, 0.94);
  border-color: var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent-deep);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  padding: 56px 0 80px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(12, 107, 88, 0.18), transparent 22%),
    radial-gradient(circle at 15% 30%, rgba(190, 138, 47, 0.2), transparent 28%);
  pointer-events: none;
}

.hero-layout,
.docs-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.hero-copy h1,
.docs-hero h1 {
  margin: 10px 0 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(12, 107, 88, 0.14);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-text,
.section-head p,
.feature-card p,
.workflow-card p,
.security-card p,
.doc-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(12, 107, 88, 0.22);
}

.btn-secondary {
  background: rgba(255, 252, 245, 0.78);
  border-color: rgba(12, 107, 88, 0.18);
  color: var(--accent-deep);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.7);
  border: 1px solid rgba(27, 26, 22, 0.08);
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-panel,
.docs-callout {
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.82), rgba(255, 250, 240, 0.94));
  border: 1px solid rgba(27, 26, 22, 0.08);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 18px;
}

.upload-page-shell {
  padding: 44px 0 96px;
}

.upload-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.upload-hero-card,
.upload-form-shell,
.upload-status-card {
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.84), rgba(255, 250, 240, 0.96));
  border: 1px solid rgba(27, 26, 22, 0.08);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.upload-hero-card,
.upload-status-card {
  padding: 28px;
}

.upload-hero-card h1 {
  margin: 14px 0 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.upload-hero-card p,
.upload-status-card p,
.upload-form-shell p,
.upload-requirements li {
  color: var(--muted);
  line-height: 1.75;
}

.upload-requirements {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  margin: 22px 0 0;
}

.upload-form-shell {
  padding: 30px;
}

.upload-form-shell h2,
.upload-status-card h2 {
  margin: 10px 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.upload-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin-top: 22px;
}

.upload-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.upload-label span {
  color: var(--ink);
}

.upload-input,
.upload-textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(27, 26, 22, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.upload-input:focus,
.upload-textarea:focus {
  outline: none;
  border-color: rgba(12, 107, 88, 0.5);
  box-shadow: 0 0 0 4px rgba(12, 107, 88, 0.12);
  background: #fff;
}

.upload-field-wide {
  grid-column: 1 / -1;
}

.upload-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.upload-footnote {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 56ch;
}

.upload-result-card {
  min-height: 180px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 26, 22, 0.08);
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.upload-status-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.upload-status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 107, 88, 0.1);
  border: 1px solid rgba(12, 107, 88, 0.16);
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.upload-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signal-card {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(12, 107, 88, 0.08), rgba(190, 138, 47, 0.08)),
    var(--card-strong);
  min-height: 100%;
}

.signal-kicker,
.docs-callout h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
}

.signal-grid {
  display: grid;
  gap: 16px;
}

.signal-grid article,
.docs-callout {
  padding: 18px;
}

.signal-grid article {
  position: relative;
  border-top: 1px solid rgba(27, 26, 22, 0.08);
}

.signal-grid article:first-child {
  border-top: 0;
}

.signal-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.signal-grid p,
.docs-callout p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.docs-callout code {
  display: inline-block;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #efe7d8;
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.45), rgba(239, 229, 211, 0.78));
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 14px 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.feature-grid,
.workflow-grid,
.security-grid,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.doc-grid.two-up {
  margin-bottom: 18px;
}

.feature-card,
.workflow-card,
.security-card,
.doc-card {
  background: var(--card);
  border: 1px solid rgba(27, 26, 22, 0.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 34px rgba(77, 55, 20, 0.07);
}

.feature-card,
.workflow-card,
.security-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)),
    var(--card);
}

.feature-card h3,
.workflow-card h3,
.security-card h3,
.doc-card h3 {
  margin: 10px 0;
  font-size: 1.15rem;
}

.workflow-card h3,
.security-card h3 {
  max-width: 18ch;
}

.feature-index {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.security-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta-strip {
  margin-top: 28px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(130deg, rgba(12, 107, 88, 0.12), rgba(190, 138, 47, 0.14));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.cta-strip p {
  margin: 0;
  color: var(--muted);
}

#problem .feature-card,
#solution .workflow-card,
#workflows .workflow-card,
#visibility .workflow-card {
  min-height: 100%;
}

.docs-shell {
  padding-top: 28px;
  padding-bottom: 64px;
}

.docs-hero {
  padding: 54px 0 18px;
}

.docs-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.doc-list {
  display: grid;
  gap: 18px;
}

.doc-card pre {
  overflow-x: auto;
  background: #171612;
  color: #f7f1e8;
  border-radius: 18px;
  padding: 16px;
  line-height: 1.6;
  font-size: 0.88rem;
}

.doc-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 980px) {

  .hero-layout,
  .docs-hero-grid,
  .feature-grid,
  .workflow-grid,
  .security-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .docs-hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .nav-shell {
    align-items: flex-start;
    padding: 12px 0;
    flex-direction: column;
  }

  .nav-links {
    gap: 14px;
    justify-content: flex-start;
  }

  .section {
    padding: 56px 0;
  }

  .cta-strip {
    padding: 18px;
  }
}

/* ─── Documentation page extras ─── */

/* Method badges */
.method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  vertical-align: middle;
  margin-right: 6px;
}

.method-get {
  background: rgba(12, 107, 88, 0.14);
  color: #0c6b58;
}

.method-post {
  background: rgba(37, 99, 235, 0.13);
  color: #1d4ed8;
}

.method-patch {
  background: rgba(190, 138, 47, 0.16);
  color: #92660d;
}

.method-delete {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

/* Endpoint path styling */
.endpoint-path {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #171612;
  color: #f7f1e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  margin: 10px 0;
  overflow-x: auto;
}

.endpoint-path .method-badge {
  flex-shrink: 0;
}

/* Parameter tables */
.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.9rem;
}

.param-table th {
  text-align: left;
  padding: 10px 12px;
  background: rgba(12, 107, 88, 0.07);
  border-bottom: 2px solid var(--line);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.param-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.param-table code {
  padding: 2px 7px;
  border-radius: 8px;
  background: #efe7d8;
  font-size: 0.84rem;
}

.param-required {
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.78rem;
}

.param-optional {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Code tabs */
.code-tabs {
  margin: 14px 0;
}

.code-tab-buttons {
  display: flex;
  gap: 4px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.code-tab-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 252, 245, 0.5);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.code-tab-btn:hover {
  background: rgba(255, 252, 245, 0.9);
  color: var(--ink);
}

.code-tab-btn.active {
  background: #171612;
  color: #f7f1e8;
  border-color: #171612;
}

.code-tab-panel {
  display: none;
}

.code-tab-panel.active {
  display: block;
}

.code-tab-panel pre {
  margin-top: 0;
  border-radius: 0 18px 18px 18px;
}

/* Response collapsible */
.response-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.6);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  margin: 8px 0;
  transition: background 120ms ease;
}

.response-toggle:hover {
  background: rgba(255, 252, 245, 0.95);
}

.response-toggle::before {
  content: '▸';
  font-size: 0.8em;
  transition: transform 200ms ease;
}

.response-toggle.open::before {
  transform: rotate(90deg);
}

.response-body {
  display: none;
}

.response-body.open {
  display: block;
}

/* Integration guide cards */
.guide-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(27, 26, 22, 0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 12px 34px rgba(77, 55, 20, 0.07);
  overflow: hidden;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.guide-card-codex::before {
  background: linear-gradient(90deg, #0c6b58, #2ea88a);
}

.guide-card-claude::before {
  background: linear-gradient(90deg, #be8a2f, #e8b84d);
}

.guide-card h3 {
  margin: 0 0 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
}

.guide-card .guide-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* Section divider */
.section-divider {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}

/* Step list */
.step-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 18px 0;
}

.step-list li {
  counter-increment: step;
  padding: 14px 0 14px 44px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
}

.step-list li:last-child {
  border-bottom: none;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Docs table of contents (sidebar) */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 100px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid rgba(27, 26, 22, 0.08);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.docs-toc h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.docs-toc a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color 120ms ease, border-color 120ms ease;
}

.docs-toc a:hover,
.docs-toc a.active {
  color: var(--accent-deep);
  border-left-color: var(--accent);
}

.docs-toc .toc-sub {
  padding-left: 24px;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    position: static;
    max-height: none;
  }
}

/* Nav pill for doc version toggle */
.doc-version-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.78);
  border: 1px solid rgba(12, 107, 88, 0.14);
}

.doc-version-toggle a {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 120ms ease, color 120ms ease;
}

.doc-version-toggle a:hover {
  color: var(--ink);
}

.doc-version-toggle a.active {
  background: var(--accent);
  color: #fff;
}

/* Agent page — structured blocks */
.schema-block {
  background: #171612;
  color: #f7f1e8;
  border-radius: 18px;
  padding: 20px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.65;
  margin: 14px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Copy button in code blocks */
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(247, 241, 232, 0.2);
  background: rgba(247, 241, 232, 0.08);
  color: rgba(247, 241, 232, 0.6);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.copy-btn:hover {
  background: rgba(247, 241, 232, 0.18);
  color: #f7f1e8;
}

.code-block-wrap {
  position: relative;
}

/* Doc grid three-up */
.doc-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .doc-grid.three-up {
    grid-template-columns: 1fr;
  }
}

/* ─── 2026 Inner Page System Overrides ─── */

.site-nav.scrolled,
.site-nav-solid {
  box-shadow: 0 10px 28px rgba(77, 55, 20, 0.05);
}

.nav-links a {
  transition: color 140ms ease, opacity 140ms ease;
}

.hero-grid {
  padding: 38px 0 80px;
}

.hero-layout,
.docs-hero-grid {
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(74svh, 760px);
}

.hero-panel {
  align-self: end;
}

.feature-card,
.workflow-card,
.security-card,
.doc-card,
.guide-card {
  box-shadow: 0 10px 28px rgba(77, 55, 20, 0.045);
}

.docs-hero {
  padding: 26px 0 18px;
}

.docs-hero-grid {
  padding: 34px 0 16px;
}

.docs-hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.docs-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.docs-summary-strip div {
  padding-top: 12px;
  border-top: 1px solid rgba(27, 26, 22, 0.12);
}

.docs-summary-strip span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.docs-summary-strip strong {
  font-size: 1rem;
  line-height: 1.45;
  font-family: 'Space Grotesk', sans-serif;
}

.docs-page-nav-wrap {
  position: sticky;
  top: var(--nav-height);
  z-index: 12;
  padding: 8px 0 18px;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(248, 241, 230, 0.9), rgba(248, 241, 230, 0.72));
  border-bottom: 1px solid rgba(27, 26, 22, 0.06);
}

.docs-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-page-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(27, 26, 22, 0.08);
  background: rgba(255, 252, 245, 0.72);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.docs-page-nav a:hover,
.docs-page-nav a.active {
  color: var(--accent-deep);
  border-color: rgba(12, 107, 88, 0.18);
  background: rgba(12, 107, 88, 0.08);
  transform: translateY(-1px);
}

.docs-section .section-head {
  max-width: 720px;
}

.docs-section .section-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
}

.param-table td {
  line-height: 1.6;
}

.vc-summary-strip {
  margin-top: 26px;
}

.operating-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
  padding-top: 10px;
}

.operating-flow-line {
  position: absolute;
  top: 23px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(27, 26, 22, 0.12);
}

.operating-flow article {
  position: relative;
  padding-top: 28px;
}

.operating-flow article::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(12, 107, 88, 0.08);
}

.operating-flow span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.operating-flow strong {
  display: block;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
}

.operating-flow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero-copy {
    min-height: auto;
  }

  .hero-layout,
  .docs-hero-grid,
  .upload-hero-grid {
    grid-template-columns: 1fr;
  }

  .upload-field-grid {
    grid-template-columns: 1fr;
  }

  .docs-summary-strip,
  .operating-flow {
    grid-template-columns: 1fr;
  }

  .operating-flow-line {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .upload-form-shell,
  .upload-hero-card,
  .upload-status-card {
    padding: 22px;
    border-radius: 24px;
  }

  .upload-form-footer {
    align-items: stretch;
  }

  .upload-form-footer .btn {
    width: 100%;
  }

  .docs-page-nav-wrap {
    top: 0;
  }

  .docs-page-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}
