/* ==========================================================================
   devinfra — Minimalist White Theme Design System
   Aesthetic: Clean, high-contrast, technical minimalist (Linear/Geist inspired)
   ========================================================================== */

/* Local variable fonts avoid a third-party CSS request on the render path. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('assets/fonts/geist-latin.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/geist-mono-latin.woff2') format('woff2'); }

/* --- Design Tokens --- */
:root {
  color-scheme: light;
  /* Surface Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  --bg-code: #0b0f17;
  --bg-code-light: #f8fafc;

  /* Hairline Borders */
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: var(--accent-gold);
  --border-card-hover: #cbd5e1;

  /* High Contrast Typography */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Functional Accents (Strict Single Palette Discipline) */
  --accent-brand: #0f172a;
  --accent-gold: #806000;
  --accent-gold-soft: #fff8e6;
  --accent-gold-border: #e8cf91;
  --accent-on-gold: #17130a;
  --accent-blue: var(--accent-gold);
  --color-blue: var(--accent-gold);
  --accent-teal: #0d9488;
  --accent-emerald: #059669;
  --accent-amber: #c7af34;

  /* Shadows (Minimal, crisp) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.08);

  /* Typography Families */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* Radius (Standardized: sharp-modern 8px) */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Layout */
  --max-width: 1120px;
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent-blue);
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Navigation Bar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 64px;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border-bottom-color: rgba(203, 213, 225, 0.8);
}

.scroll-progress-bar {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--text-primary), var(--accent-blue));
  transition: width 0.08s ease-out;
  z-index: 1001;
  pointer-events: none;
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-icon {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-tag {
  font-size: 0.675rem;
  font-family: var(--font-mono);
  padding: 0.12rem 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.brand-tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-tag-link:hover {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

.navbar nav {
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  height: 100%;
}

.nav-links li {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 0.15rem;
}

.nav-links .nav-link:hover {
  color: var(--text-primary);
}

.nav-links .nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-links .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem 1.75rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  z-index: 999;
  flex-direction: column;
  gap: 1rem;
}

.mobile-drawer.open {
  display: flex;
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-drawer .nav-link {
  font-size: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  height: auto;
  display: block;
}

.mobile-drawer .nav-link:hover,
.mobile-drawer .nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.mobile-drawer .nav-link.active::after {
  display: none;
}

.mobile-drawer .pip-install-box {
  width: 100%;
  justify-content: space-between;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
}

/* --- Hero Section (Centered & High Impact) --- */
.hero-section {
  padding: 3.75rem 0 2.25rem;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.04), transparent 70%);
}

.hero-content,
.hero-grid {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  margin: 0 auto 1.35rem;
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow code {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-eyebrow-link {
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.hero-eyebrow-link:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0 auto 1.25rem;
  max-width: 840px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 1.85rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 auto 1.75rem;
}

/* Button Active Tactile Push */
.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Hero Quick Highlights Strip */
.hero-highlights {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1.35rem auto 0;
}

.hero-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.hero-highlight-pill:hover {
  border-color: var(--border-card-hover);
  color: var(--text-primary);
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

.hero-highlight-pill svg {
  color: var(--accent-blue);
}

/* Hero Quick Install Snippet Box */
.hero-install-box {
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
}

.hero-install-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.install-tool-pills {
  display: inline-flex;
  background: var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.tool-pill {
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 1px);
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-pill:hover {
  color: var(--text-primary);
}

.tool-pill.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hero-install-note {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.hero-install-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  gap: 0.5rem;
}

.hero-cmd-display-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-cmd-text {
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.hero-copy-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

/* Pip & uv Install Command Box (Navbar / Drawer) */
.pip-install-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: nowrap;
  user-select: none;
}

.pip-install-box:hover {
  border-color: var(--border-card-hover);
}

.install-tool-mini {
  display: inline-flex;
  align-items: center;
  background: var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1px;
  gap: 1px;
  margin-right: 0.2rem;
}

.tool-mini-btn {
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 1px);
  padding: 0.12rem 0.4rem;
  font-size: 0.675rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-mini-btn:hover {
  color: var(--text-primary);
}

.tool-mini-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.pip-copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0.2rem;
  transition: color var(--transition-fast);
}

.pip-copy-btn:hover {
  color: var(--text-primary);
}

/* --- High-End Interactive Terminal Window (Hero Command Box) --- */
.terminal-window {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.45), 
              0 0 0 1px rgba(255, 255, 255, 0.05),
              0 0 45px -10px rgba(56, 189, 248, 0.12);
  overflow: hidden;
  position: relative;
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.terminal-window:hover {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 28px 60px -12px rgba(15, 23, 42, 0.5), 
              0 0 0 1px rgba(56, 189, 248, 0.15),
              0 0 55px -8px rgba(56, 189, 248, 0.2);
}

/* Window Topbar: Traffic Lights & Title */
.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  background: #0d1322;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ff5f56;
  box-shadow: 0 0 6px rgba(255, 95, 86, 0.4);
}

.dot-yellow {
  background: #ffbd2e;
  box-shadow: 0 0 6px rgba(255, 189, 46, 0.4);
}

.dot-green {
  background: #27c93f;
  box-shadow: 0 0 6px rgba(39, 201, 63, 0.4);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.terminal-env-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

/* Tab Bar & Action Controls */
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.terminal-tabs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.term-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.term-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.term-tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.term-tab-btn .tab-step {
  font-size: 0.65rem;
  opacity: 0.6;
}

.terminal-header .copy-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.terminal-header .copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Prompt Line */
.terminal-prompt-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: #f8fafc;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

.prompt-dir {
  color: #38bdf8;
  font-weight: 600;
}

.prompt-git {
  color: #a78bfa;
  font-size: 0.75rem;
  background: rgba(167, 139, 250, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.prompt-arrow {
  color: #10b981;
  font-weight: bold;
}

.terminal-cmd {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #38bdf8;
  margin-left: 0.25rem;
  vertical-align: middle;
  animation: cursorBlink 1s infinite;
}

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

/* Terminal Body Content */
.terminal-body {
  padding: 0.75rem 1.25rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: #e2e8f0;
  line-height: 1.65;
  overflow-x: auto;
  min-height: 250px;
  white-space: pre-wrap;
  word-break: break-word;
  transition: opacity 0.15s ease-in-out;
}

.terminal-body.animating {
  opacity: 0.35;
}

/* Terminal semantic highlights */
.term-line {
  display: block;
}

.term-bold {
  font-weight: 600;
  color: #f8fafc;
}

.term-cyan {
  color: #38bdf8;
}

.term-yellow {
  color: #facc15;
}

.terminal-dim {
  color: #64748b;
}

.terminal-success {
  color: #34d399;
}

.terminal-highlight {
  color: #c084fc;
}

.term-badge-create {
  color: #34d399;
  font-weight: 700;
  background: rgba(52, 211, 153, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  font-size: 0.775rem;
}

.term-badge-healthy {
  color: #34d399;
  font-weight: 700;
  background: rgba(52, 211, 153, 0.15);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  display: inline-block;
}

.term-type {
  color: #94a3b8;
}

.term-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.term-link:hover {
  color: #7dd3fc;
}

/* Terminal Statusbar Bottom */
.terminal-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.25rem;
  background: #070a11;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot-green {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* --- Social Proof & Trust Strip --- */
.trust-strip {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  margin: 2.25rem 0 3rem;
}

.trust-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-align: center;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.trust-item:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.trust-item svg {
  color: var(--text-primary);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 65ch;
  line-height: 1.6;
}

/* --- Feature Grid (Clean Minimalist Cards with Tactile Physics) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.07);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card .card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.feature-card:hover .card-icon {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.card-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.feature-card:hover .badge {
  background: var(--bg-card);
  border-color: var(--border-card-hover);
  color: var(--text-primary);
}

/* --- Deterministic DAG Workflow Row --- */
.workflow-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0 1.5rem;
  position: relative;
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.workflow-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.workflow-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.workflow-card.active {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.workflow-card.active::after {
  opacity: 1;
}

.workflow-num {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.workflow-card.active .workflow-num {
  color: var(--accent-blue);
}

.workflow-card h3, .workflow-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.workflow-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.workflow-detail-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.workflow-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.workflow-detail-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.workflow-detail-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
}

.workflow-detail-code {
  background: #0b0f17;
  color: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.6;
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid #1e293b;
}

/* --- Bottom CTA Callout Banner --- */
.cta-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-tag {
  display: inline-block;
  font-size: 0.725rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  margin-bottom: 0.35rem;
}

.cta-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 0.925rem;
  max-width: 50ch;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.cta-cmd-box {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.cta-cmd-box span {
  color: var(--text-muted);
}

.cta-cmd-box code {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Scroll Reveal & Motion System --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Staggered Children Animations */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.34s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Back to Top Floating Action Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all var(--transition-normal);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-progress-bar {
    display: none !important;
  }
}

/* --- Code Snippet Box --- */
.code-box {
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 1rem 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
}

.copy-btn {
  background: transparent;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.725rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: #1e293b;
  color: #ffffff;
}

.copy-btn.copied {
  color: #34d399;
  border-color: #34d399;
}

.code-box pre {
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.825rem;
  line-height: 1.6;
  color: #f8fafc;
}

/* Syntax tokens */
.token-kw { color: #f472b6; }
.token-key { color: #38bdf8; }
.token-str { color: #86efac; }
.token-num { color: #fde047; }
.token-com { color: #94a3b8; font-style: italic; }
.token-fn { color: #c084fc; }

/* Light Code Box Variant (for documentation snippets) */
.code-box.light {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.code-box.light .code-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.code-box.light .code-lang {
  color: var(--text-muted);
}

.code-box.light .copy-btn {
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.code-box.light .copy-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.code-box.light pre {
  color: var(--text-primary);
}

/* --- Tabs Component --- */
.tabs-container {
  margin: 1.5rem 0;
}

.tabs-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.tab-btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Documentation Layout --- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 2.5rem 0 5rem;
}

.docs-sidebar {
  position: sticky;
  top: 5rem;
  height: calc(100vh - 6rem);
  overflow-y: auto;
}

.docs-search-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.docs-search-input {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.825rem;
  outline: none;
}

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

.docs-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.docs-nav-group {
  margin-bottom: 1.25rem;
}

.docs-nav-heading {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.docs-nav-list {
  list-style: none;
}

.docs-nav-item a {
  display: block;
  padding: 0.25rem 0.5rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.docs-nav-item a:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

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

.docs-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.docs-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.docs-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.925rem;
  line-height: 1.65;
}

.docs-content ul {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  font-size: 0.925rem;
}

.docs-content li {
  margin-bottom: 0.35rem;
}

/* Callout Box */
.callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.callout.tip {
  border-left: 3px solid var(--accent-emerald);
}

.callout.info {
  border-left: 3px solid var(--accent-blue);
}

.callout-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Table styling */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.825rem;
}

th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

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

/* --- Examples Gallery Cards --- */
.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.example-card:hover {
  border-color: var(--border-card-hover);
}

.example-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.example-meta h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.example-meta p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.825rem;
  margin-top: 0.5rem;
  max-width: 300px;
}

.footer-col h3, .footer-col h4 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.825rem;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-link-highlight {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.footer-link-highlight:hover {
  color: var(--color-blue);
}

.footer-ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* --- UI Dashboard Showcase & Documentation Mockups --- */
.dashboard-showcase-section {
  padding: 3.5rem 1.5rem;
}

.browser-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.1);
  margin: 1.75rem 0;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.browser-mockup:hover {
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.14);
}

.browser-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-address {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.browser-address-host {
  color: var(--color-blue);
  font-weight: 600;
}

.browser-body {
  position: relative;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

.browser-body img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.browser-caption {
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Dashboard Interactive Tabs */
.dash-tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.dash-tab-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.dash-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background: var(--bg-card);
}

.dash-tab-btn.active {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.dash-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.dash-module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dash-module-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.dash-module-card h3, .dash-module-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dash-module-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* --- Downloads Page & Components --- */
.downloads-hero {
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
}

.downloads-detected-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 680px;
  margin: 2rem auto 3rem;
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.downloads-detected-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--text-primary));
}

.detected-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-primary);
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.1);
}

.download-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.download-platform-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.download-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
  flex: 1;
}

.download-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.download-file-item:hover {
  background: var(--bg-card);
  border-color: var(--color-blue);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.download-file-info {
  display: flex;
  flex-direction: column;
}

.download-file-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.download-file-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.download-file-size {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 0.5rem;
}

.checksum-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.checksum-hash {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  word-break: break-all;
}

/* --- High-Craft Download Card Chips & Instruction Components --- */
.format-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.format-chip.recommended {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--color-blue);
}

.format-chip.enterprise {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--text-primary);
}

.format-chip.universal {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #059669;
}

/* Instructions Guide Component */
.instructions-guide {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-top: 2.5rem;
}

.instructions-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.instruction-step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.instruction-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--color-blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1120px) {
  .navbar .nav-actions .pip-install-box { display: none; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-row { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 640px) {
  .nav-actions .pip-install-box { display: none; }
  .nav-actions .btn { display: none; }
  .hero-title { font-size: 2.15rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .terminal-topbar { padding: 0.5rem 0.85rem; }
  .terminal-env-badge { display: none; }
  .terminal-header { padding: 0.45rem 0.75rem; }
  .term-tab-btn { padding: 0.2rem 0.45rem; font-size: 0.7rem; }
  .terminal-prompt-row { padding: 0.65rem 0.85rem 0.25rem; font-size: 0.75rem; }
  .terminal-body { padding: 0.6rem 0.85rem 1rem; font-size: 0.75rem; }
  .terminal-statusbar { font-size: 0.625rem; padding: 0.35rem 0.85rem; }
}


/* --- Theme preference and navigation control --- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #111111;
  --bg-card-hover: #171717;
  --bg-code-light: #111111;
  --border-color: #222222;
  --border-subtle: #1c1c1c;
  --border-focus: var(--accent-gold);
  --border-card-hover: #444444;
  --text-primary: #ededed;
  --text-secondary: #a3a3a3;
  --text-muted: #888888;
  --text-inverse: #0a0a0a;
  --accent-brand: #ededed;
  --accent-gold: #fbbf24;
  --accent-gold-soft: #241d0f;
  --accent-gold-border: #594619;
  --accent-on-gold: #17130a;
  --accent-blue: var(--accent-gold);
  --color-blue: var(--accent-gold);
  --accent-teal: #5eead4;
  --accent-emerald: #6ee7b7;
  --accent-amber: #fbbf24;
}
.theme-toggle {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font: 500 0.75rem var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle:hover { background: var(--bg-tertiary); }
.theme-toggle:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
:root[data-theme="dark"] .navbar { background: rgba(10, 10, 10, 0.8); }
:root[data-theme="dark"] .navbar.scrolled { background: rgba(10, 10, 10, 0.96); border-bottom-color: var(--border-color); }
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .dash-tab-btn.active { color: var(--text-inverse); }
:root[data-theme="dark"] .btn-primary:hover { background: #d4d4d4; border-color: #d4d4d4; }
@media (max-width: 640px) {
  .navbar .nav-container { gap: 0.5rem; }
  .nav-actions { gap: 0.5rem; }
  .theme-toggle { padding: 0.5rem; font-size: 0.7rem; }
}

:root[data-theme="dark"] .brand-logo-icon,
:root[data-theme="dark"] .brand-tag-link:hover,
:root[data-theme="dark"] .feature-card:hover .card-icon { color: var(--text-inverse); }

/* Icon-only theme control. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}



/* GitAtlas-inspired header: spacious navigation and compact circular control. */
.navbar { height: 73px; }
.navbar .nav-container { max-width: 1280px; gap: 1.5rem; }
.navbar .brand-logo { font-size: 1.125rem; font-weight: 600; }
.navbar .nav-links { gap: 2rem; }
.navbar .nav-links .nav-link { font-size: 0.875rem; }
.navbar .nav-links .nav-link.active::after { display: none; }
.navbar .nav-actions { gap: 0.75rem; }
.navbar .nav-actions > .btn-primary {
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.navbar .theme-toggle {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 50%;
  padding: 0;
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
  color: var(--text-muted);
}
.navbar .theme-toggle:hover { color: var(--text-primary); background: var(--bg-tertiary); }


:root[data-theme="dark"] .navbar { border-bottom-color: rgba(255,255,255,0.06); }
:root[data-theme="dark"] .navbar .theme-toggle { border-color: rgba(255,255,255,0.06); }
@media (max-width: 1100px) { .navbar .nav-links { gap: 1rem; } }
@media (max-width: 960px) {
  .navbar .nav-links { display: none; }
  .navbar .mobile-menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .navbar .nav-container { gap: 0.5rem; }
  .navbar .brand-wrapper { gap: 0.4rem; }
  .navbar .brand-tag { font-size: 0.6rem; padding: 0.12rem 0.35rem; }
}

/* Phosphor outline icons match the GitAtlas toggle: current theme is shown. */
.navbar .theme-icon { width: 14px; height: 14px; flex-shrink: 0; }
.theme-icon-moon { display: none; }
.theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: block; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }

/* Move2Move-style page motion and shared active navigation highlight. */
@view-transition { navigation: auto; }
html { scrollbar-gutter: stable; }
.navbar { view-transition-name: site-header; }
main { view-transition-name: page-content; }
.navbar .nav-links .nav-link {
  height: auto;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  isolation: isolate;
}
.navbar .nav-links { gap: 0.4rem; }
.navbar .nav-links .nav-link.active::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--bg-tertiary);
  view-transition-name: active-navigation;
}
::view-transition-group(root),
::view-transition-group(site-header) { animation-duration: 300ms; }
::view-transition-old(root),
::view-transition-new(root),
::view-transition-old(site-header),
::view-transition-new(site-header) { animation: none; }
::view-transition-old(root),
::view-transition-old(site-header) { opacity: 0; }
::view-transition-group(page-content) { animation: none; }
::view-transition-old(page-content) {
  animation: page-leave 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
::view-transition-new(page-content) {
  animation: page-enter 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
::view-transition-group(active-navigation) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
::view-transition-old(active-navigation) { animation: none; opacity: 0; }
::view-transition-new(active-navigation) { animation: none; }
@keyframes page-leave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* Repository shortcut, immediately before the theme control. */
.navbar .github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.navbar .github-link:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.navbar .github-link:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
:root[data-theme="dark"] .navbar .github-link { border-color: rgba(255,255,255,0.06); }

/* Current documentation section, in both color themes. */
.docs-nav-item a.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  box-shadow: inset 2px 0 0 var(--accent-blue);
  font-weight: 600;
}
.docs-nav-item a { transition: color var(--transition-fast), background-color var(--transition-fast); }
.docs-content [id] { scroll-margin-top: 105px; }

/* Restrained gold highlights; success/error and terminal colors retain meaning. */
::selection { background: var(--accent-gold-border); color: var(--text-primary); }
.section-tag { color: var(--accent-gold); }
.navbar .nav-links .nav-link.active { color: var(--accent-gold); }
.navbar .nav-links .nav-link.active::before { background: var(--accent-gold-soft); box-shadow: inset 0 0 0 1px var(--accent-gold-border); }
.docs-nav-item a.active { color: var(--accent-gold); background: var(--accent-gold-soft); }
.scroll-progress-bar { background: var(--accent-gold); }
.format-chip.recommended,
.detected-platform-pill {
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  border-color: var(--accent-gold-border);
}
.navbar .theme-toggle:hover,
.navbar .github-link:hover { color: var(--accent-gold); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Desktop distribution: clear hierarchy and theme-aware package list. */
.desktop-section { padding-top: 1.5rem; padding-bottom: 3.5rem; }
.desktop-showcase {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
}
.desktop-intro { align-self: center; min-width: 0; }
.desktop-release { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font: 500 0.7rem var(--font-mono); color: var(--text-primary); margin-bottom: 1.5rem; }
.desktop-release > span:last-child { color: var(--text-muted); padding-left: 0.5rem; border-left: 1px solid var(--border-color); }
.desktop-release-dot { width: 6px; height: 6px; background: var(--accent-gold); border-radius: 50%; }
.desktop-intro h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.04em; margin-bottom: 1rem; }
.desktop-intro > p { color: var(--text-secondary); font-size: 0.925rem; line-height: 1.75; max-width: 48ch; }
.desktop-highlights { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0; margin: 1.25rem 0 1.75rem; color: var(--text-secondary); font-size: 0.7rem; }
.desktop-highlights li::before { content: '✓'; color: var(--accent-gold); margin-right: 0.35rem; }
.desktop-primary { background: #fbbf24; color: #17130a; gap: 1.5rem; border-color: #fbbf24; }
.desktop-primary:hover { background: #fcd34d; color: #17130a; border-color: #fcd34d; }
.desktop-intro > .desktop-download-note { font: 400 0.675rem var(--font-mono); color: var(--text-muted); margin-top: 0.65rem; }
.desktop-more { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.25rem; font-size: 0.775rem; }
.desktop-more > span { color: var(--border-card-hover); }
.desktop-more a { color: var(--text-secondary); }
.desktop-more a:hover { color: var(--accent-gold); }
.desktop-packages { min-width: 0; align-self: center; }
.desktop-packages-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.desktop-packages-heading h3 { font-size: 0.875rem; font-weight: 600; }
.desktop-packages-heading > span { font: 400 0.65rem var(--font-mono); color: var(--text-muted); }
.desktop-packages ul { list-style: none; margin: 0; padding: 0; }
.desktop-packages li { border-bottom: 1px solid var(--border-subtle); }
.desktop-packages li a { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.8rem 0.25rem; border-radius: 4px; }
.desktop-packages li a:hover { background: var(--accent-gold-soft); color: var(--accent-gold); }
.desktop-package-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 500; }
.desktop-package-format { color: var(--text-muted); font: 400 0.6rem var(--font-mono); }
.desktop-package-size { white-space: nowrap; font: 400 0.65rem var(--font-mono); color: var(--text-muted); }
.desktop-package-size > span { color: var(--accent-gold); margin-left: 0.35rem; }
.desktop-checksums { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 1rem; color: var(--text-secondary); font-size: 0.7rem; }
@media (max-width: 800px) { .desktop-showcase { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .desktop-package-name { font-size: 0.7rem; } .desktop-package-size { font-size: 0.6rem; } }

/* Readable low-emphasis terminal text and flexible intrinsic image sizing. */
.terminal-dim, .terminal-statusbar { color: #94a3b8; }
.docs-content img, #dash-showcase-img { height: auto; }

/* Documentation on tablets and phones. */
.docs-outline-toggle { display: none; }
.docs-principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
@media (max-width: 1024px) {
  .docs-layout { gap: 1rem; padding: 1rem 0 3rem; }
  .docs-outline-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: sticky; top: 73px; z-index: 40; width: 100%; min-height: 48px;
    padding: 0.65rem 0.85rem; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    background: var(--bg-primary); color: var(--text-primary); text-align: left;
    font: 600 0.8rem var(--font-sans); cursor: pointer;
  }
  .docs-current-section { color: var(--accent-gold); font-weight: 400; margin-left: 0.6rem; }
  .docs-outline-chevron { font-size: 1.2rem; }
  .docs-outline-toggle[aria-expanded="true"] .docs-outline-chevron { transform: rotate(180deg); }
  .docs-sidebar.mobile-open {
    display: block; position: sticky; top: 127px; z-index: 39;
    height: auto; max-height: min(60dvh, 500px); overflow-y: auto; overscroll-behavior: contain;
    padding: 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    background: var(--bg-primary); box-shadow: var(--shadow-md);
  }
  .docs-search-input { min-height: 44px; font-size: 16px; }
  .docs-nav-item a { min-height: 44px; display: flex; align-items: center; padding: 0.65rem; }
  .docs-content [id] { scroll-margin-top: 160px; }
  .docs-content { overflow-wrap: anywhere; }
  .docs-content h1 { font-size: clamp(1.8rem, 5vw, 2.25rem); line-height: 1.2; }
  .docs-content h2 { font-size: 1.3rem; line-height: 1.35; }
  .docs-content h3 { font-size: 1.05rem; }
  .docs-content .table-wrap { max-width: 100%; overscroll-behavior-x: contain; }
  .docs-content table { min-width: 560px; }
  .docs-content pre { max-width: 100%; white-space: pre; overflow-wrap: normal; }
}
@media (max-width: 640px) {
  .container:has(.docs-layout) { padding-left: 1rem; padding-right: 1rem; }
  .docs-principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .docs-content .feature-card { padding: 1.25rem; }
  .docs-content .code-box pre { font-size: 0.75rem; padding: 0.85rem; }
  .docs-content .copy-btn { min-height: 40px; padding: 0.4rem 0.65rem; }
  .docs-content .code-header { gap: 0.5rem; }
  .docs-content .callout { padding: 1rem; }
  .docs-content .browser-topbar { gap: 0.4rem; padding: 0.65rem; }
  .docs-content .browser-address { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .navbar .nav-actions { gap: 0.35rem; }
  .navbar .brand-tag { display: none; }
  .mobile-menu-btn { width: 40px; height: 40px; }
  .docs-outline-toggle > span:first-child { min-width: 0; }
  .docs-current-section { display: block; margin: 0.15rem 0 0; font-size: 0.7rem; }
}

/* Dashboard highlights: two equal columns on mobile, with no clipped cards. */
@media (max-width: 640px) {
  .dash-modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.25rem; }
  .dash-module-card { min-width: 0; padding: 1rem 0.8rem; overflow-wrap: anywhere; }
  .dash-module-card h3, .dash-module-card h4 { font-size: 0.8rem; line-height: 1.4; align-items: flex-start; }
  .dash-module-card h3 svg, .dash-module-card h4 svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 0.15rem; }
  .dash-module-card p { font-size: 0.75rem; line-height: 1.6; }
}

/* Compact feature cards keep the same two-column rhythm on phones. */
@media (max-width: 640px) {
  .feature-grid { gap: 0.75rem; }
  .feature-grid > .feature-card { min-width: 0; padding: 1rem 0.8rem; overflow-wrap: anywhere; }
  .feature-card h3, .docs-content .feature-card h3 { font-size: 0.85rem; line-height: 1.4; margin-top: 0; }
  .feature-card p, .docs-content .feature-card p { font-size: 0.75rem; line-height: 1.6; margin-bottom: 0.75rem; }
  .feature-card .card-icon { width: 2rem; height: 2rem; margin-bottom: 0.75rem; }
  .feature-card .card-badges { gap: 0.3rem; }
  .feature-card .badge { font-size: 0.6rem; padding: 0.2rem 0.35rem; white-space: normal; }
}
