:root {
  color-scheme: dark;
  --theme-color: #a5b4fc;
  --ink: #e5eaf3;
  --muted: #a8b4c8;
  --surface: #141c2c;
  --border: #2b374d;
  --header-height: 72px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body {
  margin: 0;
  background: #0e1420;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--theme-color); }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #c7d2fe;
  outline-offset: 4px;
}
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; background: #e0e7ff; color: #172034; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 32px; background: #111827; border-bottom: 1px solid var(--border);
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: #f8fafc; text-decoration: none; font-size: 19px; font-weight: 750; letter-spacing: -.03em; white-space: nowrap; }
.site-brand span { font-size: 12px; font-weight: 500; color: var(--muted); border-left: 1px solid #415069; margin-left: 6px; padding-left: 14px; letter-spacing: .02em; }
.site-header nav { display: flex; align-items: center; gap: 6px; }
.site-header nav a { padding: 10px 14px; color: #bcc8dc; text-decoration: none; font-size: 14px; border-radius: 6px; }
.site-header nav a:hover, .site-header nav a[aria-current] { background: #212c43; color: #fff; }
.site-header nav .header-download { margin-left: 10px; border: 1px solid #556492; color: #e0e7ff; }
.sidebar { top: var(--header-height); width: 280px; background: #111827; border-right: 1px solid var(--border); padding: 24px 18px 80px; }
.sidebar > h1 { display: none; }
.sidebar-nav { padding: 0; }
.sidebar-nav > ul { margin: 0; padding: 0; }
.sidebar-nav > ul > li { margin: 0 0 18px; }
.sidebar-nav ul { margin: 0; }
.sidebar-nav ul li a { display: block; padding: 6px 10px; color: #b7c4d8; font-size: 13px; line-height: 1.5; white-space: normal; text-decoration: none; border-radius: 5px; }
.sidebar-nav ul li a:hover { color: #fff; background: #202c42; }
.sidebar-nav li.active > a { color: #dce3ff; background: #26324e; border-right: 0; font-weight: 650; }
.sidebar-nav > ul > li > p, .sidebar-nav > ul > li > strong { margin: 0 0 5px; }
.sidebar-nav strong { color: #a6b5d0; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-nav li ul { padding-left: 0; }
.sidebar-nav li ul ul { border-left: 1px solid var(--border); margin: 6px 0 8px 10px; padding-left: 8px; }
.sidebar .search { margin: 0 0 24px; padding: 0; border-bottom: 0; }
.sidebar .search input { min-height: 40px; padding: 10px 12px; background: #0e1420; color: #fff; border: 1px solid #42516c; border-radius: 6px; font: inherit; font-size: 13px; }
.sidebar .search input::placeholder { color: #9baac4; }
.sidebar .search .matching-post { border-bottom: 1px solid var(--border); }
.sidebar .search .matching-post h2, .sidebar .search .matching-post p { color: var(--ink); }
.sidebar-toggle { background: #182337; width: 44px; height: 44px; padding: 12px; border: 1px solid #42516c; border-radius: 7px; bottom: 16px; left: 16px; z-index: 40; }
.sidebar-toggle span { background-color: #dce3ff; }
.content { left: 280px; padding-top: var(--header-height); min-height: 100vh; }
.markdown-section { max-width: 1030px; padding: 48px 56px 72px; margin: 0 auto; overflow-wrap: anywhere; }
.markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section h4 { color: #f2f5fc; font-weight: 700; letter-spacing: -.025em; }
.markdown-section h1 { font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.17; margin: 8px 0 24px; }
.markdown-section h2 { font-size: 1.6rem; line-height: 1.3; margin: 48px 0 18px; padding-top: 6px; }
.markdown-section h3 { font-size: 1.2rem; margin-top: 30px; }
.markdown-section p, .markdown-section li { color: #c3cddd; line-height: 1.8; }
.markdown-section strong { color: #e7edf8; }
.markdown-section a { color: #b5c2ff; font-weight: 550; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.markdown-section a:hover { color: #e0e7ff; }
.markdown-section a.anchor { color: inherit; }
.markdown-section .anchor span { color: inherit; }
.markdown-section blockquote { border-left: 3px solid #929ff1; padding: 14px 20px; margin: 24px 0; color: var(--ink); background: #1b253a; border-radius: 0 8px 8px 0; }
.markdown-section blockquote p { margin: 0; }
.markdown-section hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.markdown-section img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid #34415a; margin: 24px 0; background: #111827; }
.markdown-section code, .markdown-section pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.markdown-section code { background: #222d45; color: #d2dbff; font-size: .88em; padding: .15em .35em; border-radius: 4px; white-space: break-spaces; }
.markdown-section pre { position: relative; background: #131d2d; border: 1px solid var(--border); padding: 20px 24px; border-radius: 8px; line-height: 1.6; overflow: auto; }
.markdown-section pre > code { display: block; background: none; color: #d8e0f0; padding: 0; white-space: pre; }
.markdown-section pre::after { color: var(--muted); }
.markdown-section table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; }
.markdown-section th, .markdown-section td { padding: 12px 16px; border: 1px solid #36445c; text-align: left; line-height: 1.6; }
.markdown-section th { color: #e8edf7; background: #202b40; font-weight: 650; }
.markdown-section tr { background: #121b2b; border-top: 0; }
.markdown-section tr:nth-child(2n) { background: #182235; }
.markdown-section td { color: #c3cddd; }
.docs-hero { padding: 6px 0 18px; }
.markdown-section .docs-kicker { color: #aab9fb; letter-spacing: .12em; font-size: 11px; font-weight: 700; text-transform: uppercase; margin: 0 0 18px; }
.markdown-section .docs-lead { color: #b8c6dc; font-size: 19px; line-height: 1.7; max-width: 680px; margin-bottom: 24px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.markdown-section .docs-button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid #52618b; border-radius: 7px; text-decoration: none; font-size: 14px; color: #dce3ff; }
.markdown-section .docs-button:first-child { color: #fff; background: #4c50be; border-color: #7a85e3; }
.markdown-section .docs-button:hover { background: #303e5e; }
.markdown-section .docs-button:first-child:hover { background: #5b60d1; }
.guide-grid, .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0; }
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.markdown-section .guide-card, .markdown-section .feature-card { display: block; padding: 22px; border: 1px solid #34415a; background: #151f30; border-radius: 9px; text-decoration: none; min-width: 0; transition: border-color .15s ease, background .15s ease; }
.markdown-section .guide-card:hover, .markdown-section .feature-card:hover { border-color: #8c9adf; background: #1a2740; }
.markdown-section .guide-card h2, .markdown-section .guide-card h3, .markdown-section .guide-card h4,
.markdown-section .feature-card h2, .markdown-section .feature-card h3, .markdown-section .feature-card h4 { margin: 0 0 10px; padding: 0; font-size: 17px; }
.markdown-section .guide-card p, .markdown-section .feature-card p { font-size: 14px; line-height: 1.7; margin: 0; color: #b3c0d6; font-weight: 400; }
.page-context { color: #a8b6d2; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 20px; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--border); margin-top: 52px; padding-top: 22px; font-size: 12px; color: var(--muted); }
.markdown-section .page-footer a { font-weight: 500; color: #aebbd5; }
.mermaid-diagram { border: 1px solid var(--border); padding: 24px; border-radius: 8px; overflow: auto; background: var(--surface); --pele-bg: #141c2c; --pele-fg: #f2f5fc; --pele-muted: #b3c0d6; --pele-line: #a5b4fc; --pele-surface: #24324b; --pele-border: #536585; --pele-accent: #a5b4fc; }
.mermaid-diagram svg { display: block; max-width: 100%; height: auto; margin: auto; }
.docsify-tabs__tab { color: #bac8df; background: #172236; border-color: #42516c; }
.docsify-tabs__tab--active { color: #fff; background: #25314b; box-shadow: none; }
.docsify-tabs__content { background: #111c2e; border-color: #42516c; }
.no-script { margin: 120px 30px; }
@media (min-width: 769px) {
  .sidebar-toggle { display: none; }
  body.close .sidebar { transform: none; }
  body.close .content { left: 280px; }
}
@media (max-width: 1100px) {
  .markdown-section { padding: 40px 32px 64px; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-height: 112px; }
  .site-header { padding: 12px 18px; gap: 6px; flex-wrap: wrap; align-content: center; }
  .site-brand { font-size: 17px; }
  .site-brand span { font-size: 11px; }
  .site-header nav { width: 100%; gap: 2px; justify-content: space-between; }
  .site-header nav a { padding: 9px 8px; font-size: 12px; }
  .site-header nav .header-download { margin: 0; }
  .sidebar { padding-top: 20px; transform: translateX(-280px); z-index: 25; }
  .content, body.close .content { left: 0; transform: none; }
  body.close .sidebar { transform: translateX(0); }
  .markdown-section { padding: 30px 22px 84px; }
  .markdown-section h1 { font-size: 2rem; }
  .markdown-section .docs-lead { font-size: 17px; }
  .feature-grid, .guide-grid { grid-template-columns: 1fr; }
  .markdown-section pre { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .sidebar, .sidebar-toggle, .skip-link, .page-footer { display: none; }
  .content { position: static; padding: 0; margin: 0; }
  body, .markdown-section, .markdown-section p, .markdown-section li { background: white; color: black; }
  .markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section strong { color: black; }
  .markdown-section { max-width: none; padding: 0; }
}

/* Home hero (coverpage) */
    /* Coverpage Hero Section - ONLY displayed on homepage */
    section.cover {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      overflow-x: hidden !important;
    }
    section.cover:not(.show) {
      display: none !important;
    }
    section.cover.show {
      background: radial-gradient(circle at 50% 15%, #1e1b4b 0%, #090d16 55%, #05070c 100%) !important;
      color: #f8fafc;
      min-height: 100vh;
      display: flex !important;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 2.5rem 1rem !important;
      box-sizing: border-box !important;
    }
    section.cover .cover-main {
      width: 100% !important;
      max-width: 1040px !important;
      margin: 0 auto !important;
      padding: 2rem 1rem !important;
      text-align: center;
      box-sizing: border-box !important;
      overflow: hidden;
    }
    .cover-hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
    .cover-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(99, 102, 241, 0.12);
      border: 1px solid rgba(99, 102, 241, 0.35);
      color: #a5b4fc;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 6px 14px;
      border-radius: 999px;
      margin-bottom: 1.25rem;
      box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
      max-width: 100%;
      text-align: center;
      line-height: 1.4;
      word-break: break-word;
      box-sizing: border-box;
    }
    .cover-logo-wrapper {
      margin-bottom: 1rem;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .cover-logo-img {
      width: 92px;
      height: 92px;
      border-radius: 20px;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(99, 102, 241, 0.25);
      display: block;
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    }
    .cover-logo-img:hover {
      transform: scale(1.05) translateY(-2px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 32px rgba(99, 102, 241, 0.4);
    }
    section.cover h1 {
      font-size: clamp(2.2rem, 5.5vw, 4.2rem) !important;
      font-weight: 900 !important;
      letter-spacing: -0.04em !important;
      background: linear-gradient(135deg, #ffffff 30%, #c7d2fe 70%, #818cf8 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin: 0 0 1rem 0 !important;
      border: none !important;
      line-height: 1.15;
      max-width: 100%;
      word-break: break-word;
    }
    .cover-subtitle {
      color: #94a3b8;
      font-size: clamp(0.95rem, 2.5vw, 1.25rem);
      max-width: 760px;
      width: 100%;
      margin: 0 auto 2rem auto;
      line-height: 1.6;
      box-sizing: border-box;
      padding: 0 8px;
    }
    .cover-cta-row {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 2.5rem;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
    .cover-btn {
      text-decoration: none !important;
      font-size: 14px;
      font-weight: 700;
      padding: 12px 22px;
      border-radius: 8px;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
    }
    .cover-btn-primary {
      background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
      color: #ffffff !important;
      box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .cover-btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(99, 102, 241, 0.6);
    }
    .cover-btn-secondary {
      background: rgba(30, 41, 59, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #f8fafc !important;
      backdrop-filter: blur(8px);
    }
    .cover-btn-secondary:hover {
      background: rgba(51, 65, 85, 0.8);
      border-color: #6366f1;
      transform: translateY(-2px);
    }
    .cover-btn-ghost {
      background: transparent;
      border: 1px solid rgba(148, 163, 184, 0.25);
      color: #cbd5e1 !important;
    }
    .cover-btn-ghost:hover {
      border-color: #f8fafc;
      color: #ffffff !important;
      transform: translateY(-2px);
    }
    .cover-btn-sponsor {
      background: rgba(255, 94, 91, 0.14);
      border: 1px solid rgba(255, 94, 91, 0.4);
      color: #ff8583 !important;
      backdrop-filter: blur(8px);
      gap: 8px;
    }
    .cover-btn-sponsor:hover {
      background: #ff5e5b;
      border-color: #ff5e5b;
      color: #ffffff !important;
      box-shadow: 0 4px 20px rgba(255, 94, 91, 0.45);
      transform: translateY(-2px);
    }
    .cover-preview-card {
      max-width: 960px;
      width: 100%;
      margin: 0 auto 2.5rem auto;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.15);
      background: #090d16;
      overflow: hidden;
      box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
      transition: transform 0.25s ease, border-color 0.25s ease;
      box-sizing: border-box;
    }
    .cover-preview-card:hover {
      transform: translateY(-4px);
      border-color: rgba(99, 102, 241, 0.5);
    }
    .cover-preview-card img {
      width: 100%;
      height: auto;
      display: block;
      margin: 0 !important;
      border: none !important;
      border-radius: 0 !important;
      box-shadow: none !important;
    }
    .cover-preview-caption {
      padding: 10px 16px;
      font-size: 12px;
      font-weight: 600;
      color: #94a3b8;
      background: #0d121f;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      text-align: center;
      letter-spacing: 0.02em;
    }
    .cover-features-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
      gap: 14px;
      width: 100%;
      max-width: 960px;
      margin: 0 auto;
      box-sizing: border-box;
    }
    .cover-feature-pill {
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 10px;
      padding: 14px 18px;
      text-align: left;
      transition: border-color 0.2s ease;
      box-sizing: border-box;
    }
    .cover-feature-pill:hover {
      border-color: rgba(99, 102, 241, 0.4);
    }
    .cover-feature-title {
      font-size: 13px;
      font-weight: 700;
      color: #f1f5f9;
      margin-bottom: 4px;
    }
    .cover-feature-desc {
      font-size: 12px;
      color: #8b949e;
      line-height: 1.4;
    }

section.cover.show { padding-top: calc(var(--header-height) + 2.5rem) !important; }
