/*
 * quikleaf-site.css — stylesheet for the quikleaf GitHub Pages site.
 *
 * Matches the quikdown site design system: same gradient, same purple accent,
 * same card/feature/footer patterns. Light/dark/auto themes.
 *
 * No frameworks, no Google Fonts, no icon libraries, no CSS variables.
 * System fonts only.
 */

/* ============================================================
 * 1. Reset and base (light theme is default)
 * ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji",
               sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #f5f5f8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: #6c47b8;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover { color: #4a2d8f; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
  margin: 0 0 1rem 0;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem 0; }

code {
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code",
               "Roboto Mono", Consolas, "Courier New", monospace;
  font-size: 0.92em;
  background: #f3e6ff;
  color: #6c47b8;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

pre {
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code",
               "Roboto Mono", Consolas, "Courier New", monospace;
  background: #1e1e2e;
  color: #e6e6f0;
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}
pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

kbd {
  display: inline-block;
  padding: 0.15em 0.5em;
  background: #1f2937;
  color: #ffffff;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code",
               "Roboto Mono", Consolas, "Courier New", monospace;
  font-size: 0.85em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================================
 * 2. Layout primitives
 * ============================================================ */

.qd-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.qd-section {
  padding: 4rem 0;
}
.qd-hero + .qd-section {
  padding-top: 1.5rem;
}
.qd-section-soft { background: #f8f9fb; }

.qd-grid {
  display: grid;
  gap: 1.5rem;
}
.qd-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qd-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qd-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 880px) {
  .qd-grid-3, .qd-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .qd-grid-3, .qd-grid-2, .qd-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
 * 3. Navbar
 * ============================================================ */

.qd-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e6e8ee;
}

.qd-nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.qd-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f2937;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.qd-nav-brand:hover { color: #1f2937; }

.qd-nav-brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
}

.qd-nav-brand-text {
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
}

.qd-nav-brand-version {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code",
               "Roboto Mono", Consolas, "Courier New", monospace;
  letter-spacing: 0;
}

.qd-nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin-left: auto;
}

.qd-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.qd-nav-link:hover {
  color: #1f2937;
  background: #f8f9fb;
}

.qd-nav-link.qd-nav-cta {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
}
.qd-nav-link.qd-nav-cta:hover {
  background: linear-gradient(135deg, #5a6ed0, #6a3f96);
  color: white;
  transform: translateY(-1px);
}

.qd-nav-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e6e8ee;
  background: transparent;
  border-radius: 8px;
  color: #4b5563;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  margin-left: 0.5rem;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.qd-nav-theme-btn:hover {
  border-color: #9550bb;
  color: #9550bb;
}

/* Hamburger toggle */
.qd-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: auto;
  background: transparent;
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.qd-nav-toggle:hover { border-color: #9550bb; }
.qd-nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #4b5563;
  border-radius: 1px;
}

@media (max-width: 720px) {
  .qd-nav-inner { flex-wrap: wrap; gap: 0.5rem; }
  .qd-nav-toggle { display: flex; }
  .qd-nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-left: 0;
    padding-top: 0.5rem;
    border-top: 1px solid #e6e8ee;
  }
  .qd-nav.open .qd-nav-links { display: flex; }
  .qd-nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }
  .qd-nav-link.qd-nav-cta {
    margin-left: 0;
    margin-top: 0.25rem;
    text-align: center;
    justify-content: center;
  }
  .qd-nav-theme-btn { margin-left: 0; align-self: flex-start; margin-top: 0.25rem; }
}

/* ============================================================
 * 4. Hero
 * ============================================================ */

.qd-hero {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 5rem 0 4rem 0;
  overflow: hidden;
}

.qd-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.qd-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.qd-hero-content {
  flex: 1;
  min-width: 0;
}

.qd-hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.qd-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: white;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.qd-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  margin: 0 0 2rem 0;
  line-height: 1.55;
}

.qd-hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.qd-hero-icon {
  width: 160px;
  height: 160px;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .qd-hero { padding: 3rem 0; }
  .qd-hero-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .qd-hero-cta-row { justify-content: center; }
  .qd-hero-icon { width: 100px; height: 100px; border-radius: 20px; order: -1; }
  .qd-hero-sub { max-width: none; }
}

/* CTA buttons */
.qd-cta-primary,
.qd-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.qd-cta-primary {
  background: white;
  color: #764ba2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.qd-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  color: #764ba2;
}

.qd-cta-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.qd-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Standalone CTA (used outside hero, on light backgrounds) */
.qd-cta-standalone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 16px rgba(118, 75, 162, 0.3);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.qd-cta-standalone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(118, 75, 162, 0.4);
  color: white;
}

/* ============================================================
 * 5. Feature cards
 * ============================================================ */

.qd-feature {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(149, 80, 187, 0.15);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.qd-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.qd-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  margin-bottom: 0.75rem;
}
.qd-feature h4 {
  margin: 0 0 0.4rem 0;
  font-size: 1.05rem;
  color: #1f2937;
}
.qd-feature p {
  margin: 0;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.55;
}

/* ============================================================
 * 6. Download / install strip
 * ============================================================ */

.qd-install-strip {
  background: linear-gradient(135deg, #1e1e2e 0%, #2a1f3d 100%);
  border-radius: 18px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  color: white;
}

.qd-install-strip-label {
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.qd-install-strip-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.qd-install-strip-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.qd-install-strip-actions a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ============================================================
 * 7. Section headings
 * ============================================================ */

.qd-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.qd-section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9550bb;
  margin-bottom: 0.5rem;
}
.qd-section-head h2 {
  margin: 0 0 0.5rem 0;
}
.qd-section-head p {
  color: #4b5563;
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto;
}

.qd-gradient-text {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
 * 8. Platform download cards
 * ============================================================ */

.qd-platform-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(149, 80, 187, 0.15);
  text-align: center;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.qd-platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.qd-platform-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.qd-platform-card h4 {
  margin: 0 0 0.3rem 0;
}
.qd-platform-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #6b7280;
}

/* ============================================================
 * 9. Architecture diagram
 * ============================================================ */

.qd-arch {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(149, 80, 187, 0.15);
}
.qd-arch pre {
  margin: 0;
  background: transparent;
  color: #1f2937;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  border-radius: 0;
}

/* ============================================================
 * 10. Keyboard shortcuts table
 * ============================================================ */

.qd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.qd-table th,
.qd-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e6e8ee;
}
.qd-table th {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.qd-table td { color: #4b5563; }
.qd-table tr:last-child td { border-bottom: none; }

/* ============================================================
 * 11. Footer
 * ============================================================ */

.qd-footer {
  background: #ffffff;
  border-top: 1px solid #e6e8ee;
  padding: 2.5rem 0 1.5rem 0;
  margin-top: 4rem;
  color: #4b5563;
  font-size: 0.9rem;
}
.qd-footer-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.qd-footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 720px) {
  .qd-footer-cols { grid-template-columns: 1fr 1fr; }
}
.qd-footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
}
.qd-footer-col p {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.55;
}
.qd-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.qd-footer-col li { margin: 0.3rem 0; }
.qd-footer-col a {
  color: #4b5563;
  text-decoration: none;
}
.qd-footer-col a:hover { color: #9550bb; }

.qd-footer-bottom {
  border-top: 1px solid #e6e8ee;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
}
.qd-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f2937;
  font-weight: 700;
  text-decoration: none;
}
.qd-footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

/* ============================================================
 * 12. Utility
 * ============================================================ */

.qd-text-center { text-align: center; }
.qd-mt-0 { margin-top: 0; }
.qd-mt-md { margin-top: 1.5rem; }
.qd-mt-lg { margin-top: 2.5rem; }
.qd-mb-md { margin-bottom: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
 * 12b. Demo section
 * ============================================================ */

.qd-demo {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(149, 80, 187, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.qd-demo img {
  width: 100%;
  height: auto;
  display: block;
}

.qd-demo-caption {
  text-align: center;
  font-size: 0.92rem;
  color: #6b7280;
  margin: 1rem 0 0 0;
}

/* ============================================================
 * 12c. Install block
 * ============================================================ */

.qd-install-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #1e1e2e;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  max-width: 520px;
  margin: 0 auto 1rem auto;
}
.qd-install-block code {
  background: transparent;
  color: #e6e6f0;
  font-size: 1.1rem;
  padding: 0;
  border-radius: 0;
}
.qd-install-copy {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e6e6f0;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.qd-install-copy:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}
.qd-install-copy.copied {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.4);
  color: #34d399;
}

.qd-install-alt {
  text-align: center;
  font-size: 0.92rem;
  color: #6b7280;
  margin: 0 0 2.5rem 0;
}
.qd-install-alt code {
  margin-left: 0.4rem;
}

/* ============================================================
 * 12d. Usage grid
 * ============================================================ */

.qd-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.qd-usage-grid h4 {
  font-size: 0.95rem;
  margin: 0 0 0.4rem 0;
}
.qd-usage-grid pre {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .qd-usage-grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * 12e. "Coming soon" badge on platform cards
 * ============================================================ */

.qd-platform-card {
  position: relative;
}

.qd-badge-soon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #764ba2;
  background: rgba(149, 80, 187, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  line-height: 1.3;
}

/* ============================================================
 * 13. Dark theme overrides
 * ============================================================ */

body.qd-theme-dark {
  color: #e6e6f0;
  background: #0f0f1a;
}

body.qd-theme-dark h1,
body.qd-theme-dark h2,
body.qd-theme-dark h3,
body.qd-theme-dark h4,
body.qd-theme-dark h5,
body.qd-theme-dark h6 {
  color: #e6e6f0;
}

body.qd-theme-dark .qd-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

body.qd-theme-dark a { color: #c9aeff; }
body.qd-theme-dark a:hover { color: #e2cfff; }

body.qd-theme-dark code {
  background: rgba(179, 136, 221, 0.18);
  color: #d9b3ff;
}

body.qd-theme-dark kbd {
  background: #e6e6f0;
  color: #181828;
}

body.qd-theme-dark .qd-section-soft { background: #1f1f30; }

body.qd-theme-dark .qd-nav {
  background: rgba(24, 24, 40, 0.96);
  border-bottom-color: #2a2a3a;
}
body.qd-theme-dark .qd-nav-brand { color: #e6e6f0; }
body.qd-theme-dark .qd-nav-brand:hover { color: #e6e6f0; }
body.qd-theme-dark .qd-nav-brand-version { color: #888898; }
body.qd-theme-dark .qd-nav-link { color: #b8b8c8; }
body.qd-theme-dark .qd-nav-link:hover {
  color: #e6e6f0;
  background: #1f1f30;
}
body.qd-theme-dark .qd-nav-toggle { border-color: #2a2a3a; }
body.qd-theme-dark .qd-nav-toggle:hover { border-color: #9550bb; }
body.qd-theme-dark .qd-nav-toggle-bar { background: #b8b8c8; }
body.qd-theme-dark .qd-nav-links { border-top-color: #2a2a3a; }
body.qd-theme-dark .qd-nav-theme-btn {
  border-color: #2a2a3a;
  color: #b8b8c8;
}

body.qd-theme-dark .qd-feature {
  background: rgba(24, 24, 40, 0.96);
  border-color: rgba(179, 136, 221, 0.18);
}
body.qd-theme-dark .qd-feature:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
body.qd-theme-dark .qd-feature h4 { color: #e6e6f0; }
body.qd-theme-dark .qd-feature p { color: #b8b8c8; }

body.qd-theme-dark .qd-platform-card {
  background: rgba(24, 24, 40, 0.96);
  border-color: rgba(179, 136, 221, 0.18);
}
body.qd-theme-dark .qd-platform-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
body.qd-theme-dark .qd-platform-card p { color: #888898; }

body.qd-theme-dark .qd-arch {
  background: rgba(24, 24, 40, 0.96);
  border-color: rgba(179, 136, 221, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
body.qd-theme-dark .qd-arch pre { color: #e6e6f0; }

body.qd-theme-dark .qd-install-strip {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

body.qd-theme-dark .qd-table th { color: #e6e6f0; }
body.qd-theme-dark .qd-table td { color: #b8b8c8; }
body.qd-theme-dark .qd-table th,
body.qd-theme-dark .qd-table td { border-bottom-color: #2a2a3a; }

body.qd-theme-dark .qd-section-head p { color: #b8b8c8; }

body.qd-theme-dark .qd-footer {
  background: #181828;
  border-top-color: #2a2a3a;
  color: #b8b8c8;
}
body.qd-theme-dark .qd-footer-col h5 { color: #e6e6f0; }
body.qd-theme-dark .qd-footer-col p { color: #888898; }
body.qd-theme-dark .qd-footer-col a { color: #b8b8c8; }
body.qd-theme-dark .qd-footer-col a:hover { color: #9550bb; }
body.qd-theme-dark .qd-footer-bottom {
  border-top-color: #2a2a3a;
  color: #888898;
}
body.qd-theme-dark .qd-footer-brand { color: #e6e6f0; }

body.qd-theme-dark .qd-cta-standalone {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.qd-theme-dark .qd-gradient-text {
  background: linear-gradient(135deg, #8fa4ff, #c9aeff);
  -webkit-background-clip: text;
  background-clip: text;
}

body.qd-theme-dark .qd-demo {
  border-color: rgba(179, 136, 221, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
body.qd-theme-dark .qd-demo-caption { color: #888898; }

body.qd-theme-dark .qd-install-block {
  background: #16162a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.qd-theme-dark .qd-install-alt { color: #888898; }

body.qd-theme-dark .qd-badge-soon {
  color: #c9aeff;
  background: rgba(179, 136, 221, 0.15);
}

/* ============================================================
 * 14. Auto theme
 * ============================================================ */

@media (prefers-color-scheme: dark) {
  body.qd-theme-auto {
    color: #e6e6f0;
    background: #0f0f1a;
  }
  body.qd-theme-auto h1,
  body.qd-theme-auto h2,
  body.qd-theme-auto h3,
  body.qd-theme-auto h4,
  body.qd-theme-auto h5,
  body.qd-theme-auto h6 { color: #e6e6f0; }
  body.qd-theme-auto .qd-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  }
  body.qd-theme-auto a { color: #c9aeff; }
  body.qd-theme-auto a:hover { color: #e2cfff; }
  body.qd-theme-auto code {
    background: rgba(179, 136, 221, 0.18);
    color: #d9b3ff;
  }
  body.qd-theme-auto kbd {
    background: #e6e6f0;
    color: #181828;
  }
  body.qd-theme-auto .qd-section-soft { background: #1f1f30; }
  body.qd-theme-auto .qd-nav {
    background: rgba(24, 24, 40, 0.96);
    border-bottom-color: #2a2a3a;
  }
  body.qd-theme-auto .qd-nav-brand { color: #e6e6f0; }
  body.qd-theme-auto .qd-nav-brand:hover { color: #e6e6f0; }
  body.qd-theme-auto .qd-nav-brand-version { color: #888898; }
  body.qd-theme-auto .qd-nav-link { color: #b8b8c8; }
  body.qd-theme-auto .qd-nav-link:hover {
    color: #e6e6f0;
    background: #1f1f30;
  }
  body.qd-theme-auto .qd-nav-toggle { border-color: #2a2a3a; }
  body.qd-theme-auto .qd-nav-toggle:hover { border-color: #9550bb; }
  body.qd-theme-auto .qd-nav-toggle-bar { background: #b8b8c8; }
  body.qd-theme-auto .qd-nav-links { border-top-color: #2a2a3a; }
  body.qd-theme-auto .qd-nav-theme-btn {
    border-color: #2a2a3a;
    color: #b8b8c8;
  }
  body.qd-theme-auto .qd-feature {
    background: rgba(24, 24, 40, 0.96);
    border-color: rgba(179, 136, 221, 0.18);
  }
  body.qd-theme-auto .qd-feature:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  }
  body.qd-theme-auto .qd-feature h4 { color: #e6e6f0; }
  body.qd-theme-auto .qd-feature p { color: #b8b8c8; }
  body.qd-theme-auto .qd-platform-card {
    background: rgba(24, 24, 40, 0.96);
    border-color: rgba(179, 136, 221, 0.18);
  }
  body.qd-theme-auto .qd-platform-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  }
  body.qd-theme-auto .qd-platform-card p { color: #888898; }
  body.qd-theme-auto .qd-arch {
    background: rgba(24, 24, 40, 0.96);
    border-color: rgba(179, 136, 221, 0.18);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  }
  body.qd-theme-auto .qd-arch pre { color: #e6e6f0; }
  body.qd-theme-auto .qd-install-strip {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  }
  body.qd-theme-auto .qd-table th { color: #e6e6f0; }
  body.qd-theme-auto .qd-table td { color: #b8b8c8; }
  body.qd-theme-auto .qd-table th,
  body.qd-theme-auto .qd-table td { border-bottom-color: #2a2a3a; }
  body.qd-theme-auto .qd-section-head p { color: #b8b8c8; }
  body.qd-theme-auto .qd-footer {
    background: #181828;
    border-top-color: #2a2a3a;
    color: #b8b8c8;
  }
  body.qd-theme-auto .qd-footer-col h5 { color: #e6e6f0; }
  body.qd-theme-auto .qd-footer-col p { color: #888898; }
  body.qd-theme-auto .qd-footer-col a { color: #b8b8c8; }
  body.qd-theme-auto .qd-footer-col a:hover { color: #9550bb; }
  body.qd-theme-auto .qd-footer-bottom {
    border-top-color: #2a2a3a;
    color: #888898;
  }
  body.qd-theme-auto .qd-footer-brand { color: #e6e6f0; }
  body.qd-theme-auto .qd-cta-standalone {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
  body.qd-theme-auto .qd-gradient-text {
    background: linear-gradient(135deg, #8fa4ff, #c9aeff);
    -webkit-background-clip: text;
    background-clip: text;
  }
  body.qd-theme-auto .qd-demo {
    border-color: rgba(179, 136, 221, 0.18);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  }
  body.qd-theme-auto .qd-demo-caption { color: #888898; }
  body.qd-theme-auto .qd-install-block {
    background: #16162a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
  body.qd-theme-auto .qd-install-alt { color: #888898; }
  body.qd-theme-auto .qd-badge-soon {
    color: #c9aeff;
    background: rgba(179, 136, 221, 0.15);
  }
}
