@import url('install.css');

:root {
  --color-white: #FFFFFF;
  --brand-300: #ed4899;
  --brand-400: #de267e;
  --brand-500: #c80d65;
  --bs-25:  #f4fbfc;
  --bs-50:  #d8f7fa;
  --bs-300: #62c2ce;
  --bs-700: #105c66;
  --bs-800: #083e44;
  --bs-900: #052b30;
  --bs-950: #041c21;
  --neutral-25:  #fcfdfd;
  --neutral-50:  #f7f9f9;
  --neutral-100: #f2f6f6;
  --neutral-200: #e0e7e7;
  --neutral-300: #c6d0d0;
  --neutral-400: #a4afaf;
  --neutral-500: #7e8888;
  --neutral-600: #596162;
  --neutral-700: #3b4141;
  --neutral-800: #262a2a;

  --text-primary: var(--neutral-800);
  --text-subtle: var(--neutral-500);
  --border-base: var(--neutral-200);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;

  --docs-toc-width: 272px;
  --docs-layout-max-width: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--color-white);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

::selection { background: var(--brand-300); color: #fff; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-base);
}

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

.brand img { height: 24px; width: auto; display: block; }

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-600);
  transition: background 150ms ease, color 150ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--bs-50);
  color: var(--bs-800);
}

.nav-dropdown.is-active > summary.nav-link,
.nav-dropdown.is-active > summary.nav-link:hover {
  background: var(--bs-50);
  color: var(--bs-800);
}

.nav-link svg { width: 17px; height: 17px; }

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }

.nav-dropdown summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.nav-dropdown[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  width: max-content;
  padding: 6px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(5, 28, 32, 0.12);
}

.nav-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-600);
  white-space: nowrap;
}

.nav-menu-divider {
  height: 1px;
  margin: 8px 10px 4px;
  background: var(--neutral-100);
}

.nav-menu-heading {
  padding: 6px 10px 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant: small-caps;
  color: var(--bs-300);
}

.nav-menu a[aria-current="page"] {
  background: var(--bs-50);
  color: var(--bs-800);
  font-weight: 600;
}

.nav-menu a:hover:not([aria-current="page"]) {
  background: rgba(216, 247, 250, 0.45);
  color: var(--bs-800);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--bs-800);
  border: 1px solid var(--bs-800);
  transition: background 150ms ease;
}

.nav-cta:hover { background: var(--bs-900); }

body.page-home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 96px;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  width: 100%;
}

.hero-logo { height: 76px; width: auto; margin-bottom: 36px; }

.tagline {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--bs-800);
  text-wrap: balance;
}

.subline {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-subtle);
  max-width: 480px;
  text-wrap: pretty;
}

.subline .accent { color: var(--brand-400); font-weight: 500; }

.hero-meta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-subtle);
}

.hero-meta a { color: var(--bs-700); font-weight: 500; }
.hero-meta a:hover { color: var(--brand-400); }

.hero-quickstart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-900);
  background: var(--bs-300);
  border: 1px solid var(--bs-300);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.hero-quickstart:hover {
  background: var(--bs-700);
  border-color: var(--bs-700);
  color: #fff;
}

main {
  flex: 1;
  padding: 72px 24px 96px;
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, var(--bs-25) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.docs-layout {
  position: relative;
  display: grid;
  grid-template-columns: var(--docs-toc-width) minmax(0, 1fr);
  gap: 40px;
  max-width: var(--docs-layout-max-width);
  margin: 0 auto;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}

.docs-toc-inner {
  padding: 16px 0 16px 4px;
  border-left: 1px solid var(--neutral-100);
}

.docs-toc-label {
  padding-left: 14px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.docs-toc-nav ul {
  list-style: none;
}

.docs-toc-nav li + li {
  margin-top: 2px;
}

.docs-toc-nav a {
  display: block;
  padding: 6px 14px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-600);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.docs-toc-nav a:hover {
  color: var(--bs-800);
  background: rgba(216, 247, 250, 0.45);
}

.docs-toc-nav a.is-active {
  color: var(--bs-800);
  border-left-color: var(--bs-700);
  background: var(--bs-50);
}

.docs-toc-h3 a {
  padding-left: 26px;
  font-size: 12px;
  font-weight: 500;
  color: var(--neutral-500);
}

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

.docs-shell {
  position: relative;
}

.docs-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bs-50);
  color: var(--bs-800);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--bs-800);
}

.docs-intro {
  margin-top: 16px;
  max-width: 760px;
  font-size: 17px;
  color: var(--text-subtle);
  text-wrap: pretty;
}

.docs-content {
  margin-top: 40px;
  padding: 32px;
  border: 1px solid var(--border-base);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(5, 28, 32, 0.04);
}

.docs-content h2,
.docs-content h3,
.docs-content h4 {
  color: var(--bs-800);
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

.docs-content h2 {
  font-size: 1.35rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.docs-content h2:first-child {
  margin-top: 0;
}

.docs-content h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 10px;
}

.docs-content h4 {
  font-size: 1rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.docs-content p,
.docs-content ul,
.docs-content ol {
  margin-bottom: 16px;
}

.docs-content p,
.docs-content li {
  color: var(--neutral-700);
}

.docs-content ul,
.docs-content ol {
  padding-left: 22px;
}

.docs-content li + li {
  margin-top: 8px;
}

.docs-content li > ul,
.docs-content li > ol {
  margin-top: 6px;
  margin-bottom: 0;
}

.docs-content a {
  color: var(--bs-700);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(16, 92, 102, 0.35);
  text-underline-offset: 2px;
}

.docs-content a:hover {
  color: var(--bs-900);
  text-decoration-color: var(--bs-700);
}

.docs-content span[style*="font-variant: small-caps"] {
  font-size: 1.08em;
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.docs-content p code,
.docs-content li code,
.docs-content td code,
.docs-content aside code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
  background: var(--neutral-100);
  color: var(--bs-900);
}

.docs-content .install {
  max-width: none;
}

.docs-content .code-block {
  position: relative;
  margin: 18px 0 24px;
}

.docs-content pre {
  margin: 18px 0 24px;
  overflow-x: auto;
  padding: 16px 18px;
  border: 1px solid var(--bs-900);
  border-radius: var(--radius-lg);
  background: var(--bs-950);
  color: #eaf6f7;
  box-shadow: 0 1px 2px rgba(5, 28, 32, 0.06);
}

.docs-content .code-block pre {
  margin: 0;
  padding-right: 96px;
}

.docs-content pre code {
  color: inherit;
  white-space: pre;
  background: transparent;
  padding: 0;
}

.docs-content .code-block-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 84px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #d8f7fa;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.docs-content .code-block-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.docs-content .code-block-copy-btn svg {
  width: 15px;
  height: 15px;
}

.docs-content .code-block-copy-btn.copied {
  color: #fff;
  background: var(--brand-500);
  border-color: var(--brand-500);
}

.docs-callout {
  margin: 20px 0 24px;
  padding: 16px 18px 16px 20px;
  border: 1px solid rgba(98, 194, 206, 0.45);
  border-left: 4px solid var(--bs-300);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(244, 251, 252, 0.95) 0%, rgba(216, 247, 250, 0.35) 100%);
}

.docs-callout p:last-child,
.docs-callout pre:last-child {
  margin-bottom: 0;
}

.docs-callout .code-block {
  margin-top: 12px;
  margin-bottom: 0;
}

.docs-callout pre {
  margin-top: 12px;
}

.docs-callout .code-block pre {
  margin-top: 0;
}

.docs-table {
  width: 100%;
  margin: 18px 0 24px;
  border-collapse: collapse;
  font-size: 14px;
}

.docs-table th,
.docs-table td {
  padding: 10px 12px;
  border: 1px solid var(--border-base);
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: var(--neutral-50);
  color: var(--bs-800);
  font-weight: 600;
}

.docs-content ul.docs-checklist {
  list-style: none;
  padding-left: 20px;
  margin: 0 0 16px;
}

.docs-content ul.docs-checklist li {
  position: relative;
  padding-left: 28px;
}

.docs-content ul.docs-checklist li + li {
  margin-top: 8px;
}

.docs-content ul.docs-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--bs-50);
  color: var(--bs-800);
  font-size: 12px;
  font-weight: 700;
}

.docs-image {
  display: block;
  width: 100%;
  margin: 20px 0 24px;
  border: 1px solid var(--border-base);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(5, 28, 32, 0.06);
}

footer {
  border-top: 1px solid var(--border-base);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-subtle);
}

.foot-left .vm {
  color: var(--bs-800);
  font-weight: 600;
}

.dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--neutral-300);
  flex: 0 0 auto;
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}

.foot-links a {
  color: var(--neutral-600);
  font-weight: 500;
  transition: color 150ms ease;
}

.foot-links a:hover { color: var(--brand-400); }

@media (max-width: 980px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .docs-toc {
    position: static;
    order: 2;
    margin-top: 32px;
  }

  .docs-toc-inner {
    padding: 20px;
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
  }

  .docs-toc-nav a.is-active {
    background: transparent;
  }
}

@media (max-width: 700px) {
  header { padding: 0 18px; }
  main { padding: 48px 18px 72px; }
  .docs-content { padding: 24px 20px; }
  footer { flex-direction: column; align-items: flex-start; }
}
