html { scroll-padding-top: 165px; scroll-behavior: smooth; }

/* ==========================================================================
   VOXEN ENTERPRISE DOCUMENTATION SYSTEM (docs.css)
   Professional, high-contrast, anime-celestial glassmorphic documentation layout
   ========================================================================== */

/* Main Docs Page Wrapper */
.docs-page-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 175px 2rem 5rem;
  display: flex;
  gap: 2.5rem;
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* ==========================================================================
   STICKY LEFT SIDEBAR NAVIGATION
   ========================================================================== */
.docs-sidebar {
  width: 290px;
  min-width: 290px;
  position: sticky;
  top: 135px;
  max-height: calc(100vh - 155px);
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  background: rgba(13, 18, 36, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}
.docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 4px;
}

/* Sidebar Quick Search Box */
.docs-search-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.docs-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: rgba(6, 10, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.84rem;
  outline: none;
  transition: all 0.2s ease;
}

.docs-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  background: rgba(10, 15, 30, 0.95);
}

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

/* Sidebar Nav Groups */
.docs-nav-group {
  margin-bottom: 1.75rem;
}

.docs-nav-group:last-child {
  margin-bottom: 0.5rem;
}

.docs-nav-group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38bdf8;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.docs-nav-group-title span {
  color: #a855f7;
}

.docs-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 10px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.docs-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #38bdf8;
  transform: translateX(3px);
}

.docs-nav-link.active {
  color: #38bdf8;
  font-weight: 700;
  border-left-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.1);
}

/* ==========================================================================
   MAIN DOCUMENTATION CONTENT CANVAS
   ========================================================================== */
.docs-content {
  flex: 1;
  min-width: 0;
  max-width: 1020px;
}

/* Article Container Card */
.docs-article-card {
  background: rgba(11, 16, 32, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 24px;
  padding: 3rem 3.5rem;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(56, 189, 248, 0.06);
  position: relative;
  overflow: hidden;
}

/* Top Subtle Cosmic Glow */
.docs-article-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: 10%;
  width: 50%;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 80%);
  filter: blur(50px);
  pointer-events: none;
}

/* Header & Breadcrumb */
.docs-article-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.docs-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.docs-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-version-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.docs-version-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseBeacon 2s infinite ease-in-out;
}

.docs-article-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 90%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.docs-article-lead {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 850px;
}

/* ==========================================================================
   DOCUMENTATION SECTION BLOCKS & TYPOGRAPHY
   ========================================================================== */
.docs-section-block {
  margin-bottom: 4rem;
  scroll-margin-top: 165px;
  position: relative;
  z-index: 2;
}

.docs-section-h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-section-h2 span.num-prefix {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.docs-section-h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-section-h3::before {
  content: '▸';
  color: #a855f7;
  font-size: 1.1rem;
}

.docs-paragraph {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.docs-paragraph strong {
  color: #ffffff;
  font-weight: 700;
}

/* Inline code chip */
.docs-code-inline {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

/* ==========================================================================
   MODERN CODE SYNTAX BOXES WITH ONE-CLICK CLIPBOARD COPY
   ========================================================================== */
.docs-code-box {
  background: #060914;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.05);
  position: relative;
  transition: border-color 0.2s ease;
}

.docs-code-box:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.docs-code-header {
  background: rgba(13, 19, 36, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #94a3b8;
}

.docs-code-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-code-dots {
  display: flex;
  gap: 5px;
}

.docs-code-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.docs-code-dots span:nth-child(1) { background: #ef4444; }
.docs-code-dots span:nth-child(2) { background: #f59e0b; }
.docs-code-dots span:nth-child(3) { background: #10b981; }

.docs-code-lang {
  color: #38bdf8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Interactive Copy Button */
.docs-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 5px 10px;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.docs-copy-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.docs-copy-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.docs-code-pre {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #f8fafc;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
  scrollbar-width: thin;
}

.docs-code-pre::-webkit-scrollbar {
  height: 4px;
}
.docs-code-pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Syntax Highlighting Classes */
.c-comment { color: #64748b; font-style: italic; }
.c-cmd { color: #38bdf8; font-weight: 700; }
.c-param { color: #f472b6; }
.c-flag { color: #a78bfa; }
.c-val { color: #34d399; }
.c-punct { color: #94a3b8; }

/* ==========================================================================
   ALERTS & CALLOUT BANNERS
   ========================================================================== */
.docs-callout {
  padding: 1.4rem 1.6rem;
  border-radius: 16px;
  margin: 1.75rem 0;
  position: relative;
  backdrop-filter: blur(12px);
}

/* Danger / Critical Alert */
.docs-callout.alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-left: 4px solid #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.1);
}

.docs-callout.alert-danger .docs-callout-title {
  color: #f87171;
}

/* Tip Alert */
.docs-callout.alert-tip {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-left: 4px solid #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.1);
}

.docs-callout.alert-tip .docs-callout-title {
  color: #38bdf8;
}

/* Security Alert */
.docs-callout.alert-security {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-left: 4px solid #a855f7;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.1);
}

.docs-callout.alert-security .docs-callout-title {
  color: #c084fc;
}

.docs-callout-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-callout-body {
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.65;
}

/* ==========================================================================
   SPEC TABLES & MATRICES
   ========================================================================== */
.docs-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 24, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-align: left;
}

.docs-table th {
  background: rgba(16, 24, 48, 0.95);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-table td {
  padding: 13px 18px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.docs-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.docs-chip-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.docs-chip-blue {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.docs-chip-purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

/* ==========================================================================
   FEATURE CARDS GRID (About Pillars in Docs)
   ========================================================================== */
.docs-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 1.75rem 0 2.25rem;
}
@media (max-width: 768px) {
  .docs-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.docs-pillar-card {
  background: rgba(14, 20, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.25s ease;
}

.docs-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

.docs-pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.docs-pillar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.docs-pillar-desc {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   AI ROADMAP PREVIEW COMPONENT
   ========================================================================== */
.docs-ai-banner {
  background: linear-gradient(145deg, rgba(20, 18, 48, 0.9) 0%, rgba(10, 12, 28, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  padding: 28px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.15);
}

.docs-ai-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.docs-ai-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.docs-ai-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.docs-ai-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.docs-ai-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
}

.docs-ai-feature-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.docs-ai-feature-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* ==========================================================================
   DEPLOY CTA BANNER
   ========================================================================== */
.docs-deploy-banner {
  background: linear-gradient(135deg, rgba(20, 30, 58, 0.9) 0%, rgba(13, 18, 36, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 32px 36px;
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.15);
}

/* Floating Back To Top Button */
.docs-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(13, 18, 36, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.2);
  transition: all 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.docs-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.docs-back-to-top:hover {
  transform: translateY(-4px);
  background: #38bdf8;
  color: #050811;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR DOCS
   ========================================================================== */
@media (max-width: 1080px) {
  .docs-page-container {
    flex-direction: column;
    padding: 95px 1.25rem 4rem;
    gap: 2rem;
  }
  .docs-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    border-radius: 16px;
  }
  .docs-article-card {
    padding: 2rem 1.5rem;
  }
}
