@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   Cratera Design System — technical documentation surfaces
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #f6f6f4;
  --bg-sidebar: #efefec;
  --bg-card: #f6f6f4;
  --bg-card-alt: #ecece8;
  --bg-card-hover: #e8e8e4;
  --bg-elevated: #ffffff;
  --bg-code: #16181c;
  --bg-code-header: #1c1f24;

  --bg-dark: var(--bg-code);
  --bg-dark-card: #1c1f24;
  --bg-dark-header: var(--bg-code-header);
  --bg-dark-btn: #2a2e35;
  --bg-dark-btn-hover: #353a43;

  --border-color: #d8d8d2;
  --border-muted: #c8c8c1;
  --border-dark: #2a2e35;
  --border-dark-muted: #3a3f48;

  --text-main: #1c1e22;
  --text-muted: #4d535c;
  --text-dim: #6b717a;
  --text-light: #d8dce3;
  --text-light-muted: #9aa1ab;
  --text-light-dim: #7b838e;
  --text-code: #c5cdd8;

  --accent: #c45c26;
  --accent-hover: #a84c1d;
  --accent-bg: rgba(196, 92, 38, 0.1);
  --accent-border: rgba(196, 92, 38, 0.35);
  --accent-orange: var(--accent);
  --accent-orange-hover: var(--accent-hover);
  --accent-orange-bg: var(--accent-bg);
  --accent-orange-border: var(--accent-border);

  --accent-blue: var(--accent);
  --accent-blue-bg: var(--accent-bg);
  --accent-green: var(--accent);
  --accent-green-bright: var(--accent);
  --accent-cyan: var(--accent);

  --font-sans: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", Menlo, Consolas, monospace;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-xl: 4px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --btn-primary-bg: #1c1e22;
  --btn-primary-fg: #f6f6f4;
  --btn-primary-hover: #2c3036;

  --sidebar-width: 240px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-main: #101214;
  --bg-sidebar: #0c0d10;
  --bg-card: #101214;
  --bg-card-alt: #181a1f;
  --bg-card-hover: #1c1f24;
  --bg-elevated: #16181c;
  --bg-code: #0a0b0d;
  --bg-code-header: #12141a;
  --bg-dark: var(--bg-code);
  --bg-dark-card: #16181c;
  --bg-dark-header: var(--bg-code-header);
  --bg-dark-btn: #22262c;
  --bg-dark-btn-hover: #2c3138;
  --border-color: #26292f;
  --border-muted: #32363e;
  --border-dark: #26292f;
  --border-dark-muted: #32363e;
  --text-main: #d5d9e0;
  --text-muted: #9aa3b0;
  --text-dim: #7d8693;
  --text-light: #d5d9e0;
  --text-light-muted: #9aa3b0;
  --text-light-dim: #7d8693;
  --text-code: #c2c8d1;
  --accent: #d0723a;
  --accent-hover: #e0844c;
  --accent-bg: rgba(208, 114, 58, 0.12);
  --accent-border: rgba(208, 114, 58, 0.38);
  --btn-primary-bg: #d5d9e0;
  --btn-primary-fg: #101214;
  --btn-primary-hover: #e4e7ec;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  color-scheme: light;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Buttons, callouts, badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  user-select: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: var(--btn-primary-fg);
}

html[data-theme="dark"] .btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg);
}

html[data-theme="dark"] .btn-primary:hover {
  background-color: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: var(--btn-primary-fg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-muted);
}

.btn-secondary:hover {
  background-color: var(--bg-card-alt);
  border-color: var(--border-muted);
}

.btn-dark {
  background-color: transparent;
  border-color: var(--border-muted);
  color: var(--text-main);
}

.btn-dark:hover {
  background-color: var(--bg-card-alt);
  color: var(--text-main);
}

.btn-sm {
  padding: 3px 8px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.copy-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  flex: none;
  color: var(--text-muted);
  user-select: none;
}

.copy-btn:hover {
  background-color: var(--bg-card-alt);
  border-color: var(--border-muted);
  color: var(--text-main);
}

.copy-btn-sm {
  padding: 2px 7px;
  font-size: 11px;
}

.copy-btn-dark {
  background-color: transparent;
  border-color: var(--border-dark-muted);
  color: var(--text-light-muted);
}

.copy-btn-dark:hover {
  background-color: var(--bg-dark-btn);
  color: var(--text-light);
}

.copy-btn.copied {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.callout {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-left: 2px solid var(--border-muted);
  border-radius: 0;
  background-color: transparent;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}

.callout-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

.callout-info,
.callout-success,
.callout-warning {
  background: transparent;
  border-color: var(--border-color);
  border-left-color: var(--accent);
}

.callout-info .callout-title,
.callout-success .callout-title,
.callout-warning .callout-title {
  color: var(--text-main);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
}

.badge-orange {
  border: none;
  background: transparent;
  color: var(--text-dim);
  padding: 0;
}

.badge-green {
  border-color: var(--border-color);
  background: transparent;
  color: var(--text-muted);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.app-container {
  display: flex;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  z-index: 100;
  user-select: none;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 28px 20px 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  padding: 8px 7px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease;
  border-radius: var(--radius-md);
}

.mobile-menu-btn:hover {
  background-color: var(--bg-card-alt);
}

.menu-line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-main);
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.sidebar.is-open .mobile-menu-btn .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sidebar.is-open .mobile-menu-btn .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.sidebar.is-open .mobile-menu-btn .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.brand-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  width: 128px;
  max-width: 128px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.brand-version {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-main);
  margin-top: 6px;
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  max-width: 208px;
}

.sidebar-nav {
  padding: 12px 12px 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-heading {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  padding: 14px 10px 6px;
  text-transform: none;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: background-color 0.12s ease, color 0.12s ease;
  position: relative;
}

.nav-item:hover {
  color: var(--text-main);
  background-color: transparent;
}

.nav-item.is-active {
  color: var(--accent);
  background-color: transparent;
  font-weight: 500;
}

.nav-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 12px 8px 4px;
}

.sidebar-header-actions {
  position: absolute;
  top: 14px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.theme-toggle:hover {
  background-color: var(--bg-card-alt);
  border-color: var(--border-color);
  color: var(--text-main);
}

.theme-icon {
  width: 16px;
  height: 16px;
  display: none;
}

html[data-theme-pref="system"] .theme-icon-system,
html[data-theme-pref="light"] .theme-icon-light,
html[data-theme-pref="dark"] .theme-icon-dark,
html:not([data-theme-pref]) .theme-icon-system {
  display: block;
}

html[data-theme="dark"] .brand-logo-img {
  filter: brightness(0) invert(1);
}

.sidebar-footer {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-sidebar);
  font-size: 12px;
}

.sidebar-info-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.4;
}

.meta-label {
  font-family: var(--font-sans);
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 11px;
}

.meta-val {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 400;
  font-size: 11px;
}

.meta-link {
  font-family: var(--font-sans);
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  font-size: 11px;
}

.meta-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Main content
   ========================================================================== */
.main-viewport {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  padding: 48px 56px 120px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background-color: var(--bg-main);
}

.content-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.hero-block {
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  background-color: transparent;
  padding: 8px 0 36px;
  margin-bottom: 40px;
  scroll-margin-top: 24px;
  box-shadow: none;
}

.hero-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.hero-tagline {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 10px;
}

.hero-description {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 22px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 0;
  border-top: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-badge-dot {
  color: var(--border-muted);
}

.section-wrapper {
  margin-bottom: 48px;
  scroll-margin-top: 24px;
}

.section-header-bar {
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  background-color: transparent;
  padding: 0 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  box-shadow: none;
}

.section-tag-left,
h2.section-tag-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin: 0;
}

.section-status-right {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0;
}

/* ==========================================================================
   Specification metrics
   ========================================================================== */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 20px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.telemetry-card {
  background-color: var(--bg-elevated);
  border: none;
  border-radius: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: none;
  transition: none;
}

.telemetry-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.card-label,
h3.card-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.card-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.card-big-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.card-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.card-footer-note {
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: none;
  padding-top: 0;
  margin-top: auto;
  line-height: 1.45;
}

/* ==========================================================================
   Host / guest requirements
   ========================================================================== */
.sys-info-box {
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0;
  color: var(--text-main);
  margin-bottom: 8px;
  box-shadow: none;
}

.sys-info-content {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.sys-col-title,
h3.sys-col-title {
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: none;
}

.sys-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sys-item {
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sys-bullet {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 400;
  flex: none;
}

.sys-text-strong {
  color: var(--text-main);
  font-weight: 500;
}

.sys-text-dim {
  color: var(--text-muted);
}

/* ==========================================================================
   Architecture & security
   ========================================================================== */
.arch-diagram-box {
  background-color: var(--bg-code);
  border: 1px solid var(--border-dark);
  border-radius: 0;
  color: var(--text-code);
  padding: 18px 20px;
  margin-bottom: 18px;
  overflow-x: auto;
  box-shadow: none;
}

.arch-diagram {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre;
  color: var(--text-code);
}

.arch-diagram .hl-accent {
  color: var(--text-light);
  font-weight: 500;
}

.arch-diagram .hl-orange {
  color: var(--accent);
  font-weight: 500;
}

.arch-diagram .hl-dim {
  color: var(--text-light-dim);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--border-color);
}

.security-card {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  padding: 16px 18px 16px 0;
  box-shadow: none;
  transition: none;
}

.security-card:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--border-color);
}

.security-card:hover {
  border-color: var(--border-color);
  box-shadow: none;
}

.security-title,
h3.security-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Languages table
   ========================================================================== */
.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 16px;
}

.search-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-main);
  width: 300px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.12s ease;
}

.search-input:focus {
  border-color: var(--accent);
}

.lang-table-container {
  border: 1px solid var(--border-color);
  border-radius: 0;
  background-color: var(--bg-elevated);
  overflow-x: auto;
  margin-bottom: 18px;
  box-shadow: none;
}

.lang-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.lang-table th {
  background-color: transparent;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.lang-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

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

.lang-table tr:hover td {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.lang-key {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-main);
}

.lang-strategy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.extensibility-box {
  border: none;
  border-top: 1px solid var(--border-color);
  border-radius: 0;
  background-color: transparent;
  padding: 20px 0 0;
  box-shadow: none;
}

.extensibility-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 14px 0;
  font-size: 13px;
  border-top: 1px solid var(--border-color);
}

.strategy-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  padding: 12px 16px 12px 0;
}

.strategy-card:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--border-color);
}

.strategy-card strong {
  font-family: var(--font-mono);
  color: var(--text-main);
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 500;
}

.strategy-card span {
  color: var(--text-muted);
  line-height: 1.45;
  display: block;
}

/* ==========================================================================
   Code windows
   ========================================================================== */
.code-window {
  border: 1px solid var(--border-dark);
  border-radius: 0;
  background-color: var(--bg-code);
  color: var(--text-code);
  margin-bottom: 16px;
  box-shadow: none;
  overflow: hidden;
}

.code-header {
  background-color: var(--bg-code-header);
  border-bottom: 1px solid var(--border-dark);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-light-muted);
}

.code-content {
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.code-content pre {
  margin: 0;
  font-family: inherit;
  color: var(--text-code);
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

.verdict-box {
  background-color: transparent;
  border: none;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  padding: 12px 14px;
  box-shadow: none;
}

.verdict-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.verdict-title,
h3.verdict-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 2px;
}

.verdict-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Quick start
   ========================================================================== */
.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quickstart-step {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  padding: 18px 0;
  box-shadow: none;
}

.quickstart-step:first-child {
  padding-top: 0;
}

.step-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.step-title,
h3.step-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.step-cmd {
  background-color: var(--bg-code);
  border: 1px solid var(--border-dark);
  border-radius: 0;
  color: var(--text-code);
  padding: 9px 12px;
  font-size: 12.5px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.step-cmd code {
  color: var(--text-code);
  white-space: nowrap;
  overflow-x: auto;
  display: block;
  padding-right: 68px;
  padding-bottom: 2px;
  scrollbar-width: thin;
  font-family: var(--font-mono);
}

.step-cmd .copy-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: none;
}

.deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--border-color);
}

.deploy-card {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  padding: 16px 18px 16px 0;
  box-shadow: none;
}

.deploy-card:last-child {
  padding-left: 18px;
  border-left: 1px solid var(--border-color);
}

.deploy-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* ==========================================================================
   Showcase
   ========================================================================== */
.showcase-container {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.showcase-header {
  margin-bottom: 16px;
}

.showcase-heading {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.showcase-lead {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.showcase-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  margin-bottom: 16px;
  box-shadow: none;
}

.showcase-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.showcase-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.55;
}

.showcase-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

.showcase-meta a {
  color: var(--accent);
  text-decoration: underline;
}

.showcase-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.showcase-cta-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-color);
}

.faq-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  box-shadow: none;
  transition: none;
  overflow: hidden;
}

.faq-item[open] {
  background-color: transparent;
  border-color: var(--border-color);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-main);
  user-select: none;
  list-style: none;
  gap: 14px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-question-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.faq-toggle-icon {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-toggle-icon {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 0 16px 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: none;
  padding-top: 0;
  margin: 0;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.page-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

.footer-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .app-container {
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 200;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-sidebar);
    box-shadow: none;
  }

  .sidebar-header {
    padding: 10px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    width: 100%;
  }

  .sidebar-header-actions {
    position: static;
  }

  .brand-badge {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .brand-logo-img {
    width: 28px;
    max-width: 28px;
    height: 28px;
  }

  .brand-text-block {
    align-items: flex-start;
  }

  .brand-name {
    font-size: 14px;
    letter-spacing: 0.03em;
    line-height: 1;
  }

  .brand-version {
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.35;
    font-weight: 500;
    text-align: left;
    max-width: 190px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .sidebar-nav {
    display: none;
    flex-direction: column;
    padding: 8px 10px 16px;
    background-color: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    gap: 1px;
  }

  .sidebar.is-open .sidebar-nav {
    display: flex;
  }

  .sidebar-nav .nav-item {
    padding: 8px 10px;
    font-size: 14px;
  }

  .sidebar-footer {
    display: none;
  }

  .sidebar.is-open .sidebar-footer {
    display: block;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-sidebar);
    padding: 14px 16px;
  }

  .main-viewport {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 16px 80px;
    box-sizing: border-box;
  }

  .content-container {
    max-width: 100%;
  }

  .section-wrapper {
    margin-bottom: 32px;
    scroll-margin-top: 65px;
  }

  .hero-block {
    padding: 8px 0 24px;
    margin-bottom: 28px;
    scroll-margin-top: 65px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .hero-tagline {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-header-bar {
    padding: 0 0 8px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .section-tag-left,
  h2.section-tag-left {
    font-size: 16px;
    line-height: 1.4;
  }

  .section-status-right {
    font-size: 12px;
  }

  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-card {
    padding: 14px 16px;
  }

  .card-big-value {
    font-size: 20px;
  }

  .sys-info-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }

  .sys-item {
    font-size: 13px;
  }

  .security-grid,
  .deploy-grid,
  .strategy-grid,
  .verdict-grid {
    grid-template-columns: 1fr;
  }

  .security-card:nth-child(even),
  .deploy-card:last-child,
  .strategy-card:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }

  .arch-diagram-box {
    padding: 14px 12px;
    font-size: 11px;
  }

  .table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search-input {
    width: 100%;
    font-size: 13px;
    padding: 8px 12px;
  }

  .lang-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lang-table {
    min-width: 520px;
    font-size: 12px;
  }

  .lang-table th,
  .lang-table td {
    padding: 8px 10px;
  }

  .code-header {
    padding: 8px 12px;
    font-size: 11px;
  }

  .code-content {
    padding: 12px;
    font-size: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .verdict-box {
    padding: 12px 0;
    border-right: none;
  }

  .verdict-code {
    font-size: 13px;
  }

  .quickstart-step {
    padding: 16px 0;
  }

  .step-desc {
    font-size: 13px;
  }

  .step-cmd {
    padding: 8px 10px;
  }

  .step-cmd code {
    font-size: 12px;
    padding-right: 64px;
  }

  .step-cmd .copy-btn {
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
  }

  .showcase-container,
  .showcase-card,
  .showcase-cta {
    padding-left: 0;
    padding-right: 0;
  }

  .faq-summary {
    padding: 12px 0;
    font-size: 13px;
  }

  .faq-question-text {
    font-size: 13px;
  }

  .faq-answer {
    padding: 0 0 14px 0;
    margin: 0;
    font-size: 13px;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }
}
