:root {
  --bg: #f4ecdf;
  --bg-strong: #efe4d2;
  --paper: #fffaf2;
  --paper-strong: #fffdf8;
  --ink: #16120f;
  --muted: #665d54;
  --line: rgba(70, 49, 21, 0.16);
  --line-strong: rgba(70, 49, 21, 0.26);
  --teal: #0f766e;
  --teal-deep: #0c5d56;
  --rust: #a8511c;
  --rust-soft: rgba(168, 81, 28, 0.1);
  --teal-soft: rgba(15, 118, 110, 0.1);
  --shadow-lg: 0 26px 60px rgba(66, 46, 20, 0.13);
  --shadow-md: 0 16px 36px rgba(66, 46, 20, 0.09);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --body-font: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono-font: "IBM Plex Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 24%),
    radial-gradient(circle at left 22%, rgba(168, 81, 28, 0.1), transparent 20%),
    linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(70, 49, 21, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 49, 21, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 54%, transparent 100%);
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 20px 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 1rem;
  font-family: var(--display-font);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  font-family: var(--display-font);
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.26);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.topnav a:hover,
.text-link:hover {
  color: var(--teal);
}

.hero,
.section,
.metrics,
.example-stack,
.product-proof {
  margin-bottom: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.hero > *,
.product-proof > *,
.workflow-grid > *,
.feature-grid > *,
.example-grid > * {
  min-width: 0;
}

.product-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(15, 118, 110, 0.1), rgba(255, 250, 242, 0.92));
  box-shadow: var(--shadow-md);
}

.product-proof-copy h2 {
  margin: 0 0 12px;
  font-family: var(--display-font);
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.product-proof-copy,
.product-proof-image {
  min-width: 0;
}

.product-proof-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.product-proof-image {
  display: block;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper-strong);
  box-shadow: var(--shadow-lg);
}

.product-proof-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero-copy,
.panel,
.metric-card,
.feature-card,
.workflow-card,
.example-card,
.docs-sidebar,
.docs-article {
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.hero-copy,
.panel,
.metric-card,
.feature-card,
.workflow-card,
.example-card,
.docs-sidebar,
.docs-article,
.pipeline-step,
.mini-note {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 34px;
}

.hero-copy h1,
.page-title,
.section-heading h2,
.docs-sidebar-head h1,
.docs-meta h2 {
  font-family: var(--display-font);
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  max-width: 12ch;
}

.hero-text,
.panel-note,
.section-intro,
.sidebar-copy,
.docs-summary {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(22, 18, 15, 0.05);
  color: var(--muted);
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-actions,
.cta-actions,
.docs-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin: 22px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.4);
}

.button-accent {
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-notes span,
.pill,
.workflow-label,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.hero-notes span,
.pill,
.workflow-label {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
}

.panel {
  padding: 24px;
}

.panel-kicker,
.workflow-label {
  margin-bottom: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 22px 20px;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display-font);
  font-size: 2.2rem;
}

.metric-card span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.metric-card small {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 30px;
  border-radius: 34px;
  background: rgba(255, 250, 242, 0.44);
  border: 1px solid rgba(70, 49, 21, 0.07);
}

.section-band {
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(255, 250, 242, 0.78));
}

.section-heading {
  max-width: 860px;
  margin-bottom: 18px;
}

.section-heading h2,
.page-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.feature-grid,
.workflow-grid,
.example-grid,
.dual-panel,
.artifact-layout,
.docs-layout {
  display: grid;
  gap: 16px;
}

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

.feature-card,
.workflow-card {
  padding: 22px;
}

.feature-card h3,
.workflow-card h3,
.mini-note h3,
.example-card h2,
.example-card h3 {
  margin: 0 0 10px;
  font-family: var(--display-font);
}

.feature-card p,
.workflow-card p,
.mini-note p,
.example-card p {
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pipeline-step {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.pipeline-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--rust-soft);
  color: var(--rust);
  font-weight: 700;
}

.pipeline-step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.pipeline-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dual-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.artifact-layout {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.artifact-notes {
  display: grid;
  gap: 12px;
}

.mini-note {
  padding: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.check-list,
.docs-article ul,
.docs-article ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer {
  padding: 12px 6px 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.94rem;
}

pre {
  position: relative;
  margin: 14px 0 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #16120f;
  color: #f5ecdf;
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

p code,
li code,
.docs-article code.inline-code {
  padding: 0.14rem 0.4rem;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal-deep);
  font-size: 0.95em;
}

.code-shell {
  position: relative;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.copy-button.is-copied {
  background: rgba(15, 118, 110, 0.32);
}

.docs-shell {
  max-width: 1500px;
}

.docs-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 18px;
  padding: 24px;
}

.docs-sidebar-head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.search-field {
  display: block;
  margin: 22px 0 16px;
}

.search-field span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
}

.docs-nav {
  display: grid;
  gap: 8px;
}

.docs-nav-section {
  margin-top: 10px;
}

.docs-nav-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-nav a {
  display: block;
  padding: 11px 13px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
}

.docs-nav a.is-active,
.docs-nav a:hover {
  color: var(--ink);
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.14);
}

.docs-nav small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

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

.docs-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.docs-meta h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.docs-article {
  padding: 28px;
  min-height: 70vh;
}

.docs-article > :first-child {
  margin-top: 0;
}

.docs-article h1,
.docs-article h2,
.docs-article h3,
.docs-article h4 {
  margin: 1.4em 0 0.5em;
  font-family: var(--display-font);
  line-height: 1.06;
}

.docs-article h1 {
  font-size: 2.5rem;
}

.docs-article h2 {
  font-size: 1.9rem;
}

.docs-article h3 {
  font-size: 1.35rem;
}

.docs-article p,
.docs-article li,
.docs-article blockquote {
  color: var(--ink);
  line-height: 1.78;
}

.docs-article p,
.docs-article ul,
.docs-article ol,
.docs-article blockquote {
  margin: 0 0 1rem;
}

.docs-article blockquote {
  padding: 12px 16px;
  border-left: 4px solid var(--teal);
  background: rgba(15, 118, 110, 0.06);
  border-radius: 0 14px 14px 0;
}

.docs-article hr {
  border: 0;
  height: 1px;
  margin: 1.5rem 0;
  background: var(--line);
}

.docs-article a {
  color: var(--teal-deep);
}

.example-stack {
  display: grid;
  gap: 18px;
}

.example-card {
  padding: 26px;
}

.example-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.example-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.example-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero,
  .product-proof,
  .docs-layout,
  .artifact-layout,
  .workflow-grid,
  .feature-grid,
  .pipeline,
  .metrics,
  .dual-panel,
  .example-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-sidebar {
    position: static;
  }

  .cta-section,
  .docs-meta,
  .example-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 14px 14px 28px;
  }

  .topbar {
    border-radius: 24px;
    align-items: start;
    flex-direction: column;
  }

  .hero-copy,
  .panel,
  .product-proof,
  .section,
  .workflow-card,
  .feature-card,
  .example-card,
  .docs-sidebar,
  .docs-article,
  .metric-card {
    padding: 20px;
  }

  .copy-button {
    top: 10px;
    right: 10px;
  }

  pre {
    padding: 46px 16px 16px;
  }
}
