/* ============================================================
   pm-cli website — Design System v2
   Dark navy base (#0a0e14) · Teal accent (#2dd4bf)
   Glassmorphism · Micro-animations · Gradient accents
   Inter + JetBrains Mono · Mobile-first
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   0. DESIGN TOKENS (CSS Custom Properties)
   ──────────────────────────────────────────────────────────── */
:root {
  /* ── Palette ── */
  --bg:              #0a0e14;
  --bg-base:         #0a0e14;
  --bg-elevated:     #111820;
  --bg-card:         #151d28;
  --bg-card-hover:   #1a2433;
  --bg-code:         #0d1117;
  --bg-hover:        rgba(45, 212, 191, 0.06);
  --bg-glass:        rgba(17, 24, 32, 0.72);
  --bg-glass-strong: rgba(17, 24, 32, 0.88);

  --border:          #1c2736;
  --border-subtle:   #151f2e;
  --border-hover:    #2a3a4e;
  --border-accent:   rgba(45, 212, 191, 0.35);
  --border-accent-strong: rgba(45, 212, 191, 0.55);

  --text:            #e2e8f0;
  --text-secondary:  #94a3b8;
  --text-muted:      #64748b;
  --text-dim:        #475569;
  --text-inverse:    #0a0e14;

  --accent:          #2dd4bf;
  --accent-hover:    #5eead4;
  --accent-muted:    rgba(45, 212, 191, 0.15);
  --accent-subtle:   rgba(45, 212, 191, 0.08);
  --accent-glow:     rgba(45, 212, 191, 0.12);
  --accent-gradient: linear-gradient(135deg, #2dd4bf 0%, #34d399 100%);

  --green:           #4ade80;
  --green-muted:     rgba(74, 222, 128, 0.15);
  --green-subtle:    rgba(74, 222, 128, 0.08);
  --yellow:          #fbbf24;
  --yellow-muted:    rgba(251, 191, 36, 0.15);
  --yellow-subtle:   rgba(251, 191, 36, 0.08);
  --red:             #f87171;
  --red-muted:       rgba(248, 113, 113, 0.15);
  --red-subtle:      rgba(248, 113, 113, 0.08);
  --blue:            #60a5fa;
  --blue-muted:      rgba(96, 165, 250, 0.15);
  --blue-subtle:     rgba(96, 165, 250, 0.08);
  --purple:          #c084fc;
  --purple-muted:    rgba(192, 132, 252, 0.15);
  --purple-subtle:   rgba(192, 132, 252, 0.08);
  --orange:          #fb923c;
  --orange-muted:    rgba(251, 146, 60, 0.15);
  --orange-subtle:   rgba(251, 146, 60, 0.08);
  --emerald:         #34d399;

  /* ── Spacing Scale ── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ── Radius ── */
  --radius-xs:    4px;
  --radius-sm:    6px;
  --radius-md:    8px;
  --radius:       10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --radius-2xl:   28px;
  --radius-full:  9999px;

  /* ── Typography ── */
  --font-sans:  "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:  "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;

  --text-xs:    0.7rem;
  --text-sm:    0.8rem;
  --text-base:  0.9rem;
  --text-md:    0.95rem;
  --text-lg:    1.1rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   2rem;
  --text-4xl:   2.5rem;
  --text-5xl:   3.75rem;

  --leading-tight:  1.25;
  --leading-snug:   1.4;
  --leading-normal: 1.7;
  --leading-relaxed: 1.8;

  /* ── Shadows ── */
  --shadow-xs:      0 1px 2px rgba(0,0,0,0.25);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.3);
  --shadow:         0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.5);
  --shadow-xl:      0 16px 64px rgba(0,0,0,0.55);
  --shadow-accent:  0 0 30px rgba(45,212,191,0.08);
  --shadow-accent-subtle: 0 0 20px rgba(45,212,191,0.05);
  --shadow-accent-md: 0 0 40px rgba(45,212,191,0.12);
  --shadow-accent-lg: 0 0 60px rgba(45,212,191,0.15);
  --shadow-inset:   inset 0 1px 0 rgba(255,255,255,0.03);

  /* ── Transitions ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration:       250ms;
  --duration-slow:  400ms;
  --transition-fast: var(--duration-fast) var(--ease-out);
  --transition:      var(--duration) var(--ease-out);
  --transition-slow: var(--duration-slow) var(--ease-out);
}

/* ────────────────────────────────────────────────────────────
   1. RESET & BASE
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-hover); }

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

/* Focus states — accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ────────────────────────────────────────────────────────────
   2. TYPOGRAPHY
   ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--leading-tight);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  letter-spacing: -0.04em;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
}
h3 {
  font-size: var(--text-xl);
  letter-spacing: -0.015em;
}
h4 {
  font-size: var(--text-md);
}

p {
  line-height: var(--leading-relaxed);
}

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

/* ────────────────────────────────────────────────────────────
   3. LAYOUT
   ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section { padding: 28px 0; }

.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-header h2 {
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}

.section-header p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

/* ────────────────────────────────────────────────────────────
   4. SHARED COMPONENTS
   ──────────────────────────────────────────────────────────── */

/* ── Label (section labels) ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius-full);
  padding: 5px 14px;
}

/* ── Badge (hero badges, stat badges) ── */
.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}
.badge:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.badge span { color: var(--green); }

/* ── Inline Code ── */
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--accent-subtle);
  border: 1px solid rgba(45, 212, 191, 0.12);
  border-radius: var(--radius-xs);
  padding: 2px 7px;
  color: var(--accent);
}

/* ── Primary Button ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  background: var(--accent-gradient);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-accent), 0 2px 8px rgba(45,212,191,0.2);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn-primary:hover {
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-lg), 0 4px 16px rgba(45,212,191,0.3);
  text-decoration: none;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

/* ── Outline Button ── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 24px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-subtle);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.btn-outline:hover::before { opacity: 1; }

/* ── Action rows ── */
.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.action-row .btn-primary,
.action-row .btn-outline {
  flex: 0 0 auto;
}

/* ── Ghost Button ── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-hover);
}

/* ── Card Base ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-inset);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ────────────────────────────────────────────────────────────
   5. NAVIGATION
   ──────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

nav[aria-label="Breadcrumb"] {
  position: static;
  z-index: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

nav[aria-label="Breadcrumb"] ol {
  display: inline-flex !important;
  width: auto;
  max-width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 12px !important;
  color: var(--text-dim);
}

nav[aria-label="Breadcrumb"] a {
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

nav[aria-label="Breadcrumb"] a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-4);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0;
  transition: all var(--transition-fast);
  letter-spacing: -0.02em;
}
.nav-logo:hover {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}
.nav-logo .logo-dash {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.nav-links a,
.nav-menu-trigger {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-family: inherit;
  line-height: var(--leading-tight);
  cursor: pointer;
}

.nav-menu-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-links a:hover,
.nav-menu-trigger:hover,
.nav-menu-trigger:focus-visible {
  color: var(--text);
  background: var(--bg-hover);
  text-decoration: none;
}

.nav-links a.nav-active,
.nav-menu.active > .nav-menu-trigger,
.nav-menu.open > .nav-menu-trigger {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav-links .nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 1;
}

.nav-links .nav-icon-link svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-menu {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 190px;
  padding: var(--space-2);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-submenu::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 0;
  right: 0;
  height: 13px;
}

.nav-submenu a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  white-space: nowrap;
}

.nav-menu:hover .nav-submenu,
.nav-menu:focus-within .nav-submenu,
.nav-menu.open .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-menu:hover .nav-menu-trigger svg,
.nav-menu:focus-within .nav-menu-trigger svg,
.nav-menu.open .nav-menu-trigger svg {
  transform: rotate(180deg);
}

.nav-links .btn-nav {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--radius);
  box-shadow: 0 0 12px rgba(45,212,191,0.15);
  transition: all var(--transition);
}
.nav-links .btn-nav:hover {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  text-decoration: none;
  box-shadow: 0 0 20px rgba(45,212,191,0.25);
  transform: translateY(-1px);
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-hamburger:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

/* ── Mobile Overlay ── */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.96);
  z-index: 200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.nav-mobile-overlay.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: fadeIn 0.3s var(--ease-out);
}

.nav-mobile-panel {
  width: min(100% - 48px, 380px);
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-2);
}

.nav-mobile-overlay a {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
}
.nav-mobile-overlay a:hover {
  background: var(--bg-hover);
  text-decoration: none;
}

.nav-mobile-overlay a.nav-active {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav-mobile-home {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.nav-mobile-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: var(--space-2);
  background: rgba(17, 24, 32, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.nav-mobile-group span {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0 10px 4px;
}

.nav-mobile-group a {
  padding: 9px 10px;
}

.nav-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.nav-mobile-actions a {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  line-height: 1;
}
.nav-mobile-close:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

/* ────────────────────────────────────────────────────────────
   6. HERO
   ──────────────────────────────────────────────────────────── */
#hero {
  padding: 36px 0 28px;
  position: relative;
  overflow: hidden;
}

/* Grid background */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,212,191,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,212,191,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent);
}

/* Gradient orb */
#hero::after {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse,
    rgba(45,212,191,0.1) 0%,
    rgba(52,211,153,0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero-title {
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}
.hero-title .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 16px;
  line-height: 1.65;
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

/* ── Install Block ── */
.install-block {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-accent),
    var(--shadow-lg),
    var(--shadow-inset);
  display: flex;
  align-items: center;
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}
.install-block:hover {
  border-color: var(--border-hover);
  box-shadow:
    var(--shadow-accent-md),
    var(--shadow-lg),
    var(--shadow-inset);
}

.install-prefix {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent);
  padding: 16px 0 16px 20px;
  white-space: nowrap;
  user-select: none;
  opacity: 0.7;
}

.install-cmd {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text);
  padding: 16px var(--space-2);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  cursor: pointer;
  padding: 12px 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.copy-btn:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}
.copy-btn.copied { color: var(--green); }
.copy-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.hero-links {
  display: flex;
  gap: var(--space-6);
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero-links a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  padding: 6px var(--space-2);
}
.hero-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.hero-links svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}
.hero-links a:hover svg { opacity: 1; }

/* ────────────────────────────────────────────────────────────
   7. FEATURE CARDS
   ──────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-inset);
}

/* Mouse glow effect */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

/* Top gradient accent line */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-accent);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  display: block;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  flex: 1;
}

.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius-xs);
  padding: 3px 10px;
  color: var(--accent);
  margin-top: var(--space-4);
}

/* ────────────────────────────────────────────────────────────
   8. DEMO TERMINAL
   ──────────────────────────────────────────────────────────── */
.demo-window {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255,255,255,0.03),
    var(--shadow-accent);
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

/* Subtle top glow */
.demo-window::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  transition: opacity var(--transition-fast);
}
.dot-r { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.3); }
.dot-y { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.3); }
.dot-g { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.3); }

.demo-titlebar-text {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
}

.demo-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}

.demo-comment { color: var(--text-dim); font-style: italic; }
.demo-prompt { color: var(--accent); font-weight: 600; }
.demo-cmd { color: var(--text); }
.demo-flag { color: var(--purple); }
.demo-str { color: var(--yellow); }
.demo-out { color: var(--text-muted); }
.demo-out-ok { color: var(--green); }
.demo-out-id { color: var(--blue); }

/* ────────────────────────────────────────────────────────────
   9. COMPARISON TABLE
   ──────────────────────────────────────────────────────────── */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: var(--text-sm);
  box-shadow: var(--shadow);
}

.comparison-table th {
  background: var(--bg-elevated);
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.comparison-table th:not(:first-child) {
  text-align: center;
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: background var(--transition-fast);
}

.comparison-table tbody tr {
  transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background: var(--bg-hover);
}

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

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-highlight {
  background: var(--accent-subtle) !important;
}
.comparison-table tbody tr:hover .comparison-highlight {
  background: var(--accent-muted) !important;
}

.check {
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 8px var(--green-subtle);
}
.cross { color: var(--text-dim); }

/* ────────────────────────────────────────────────────────────
   10. PRESETS
   ──────────────────────────────────────────────────────────── */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.preset-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-inset);
  position: relative;
}
.preset-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.preset-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-accent);
}
.preset-card:hover::after { opacity: 1; }

.preset-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.preset-icon { font-size: 1.75rem; }

.preset-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.preset-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.governance-minimal {
  background: var(--green-muted);
  color: var(--green);
  border-color: var(--green-subtle);
}
.governance-default {
  background: var(--blue-muted);
  color: var(--blue);
  border-color: var(--blue-subtle);
}
.governance-standard {
  background: var(--blue-muted);
  color: var(--blue);
  border-color: var(--blue-subtle);
}
.governance-strict {
  background: var(--orange-muted);
  color: var(--orange);
  border-color: var(--orange-subtle);
}

.preset-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.preset-templates {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.tmpl-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 3px 10px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.tmpl-tag:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.preset-install {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.preset-cmd {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 10px 14px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn-sm {
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  cursor: pointer;
  padding: 10px 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}
.copy-btn-sm:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}
.copy-btn-sm.copied { color: var(--green); }

/* ────────────────────────────────────────────────────────────
   11. EXAMPLES
   ──────────────────────────────────────────────────────────── */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-inset);
  position: relative;
  overflow: hidden;
}
.example-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}
.example-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow), 0 0 0 1px var(--border-accent);
  text-decoration: none;
  color: inherit;
}
.example-card:hover::after { opacity: 1; }

.example-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.example-body {
  flex: 1;
  min-width: 0;
}
.example-body h3 {
  margin-bottom: var(--space-2);
  font-size: 1rem;
}
.example-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: var(--leading-snug);
}

.example-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition-fast);
  align-self: center;
}
.example-card:hover .example-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ────────────────────────────────────────────────────────────
   12. EXTENSIONS
   ──────────────────────────────────────────────────────────── */
.ext-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.ext-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
  box-shadow: var(--shadow-inset);
  position: relative;
  overflow: hidden;
}

/* Shimmer on hover */
.ext-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-subtle), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.ext-card:hover::after {
  opacity: 1;
  animation: shimmer 1.5s var(--ease-out) forwards;
}
.ext-card > * { position: relative; z-index: 1; }

.ext-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-accent);
}
.ext-card.hidden { display: none; }

.ext-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ext-card-name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.package-meta-badge,
.package-source-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.package-meta-badge {
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-transform: none;
}

.package-source-badge {
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-muted);
}

.ext-status-badge, .status-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.ext-official, .status-badge.official {
  background: var(--green-muted);
  color: var(--green);
  border-color: var(--green-subtle);
}
.ext-community, .status-badge.community {
  background: var(--blue-muted);
  color: var(--blue);
  border-color: var(--blue-subtle);
}
.ext-experimental, .status-badge.experimental {
  background: var(--yellow-muted);
  color: var(--yellow);
  border-color: var(--yellow-subtle);
}

.ext-card-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: var(--leading-relaxed);
  flex: 1;
}

.ext-caps, .cap-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cap-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius-xs);
  padding: 3px 10px;
  color: var(--accent);
  transition: all var(--transition-fast);
}
.cap-tag:hover {
  background: var(--accent-muted);
}

.ext-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.ext-install-row, .ext-install-block {
  display: flex;
  align-items: center;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.ext-install-cmd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 8px 14px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ext-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.ext-copy-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
  background: var(--bg-card);
}
.ext-copy-btn.copied {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.ext-docs-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}
.ext-docs-link:hover { color: var(--accent); }

/* ── Filter pills ── */
.filter-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-pill.active {
  background: var(--accent-gradient);
  border-color: var(--accent);
  color: var(--text-inverse);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(45,212,191,0.2);
}

/* ── Extension search ── */
.ext-search {
  max-width: 400px;
  margin: 28px auto 0;
  position: relative;
}
.ext-search input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  outline: none;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.ext-search input::placeholder { color: var(--text-dim); }
.ext-search input:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px var(--accent-muted),
    var(--shadow-accent);
}
.ext-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  transition: color var(--transition-fast);
}
.ext-search input:focus ~ .ext-search-icon,
.ext-search input:focus + .ext-search-icon {
  color: var(--accent);
}

/* ────────────────────────────────────────────────────────────
   13. INSTALL SECTION
   ──────────────────────────────────────────────────────────── */
.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin: 20px 0;
  text-align: left;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-inset);
  position: relative;
}
.step-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.step-card:hover::after { opacity: 1; }

.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: var(--text-md);
}
.step-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.install-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-inset);
}
.install-hero h3 { margin-bottom: 10px; }
.install-hero p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: var(--text-md);
}

/* ────────────────────────────────────────────────────────────
   14. DOCS PAGE
   ──────────────────────────────────────────────────────────── */
.docs-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 64px);
  align-items: flex-start;
}

.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: var(--space-6) 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--bg);
  /* Custom scrollbar for sidebar */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Right-side TOC column */
.docs-toc-col {
  width: 220px;
  flex-shrink: 0;
  padding: 40px 16px 40px 0;
  border-left: 1px solid var(--border);
  align-self: flex-start;
}
.docs-toc-col-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
  padding-left: 16px;
}
.docs-toc-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-toc-col-list a {
  display: block;
  padding: 5px 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  line-height: 1.4;
}
.docs-toc-col-list a:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
  text-decoration: none;
}
.docs-toc-col-list a.active {
  color: var(--accent);
}
.docs-toc-col-list a.h3 {
  padding-left: 28px;
  font-size: 0.75rem;
}
.docs-toc-empty {
  display: none;
}

.docs-sidebar-section {
  margin-bottom: var(--space-2);
}

.docs-sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: var(--space-2) var(--space-6);
  margin-top: var(--space-3);
}

.docs-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
  position: relative;
}
.docs-sidebar a:hover {
  color: var(--text);
  background: var(--bg-hover);
  text-decoration: none;
  border-left-color: var(--border-hover);
}
.docs-sidebar a.active {
  color: var(--accent);
  background: var(--accent-subtle);
  border-left-color: var(--accent);
  font-weight: 600;
}
/* Active dot indicator */
.docs-sidebar a.active::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--accent-muted);
}

.docs-sidebar-icon { font-size: 1.1rem; }

.docs-content {
  flex: 1;
  min-width: 0;
  padding: 32px;
  max-width: 860px;
}

.docs-content h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.docs-content h2 {
  font-size: var(--text-2xl);
  margin-top: 28px;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}

.docs-content h3 {
  font-size: var(--text-xl);
  margin-top: 32px;
  margin-bottom: var(--space-3);
}

.docs-content h4 {
  font-size: 1rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.docs-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.docs-content ul, .docs-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.docs-content li {
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: var(--leading-relaxed);
}

.docs-content pre.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
  font-size: 0.85rem;
  line-height: 1.7;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.docs-content pre.code-block code {
  color: var(--text);
}

.docs-content code.inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--accent-subtle);
  border: none;
  border-radius: var(--radius-xs);
  padding: 2px 7px;
  color: var(--accent);
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: var(--text-sm);
}

.docs-content th {
  background: var(--bg-elevated);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.docs-content td {
  padding: 10px var(--space-4);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.docs-content blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  background: var(--accent-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.docs-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

.docs-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition-fast);
}
.docs-content a:hover { color: var(--accent-hover); }

.docs-content strong { color: var(--text); }

.docs-version {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-inset);
}

.docs-version .dot-green {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

/* ────────────────────────────────────────────────────────────
   15. PRESET DETAIL PAGE
   ──────────────────────────────────────────────────────────── */
.preset-detail-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.preset-detail-icon { font-size: 3rem; }

.preset-detail-meta {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────────
   16. JSON VIEWER
   ──────────────────────────────────────────────────────────── */
.json-viewer {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text-secondary);
  position: relative;
  box-shadow: var(--shadow-sm);
}
/* Line numbers illusion via left border */
.json-viewer pre {
  margin: 0;
  padding-left: 0;
}

.json-key { color: var(--blue); }
.json-string { color: var(--green); }
.json-number { color: var(--orange); }
.json-boolean { color: var(--purple); }
.json-null { color: var(--text-dim); }

/* ────────────────────────────────────────────────────────────
   17. CTA SECTION
   ──────────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  background: var(--bg-elevated);
  padding: 40px 0;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-inset);
}
/* Gradient border glow */
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.6;
}
/* Subtle glow background */
.cta-box::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 { margin-bottom: 14px; position: relative; }
.cta-box p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ────────────────────────────────────────────────────────────
   18. FOOTER
   ──────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.footer-logo span { color: var(--accent); }

.footer-meta {
  color: var(--text-dim);
  font-size: var(--text-xs);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  padding: 4px 0;
}
.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ────────────────────────────────────────────────────────────
   19. UTILITY CLASSES
   ──────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ────────────────────────────────────────────────────────────
   20. TYPES GRID
   ──────────────────────────────────────────────────────────── */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.type-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  box-shadow: var(--shadow-inset);
  cursor: default;
}
.type-chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.type-chip-icon { font-size: 1.2rem; }

/* ────────────────────────────────────────────────────────────
   21. TEMPLATE CARD
   ──────────────────────────────────────────────────────────── */
.template-card {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.template-card h4 {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.template-card pre {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* ────────────────────────────────────────────────────────────
   22. PRESET CARD LINK
   ──────────────────────────────────────────────────────────── */
.preset-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.preset-card-link:hover {
  text-decoration: none;
  color: inherit;
}
.preset-card-link .preset-card { cursor: pointer; }
.preset-card-link:hover .preset-card {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-accent);
}

/* ────────────────────────────────────────────────────────────
   23. VERSION BANNER
   ──────────────────────────────────────────────────────────── */
.version-banner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}
.version-banner .dot-green {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

/* ────────────────────────────────────────────────────────────
   24. EXAMPLE README CONTENT
   ──────────────────────────────────────────────────────────── */
.example-readme {
  padding: 24px 28px;
}
.example-readme h1 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.example-readme h2 {
  font-size: var(--text-xl);
  margin: 32px 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.example-readme h3 { font-size: var(--text-lg); margin: 24px 0 var(--space-2); }
.example-readme p { color: var(--text-secondary); margin-bottom: var(--space-3); line-height: var(--leading-relaxed); }
.example-readme ul, .example-readme ol { margin-bottom: var(--space-3); padding-left: var(--space-6); }
.example-readme li { color: var(--text-secondary); margin-bottom: 4px; line-height: var(--leading-relaxed); }
.example-readme code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  color: var(--accent);
}
.example-readme pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  overflow-x: auto;
  margin-bottom: var(--space-4);
  font-size: 0.82rem;
  line-height: 1.7;
}
.example-readme pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
}
.example-readme table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-4); font-size: 0.88rem; }
.example-readme th {
  background: var(--bg-elevated);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.example-readme td { padding: 8px 14px; border: 1px solid var(--border); color: var(--text-secondary); }
.example-readme a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.example-readme strong { color: var(--text); }
.example-readme blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  background: var(--accent-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ────────────────────────────────────────────────────────────
   25. PRESET README CONTENT
   ──────────────────────────────────────────────────────────── */
.preset-readme h1 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.preset-readme h2 {
  font-size: var(--text-xl);
  margin: 32px 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.preset-readme h3 { font-size: var(--text-lg); margin: 24px 0 var(--space-2); }
.preset-readme p { color: var(--text-secondary); margin-bottom: var(--space-3); line-height: var(--leading-relaxed); }
.preset-readme ul, .preset-readme ol { margin-bottom: var(--space-3); padding-left: var(--space-6); }
.preset-readme li { color: var(--text-secondary); margin-bottom: 4px; line-height: var(--leading-relaxed); }
.preset-readme code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  color: var(--accent);
}
.preset-readme pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  overflow-x: auto;
  margin-bottom: var(--space-4);
  font-size: 0.82rem;
  line-height: 1.7;
}
.preset-readme pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
}
.preset-readme table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-4); font-size: 0.88rem; }
.preset-readme th {
  background: var(--bg-elevated);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.preset-readme td { padding: 8px 14px; border: 1px solid var(--border); color: var(--text-secondary); }
.preset-readme a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.preset-readme strong { color: var(--text); }

/* ────────────────────────────────────────────────────────────
   26. ANIMATIONS & KEYFRAMES
   ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--border-accent); }
  50% { border-color: var(--accent); }
}

.animate-in {
  animation: fadeInUp 0.5s var(--ease-out) forwards;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Staggered children ── */
.stagger-children > *:nth-child(1)  { transition-delay: 0ms; }
.stagger-children > *:nth-child(2)  { transition-delay: 60ms; }
.stagger-children > *:nth-child(3)  { transition-delay: 120ms; }
.stagger-children > *:nth-child(4)  { transition-delay: 180ms; }
.stagger-children > *:nth-child(5)  { transition-delay: 240ms; }
.stagger-children > *:nth-child(6)  { transition-delay: 300ms; }
.stagger-children > *:nth-child(7)  { transition-delay: 360ms; }
.stagger-children > *:nth-child(8)  { transition-delay: 420ms; }
.stagger-children > *:nth-child(9)  { transition-delay: 480ms; }
.stagger-children > *:nth-child(10) { transition-delay: 540ms; }
.stagger-children > *:nth-child(11) { transition-delay: 600ms; }
.stagger-children > *:nth-child(12) { transition-delay: 660ms; }

/* ────────────────────────────────────────────────────────────
   27. SKIP LINK
   ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--accent);
  color: var(--text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 999;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-2); }

/* ────────────────────────────────────────────────────────────
   28. DOCS MOBILE TOGGLE
   ──────────────────────────────────────────────────────────── */
.docs-mobile-toggle {
  display: none;
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  text-align: left;
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
}
.docs-mobile-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

@media (max-width: 768px) {
  .docs-mobile-toggle { display: block; }
  .docs-sidebar.collapsed { display: none; }
  .docs-toc-col { display: none; }
}

/* ────────────────────────────────────────────────────────────
   29. DARK SCROLLBAR
   ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
  transition: background var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
::-webkit-scrollbar-corner { background: var(--bg); }

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* ────────────────────────────────────────────────────────────
   30. SELECTION
   ──────────────────────────────────────────────────────────── */
::selection {
  background: var(--accent-muted);
  color: var(--text);
}

/* ────────────────────────────────────────────────────────────
   31. REDUCED MOTION
   ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ────────────────────────────────────────────────────────────
   32. RESPONSIVE BREAKPOINTS
   ──────────────────────────────────────────────────────────── */

/* ── Large tablets / small desktops ── */
@media (max-width: 1280px) {
  .docs-toc-col { display: none; }
}

@media (max-width: 1024px) {
  .docs-sidebar { width: 220px; }
  .docs-content { padding: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .presets-grid { grid-template-columns: repeat(2, 1fr); }
  .examples-grid { grid-template-columns: repeat(2, 1fr); }
  .ext-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablets / large phones ── */
@media (max-width: 768px) {
  section { padding: 24px 0; }
  #hero { padding: 32px 0 24px; }

  .nav-links .hide-mobile { display: none; }
  .nav-hamburger { display: block; }

  .features-grid { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: 1fr; }
  .presets-grid { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: 1fr; }
  .ext-cards-grid { grid-template-columns: 1fr; }

  .comparison-table { font-size: 0.8rem; min-width: 520px; }
  .comparison-table th, .comparison-table td { padding: 8px 12px; }

  .docs-layout { flex-direction: column; }
  .docs-sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) 0;
  }
  .docs-sidebar:not(.collapsed) { display: block; }
  .docs-content { padding: var(--space-6); }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-box { padding: 24px 16px; }

  #hero::after {
    width: 600px;
    height: 400px;
    top: -100px;
  }
}

/* ── Small phones ── */
@media (max-width: 480px) {
  :root { font-size: 15px; }

  .container { padding: 0 var(--space-4); }
  section { padding: 20px 0; }
  #hero { padding: 24px 0 20px; }

  .install-block { max-width: 100%; }
  .install-cmd { font-size: 0.78rem; }
  .demo-body { padding: var(--space-4); font-size: 0.72rem; }

  .cta-box { padding: 32px 20px; }
  .install-hero { padding: 32px 20px; }

  .hero-badges { gap: 4px; }
  .badge { font-size: 0.65rem; padding: 4px 10px; }

  .feature-card { padding: var(--space-6); }

  .types-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ────────────────────────────────────────────────────────────
   33. DETAILS/SUMMARY (Collapsible Sections)
   ──────────────────────────────────────────────────────────── */
details summary {
  list-style: none;
  cursor: pointer;
}
details summary::-webkit-details-marker { display: none; }
details summary::marker { display: none; content: ''; }
details[open] summary {
  margin-bottom: var(--space-3);
}

/* ────────────────────────────────────────────────────────────
   34. MISC ENHANCEMENTS
   ──────────────────────────────────────────────────────────── */

/* Better input styling globally */
input[type="search"],
input[type="text"] {
  font-family: var(--font-sans);
}
input[type="search"]:focus {
  box-shadow: 0 0 0 3px var(--accent-muted);
}

/* Inline tag styles used in extensions page */
.ext-card div[style*="font-size: 0.68rem"] span,
.ext-card span[style*="font-size: 0.68rem"] {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 0.68rem;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

/* Author byline styling */
.ext-card div[style*="font-size: 0.75rem"] strong {
  color: var(--text-secondary);
}

/* Ensure smooth hover on all interactive elements */
a, button, summary, .filter-pill, .type-chip {
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   35. TERMINAL / DEMO COMPONENT
   macOS-style terminal window with typing animation
   ============================================================ */

.terminal-window {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255,255,255,0.03),
    var(--shadow-accent);
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.terminal-window::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-title-text {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
  min-height: 120px;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  min-height: 1.8em;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-prompt {
  color: var(--accent);
  font-weight: 600;
  user-select: none;
  flex-shrink: 0;
}

.terminal-command {
  color: var(--text);
  font-weight: 500;
}

.terminal-output {
  color: var(--text-muted);
  padding-left: 0;
}

.terminal-highlight {
  color: var(--accent);
  font-weight: 600;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 1px;
  vertical-align: text-bottom;
  animation: blink-cursor 1s step-end infinite;
}

.terminal-typing .terminal-command {
  overflow: hidden;
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  animation:
    typing 2s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

/* ────────────────────────────────────────────────────────────
   36. STATUS LIFECYCLE DIAGRAM
   ============================================================ */

.lifecycle-flow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  flex-wrap: nowrap;
}

.lifecycle-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.lifecycle-node-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
  position: relative;
}

.lifecycle-node-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: capitalize;
  white-space: nowrap;
}

/* Status color variants */
.lifecycle-node--draft .lifecycle-node-circle {
  border-color: var(--text-dim);
  color: var(--text-dim);
  background: rgba(71, 85, 105, 0.1);
}
.lifecycle-node--open .lifecycle-node-circle {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-subtle);
}
.lifecycle-node--in-progress .lifecycle-node-circle {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 16px var(--accent-glow);
}
.lifecycle-node--blocked .lifecycle-node-circle {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-subtle);
}
.lifecycle-node--closed .lifecycle-node-circle {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-subtle);
}
.lifecycle-node--canceled .lifecycle-node-circle {
  border-color: var(--text-dim);
  color: var(--text-dim);
  background: rgba(71, 85, 105, 0.08);
}

/* Hover effect */
.lifecycle-node:hover .lifecycle-node-circle {
  transform: scale(1.1);
}
.lifecycle-node--in-progress:hover .lifecycle-node-circle {
  box-shadow: 0 0 24px var(--accent-muted);
}

.lifecycle-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
  flex-shrink: 0;
  opacity: 0.5;
  transition: all var(--transition-fast);
}

.lifecycle-flow:hover .lifecycle-arrow {
  opacity: 0.8;
  color: var(--text-secondary);
}

.lifecycle-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.lifecycle-branch-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .lifecycle-flow {
    flex-direction: column;
    gap: var(--space-2);
  }
  .lifecycle-arrow {
    transform: rotate(90deg);
  }
}

/* ────────────────────────────────────────────────────────────
   37. USE CASE CARDS
   ============================================================ */

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition);
  box-shadow: var(--shadow-inset);
  position: relative;
  overflow: hidden;
}

.usecase-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.usecase-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-accent);
}
.usecase-card:hover::after { opacity: 1; }

.usecase-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-1);
}

.usecase-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.usecase-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  flex: 1;
}

.usecase-code {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
}

.usecase-code .cmd-prompt {
  color: var(--accent);
  font-weight: 600;
}

.usecase-code .cmd-flag {
  color: var(--purple);
}

.usecase-code .cmd-value {
  color: var(--yellow);
}

.usecase-code .cmd-output {
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .usecase-grid {
    grid-template-columns: 1fr;
  }
}

/* ────────────────────────────────────────────────────────────
   38. ENHANCED FEATURE CARDS
   ============================================================ */

.feature-card--glow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-inset);
}

.feature-card--glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--accent-glow) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.feature-card--glow::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card--glow:hover {
  border-color: var(--accent);
  box-shadow:
    var(--shadow-lg),
    0 0 30px var(--accent-glow),
    0 0 60px rgba(45,212,191,0.06);
  transform: translateY(-4px);
}
.feature-card--glow:hover::before { opacity: 1; }
.feature-card--glow:hover::after { opacity: 0.8; }
.feature-card--glow > * { position: relative; z-index: 1; }

.feature-counter {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-4);
  display: block;
  line-height: 1;
}

/* ────────────────────────────────────────────────────────────
   39. GLASSMORPHISM & GRADIENT UTILITIES
   ============================================================ */

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow), var(--shadow-inset);
  transition: all var(--transition);
}
.glass-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-accent-md), var(--shadow-inset);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-inverse);
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  padding: 0 6px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: var(--space-2);
}

/* ────────────────────────────────────────────────────────────
   40. INTERACTIVE CLI DEMO STYLES
   ============================================================ */

.demo-terminal {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255,255,255,0.03),
    var(--shadow-accent);
  position: relative;
}

.demo-terminal::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

.demo-controls {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-wrap: wrap;
}

.demo-command-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.demo-command-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.demo-command-btn--active {
  background: var(--accent-gradient);
  border-color: var(--accent);
  color: var(--text-inverse);
  font-weight: 700;
  box-shadow: 0 0 14px var(--accent-glow);
}

.demo-command-btn--active:hover {
  color: var(--text-inverse);
  background: var(--accent-gradient);
}

/* ────────────────────────────────────────────────────────────
   41. SECTION DIVIDER
   ============================================================ */

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-accent) 20%,
    var(--accent) 50%,
    var(--border-accent) 80%,
    transparent 100%
  );
  margin: var(--space-10) 0;
  opacity: 0.6;
}

/* ────────────────────────────────────────────────────────────
   42. COMPARISON TABLE HIGHLIGHT IMPROVEMENTS
   ============================================================ */

.comparison-table .comparison-highlight {
  position: relative;
}

.comparison-table .comparison-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--accent-subtle) 0%,
    var(--accent-muted) 100%
  );
  opacity: 0.4;
  pointer-events: none;
}

.comparison-table th.comparison-highlight {
  background: var(--accent-muted);
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.comparison-table th.comparison-highlight .plan-name {
  color: var(--text);
  font-weight: 800;
}

/* ────────────────────────────────────────────────────────────
   43. ANIMATIONS
   ============================================================ */

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes blink-caret {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: transparent; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 0 16px var(--accent-glow),
      0 0 32px rgba(45,212,191,0.06);
  }
  50% {
    box-shadow:
      0 0 24px var(--accent-muted),
      0 0 48px var(--accent-glow),
      0 0 72px rgba(45,212,191,0.08);
  }
}

@keyframes slide-up-stagger {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Utility classes for animations */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Staggered reveal via data attributes or class */
.slide-up-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  animation: slide-up-stagger 0.6s var(--ease-out) forwards;
}
.slide-up-stagger > *:nth-child(1)  { animation-delay: 0ms; }
.slide-up-stagger > *:nth-child(2)  { animation-delay: 80ms; }
.slide-up-stagger > *:nth-child(3)  { animation-delay: 160ms; }
.slide-up-stagger > *:nth-child(4)  { animation-delay: 240ms; }
.slide-up-stagger > *:nth-child(5)  { animation-delay: 320ms; }
.slide-up-stagger > *:nth-child(6)  { animation-delay: 400ms; }
.slide-up-stagger > *:nth-child(7)  { animation-delay: 480ms; }
.slide-up-stagger > *:nth-child(8)  { animation-delay: 560ms; }
.slide-up-stagger > *:nth-child(9)  { animation-delay: 640ms; }
.slide-up-stagger > *:nth-child(10) { animation-delay: 720ms; }
.slide-up-stagger > *:nth-child(11) { animation-delay: 800ms; }
.slide-up-stagger > *:nth-child(12) { animation-delay: 880ms; }

/* Reduced motion overrides for new animations */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-pulse-glow,
  .animate-gradient,
  .slide-up-stagger > *,
  .terminal-cursor,
  .terminal-typing .terminal-command {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ────────────────────────────────────────────────────────────
   44. PRINT STYLES
   ============================================================ */

@media print {
  .terminal-window,
  .demo-terminal {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .terminal-cursor {
    display: none;
  }
  .lifecycle-flow {
    flex-wrap: wrap;
  }
  .lifecycle-node-circle {
    box-shadow: none;
    border: 2px solid #666;
  }
  .usecase-card,
  .feature-card--glow,
  .glass-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .demo-controls,
  .demo-command-btn {
    display: none;
  }
  .section-divider {
    background: #ccc;
  }
  .stat-number,
  .feature-counter,
  .gradient-text {
    -webkit-text-fill-color: #333;
    color: #333;
    background: none;
  }
  .glass-card {
    backdrop-filter: none;
    background: #f9f9f9;
  }
}

/* ────────────────────────────────────────────────────────────
   45. QUICK INSTALL TERMINAL SYNTAX HIGHLIGHTING
   ============================================================ */

/* Lines inside the quick-install terminal */
.qi-step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.3s var(--ease-out);
}
.qi-out {
  opacity: 1;
  transition: opacity 0.3s var(--ease-out);
}
.qi-blank {
  display: block;
  height: 0.5em;
  opacity: 1;
}
.qi-cursor {
  opacity: 1;
  transition: opacity 0.3s var(--ease-out);
}
.qi-step.visible,
.qi-out.visible,
.qi-blank.visible,
.qi-cursor.visible {
  opacity: 1;
}

/* Syntax token colors */
.qi-cmd  { color: var(--text); }
.qi-kw   { color: var(--accent); font-weight: 600; }
.qi-flag { color: var(--purple); }
.qi-str  { color: var(--yellow); }
.qi-pkg  { color: var(--blue); }
.qi-out.qi-success { color: var(--green); }

/* Responsive: tighten font on small screens */
@media (max-width: 600px) {
  #quickinstall-body {
    font-size: 0.72rem !important;
    padding: 16px !important;
  }
}

/* ────────────────────────────────────────────────────────────
   45. RESPONSIVE FOR NEW COMPONENTS
   ============================================================ */

@media (max-width: 1024px) {
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .usecase-grid {
    grid-template-columns: 1fr;
  }
  .terminal-body {
    padding: var(--space-4);
    font-size: 0.76rem;
  }
  .lifecycle-node-circle {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  .lifecycle-node-label {
    font-size: 0.6rem;
  }
  .demo-controls {
    gap: 6px;
    padding: var(--space-2) var(--space-3);
  }
  .demo-command-btn {
    font-size: 0.65rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .lifecycle-flow {
    gap: var(--space-2);
  }
  .lifecycle-node-circle {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .terminal-body {
    font-size: 0.72rem;
    padding: var(--space-3);
  }
  .demo-terminal .terminal-body {
    padding: var(--space-3);
  }
  .stat-number {
    font-size: 1.75rem;
  }
  .feature-counter {
    font-size: 2rem;
  }
}

/* ============================================================
   GUIDES PAGE
   ============================================================ */

/* Index grid ─────────────────────────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.guide-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px var(--border-accent);
}
.guide-card-icon { font-size: 2rem; line-height: 1; }
.guide-card-title { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--text); }
.guide-card-summary { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin: 0; flex: 1; }
.guide-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.guide-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  color: var(--accent);
}
.guide-card-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}
.guide-card:hover .guide-card-arrow { color: var(--accent); }

/* Detail layout ──────────────────────────────────────────── */
.guides-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-8);
  align-items: start;
}
.guides-sidebar {
  position: sticky;
  top: calc(var(--nav-height, 64px) + var(--space-4));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.guides-sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.guides-sidebar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.guides-sidebar-list a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.guides-sidebar-list a:hover { background: var(--bg-hover); color: var(--text); }
.guides-sidebar-list a.active { background: var(--accent-subtle); color: var(--accent); font-weight: 600; }
.sidebar-icon { font-size: 1rem; }

/* Detail panel ───────────────────────────────────────────── */
.guide-detail { min-width: 0; }
.guide-detail-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.guide-detail-icon { font-size: 3rem; line-height: 1; }
.guide-detail-title { font-size: 1.75rem; font-weight: 800; margin: 0; }
.guide-detail-intent { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; margin: 0; max-width: 680px; }

.guide-section { margin-bottom: var(--space-8); }
.guide-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

/* Commands ───────────────────────────────────────────────── */
.guide-commands-list { display: flex; flex-direction: column; gap: var(--space-2); }
.guide-command-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.guide-command-row:hover { border-color: var(--border-accent); }
.guide-command-code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
}
.guide-command-copy {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.guide-command-copy:hover { background: var(--accent-subtle); color: var(--accent); border-color: var(--border-accent); }
.copy-icon { font-size: 0.85rem; }
.copy-label { font-weight: 500; }

/* Workflows ──────────────────────────────────────────────── */
.guide-workflows-list { display: flex; flex-direction: column; gap: var(--space-4); }
.guide-workflow-card {
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.guide-workflow-name { font-size: 1rem; font-weight: 700; margin: 0 0 var(--space-1); }
.guide-workflow-goal { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 var(--space-3); }
.guide-workflow-prompt {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--border-accent);
  padding-left: var(--space-3);
  margin: 0 0 var(--space-4);
}
.guide-workflow-commands { display: flex; flex-direction: column; gap: 6px; }
.guide-workflow-cmd {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--bg-code);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

/* Docs & Related ─────────────────────────────────────────── */
.guide-docs-list { display: flex; flex-direction: column; gap: var(--space-3); }
.guide-doc-link {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.guide-doc-link:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }
.guide-doc-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.guide-doc-path { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); font-weight: 500; }
.guide-doc-purpose { font-size: 0.8rem; color: var(--text-muted); }

.guide-related-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.guide-related-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.guide-related-link:hover { background: var(--accent-subtle); border-color: var(--border-accent); color: var(--accent); }
.guide-related-icon { font-size: 1rem; }

@media (max-width: 900px) {
  .guides-layout { grid-template-columns: 1fr; }
  .guides-sidebar {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: var(--space-3);
  }
  .guides-sidebar-title { display: none; }
  .guides-sidebar-list { flex-direction: row; flex-wrap: wrap; }
  .guides-sidebar-list a { padding: 4px 12px; font-size: 0.8rem; }
}
@media (max-width: 640px) {
  .guides-grid { grid-template-columns: 1fr; }
}

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