/* ================================================================
   QuickUps Imposer — External Stylesheet
   ================================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #07080e;
  color: #e8edf5;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #07080e; }
::-webkit-scrollbar-thumb { background: #2a2d45; border-radius: 4px; }

/* --- Container --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ================================================================
   NAV
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(30, 35, 55, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.5px; }
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #7c5bf5, #4895ef);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; font-weight: 900;
}
.navbar-logo span {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-link {
  color: #e2e8f0;
  font-weight: 500;
  font-size: .9rem;
  padding: 8px 0;
  position: relative;
  transition: color .2s;
}
.nav-link:hover {
  color: #fff;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #7c5bf5, #4895ef);
  transition: width .3s;
}
.nav-link:hover::after {
  width: 100%;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  transition: transform .2s;
}
.navbar-logo:hover {
  transform: translateY(-1px);
}
.navbar-logo img {
  width: auto;
  height: 52px;
  display: block;
  filter: brightness(0) invert(1);
}
.navbar-logo span {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-link {
  color: #e2e8f0;
  font-weight: 500;
  font-size: .9rem;
  padding: 8px 0;
  position: relative;
  transition: color .2s;
}
.nav-link:hover {
  color: #fff;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #7c5bf5, #4895ef);
  transition: width .3s;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-cta {
  background: linear-gradient(135deg, #7c5bf5, #4895ef);
  color: #fff; padding: 10px 24px; border-radius: 8px;
  font-weight: 600; font-size: .9rem;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,91,245,0.35); }

/* ================================================================
   SECTION — BASE
   ================================================================ */
.section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

/* ================================================================
   SECTION BACKGROUNDS — FULLY DISTINCT, HIGH CONTRAST
   Each section has a clearly different visible background color.
   Text colors are adjusted per-section for readability.
   ================================================================ */

/* HERO — electric blue to neon purple with high contrast */
.section-hero {
  background: linear-gradient(125deg, #001040 0%, #2e0859 35%, #4c0b5f 65%, #630a5e 100%);
}
.section-hero .orb1 {
  position: absolute; width: 700px; height: 700px;
  top: -30%; right: -10%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.6), transparent 60%);
  border-radius: 50%; pointer-events: none;
}
.section-hero .orb2 {
  position: absolute; width: 500px; height: 500px;
  bottom: -20%; left: -5%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 50%);
  border-radius: 50%; pointer-events: none;
}
.section-hero .container { position: relative; z-index: 1; }

/* PROBLEM — vibrant emerald with deep contrast (merged with old Features) */
.section-problem {
  background: linear-gradient(135deg, #0a1f0f 0%, #144d19 50%, #1e6b28 100%);
}
.section-problem .h2 { color: #a7f3d0; }
.section-problem .text-body { color: #86efac; max-width: none; }
.section-problem .label { color: #34d399; }

/* SHOWCASE — vibrant teal with deep contrast */
.section-showcase {
  background: linear-gradient(135deg, #0a1520 0%, #054a63 50%, #065f77 100%);
}
.section-showcase .h2 { color: #a5f3fc; }
.section-showcase .text-body { color: #67e8f9; }
.section-showcase .label { color: #22d3ee; }

/* INDUSTRIES — vibrant amber with deep contrast */
.section-industries {
  background: linear-gradient(135deg, #1f1000 0%, #442602 50%, #733e04 100%);
}
.section-industries .h2 { color: #fee58a; }
.section-industries .label { color: #fbbf24; }

/* KEY FEATURES — vibrant purple with deep contrast */
.section-features-list {
  background: linear-gradient(135deg, #180a29 0%, #3c0f4d 50%, #5c1c62 100%);
}
.section-features-list .h2 { color: #f0abfc; }
.section-features-list .label { color: #c084fc; }
.section-features-list .text-body { color: #e9d5ff; }

/* CTA — vibrant red-orange with deep contrast */
.section-cta {
  background: linear-gradient(135deg, #2e0806 0%, #5b1612 50%, #7f1f18 100%);
}

/* ================================================================
   TYPOGRAPHY — defaults (overridden per-section above)
   ================================================================ */
.label {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: #7c5bf5;
  margin-bottom: 14px;
}
.h1 {
  font-size: clamp(2.6rem, 4.5vw, 5rem);
  font-weight: 900; letter-spacing: -2px; line-height: 1.05;
}
.h1 .hl {
  background: linear-gradient(135deg, #a78bfa, #4895ef);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.h2 {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.12;
}
.h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.text-body {
  font-size: 19px;
  color: #c8cee0;
  max-width: 680px;
  line-height: 1.75;
}
.text-center { text-align: center; }
.text-center .text-body { margin: 16px auto 0; }
.text-center .text-body + .text-body { margin-top: 12px; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 10px;
  font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-p {
  background: linear-gradient(135deg, #7c5bf5, #4895ef);
  color: #fff;
}
.btn-p:hover { box-shadow: 0 12px 32px rgba(124,91,245,0.4); }
.btn-s {
  border: 1px solid rgba(255,255,255,0.1);
  color: #c8cddf;
  background: transparent;
}
.btn-s:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}
.hero .h1 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.hero .text-body {
  color: #e2e8f0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-computer-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  perspective: 1000px;
}
.hero-computer-frame img {
  max-width: 100%;
  height: auto;
}
.hero-computer-screen {
  position: relative;
  background: linear-gradient(145deg, #e8e8ec 0%, #c0c0c8 35%, #a8a8b0 65%, #b8b8c4 100%);
  border-radius: 16px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255,255,255,0.6),
    inset 0 -2px 4px rgba(0,0,0,0.1);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}
.hero-computer-frame:hover .hero-computer-screen {
  transform: rotateY(-5deg) rotateX(3deg);
}
.hero-computer-screen::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
  background: linear-gradient(135deg, rgba(124,91,245,0.2), transparent);
  border-radius: 16px;
  z-index: -1;
  filter: blur(20px);
}
.hero-computer-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.hero-svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  max-width: 580px;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}
.hero-svg svg {
  width: 100%;
  height: auto;
  display: block;
  filter: hue-rotate(10deg) saturate(1.1) opacity(0.3);
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: linear-gradient(145deg, #1e2338, #171a2b);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 100%; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
  opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: 1; }
.card .h3 { color: #f0f4ff; }
.card .text-body { color: #d1d5db; }
.icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,91,245,0.25);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card:nth-child(1)::before { background: linear-gradient(90deg, #7c5bf5, #a78bfa); }
.card:nth-child(2)::before { background: linear-gradient(90deg, #4895ef, #60a5fa); }
.card:nth-child(3)::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.icon-box svg { width: 28px; height: 28px; display: block; }
.card:nth-child(1) .icon-box { background: linear-gradient(135deg, #7c5bf5, #a78bfa); }
.card:nth-child(2) .icon-box { background: linear-gradient(135deg, #4895ef, #60a5fa); }
.card:nth-child(3) .icon-box { background: linear-gradient(135deg, #06b6d4, #22d3ee); }

/* ================================================================
   GRIDS
   ================================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }

/* ================================================================
   SHOWCASE
   ================================================================ */
.video-wrapper {
  max-width: 960px;
  margin: 48px auto 0;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  overflow: hidden;
}
.video-wrapper video {
  width: 100%; display: block;
}

/* ================================================================
   INDUSTRY TAGS
   ================================================================ */
.industry-tag {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 20px;
  font-weight: 700;
  font-size: 1.35rem;
  text-align: center;
  color: #f8fafc;
  transition: all .3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.industry-tag:nth-child(1) {
  background: linear-gradient(135deg, rgba(124,91,245,0.15), rgba(124,91,245,0.25));
  border: 1px solid rgba(124,91,245,0.5);
  color: #c4b5ff;
}
.industry-tag:nth-child(2) {
  background: linear-gradient(135deg, rgba(72,149,239,0.15), rgba(72,149,239,0.25));
  border: 1px solid rgba(72,149,239,0.5);
  color: #90cdf4;
}
.industry-tag:nth-child(3) {
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(6,182,212,0.25));
  border: 1px solid rgba(6,182,212,0.5);
  color: #67e8f9;
}
.industry-tag:nth-child(4) {
  background: linear-gradient(135deg, rgba(251,146,60,0.15), rgba(251,146,60,0.25));
  border: 1px solid rgba(251,146,60,0.5);
  color: #fca5a5;
}
.industry-tag:nth-child(5) {
  background: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(52,211,153,0.25));
  border: 1px solid rgba(52,211,153,0.5);
  color: #81e6d9;
}
.industry-tag:nth-child(6) {
  background: linear-gradient(135deg, rgba(244,114,182,0.15), rgba(244,114,182,0.25));
  border: 1px solid rgba(244,114,182,0.5);
  color: #f9a8d4;
}

/* ================================================================
   KEY FEATURE ITEMS
   ================================================================ */
.kf-item {
  display: flex; align-items: flex-start; gap: 20px;
  background: linear-gradient(145deg, #1a1440, #140e30);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 24px;
  position: relative; overflow: hidden;
  text-align: left;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.kf-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; opacity: .8;
}
.kf-item:nth-child(1)::before { background: linear-gradient(180deg, #7c5bf5, #a78bfa); }
.kf-item:nth-child(2)::before { background: linear-gradient(180deg, #4895ef, #60a5fa); }
.kf-item:nth-child(3)::before { background: linear-gradient(180deg, #06b6d4, #22d3ee); }
.kf-item:nth-child(4)::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.kf-item:nth-child(5)::before { background: linear-gradient(180deg, #10b981, #34d399); }
.kf-item:nth-child(6)::before { background: linear-gradient(180deg, #f472b6, #f9a8d4); }
.kf-item:hover {
  border-color: rgba(124,91,245,0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.kf-check {
  width: 60px; height: 60px; min-width: 60px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff; margin-top: 2px;
}
.kf-item:nth-child(1) .kf-check { background: linear-gradient(135deg, #7c5bf5, #a78bfa); }
.kf-item:nth-child(2) .kf-check { background: linear-gradient(135deg, #4895ef, #60a5fa); }
.kf-item:nth-child(3) .kf-check { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.kf-item:nth-child(4) .kf-check { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.kf-item:nth-child(5) .kf-check { background: linear-gradient(135deg, #10b981, #34d399); }
.kf-item:nth-child(6) .kf-check { background: linear-gradient(135deg, #f472b6, #f9a8d4); }
.kf-item .h3 { color: #e8e0ff; }
.kf-item .text-body { color: #c9c0e5; font-size: 16.5px; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (min-width: 1600px) {
  .container { max-width: 1600px; padding: 0 60px; }
  .hero-grid { gap: 80px; }
  .section { padding: 130px 0; }
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 2000px) {
  .container { max-width: 1800px; padding: 0 80px; }
  .hero-grid { gap: 100px; }
  .grid-3 { gap: 32px; }
  .grid-2 { gap: 28px; }
  .section { padding: 150px 0; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px;
    height: 100vh; flex-direction: column;
    background: rgba(20, 25, 45, 0.98); backdrop-filter: blur(20px);
    padding: 80px 32px 32px; gap: 12px;
    transition: right .35s ease; box-shadow: -8px 0 32px rgba(0,0,0,0.5);
    z-index: 105;
  }
  .nav-links.open { right: 0; }
  .nav-links .nav-link { font-size: 1.1rem; padding: 12px 0; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero .text-body { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .container { padding: 0 24px; }
}
@media (max-width: 540px) {
  .hero-svg { display: none; }
  .h1 { font-size: 2rem; }
  .industry-tag { padding: 18px 12px; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: #07080e;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-links a {
  color: #94a3b8;
  font-size: .85rem;
  font-weight: 500;
  transition: color .2s;
}
.footer-links a:hover { color: #e2e8f0; }
.footer p { color: #64748b; font-size: .85rem; }

/* ================================================================
   STATIC PAGES (Terms, Privacy, Contact)
   ================================================================ */
.page-section {
  padding: 140px 0 80px;
  background: linear-gradient(125deg, #001040 0%, #2e0859 35%, #4c0b5f 65%, #630a5e 100%);
  min-height: 100vh;
}
.page-content {
  max-width: 860px;
  margin: 0 auto;
  color: #e2e8f0;
  line-height: 1.8;
}
.page-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.page-content .last-updated {
  color: #94a3b8;
  font-size: .85rem;
  margin-bottom: 40px;
}
.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: #a78bfa;
}
.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #c4b5fd;
}
.page-content p { margin-bottom: 16px; color: #c8cee0; }
.page-content ul, .page-content ol { margin: 0 0 16px 24px; color: #c8cee0; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: #a78bfa; text-decoration: underline; }
.page-content strong { color: #e2e8f0; }
.page-content hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 32px 0; }

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 40px 0;
}
.contact-form label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 6px;
}
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #7c5bf5;
}
.contact-form select option { background: #1a1a3a; color: #e2e8f0; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { margin-top: 4px; }

/* ================================================================
   KNOWLEDGE BASE
   ================================================================ */
.kb-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.kb-sidebar {
  position: sticky;
  top: 100px;
}

.kb-sidebar-inner {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.kb-sidebar-inner::-webkit-scrollbar { width: 4px; }
.kb-sidebar-inner::-webkit-scrollbar-track { background: transparent; }
.kb-sidebar-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.kb-search-box {
  position: relative;
  margin-bottom: 16px;
}

.kb-search-box input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
  font-size: .85rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}

.kb-search-box input:focus {
  border-color: #7c5bf5;
}

.kb-search-box input::placeholder { color: #64748b; }

.kb-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
}

.kb-tree { margin-bottom: 12px; }

.kb-category { margin-bottom: 2px; }

.kb-cat-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 8px;
  border: none;
  background: none;
  color: #c4b5fd;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
  transition: background .2s;
}

.kb-cat-toggle:hover { background: rgba(255,255,255,0.04); }

.kb-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .2s;
}

.kb-cat-toggle[aria-expanded="false"] .kb-chevron { transform: rotate(-90deg); }
.kb-cat-toggle[aria-expanded="true"] .kb-chevron { transform: rotate(0deg); }

.kb-cat-items {
  overflow: hidden;
  transition: max-height .2s;
}

.kb-cat-toggle[aria-expanded="false"] + .kb-cat-items { max-height: 0; }
.kb-cat-toggle[aria-expanded="true"] + .kb-cat-items { max-height: none; }

.kb-art-link {
  display: block;
  padding: 6px 8px 6px 28px;
  color: #94a3b8;
  text-decoration: none;
  font-size: .82rem;
  border-radius: 6px;
  transition: all .2s;
  line-height: 1.4;
}

.kb-art-link:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,0.03);
}

.kb-art-link.active {
  color: #a78bfa;
  background: rgba(167,139,250,0.08);
  font-weight: 600;
}

.kb-count {
  font-size: .78rem;
  color: #475569;
  padding: 8px 4px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 4px;
}

.kb-content { min-width: 0; }

.kb-breadcrumb {
  font-size: .8rem;
  color: #64748b;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.kb-breadcrumb a { color: #94a3b8; text-decoration: none; }
.kb-breadcrumb a:hover { color: #a78bfa; }
.kb-bc-sep { margin: 0 8px; color: #475569; }

.kb-welcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.kb-welcome-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
}

.kb-welcome-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #c4b5fd;
  margin: 0 0 12px;
}

.kb-welcome-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kb-welcome-card li { margin-bottom: 8px; }
.kb-welcome-card li a { color: #94a3b8; text-decoration: none; font-size: .85rem; }
.kb-welcome-card li a:hover { color: #e2e8f0; }

.kb-search-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.kb-search-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
}

.kb-search-form input:focus { border-color: #7c5bf5; }

.kb-result-count { color: #94a3b8; font-size: .9rem; margin-bottom: 20px; }

.kb-results { display: flex; flex-direction: column; gap: 16px; }

.kb-result-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px;
}

.kb-result-title {
  display: block;
  color: #a78bfa;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 4px;
}

.kb-result-title:hover { color: #c4b5fd; }

.kb-result-cat {
  display: inline-block;
  font-size: .75rem;
  color: #64748b;
  background: rgba(255,255,255,0.04);
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.kb-result-excerpt { color: #94a3b8; font-size: .85rem; line-height: 1.6; margin: 0; }

.kb-sidebar-toggle {
  display: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #e2e8f0;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
  margin-bottom: 16px;
  width: 100%;
  text-align: left;
}

.kb-sidebar-toggle:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 900px) {
  .kb-layout { grid-template-columns: 1fr; }

  .kb-sidebar {
    position: static;
    display: none;
  }

  .kb-sidebar.open { display: block; }

  .kb-sidebar-inner {
    max-height: none;
    margin-bottom: 20px;
  }

  .kb-sidebar-toggle { display: block; }
}

@media (max-width: 540px) {
  .kb-welcome-grid { grid-template-columns: 1fr; }
  .kb-search-form { flex-direction: column; }
  .kb-sidebar-inner { padding: 16px; }
}