:root {
  color-scheme: light;
  --background: #F6F7F2;
  --camera: #101820;
  --camera-raised: #17211F;
  --surface: #FFFFFF;
  --surface-muted: #ECEFE8;
  --surface-strong: #DFE6D8;
  --border: #D7DED0;
  --border-strong: #AEB8A5;
  --text: #111611;
  --text-muted: #5E665C;
  --text-subtle: #7B8478;
  --text-on-dark: #F7FAEF;
  --ai: #D7F85C;
  --ai-soft: #EEF9BE;
  --ai-text: #23310B;
  --danger: #C73D3D;
  --danger-soft: #FCE1DD;
  --white: #FFFFFF;
  --code: #101820;
  --code-text: #F7FAEF;
  --radius: 8px;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
}

code {
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 5px;
  background: rgba(236, 239, 232, 0.86);
  padding: 0.08rem 0.26rem;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    monospace;
  font-size: 0.92em;
}

pre {
  margin: 18px 0 0;
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--code);
  color: var(--code-text);
  padding: 18px;
  line-height: 1.58;
  font-size: 0.84rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

pre code {
  display: block;
  max-width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(246, 247, 242, 0.96);
  padding: 12px clamp(18px, 4vw, 40px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
}

.brand span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--ai) 0 48%, transparent 48%),
    linear-gradient(315deg, var(--camera) 0 48%, var(--surface-strong) 48%);
  box-shadow: 0 0 0 1px rgba(17, 22, 17, 0.12);
}

.site-nav {
  display: flex;
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-nav a {
  overflow-wrap: anywhere;
  text-decoration: none;
}

.site-nav a:hover,
.docs-sidebar a:hover,
.toc-panel a:hover,
.site-footer a:hover {
  color: var(--text);
}

.docs-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 860px) 210px;
  gap: 34px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 30px clamp(18px, 3vw, 38px) 72px;
}

.docs-main {
  min-width: 0;
}

.docs-sidebar,
.toc-panel {
  position: sticky;
  top: 72px;
  align-self: start;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.docs-sidebar nav,
.toc-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-sidebar p,
.toc-panel p {
  margin: 18px 0 6px;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.docs-sidebar p:first-child,
.toc-panel p:first-child {
  margin-top: 0;
}

.docs-sidebar a,
.toc-panel a {
  border-radius: 6px;
  padding: 7px 8px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.docs-sidebar a:hover,
.toc-panel a:hover {
  background: var(--surface-muted);
}

.doc-section {
  min-width: 0;
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
  scroll-margin-top: 82px;
}

.doc-section:first-child {
  padding-top: 4px;
}

.doc-section:last-child {
  border-bottom: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ai-text);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.68;
}

.lead {
  max-width: 780px;
  margin-top: 14px;
  font-size: 1rem;
}

.fact-table {
  margin-top: 28px;
  border-block: 1px solid var(--border);
}

.fact-table div {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  border-top: 1px solid var(--border);
  padding: 13px 0;
}

.fact-table div:first-child {
  border-top: 0;
}

.fact-table strong {
  color: var(--text);
  font-size: 0.86rem;
}

.fact-table span {
  min-width: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.answer-list,
.example-stack {
  display: grid;
  gap: 0;
}

.answer-list article,
.example-stack article {
  min-width: 0;
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.answer-list article:first-child,
.example-stack article:first-child {
  border-top: 0;
  padding-top: 0;
}

.preview-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 18px;
  align-items: center;
  min-width: 0;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.preview-example model-viewer {
  display: block;
  width: 100%;
  height: 240px;
  min-width: 0;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 239, 232, 0.82)),
    radial-gradient(circle at 50% 45%, rgba(215, 248, 92, 0.28), transparent 48%);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.use-case-grid article {
  min-width: 0;
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.use-case-grid article:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 0;
}

.limitation-list {
  display: grid;
  gap: 12px;
}

.limitation-list p {
  min-width: 0;
  border-left: 4px solid var(--danger);
  background: var(--surface);
  padding: 14px 16px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1440px);
  min-width: 0;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 24px clamp(18px, 3vw, 38px);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .docs-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .toc-panel {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .docs-shell {
    display: block;
    padding-inline: 18px;
  }

  .docs-sidebar {
    position: static;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
  }

  .docs-sidebar nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .docs-sidebar p {
    width: 100%;
    margin: 14px 0 0;
  }

  .docs-sidebar p:first-child {
    margin-top: 0;
  }

  .docs-sidebar a {
    border: 1px solid var(--border);
    background: var(--surface);
  }

  .doc-section {
    scroll-margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .brand {
    align-items: flex-start;
  }

  .brand span:last-child {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .site-nav {
    gap: 10px 12px;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .docs-shell {
    padding: 20px 14px 48px;
  }

  h1 {
    font-size: clamp(1.75rem, 10vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.24rem, 7vw, 1.5rem);
  }

  .fact-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .preview-example,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .use-case-grid article:nth-child(2) {
    border-top: 1px solid var(--border);
    padding-top: 18px;
  }

  .preview-example model-viewer {
    height: 220px;
  }

  pre {
    padding: 12px;
    font-size: 0.75rem;
  }
}
