:root {
  --docs-bg: #ffffff;
  --docs-surface: #ffffff;
  --docs-secondary: #f5f5f7;
  --docs-text: #000000;
  --docs-muted: #6e6e73;
  --docs-subtle: #8e8e93;
  --docs-border: rgba(60, 60, 67, 0.13);
  --docs-blue: #007aff;
  --docs-blue-dark: #005ecb;
  --docs-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --docs-nav-height: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--docs-bg);
  color: var(--docs-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.022em;
  line-height: 1.47059;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.docs-shell,
.docs-layout {
  margin: 0 auto;
  max-width: 1200px;
}

.docs-header {
  background: var(--docs-bg);
  border-bottom: 1px solid var(--docs-border);
  padding: 1.25rem 2rem 2.5rem;
}

.docs-header__inner {
  margin: 0 auto;
  max-width: 1200px;
}

.docs-hero {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  min-height: 300px;
}

.docs-hero__copy {
  position: relative;
  z-index: 1;
}

.docs-brand {
  align-items: center;
  display: inline-flex;
  margin-bottom: 3rem;
  text-decoration: none;
}

.docs-brand img {
  display: block;
  height: 24px;
  object-fit: contain;
  object-position: left center;
  width: 180px;
}

.docs-eyebrow,
.docs-kicker,
.docs-status,
.docs-label {
  color: var(--docs-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.docs-header h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  max-width: 760px;
}

.docs-header h1 span {
  color: var(--docs-blue);
}

.docs-lead {
  color: var(--docs-muted);
  font-size: 21px;
  line-height: 1.42;
  margin-top: 1rem;
  max-width: 660px;
}

.docs-catalog-meta {
  color: var(--docs-subtle);
  font-size: 14px;
  margin-top: 2rem;
}

.docs-hero__visual {
  height: 300px;
  justify-self: end;
  max-width: 460px;
  position: relative;
  width: 100%;
}

.docs-hero__visual::before {
  border: 1px solid rgba(0, 122, 255, 0.1);
  border-radius: 50%;
  content: "";
  height: 250px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  width: 360px;
}

.docs-hero__visual::after {
  border: 1px solid rgba(94, 92, 230, 0.09);
  border-radius: 50%;
  content: "";
  height: 210px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(22deg);
  width: 300px;
}

.docs-hero__glow {
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
  position: absolute;
}

.docs-hero__glow--blue {
  background: rgba(90, 200, 250, 0.32);
  height: 150px;
  right: 8%;
  top: 8%;
  width: 150px;
}

.docs-hero__glow--violet {
  background: rgba(175, 82, 222, 0.16);
  bottom: 4%;
  height: 130px;
  left: 8%;
  width: 130px;
}

.docs-hero__app,
.docs-hero__core {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(60, 60, 67, 0.11);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  position: absolute;
}

.docs-hero__app {
  border-radius: 18px;
  height: 58px;
  padding: 12px;
  width: 58px;
  z-index: 1;
}

.docs-hero__app img {
  display: block;
  height: 100%;
  width: 100%;
}

.docs-hero__app--netless {
  left: 10%;
  top: 18%;
  transform: rotate(-9deg);
}

.docs-hero__app--cards {
  right: 9%;
  top: 12%;
  transform: rotate(8deg);
}

.docs-hero__app--business {
  left: 2%;
  top: 62%;
  transform: rotate(7deg);
}

.docs-hero__app--insights {
  bottom: 4%;
  right: 17%;
  transform: rotate(-7deg);
}

.docs-hero__app--connect {
  bottom: 25%;
  right: 1%;
  transform: rotate(10deg);
}

.docs-hero__core {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  flex-direction: column;
  gap: 0.5rem;
  height: 132px;
  left: 50%;
  padding: 20px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 142px;
  z-index: 2;
}

.docs-hero__core img {
  display: block;
  height: 54px;
  width: 54px;
}

.docs-hero__core span {
  color: var(--docs-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.docs-breadcrumbs {
  align-items: center;
  color: var(--docs-muted);
  display: flex;
  font-size: 14px;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.docs-breadcrumbs a {
  color: var(--docs-text);
  text-decoration: none;
}

.docs-breadcrumbs a:hover,
.docs-breadcrumbs a:focus-visible {
  color: var(--docs-blue);
  text-decoration: underline;
}

.docs-search {
  display: block;
  margin-top: 2rem;
  max-width: 640px;
  position: relative;
}

.docs-search__icon {
  color: var(--docs-subtle);
  display: grid;
  height: 18px;
  left: 14px;
  place-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
}

.docs-search__icon svg {
  display: block;
  height: 18px;
  width: 18px;
}

.docs-search input {
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: var(--docs-text);
  font-size: 17px;
  min-height: 48px;
  outline: 0;
  padding: 11px 16px 11px 40px;
  width: 100%;
}

.docs-search input::placeholder {
  color: var(--docs-muted);
  opacity: 1;
}

.docs-search input:focus {
  border-color: var(--docs-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14);
}

.docs-nav {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--docs-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.docs-tabs {
  display: flex;
  margin: 0 auto;
  max-width: 1200px;
  overflow-x: auto;
  padding: 0 1rem;
  scrollbar-width: none;
}

.docs-tabs::-webkit-scrollbar {
  display: none;
}

.docs-tab {
  border-bottom: 2px solid transparent;
  color: var(--docs-text);
  display: inline-block;
  font-size: 14px;
  opacity: 0.72;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.docs-tab:hover,
.docs-tab:focus-visible,
.docs-tab[data-state="active"] {
  opacity: 1;
}

.docs-tab[data-state="active"] {
  border-bottom-color: var(--docs-text);
  font-weight: 600;
}

.docs-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding: 3rem 2rem 5rem;
}

.docs-section {
  scroll-margin-top: calc(var(--docs-nav-height) + 1.5rem);
}

.docs-section:focus {
  outline: 0;
}

.docs-section + .docs-section {
  margin-top: 5rem;
}

.docs-content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.007em;
  line-height: 1.14286;
  margin: 0.6rem 0 1rem;
}

.docs-content h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 1.5rem 0 0.7rem;
}

.docs-content p {
  font-size: 17px;
  margin-bottom: 1.2rem;
}

.docs-muted {
  color: var(--docs-muted);
}

.docs-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.docs-card {
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.25rem;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.docs-card:hover,
.docs-card:focus-visible {
  box-shadow: var(--docs-shadow);
  transform: translateY(-2px);
}

.docs-card:focus-visible {
  outline: 2px solid var(--docs-blue);
  outline-offset: 3px;
}

.docs-card__top {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
}

.docs-app-icon {
  align-items: center;
  border-radius: 22.5%;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 60px;
  font-size: 14px;
  font-weight: 700;
  height: 60px;
  justify-content: center;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.docs-app-icon--logo {
  background: var(--docs-secondary);
  padding: 12px;
}

.docs-app-icon--logo img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.docs-app-icon svg {
  display: block;
  height: 32px;
  width: 32px;
}

.docs-app-icon--hub { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.docs-app-icon--netless { background: linear-gradient(135deg, #ff9966, #ff5e62); }
.docs-app-icon--cards { background: linear-gradient(135deg, #4bc0c8, #007aff); }
.docs-app-icon--account { background: #eef0ff; color: #5b44dd; }
.docs-app-icon--profile { background: color-mix(in srgb, #06896c 10%, #fff); color: #06896c; }
.docs-app-icon--connect { background: linear-gradient(135deg, #f6d365, #fda085); }

.docs-card h3 {
  font-size: 20px;
  line-height: 1.15;
  margin: 0.05rem 0 0.35rem;
}

.docs-card__subtitle {
  color: var(--docs-muted);
  font-size: 15px;
}

.docs-card__description {
  color: var(--docs-muted);
  font-size: 15px;
  margin: 1.25rem 0;
}

.docs-card__link {
  color: var(--docs-blue);
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 0.35rem;
  margin-top: auto;
}

.docs-card__meta {
  color: var(--docs-subtle);
  font-size: 13px;
  margin-top: 0.45rem;
}

.docs-status {
  align-items: center;
  align-self: flex-start;
  background: color-mix(in srgb, #06896c 10%, #fff);
  border-radius: 999px;
  color: #06896c;
  display: inline-flex;
  font-size: 11px;
  gap: 0.4rem;
  letter-spacing: 0.04em;
  margin-top: 1rem;
  padding: 4px 8px;
  text-transform: none;
}

.docs-status::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.docs-status--muted {
  background: var(--docs-secondary);
  color: var(--docs-muted);
}

.docs-panel,
.docs-info-list {
  background: var(--docs-secondary);
  border-radius: 16px;
  margin-top: 1.5rem;
}

.docs-panel {
  padding: 1.5rem;
}

.docs-info-list {
  overflow: hidden;
}

.docs-info-row {
  border-bottom: 1px solid var(--docs-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.docs-info-row:last-child {
  border-bottom: 0;
}

.docs-info-row dt {
  color: var(--docs-muted);
}

.docs-info-row dd {
  font-weight: 500;
  text-align: right;
}

.docs-list {
  display: grid;
  gap: 1rem;
  list-style-position: inside;
  margin: 1.5rem 0;
}

.docs-list li {
  font-size: 17px;
  padding-left: 0.3rem;
}

.docs-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.docs-feature {
  border: 1px solid var(--docs-border);
  border-radius: 16px;
  padding: 1.25rem;
}

.docs-feature h3 {
  font-size: 18px;
  margin-top: 0;
}

.docs-feature p {
  color: var(--docs-muted);
  font-size: 15px;
  margin-bottom: 0;
}

.docs-faq {
  border-top: 1px solid var(--docs-border);
  margin-top: 1.5rem;
}

.docs-faq details {
  border-bottom: 1px solid var(--docs-border);
  padding: 1rem 0;
}

.docs-faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  list-style-position: outside;
  padding-left: 0.25rem;
}

.docs-faq p {
  color: var(--docs-muted);
  font-size: 16px;
  margin: 0.8rem 0 0 1.25rem;
}

.docs-toc {
  display: none;
}

.docs-toc h4 {
  color: var(--docs-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.docs-toc a {
  color: var(--docs-muted);
  display: block;
  font-size: 14px;
  padding: 0.4rem 0;
  text-decoration: none;
}

.docs-toc a:hover,
.docs-toc a:focus-visible,
.docs-toc .active a {
  color: var(--docs-blue);
}

.docs-toc .active a {
  font-weight: 600;
}

.docs-footer {
  border-top: 1px solid var(--docs-border);
  color: var(--docs-muted);
  font-size: 13px;
  padding: 1.5rem 2rem;
  text-align: center;
}

.docs-footer a {
  color: var(--docs-text);
  text-decoration: none;
}

.docs-footer a:hover,
.docs-footer a:focus-visible {
  color: var(--docs-blue);
  text-decoration: underline;
}

@media (min-width: 850px) {
  .docs-layout {
    gap: 5rem;
    grid-template-columns: 1fr 240px;
  }

  .docs-toc {
    display: block;
    position: sticky;
    top: calc(var(--docs-nav-height) + 2rem);
  }
}

@media (max-width: 849px) {
  .docs-hero {
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .docs-hero__visual {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .docs-header {
    padding: 1rem 1.25rem 2rem;
  }

  .docs-brand {
    margin-bottom: 2.5rem;
  }

  .docs-header h1 {
    font-size: 40px;
  }

  .docs-hero {
    min-height: 0;
  }

  .docs-hero__visual {
    height: 250px;
    margin: -0.25rem auto -0.5rem;
    transform: scale(0.9);
    transform-origin: center center;
  }

  .docs-lead {
    font-size: 19px;
  }

  .docs-layout {
    padding: 2rem 1.25rem 4rem;
  }

  .docs-card-grid,
  .docs-feature-grid {
    grid-template-columns: 1fr;
  }

  .docs-card {
    min-height: 0;
  }
}

@media print {
  .docs-nav,
  .docs-toc,
  .docs-brand,
  .docs-footer,
  .docs-search {
    display: none !important;
  }

  .docs-header {
    padding: 0 0 1rem;
  }

  .docs-layout {
    display: block;
    padding: 0;
  }

  .docs-section + .docs-section {
    margin-top: 2rem;
  }
}
