:root {
  --bg: #f4efe5;
  --bg-strong: #e4dccd;
  --surface: rgba(255, 252, 245, 0.8);
  --surface-strong: #fffaf2;
  --text: #102118;
  --text-muted: #4b5c53;
  --line: rgba(16, 33, 24, 0.12);
  --lime: #b7e07a;
  --orange: #f28c28;
  --teal: #5ea5a0;
  --sand: #d6b98a;
  --dark: #0e1a14;
  --shadow: 0 24px 80px rgba(29, 42, 35, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(183, 224, 122, 0.45), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(242, 140, 40, 0.22), transparent 28%),
    linear-gradient(180deg, #f7f1e6 0%, #efe7d8 55%, #ece4d6 100%);
  font-family: 'Noto Sans SC', sans-serif;
}

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

img {
  max-width: 100%;
}

.site-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header,
.site-footer,
.hero,
.page-hero,
.section-block,
.contact-panel,
.doc-layout {
  backdrop-filter: blur(12px);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  margin: 16px 0 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.78);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
h1,
h2,
h3 {
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  color: var(--text-muted);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
}

.site-nav a:hover,
.doc-card h3 a:hover,
.link-list a:hover,
.back-link:hover {
  color: var(--orange);
}

.hero,
.page-hero,
.section-block,
.contact-panel,
.doc-layout,
.site-footer {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 242, 0.76);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 40px;
}

.hero h1,
.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.4rem, 4vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero h1 {
  line-height: 1.08;
}

.hero p,
.page-hero p,
.section-heading p,
.contact-copy p,
.doc-card p,
.service-grid p,
.contact-offers p,
.site-footer p {
  color: var(--text-muted);
  line-height: 1.7;
}

.update-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-actions,
.hero-metrics,
.service-pills,
.doc-card-actions,
.contact-form-footer,
.field-grid,
.service-grid,
.site-footer {
  display: flex;
}

.hero-actions,
.service-pills {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  background: var(--dark);
  color: #fef9ef;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.hero-metrics {
  gap: 20px;
  margin-top: 28px;
}

.hero-metrics div {
  min-width: 112px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.6rem;
  font-family: 'Manrope', sans-serif;
}

.hero-metrics span,
.doc-card-meta,
.doc-card-actions span,
.sidebar-panel span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.stack-card {
  padding: 22px;
  border-radius: 24px;
}

.stack-card span,
.group-panel-head span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stack-card strong,
.group-panel-head h3,
.section-heading h2,
.contact-copy h2,
.doc-card h3,
.contact-offers strong,
.service-grid strong,
.sidebar-panel strong {
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
}

.stack-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.stack-card-dark {
  background: var(--dark);
  color: #fff7eb;
}

.stack-card-dark p,
.stack-card-dark span {
  color: rgba(255, 247, 235, 0.76);
}

.stack-card-accent {
  background: linear-gradient(135deg, #d9efae 0%, #f3c185 100%);
}

.stack-card-light {
  background: rgba(255, 255, 255, 0.68);
}

.section-block,
.page-hero,
.contact-panel,
.doc-layout {
  padding: 32px;
  margin-top: 28px;
}

.page-hero-compact h1 {
  font-size: clamp(2rem, 3vw, 3.6rem);
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-grid,
.doc-grid,
.contact-offers {
  display: grid;
  gap: 18px;
}

.group-panel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.group-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.group-panel-head h3,
.doc-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.doc-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 33, 24, 0.08);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doc-card-meta,
.doc-card-actions,
.contact-form-footer,
.field-grid {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doc-card ul,
.link-list,
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.2rem;
}

.doc-card li,
.prose li {
  margin: 0.3rem 0;
  color: var(--text-muted);
}

.doc-card-actions {
  margin-top: auto;
  font-size: 0.95rem;
}

.doc-card-actions span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  color: var(--text-muted);
}

.services-band {
  background: linear-gradient(135deg, rgba(14, 26, 20, 0.96), rgba(51, 71, 60, 0.92));
  color: #fff9ef;
}

.services-band .section-heading p,
.services-band article p {
  color: rgba(255, 249, 239, 0.74);
}

.service-grid {
  gap: 18px;
}

.toc-nav {
  text-align: center;
}

.toc-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.toc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.toc-pill:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.toc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-ai-agents { background: #6aae50; }
.dot-openclaw { background: #e8880a; }
.dot-claude-code { background: #b89a60; }
.dot-resources { background: #4a9e98; }
.dot-comparisons { background: #6495ed; }
.dot-agent-frameworks { background: #9370db; }

.service-grid article,
.contact-offers article {
  flex: 1;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.service-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field-grid {
  align-items: stretch;
}

.field-grid > label,
.contact-form > label {
  flex: 1;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-form span {
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 33, 24, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: #fef7ec;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

.doc-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.doc-sidebar {
  display: grid;
  gap: 14px;
  align-self: start;
  min-width: 0;
  width: 100%;
  position: sticky;
  top: 110px;
}

.sidebar-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 33, 24, 0.08);
  min-width: 0;
  overflow: hidden;
}

.sidebar-panel strong,
.sidebar-panel a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.link-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.doc-article {
  min-width: 0;
  padding: 8px 4px 8px 0;
}

.faq-block {
  display: grid;
  gap: 12px;
}

.faq-block article {
  border-radius: 16px;
  border: 1px solid rgba(16, 33, 24, 0.1);
  background: rgba(255, 255, 255, 0.62);
  padding: 16px 18px;
}

.faq-block h2,
.faq-block h3 {
  margin: 0;
}

.faq-block p {
  margin: 10px 0 0;
}

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

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  line-height: 1.15;
  margin-top: 1.6em;
  margin-bottom: 0.55em;
}

.prose p,
.prose li,
.prose blockquote {
  line-height: 1.8;
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--lime);
  background: rgba(183, 224, 122, 0.12);
}

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

.prose pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 18px;
  background: #14221a;
  color: #f8f4ea;
}

.prose :not(pre) > code {
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  background: rgba(16, 33, 24, 0.08);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  overflow: hidden;
  border-radius: 16px;
}

.prose th,
.prose td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(16, 33, 24, 0.08);
}

.prose th {
  background: rgba(16, 33, 24, 0.06);
}

.site-footer {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  margin-top: 28px;
}

.site-footer div:last-child {
  display: flex;
  gap: 16px;
}

.accent-ai-agents,
.accent-ai-agents .group-panel-head span {
  background-image: linear-gradient(135deg, rgba(183, 224, 122, 0.22), rgba(94, 165, 160, 0.08));
}

.accent-openclaw,
.accent-openclaw .group-panel-head span {
  background-image: linear-gradient(135deg, rgba(242, 140, 40, 0.18), rgba(214, 185, 138, 0.15));
}

.accent-claude-code,
.accent-claude-code .group-panel-head span {
  background-image: linear-gradient(135deg, rgba(214, 185, 138, 0.28), rgba(255, 255, 255, 0.2));
}

.accent-resources,
.accent-resources .group-panel-head span {
  background-image: linear-gradient(135deg, rgba(94, 165, 160, 0.18), rgba(183, 224, 122, 0.12));
}

.accent-comparisons,
.accent-comparisons .group-panel-head span {
  background-image: linear-gradient(135deg, rgba(100, 149, 237, 0.22), rgba(176, 196, 222, 0.08));
}

.accent-agent-frameworks,
.accent-agent-frameworks .group-panel-head span {
  background-image: linear-gradient(135deg, rgba(147, 112, 219, 0.22), rgba(186, 156, 230, 0.08));
}

@media (max-width: 960px) {
  .site-header,
  .hero,
  .contact-panel,
  .doc-layout,
  .group-panel-head,
  .service-grid,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .doc-grid {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100vw - 16px, 1200px);
  }

  .site-header {
    padding: 16px;
    border-radius: 24px;
  }

  .hero,
  .page-hero,
  .section-block,
  .contact-panel,
  .doc-layout,
  .site-footer {
    padding: 22px;
  }

  .field-grid,
  .hero-metrics,
  .contact-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer div:last-child {
    flex-direction: column;
  }
}