/* ==========================================================================
   Fastfetch Authoritative Resource Site - Global Stylesheet (style.css)
   Design System: Clean Light Mode, Modern Typography, Soft Shadows
   ========================================================================== */

:root {
  /* Color Palette - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #3b82f6;

  /* Accents */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: #eff6ff;
  --accent-indigo: #4f46e5;
  --accent-indigo-hover: #4338ca;
  --gradient-hero: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --gradient-badge: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(79, 70, 229, 0.08) 100%);

  /* Semantic Feedback */
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --error-border: #fecaca;

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* Elevation & Shadows (soft, clean, box-shadow based) */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);

  /* Layout */
  --container-max: 1240px;
  --header-height: 58px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 42px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 26px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--gradient-badge);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

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

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--accent);
}

.brand-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  color: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background-color: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
  line-height: 1.4;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent);
  background-color: rgba(37, 99, 235, 0.06);
}

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
  background-color: var(--accent-subtle);
}

.nav-link-docs {
  font-weight: 600 !important;
  color: var(--accent) !important;
  background-color: var(--accent-subtle);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 4px 10px;
}

.nav-link-docs:hover {
  background-color: rgba(37, 99, 235, 0.12) !important;
  border-color: rgba(37, 99, 235, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.navbar .btn-sm {
  font-size: 0.8125rem;
  padding: 5px 12px;
  min-height: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  gap: 6px;
}

.hamburger {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 5px 7px;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.hamburger:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-hover);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.4;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 2px 6px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

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

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

.btn-indigo {
  background: var(--gradient-hero);
  color: #ffffff;
}

.btn-indigo:hover {
  opacity: 0.95;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 6px 14px;
  min-height: 34px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.badge-blue {
  background-color: var(--accent-subtle);
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.2);
}

.badge-green {
  background-color: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 36px 0 32px 0;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.06) 0%, rgba(255, 255, 255, 0) 70%),
              var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-content {
  max-width: 660px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background-color: var(--accent-subtle);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-pill-badge {
  background: var(--accent);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-title {
  font-size: 2.875rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

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

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.stat-item h3,
.stat-item .stat-num {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.stat-item p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Terminal Window Chrome (Light Variant per Design System)
   ========================================================================== */
.terminal {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #1e293b;
  position: relative;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.terminal-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 18px 20px;
  overflow-x: auto;
  line-height: 1.65;
  background-color: #f8fafc;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.terminal-prompt {
  color: var(--accent);
  font-weight: 700;
  user-select: none;
}

.terminal-cmd {
  color: #0f172a;
  font-weight: 600;
  flex: 1;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
  background-color: #ffffff;
}

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

.copy-btn.copied {
  background-color: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

/* Hero Terminal Preview */
.hero-terminal {
  position: relative;
}

.hero-terminal .terminal-body {
  font-size: 0.8125rem;
  max-height: 480px;
  overflow-y: auto;
}

.hero-fetch-preview {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  white-space: pre;
}

.fetch-ascii {
  color: var(--accent);
  font-weight: 700;
  line-height: 1.25;
  user-select: none;
}

.fetch-info {
  line-height: 1.45;
}

.fetch-key {
  color: #2563eb;
  font-weight: 700;
}

.fetch-sep {
  color: #94a3b8;
}

.fetch-val {
  color: #0f172a;
}

.color-blocks {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.color-block {
  width: 18px;
  height: 12px;
  border-radius: 2px;
}

/* ==========================================================================
   Definitional Snippet Section ("What is Fastfetch?")
   ========================================================================== */
.what-is-section {
  padding: 20px 0 28px 0;
  background-color: var(--bg-primary);
}

.definition-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}

.definition-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.definition-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.definition-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.definition-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.definition-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.def-meta-item {
  display: flex;
  flex-direction: column;
}

.def-meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.def-meta-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Bento Grid Features
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bento-card.accent-indigo .bento-icon-wrapper {
  background-color: #ede9fe;
  color: var(--accent-indigo);
}

.bento-card.accent-green .bento-icon-wrapper {
  background-color: var(--success-bg);
  color: var(--success);
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.bento-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Download & Install Matrix Section
   ========================================================================== */
.install-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background-color: #ffffff;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.tab-btn.active {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.data-table thead {
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 14px 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-secondary);
}

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

.data-table tbody tr:hover {
  background-color: var(--bg-secondary);
}

.platform-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.platform-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.cmd-snippet {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 480px;
}

/* ==========================================================================
   Comparison Table Section
   ========================================================================== */
.comparison-prose {
  max-width: 860px;
  margin: 0 auto 22px auto;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  text-align: center;
}

.check-icon {
  color: var(--success);
  display: inline-block;
}

.cross-icon {
  color: var(--text-muted);
  display: inline-block;
}

.table-highlight {
  background-color: rgba(37, 99, 235, 0.03);
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Command Cheatsheet Grid
   ========================================================================== */
.cheatsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cheat-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.cheat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cheat-header {
  margin-bottom: 10px;
}

.cheat-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cheat-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.cheat-code-box {
  margin-top: auto;
  padding-top: 12px;
}

.code-pill {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   Ecosystem & Integrations Section
   ========================================================================== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.eco-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.eco-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.eco-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-tertiary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.eco-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.eco-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* ==========================================================================
   Interactive Config Generator
   ========================================================================== */
.generator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
}

.generator-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-select, .form-input {
  width: 100%;
  padding: 9px 14px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  border-color: var(--accent);
  background-color: #ffffff;
}

.range-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.modules-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.generator-preview {
  display: flex;
  flex-direction: column;
}

.preview-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.preview-terminal {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.preview-code-box {
  background-color: #f8fafc;
  color: #0f172a;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  padding: 18px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: auto;
  max-height: 480px;
  white-space: pre;
}

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */
.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  padding: 15px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

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

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-content {
  padding: 0 20px 16px 20px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  padding: 42px 0 24px 0;
}

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

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  width: 100%;
  margin-top: 24px;
  line-height: 1.5;
}

/* ==========================================================================
   Animations & Responsive Breakpoints
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .nav-link {
    font-size: 0.775rem;
    padding: 4px 6px;
  }
  .nav-container {
    padding-left: 14px;
    padding-right: 14px;
    gap: 8px;
  }
  .navbar .btn-sm {
    padding: 4px 9px;
    font-size: 0.78125rem;
  }
}

@media (max-width: 1040px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .nav-menu.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .nav-menu .nav-link {
    padding: 10px 14px;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .generator-wrapper {
    grid-template-columns: 1fr;
  }
  .distro-highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }
  .section {
    padding: 28px 0;
  }
  .section-header {
    margin: 0 auto 18px auto;
  }
  .hero {
    padding: 28px 0 24px 0;
  }
  .hero-title {
    font-size: 2.125rem;
    word-break: break-word;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .theme-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .distro-highlight-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 540px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .navbar .brand {
    font-size: 1rem;
    gap: 6px;
  }
  .navbar .brand-icon {
    width: 26px;
    height: 26px;
  }
  .navbar .nav-actions {
    gap: 6px;
  }
  .navbar .nav-actions .btn-secondary span {
    display: none;
  }
  .navbar .nav-actions .btn-secondary {
    padding: 5px 8px;
  }
  .hero-title {
    font-size: 1.875rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-fetch-preview {
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
  }
  .definition-card {
    padding: 16px 18px;
  }
  .definition-title {
    font-size: 1.2rem;
  }
  .definition-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .theme-showcase-wrapper {
    padding: 16px;
  }
  .theme-tabs {
    gap: 6px;
    margin-bottom: 16px;
  }
  .theme-tab-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .generator-wrapper {
    padding: 16px;
  }
  .migration-box {
    padding: 16px;
  }
  .data-table th, .data-table td {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }
  .faq-summary {
    padding: 12px 14px;
    font-size: 0.9375rem;
  }
  .faq-content {
    padding: 0 14px 12px 14px;
    font-size: 0.875rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.625rem;
  }
  .navbar .brand-badge {
    display: none;
  }
  .navbar .btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  .hero-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  .btn {
    padding: 8px 14px;
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   Theme Showcase & Dotfiles Gallery Styles
   ========================================================================== */
.theme-showcase-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
}

.theme-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.theme-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.theme-tab-btn.active {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.theme-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.theme-meta-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.theme-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.theme-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.theme-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.swatch-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.swatch-item {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-xs);
}

.theme-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Distro Quick Install Highlight Cards */
.distro-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.distro-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.distro-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.distro-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.distro-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--accent-subtle);
  color: var(--accent);
}

.distro-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.distro-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.45;
}

.distro-card-cmd {
  margin-top: auto;
}

/* Migration Guide Box */
.migration-box {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.migration-callout {
  background-color: var(--accent-subtle);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: #1e40af;
  line-height: 1.55;
}

/* ==========================================================================
   Shell Integration Hub
   ========================================================================== */
.shell-integration-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.shell-tabs-header {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.shell-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shell-tab-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.shell-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.shell-tab-content {
  display: none;
}

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

.shell-warning-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--warning);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 18px;
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.5;
}

.shell-tip-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--success);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 16px;
  font-size: 0.875rem;
  color: #065f46;
  line-height: 1.5;
}

/* ==========================================================================
   Recipe Cookbook Grid
   ========================================================================== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.recipe-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.recipe-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.recipe-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.recipe-card-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent);
  text-transform: uppercase;
}

.recipe-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.recipe-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.recipe-feature-pill {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ==========================================================================
   Protocol & Compatibility Badges
   ========================================================================== */
.protocol-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.protocol-yes {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
}

.protocol-partial {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.protocol-no {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

@media (max-width: 540px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  .shell-tabs-header {
    flex-direction: column;
  }
  .shell-tab-btn {
    width: 100%;
    justify-content: center;
  }
}

