:root {
  --kb-bg: #f5f8fd;
  --kb-surface: rgba(255, 255, 255, 0.92);
  --kb-surface-strong: #ffffff;
  --kb-surface-soft: rgba(246, 250, 255, 0.85);
  --kb-ink: #14233d;
  --kb-ink-strong: #091426;
  --kb-muted: #61708b;
  --kb-muted-soft: #7d8aa0;
  --kb-line: rgba(20, 35, 61, 0.1);
  --kb-line-strong: rgba(20, 35, 61, 0.16);
  --kb-primary: #0b6bff;
  --kb-primary-strong: #0958d4;
  --kb-primary-soft: rgba(11, 107, 255, 0.12);
  --kb-secondary: #18b58d;
  --kb-secondary-soft: rgba(24, 181, 141, 0.13);
  --kb-warning: #f3b95f;
  --kb-shadow: 0 28px 72px rgba(10, 27, 53, 0.11);
  --kb-shadow-soft: 0 18px 42px rgba(10, 27, 53, 0.08);
  --kb-radius-xl: 34px;
  --kb-radius-lg: 26px;
  --kb-radius-md: 20px;
  --kb-radius-sm: 14px;
  --kb-container: 1220px;
  --kb-font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --kb-font-heading: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.kb-body {
  margin: 0;
  color: var(--kb-ink);
  font-family: var(--kb-font-body);
  background:
    radial-gradient(circle at top left, rgba(11, 107, 255, 0.12), transparent 28%),
    radial-gradient(circle at right 10%, rgba(24, 181, 141, 0.09), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, var(--kb-bg) 42%, #eef4fa 100%);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.kb-backdrop {
  position: fixed;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.kb-backdrop-one {
  top: 80px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: rgba(11, 107, 255, 0.16);
}

.kb-backdrop-two {
  bottom: 100px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: rgba(24, 181, 141, 0.12);
}

.kb-container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--kb-container));
  margin: 0 auto;
}

.kb-header {
  padding: 18px 0 0;
  position: relative;
  z-index: 20;
}

.kb-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(250, 252, 255, 0.95);
  box-shadow: 0 14px 36px rgba(10, 27, 53, 0.08);
}

.kb-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.kb-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--kb-primary), var(--kb-secondary));
  box-shadow: 0 16px 30px rgba(11, 107, 255, 0.24);
}

.kb-brand-copy {
  display: grid;
  gap: 3px;
}

.kb-brand-copy strong {
  font-family: var(--kb-font-heading);
  font-size: 1rem;
}

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

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

.kb-nav a {
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--kb-muted);
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.kb-nav a:hover,
.kb-nav a.is-active {
  background: rgba(11, 107, 255, 0.08);
  color: var(--kb-primary);
}

.kb-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: rgba(11, 107, 255, 0.08);
  color: var(--kb-primary);
}

.kb-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.kb-btn-primary {
  background: linear-gradient(135deg, var(--kb-primary), var(--kb-secondary));
  color: #fff;
  box-shadow: 0 18px 34px rgba(11, 107, 255, 0.22);
}

.kb-btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--kb-line);
  color: var(--kb-ink);
}

.kb-hero,
.kb-page-hero {
  padding: 74px 0 28px;
}

.kb-hero-grid,
.kb-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 420px);
  gap: 28px;
  align-items: end;
}

.kb-hero-copy h1,
.kb-page-copy h1,
.kb-section-head h2,
.kb-library-head h3,
.kb-article-card h3,
.kb-search-card h3,
.kb-side-card h3,
.kb-article-body h2,
.kb-empty-panel h2 {
  margin: 0;
  color: var(--kb-ink-strong);
  font-family: var(--kb-font-heading);
  line-height: 1.05;
}

.kb-hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.kb-page-copy h1 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
}

.kb-hero-copy p,
.kb-page-copy p,
.kb-section-head p,
.kb-category-card p,
.kb-article-card p,
.kb-search-card p,
.kb-side-card p,
.kb-summary-panel p,
.kb-doc-section p,
.kb-empty-panel p,
.kb-footer p {
  color: var(--kb-muted);
  line-height: 1.75;
}

.kb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--kb-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kb-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kb-primary), var(--kb-secondary));
}

.kb-hero-panel,
.kb-side-panel,
.kb-summary-panel,
.kb-side-card,
.kb-empty-panel {
  padding: 24px;
  border-radius: var(--kb-radius-lg);
  border: 1px solid rgba(20, 35, 61, 0.08);
  background: var(--kb-surface);
  box-shadow: var(--kb-shadow-soft);
}

.kb-hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kb-hero-panel-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(247, 250, 255, 0.94);
  border: 1px solid rgba(20, 35, 61, 0.06);
}

.kb-hero-panel-grid strong {
  color: var(--kb-ink-strong);
  font-family: var(--kb-font-heading);
  font-size: 1.25rem;
}

.kb-search-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 26px;
}

.kb-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid rgba(20, 35, 61, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--kb-shadow-soft);
}

.kb-search-field i {
  color: var(--kb-primary);
}

.kb-search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--kb-ink);
  outline: none;
}

.kb-search-field input::placeholder {
  color: var(--kb-muted-soft);
}

.kb-search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 84px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(20, 35, 61, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--kb-shadow);
  display: grid;
  gap: 6px;
  z-index: 25;
}

.kb-search-suggestion {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  transition: background-color 0.2s ease;
}

.kb-search-suggestion:hover {
  background: rgba(11, 107, 255, 0.07);
}

.kb-search-suggestion strong {
  color: var(--kb-ink-strong);
}

.kb-search-suggestion span,
.kb-search-suggestion small {
  color: var(--kb-muted);
}

.kb-hero-proof,
.kb-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.kb-hero-proof {
  margin-top: 22px;
}

.kb-hero-proof span,
.kb-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kb-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.kb-section {
  padding: 84px 0;
}

.kb-section-soft {
  background: rgba(255, 255, 255, 0.54);
}

.kb-section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.kb-section-head p {
  max-width: 74ch;
}

.kb-category-grid,
.kb-article-grid,
.kb-search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kb-category-card,
.kb-article-card,
.kb-search-card,
.kb-library-group {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--kb-radius-lg);
  border: 1px solid rgba(20, 35, 61, 0.08);
  background: var(--kb-surface);
  box-shadow: var(--kb-shadow-soft);
}

.kb-category-card {
  align-content: start;
}

.kb-category-card:hover,
.kb-library-item:hover {
  border-color: rgba(11, 107, 255, 0.18);
}

.kb-category-icon,
.kb-article-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kb-category-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11, 107, 255, 0.12), rgba(24, 181, 141, 0.14));
  color: var(--kb-primary);
}

.kb-article-chip {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(11, 107, 255, 0.09);
  color: var(--kb-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kb-library {
  display: grid;
  gap: 18px;
}

.kb-library-group {
  gap: 18px;
}

.kb-library-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.kb-library-head a {
  color: var(--kb-primary);
  font-weight: 800;
}

.kb-library-list {
  display: grid;
  gap: 10px;
}

.kb-library-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(247, 250, 255, 0.84);
  border: 1px solid rgba(20, 35, 61, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.kb-library-item:hover {
  transform: translateY(-1px);
}

.kb-library-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--kb-ink-strong);
}

.kb-library-item p {
  margin: 0;
  color: var(--kb-muted);
}

.kb-bullet-list,
.kb-outline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.kb-bullet-list li,
.kb-outline-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--kb-muted);
  line-height: 1.7;
}

.kb-bullet-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--kb-primary), var(--kb-secondary));
  flex-shrink: 0;
}

.kb-outline-list {
  counter-reset: kb-sections;
}

.kb-outline-list li {
  counter-increment: kb-sections;
}

.kb-outline-list li::before {
  content: counter(kb-sections);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--kb-primary-soft);
  color: var(--kb-primary);
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.kb-outline-list a {
  color: var(--kb-muted);
}

.kb-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.52fr);
  gap: 22px;
  align-items: start;
}

.kb-article-body,
.kb-article-sidebar {
  display: grid;
  gap: 18px;
}

.kb-doc-section {
  padding: 26px 28px;
  border-radius: var(--kb-radius-lg);
  border: 1px solid rgba(20, 35, 61, 0.08);
  background: var(--kb-surface);
  box-shadow: var(--kb-shadow-soft);
}

.kb-doc-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.kb-summary-panel p,
.kb-doc-section p {
  margin: 0;
}

.kb-doc-section p + p {
  margin-top: 12px;
}

.kb-page-hero-article .kb-page-copy h1 {
  max-width: 16ch;
}

.kb-footer {
  padding: 0 0 34px;
}

.kb-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
  gap: 22px;
  padding: 34px 0 22px;
}

.kb-footer-brand,
.kb-footer-links {
  display: grid;
  gap: 10px;
}

.kb-footer-links span {
  color: var(--kb-ink-strong);
  font-family: var(--kb-font-heading);
  font-size: 0.94rem;
}

.kb-footer-links a,
.kb-footer-note {
  color: var(--kb-muted);
}

.kb-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 35, 61, 0.08);
  color: var(--kb-muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1160px) {
  .kb-hero-grid,
  .kb-page-hero-grid,
  .kb-article-layout {
    grid-template-columns: 1fr;
  }

  .kb-category-grid,
  .kb-article-grid,
  .kb-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .kb-header-bar {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .kb-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .kb-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  body.kb-nav-open .kb-nav {
    display: flex;
  }

  .kb-nav a,
  .kb-nav .kb-btn {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .kb-search-shell {
    grid-template-columns: 1fr;
  }

  .kb-search-suggestions {
    right: 0;
  }
}

@media (max-width: 720px) {
  .kb-section,
  .kb-hero,
  .kb-page-hero {
    padding: 64px 0;
  }

  .kb-category-grid,
  .kb-article-grid,
  .kb-search-results,
  .kb-hero-panel-grid,
  .kb-footer-grid {
    grid-template-columns: 1fr;
  }

  .kb-library-head,
  .kb-library-item,
  .kb-footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
    justify-content: flex-start;
  }

  .kb-hero-copy h1,
  .kb-page-copy h1,
  .kb-section-head h2 {
    max-width: none;
  }

  .kb-hero-panel,
  .kb-side-panel,
  .kb-summary-panel,
  .kb-side-card,
  .kb-empty-panel,
  .kb-category-card,
  .kb-article-card,
  .kb-search-card,
  .kb-library-group,
  .kb-doc-section {
    padding: 20px;
  }
}
