@import url("https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ibeams-green: #28b879;
  --ibeams-green-bright: #4fb848;
  --ibeams-green-dark: #689540;
  --ibeams-cream: #f6f6f6;
  --ibeams-white: #ffffff;
  --ibeams-ink: #1e3a2b;
  --ibeams-ink-soft: #3c4a40;
  --ibeams-border: #d8e5dd;
  --ibeams-line: #e7f0ea;
  --ibeams-focus: 0 0 0 3px rgba(40, 184, 121, 0.24);
  --shadow-soft: 0 24px 55px -42px rgba(12, 44, 31, 0.38);
  --shadow-card: 0 20px 46px -40px rgba(12, 44, 31, 0.33);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --radius-card: 20px;
  --font-body: "Cabin", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Cabin", system-ui, sans-serif;
}

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

::selection {
  background: rgba(40, 184, 121, 0.2);
  color: #173122;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ibeams-ink);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 8% 10%, rgba(79, 184, 72, 0.2), transparent 35%),
    radial-gradient(circle at 93% 16%, rgba(40, 184, 121, 0.13), transparent 31%),
    linear-gradient(162deg, #f9fcfa 0%, var(--ibeams-cream) 48%, #eef6f1 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

body::before {
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: 10%;
  background: rgba(104, 149, 64, 0.1);
}

body::after {
  width: 220px;
  height: 220px;
  top: 11%;
  right: -80px;
  background: rgba(40, 184, 121, 0.1);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

p {
  margin: 0.72rem 0;
}

a {
  color: var(--ibeams-green-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #517136;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid rgba(158, 189, 171, 0.34);
  backdrop-filter: blur(11px);
  background: rgba(247, 251, 249, 0.9);
}

.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.75rem 0.85rem;
  display: grid;
  gap: 0.65rem;
  transition: padding-left 0.2s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ibeams-ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  height: 31px;
  width: auto;
  filter: drop-shadow(0 7px 14px rgba(20, 84, 56, 0.2));
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: center;
  overflow: visible;
  padding-bottom: 0.08rem;
}

.site-nav a,
.site-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.42rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ibeams-ink-soft);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.site-nav-btn {
  grid-column: 1 / -1;
}

.site-nav a:hover,
.site-nav-btn:hover {
  color: var(--ibeams-green-dark);
  background: rgba(40, 184, 121, 0.08);
}

.site-nav a.is-active,
.site-nav-btn.is-active {
  color: var(--ibeams-green-dark);
  background: rgba(40, 184, 121, 0.13);
}

.site-search {
  position: relative;
  width: 100%;
}

.site-search input {
  width: 100%;
  border: 1px solid var(--ibeams-border);
  border-radius: 13px;
  padding: 0.72rem 0.88rem;
  font-size: 0.94rem;
  color: var(--ibeams-ink);
  background: rgba(255, 255, 255, 0.92);
}

.site-search input:focus {
  outline: none;
  border-color: rgba(40, 184, 121, 0.55);
  box-shadow: var(--ibeams-focus);
}

.site-search-results {
  position: absolute;
  z-index: 90;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--ibeams-border);
  border-radius: 15px;
  background: var(--ibeams-white);
  box-shadow: var(--shadow-soft);
}

.site-search-results a {
  display: grid;
  gap: 0.24rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--ibeams-line);
}

.site-search-results a:last-child {
  border-bottom: 0;
}

.site-search-results a:hover {
  background: rgba(40, 184, 121, 0.07);
}

.site-search-results strong {
  color: var(--ibeams-ink);
}

.site-search-results small {
  color: var(--ibeams-ink-soft);
}

.docs-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 72;
  background: rgba(18, 35, 26, 0.43);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.docs-drawer-backdrop.is-open {
  opacity: 1;
}

.docs-drawer {
  position: fixed;
  z-index: 73;
  top: 0;
  left: 0;
  width: min(370px, 92vw);
  height: 100vh;
  transform: translateX(-104%);
  transition: transform 0.22s ease;
  border-right: 1px solid rgba(158, 189, 171, 0.42);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 249, 0.96));
  box-shadow: 0 20px 55px -36px rgba(11, 44, 30, 0.56);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.docs-drawer.is-open {
  transform: translateX(0);
}

.docs-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem 0.85rem;
  border-bottom: 1px solid var(--ibeams-line);
}

.docs-drawer__header strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.docs-drawer__close {
  border: 1px solid rgba(40, 184, 121, 0.26);
  border-radius: 10px;
  background: rgba(40, 184, 121, 0.08);
  color: var(--ibeams-green-dark);
  font-weight: 700;
  padding: 0.32rem 0.58rem;
  cursor: pointer;
}

.docs-drawer__body {
  overflow: auto;
  padding: 0.72rem 0.75rem 1rem;
}

.docs-drawer__body::-webkit-scrollbar {
  width: 10px;
}

.docs-drawer__body::-webkit-scrollbar-thumb {
  background: rgba(104, 149, 64, 0.24);
  border-radius: 999px;
}

.sidebar-list {
  margin: 0;
  padding-left: 0.34rem;
  list-style: none;
  display: grid;
  gap: 0.24rem;
}

.sidebar-category > span {
  display: block;
  margin: 0.58rem 0 0.24rem;
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ibeams-green-dark);
}

.sidebar-doc a {
  display: block;
  border-radius: 10px;
  padding: 0.3rem 0.4rem;
  color: #355140;
  font-size: 0.9rem;
  line-height: 1.33;
}

.sidebar-doc a:hover,
.docs-drawer a.is-active {
  background: rgba(40, 184, 121, 0.11);
  color: var(--ibeams-green-dark);
}

.site-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.95rem 0.82rem 1.4rem;
}

.site-main {
  display: grid;
  gap: 1rem;
}

.hero-content,
.hero-card,
.feature-card,
.doc-article,
.assistant-intro,
.assistant-card,
.assistant-inline,
.search-page,
.not-found {
  border: 1px solid rgba(158, 189, 171, 0.42);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 253, 251, 0.97));
  box-shadow: var(--shadow-card);
}

.page-home .hero-content,
.page-doc .doc-article,
.page-assistant .assistant-inline,
.page-search .search-page {
  border-top-width: 3px;
  border-top-color: rgba(40, 184, 121, 0.46);
}

.page-home .hero-content {
  position: relative;
  overflow: hidden;
}

.page-home .hero-content::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -85px;
  bottom: -92px;
  border-radius: 50%;
  background: rgba(79, 184, 72, 0.13);
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border-radius: 999px;
  padding: 0.31rem 0.72rem;
  background: rgba(40, 184, 121, 0.14);
  color: var(--ibeams-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero {
  display: grid;
  gap: 0.95rem;
}

.hero-content h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.86rem, 7.2vw, 2.7rem);
}

.hero-content p {
  margin-top: 0.45rem;
  color: var(--ibeams-ink-soft);
  max-width: 56ch;
}

.hero-card h3 {
  margin-top: 0;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.42rem;
}

.hero-actions {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.63rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ibeams-green), var(--ibeams-green-bright));
  box-shadow: 0 14px 30px -20px rgba(40, 184, 121, 0.74);
}

.btn-secondary {
  color: var(--ibeams-green-dark);
  border-color: rgba(40, 184, 121, 0.52);
  background: rgba(40, 184, 121, 0.06);
}

.section-grid {
  display: grid;
  gap: 0.9rem;
}

.feature-card {
  display: grid;
  gap: 0.54rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 184, 121, 0.58);
  box-shadow: 0 22px 44px -35px rgba(40, 184, 121, 0.48);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.feature-card p {
  margin: 0;
  color: var(--ibeams-ink-soft);
}

.feature-card span {
  color: var(--ibeams-green-dark);
  font-weight: 700;
}

.doc-layout {
  display: grid;
  gap: 0.95rem;
}

.doc-header {
  margin-bottom: 0.96rem;
  padding-bottom: 0.96rem;
  border-bottom: 1px solid var(--ibeams-line);
}

.doc-header h1 {
  margin-bottom: 0.32rem;
  font-size: clamp(1.56rem, 6vw, 2.35rem);
}

.doc-path {
  margin: 0;
  font-size: 0.84rem;
  color: #6a8276;
}

.doc-toc-mobile {
  margin-bottom: 0.95rem;
  border: 1px solid rgba(158, 189, 171, 0.42);
  border-radius: 14px;
  padding: 0.54rem 0.74rem;
  background: rgba(247, 252, 248, 0.9);
}

.doc-toc-mobile summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ibeams-green-dark);
}

.doc-toc-mobile ul {
  margin: 0.62rem 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.24rem;
}

.doc-rail {
  display: none;
}

.doc-toc {
  border: 1px solid rgba(158, 189, 171, 0.42);
  border-radius: 16px;
  padding: 0.78rem 0.9rem;
  background: rgba(247, 252, 248, 0.9);
}

.doc-toc h3 {
  margin-bottom: 0.42rem;
  font-size: 0.92rem;
}

.doc-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.doc-toc li a {
  display: inline-flex;
  padding: 0.08rem 0;
  color: #395443;
  font-size: 0.88rem;
  line-height: 1.3;
}

.doc-toc li a:hover {
  color: var(--ibeams-green-dark);
}

.toc-level-3,
.toc-level-4 {
  padding-left: 0.84rem;
}

.markdown-body {
  color: #284233;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  scroll-margin-top: 90px;
}

.markdown-body h2,
.markdown-body h3 {
  margin-top: 1.34rem;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
  margin: 0.76rem 0;
}

.markdown-body li + li {
  margin-top: 0.3rem;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.markdown-body a {
  text-decoration: underline;
  text-decoration-color: rgba(104, 149, 64, 0.45);
  text-underline-offset: 2px;
}

.markdown-body code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
  border-radius: 8px;
  padding: 0.11rem 0.34rem;
  background: rgba(104, 149, 64, 0.1);
  color: #2e4a3b;
}

.markdown-body pre {
  overflow: auto;
  padding: 0.9rem;
  border-radius: 14px;
  background: #10291d;
  color: #edf8f1;
}

.markdown-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.markdown-body table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
}

.markdown-body td,
.markdown-body th {
  border: 1px solid var(--ibeams-line);
  padding: 0.54rem 0.62rem;
}

.markdown-body th {
  text-align: left;
  background: rgba(40, 184, 121, 0.08);
}

.markdown-body blockquote {
  margin: 1rem 0;
  padding: 0.3rem 0 0.3rem 0.76rem;
  border-left: 4px solid rgba(40, 184, 121, 0.44);
  border-radius: 0 10px 10px 0;
  background: rgba(40, 184, 121, 0.06);
  color: #486353;
}

.assistant-layout {
  display: grid;
  gap: 1rem;
}

.assistant-intro {
  position: relative;
  overflow: hidden;
}

.assistant-intro::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -70px;
  top: -62px;
  border-radius: 50%;
  background: rgba(79, 184, 72, 0.12);
  pointer-events: none;
}

.assistant-intro h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.45rem, 5.7vw, 2.1rem);
}

.assistant-intro p {
  color: var(--ibeams-ink-soft);
  margin-bottom: 0;
  max-width: 58ch;
}

.assistant-inline {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.assistant-side {
  display: grid;
  gap: 0.9rem;
}

.assistant-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.42rem;
}

.assistant-card li,
.assistant-card a {
  color: #34503f;
}

.assistant-card a:hover {
  color: var(--ibeams-green-dark);
}

.search-page p {
  margin: 0;
  color: var(--ibeams-ink-soft);
}

.search-page-results {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.search-page-result {
  display: grid;
  gap: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(158, 189, 171, 0.44);
  background: rgba(255, 255, 255, 0.97);
  padding: 0.76rem 0.82rem;
  color: var(--ibeams-ink);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.search-page-result:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 184, 121, 0.58);
}

.search-page-result p {
  margin: 0;
  color: var(--ibeams-ink-soft);
}

.not-found h1 {
  margin-top: 0;
}

.not-found p {
  color: var(--ibeams-ink-soft);
}

.not-found code {
  font-size: 0.88em;
  border-radius: 8px;
  padding: 0.16rem 0.4rem;
  background: rgba(104, 149, 64, 0.1);
}

.site-main > * {
  animation: fade-rise 260ms ease-out both;
}


.docs-note {
  background: #eef6ff;
  border-left: 4px solid #3b82f6;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 6px;
}

.docs-tip {
  background: #eefdf5;
  border-left: 4px solid #10b981;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 6px;
}

.docs-warning {
  background: #fff4f4;
  border-left: 4px solid #ef4444;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 6px;
}



.copy-btn{
  cursor:pointer;
  border:1px solid #d0d7de;
  background:#fff;
  padding:4px 8px;
  border-radius:6px;
  font:12px sans-serif
}
.copy-btn:hover{
  background:#f6f8fa
}


@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .site-nav a,
  .site-nav-btn {
    width: auto;
  }

  .site-nav-btn {
    grid-column: auto;
  }

  .site-header__inner {
    padding: 0.82rem 0.95rem;
  }

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

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

@media (min-width: 980px) {
  .site-header__inner {
    grid-template-columns: auto auto minmax(320px, 1fr);
    align-items: center;
    gap: 1rem;
  }

  .site-search {
    justify-self: end;
    width: min(470px, 100%);
  }

  .site-shell {
    padding: 1.1rem 1rem 1.7rem;
  }

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

  .assistant-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: start;
  }

  .page-assistant .assistant-inline {
    height: min(760px, calc(100vh - 178px));
    max-height: calc(100vh - 178px);
  }
}

@media (min-width: 1024px) {
  .docs-drawer-backdrop {
    display: none !important;
  }

  body.docs-drawer-desktop-open.docs-drawer-desktop-shift .site-header__inner {
    padding-left: calc(min(370px, 92vw) + 14px);
  }

  body.docs-drawer-desktop-open.docs-drawer-desktop-shift .site-shell {
    padding-left: calc(min(370px, 92vw) + 14px);
  }
}

@media (min-width: 1100px) {
  .site-shell {
    max-width: 1380px;
  }

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

  .doc-article {
    min-width: 0;
  }

  .doc-rail {
    display: block;
    position: sticky;
    top: 88px;
  }

  .doc-toc-mobile {
    display: none;
  }
}

@media (max-width: 1023px) {
  body.docs-drawer-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  body::before,
  body::after {
    display: none;
  }

  .site-header__inner {
    padding: 0.7rem 0.76rem;
  }

  .hero-content,
  .hero-card,
  .feature-card,
  .doc-article,
  .assistant-intro,
  .assistant-card,
  .assistant-inline,
  .search-page,
  .not-found {
    border-radius: 16px;
    padding: 1rem;
  }

  .assistant-inline {
    min-height: 560px;
  }

  .docs-drawer {
    width: min(390px, 100vw);
  }
}
