:root {
  color-scheme: dark;
}

body.kb-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(111, 99, 255, 0.28), transparent 55%),
    radial-gradient(circle at 80% 12%, rgba(92, 203, 203, 0.18), transparent 52%),
    #050513;
  color: #f5f6ff;
}

.kb-shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.kb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 7, 18, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.kb-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.kb-header__brand img {
  height: 38px;
  width: auto;
}

.kb-header__label {
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(235, 236, 255, 0.68);
}

.kb-header__backlink {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(235, 236, 255, 0.62);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.kb-header__backlink:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.kb-main {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 12vw, 96px);
  padding-top: clamp(48px, 10vw, 80px);
  padding-bottom: clamp(64px, 12vw, 120px);
}

.kb-hero {
  padding: clamp(48px, 12vw, 120px) 0 clamp(24px, 8vw, 64px);
}

.kb-hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(235, 236, 255, 0.58);
}

.kb-hero__title {
  margin: clamp(10px, 3vw, 18px) 0 0;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.01em;
}

.kb-hero__lead {
  margin: clamp(16px, 3vw, 26px) 0 0;
  max-width: 720px;
  font-size: clamp(1rem, 2.8vw, 1.22rem);
  line-height: 1.8;
  color: rgba(245, 247, 255, 0.78);
}

.kb-search {
  margin-top: clamp(22px, 4vw, 36px);
}

.kb-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kb-search__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 26, 0.72);
  padding: 12px 20px 12px 54px;
  box-shadow: inset 0 0 12px rgba(11, 12, 26, 0.45), 0 20px 40px rgba(8, 12, 32, 0.44);
}

.kb-search__field input {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(245, 247, 255, 0.82);
  font-size: 1rem;
}

.kb-search__field input::placeholder {
  color: rgba(245, 247, 255, 0.48);
}

.kb-search__field input:focus-visible {
  outline: none;
}

.kb-search__icon {
  position: absolute;
  left: 22px;
  width: 20px;
  height: 20px;
  fill: rgba(245, 247, 255, 0.48);
}

.kb-search__coming-soon {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(235, 236, 255, 0.42);
}

.kb-card-section__header {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(22px, 4vw, 36px);
}

.kb-card-section__header h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.01em;
}

.kb-card-section__header p {
  margin: 0;
  max-width: 520px;
  color: rgba(245, 247, 255, 0.68);
  line-height: 1.6;
}

.kb-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 4vw, 26px);
}

.kb-card-grid--primary {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 4vw, 32px);
}

.kb-card-grid--upcoming {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(16px, 3vw, 24px);
}


.kb-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 30px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 28, 0.82);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.26s ease;
}

.kb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 99, 255, 0.38);
  box-shadow: 0 28px 52px rgba(7, 9, 24, 0.46);
}

.kb-card.is-active {
  border-color: rgba(108, 99, 255, 0.6);
  box-shadow: 0 36px 72px rgba(18, 14, 60, 0.55);
  transform: translateY(-6px);
}


.kb-card--primary {
  background: linear-gradient(160deg, rgba(110, 98, 255, 0.28), rgba(43, 32, 90, 0.82));
  border-color: rgba(132, 120, 255, 0.45);
  box-shadow: 0 34px 70px rgba(25, 16, 68, 0.55);
}

.kb-card--highlight {
  background: linear-gradient(160deg, rgba(110, 98, 255, 0.34), rgba(43, 32, 120, 0.86));
  border-color: rgba(132, 120, 255, 0.55);
  box-shadow: 0 40px 80px rgba(22, 18, 68, 0.55);
}

.kb-card--upcoming {
  padding: clamp(18px, 3.6vw, 24px);
  gap: 10px;
  background: rgba(12, 14, 26, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}
.kb-card--upcoming:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--brand-primary-rgb, 108, 99, 255), 0.28);
  box-shadow: 0 18px 32px rgba(8, 10, 24, 0.38);
}



.kb-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.2);
  border: 1px solid rgba(108, 99, 255, 0.4);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 234, 255, 0.86);
}

.kb-card__badge--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(235, 236, 255, 0.58);
}

.kb-card__badge--accent {
  background: rgba(var(--brand-primary-rgb, 108, 99, 255), 0.28);
  border-color: rgba(var(--brand-primary-rgb, 108, 99, 255), 0.5);
  color: #f0f1ff;
}


.kb-card__title {
  margin: 0;
  font-size: 1.16rem;
}

.kb-card__copy {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(245, 247, 255, 0.74);
}

.kb-card__summary {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(245, 247, 255, 0.68);
}


.kb-card__cta {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(235, 236, 255, 0.72);
}

.kb-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(235, 236, 255, 0.7);
}

.kb-pill--success {
  background: rgba(76, 222, 176, 0.18);
  border-color: rgba(76, 222, 176, 0.38);
  color: #8ff7d4;
}

.kb-pill--secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(235, 236, 255, 0.68);
}

.kb-pill--accent {
  background: rgba(var(--brand-primary-rgb, 108, 99, 255), 0.26);
  border-color: rgba(var(--brand-primary-rgb, 108, 99, 255), 0.46);
  color: #f0f1ff;
}

.kb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.22);
  border: 1px solid rgba(108, 99, 255, 0.4);
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.22s ease;
}

.kb-button:hover {
  transform: translateY(-1px);
  background: rgba(108, 99, 255, 0.3);
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: 0 24px 44px rgba(8, 10, 30, 0.5);
}

.kb-button--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(245, 247, 255, 0.86);
}

.kb-button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.kb-lesson {
  background: rgba(12, 13, 28, 0.86);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 72px rgba(7, 10, 26, 0.55);
  padding: clamp(32px, 6vw, 52px);
}

.kb-lesson--secondary {
  background: rgba(9, 11, 24, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 26px 60px rgba(6, 9, 22, 0.46);
}

.kb-lesson--highlight {
  background: linear-gradient(150deg, rgba(108, 99, 255, 0.4), rgba(64, 58, 148, 0.84));
  border-color: rgba(138, 128, 255, 0.58);
  box-shadow: 0 40px 82px rgba(14, 16, 40, 0.62);
}

.kb-lesson__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 6vw, 48px);
  align-items: start;
}

.kb-lesson__copy {
  display: grid;
  gap: 16px;
}

.kb-lesson__copy h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 34px);
}

.kb-lesson__copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(245, 247, 255, 0.76);
}

.kb-lesson__list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: rgba(245, 247, 255, 0.78);
  font-size: 0.98rem;
}

.kb-lesson__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.kb-lesson__media video {
  width: 100%;
  display: block;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050712;
  box-shadow: 0 22px 50px rgba(5, 8, 22, 0.6);
}

.kb-lesson__note {
  margin-top: 10px;
  font-size: 0.84rem;
  color: rgba(245, 247, 255, 0.6);
}

.kb-feedback {
  padding-top: clamp(24px, 6vw, 48px);
}

.kb-feedback__card {
  display: grid;
  gap: 16px;
  padding: clamp(28px, 5vw, 40px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 26, 0.78);
  box-shadow: 0 26px 56px rgba(7, 10, 24, 0.5);
}

.kb-feedback__card h2 {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 28px);
}

.kb-feedback__card p {
  margin: 0;
  color: rgba(245, 247, 255, 0.72);
  line-height: 1.6;
}

.kb-feedback__form {
  display: grid;
  gap: 14px;
}

.kb-feedback__label {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(235, 236, 255, 0.58);
}

.kb-feedback__form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 8, 20, 0.85);
  color: rgba(245, 247, 255, 0.88);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 160px;
}

.kb-feedback__form textarea::placeholder {
  color: rgba(245, 247, 255, 0.5);
}

.kb-feedback__form textarea:focus-visible {
  outline: none;
  border-color: rgba(108, 99, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
}

@media (max-width: 900px) {
  .kb-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .kb-header__backlink {
    margin-left: 52px;
  }
}

@media (max-width: 640px) {
  .kb-shell {
    width: min(100%, calc(100% - 32px));
  }

  .kb-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .kb-search__field {
    padding-inline: 48px 18px;
  }

  .kb-header__backlink {
    margin-left: 0;
  }
}
