/* Fauxmium — Synthetic Browser Lab
   Editorial, Tactile Typography & Clean Chromatic System
   Strictly NO purple glow, NO gradient text, NO mesh particles.
*/

:root {
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Light Theme (Warm Paper Alabaster & Deep Ink) */
  --bg: #f8f7f4;
  --bg-surface: #ffffff;
  --bg-subtle: #f0eee9;
  --bg-hover: #e8e5de;
  --text: #141619;
  --text-muted: #5e6470;
  --text-dim: #8b92a0;
  --border: #e2ded5;
  --border-strong: #c8c2b5;
  
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-subtle: #dbeafe;
  --primary-text: #1e3a8a;
  
  --success: #059669;
  --success-subtle: #d1fae5;
  --warning: #d97706;
  --danger: #e11d48;

  --shadow-sm: 0 1px 2px rgba(20, 22, 25, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 22, 25, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 22, 25, 0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

[data-theme="dark"] {
  /* Dark Theme (Crisp Slate Surface & Neutral Ink) */
  --bg: #0d0f12;
  --bg-surface: #14171d;
  --bg-subtle: #1c2028;
  --bg-hover: #252b36;
  --text: #f1f3f5;
  --text-muted: #9ba3b0;
  --text-dim: #606877;
  --border: #282e3a;
  --border-strong: #3b4354;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-subtle: #1e293b;
  --primary-text: #bfdbfe;

  --success: #10b981;
  --success-subtle: #064e3b;
  --warning: #f59e0b;
  --danger: #f43f5e;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f12;
    --bg-surface: #14171d;
    --bg-subtle: #1c2028;
    --bg-hover: #252b36;
    --text: #f1f3f5;
    --text-muted: #9ba3b0;
    --text-dim: #606877;
    --border: #282e3a;
    --border-strong: #3b4354;

    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-subtle: #1e293b;
    --primary-text: #bfdbfe;

    --success: #10b981;
    --success-subtle: #064e3b;
    --warning: #f59e0b;
    --danger: #f43f5e;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.2;
}

p, li {
  color: var(--text-muted);
}

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

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.brand-link:hover {
  text-decoration: none;
}
.brand-icon {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

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

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  text-decoration: none;
}

.theme-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 860px;
  margin: 0 auto 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Simulated Browser Window */
.simulator-section {
  padding: 1rem 0 4rem;
}

.browser-window {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Streaming Progress Bar across top of browser window */
.sim-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 50%, #06b6d4 100%);
  z-index: 120;
  opacity: 0;
  transition: width 0.35s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.2s ease;
}
.sim-progress-bar.active {
  width: 100%;
  opacity: 1;
}

.browser-topbar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  user-select: none;
  flex-wrap: wrap;
}

.window-dots {
  display: flex;
  gap: 6px;
  padding-right: 0.35rem;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-nav-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.12s ease;
}
.browser-nav-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text);
}
.browser-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.omnibox-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.omnibox {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem 0.35rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.omnibox:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-subtle);
}

.omnibox-badge {
  position: absolute;
  left: 0.65rem;
  font-size: 0.8rem;
  color: var(--success);
  pointer-events: none;
}

.browser-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lens-picker-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
}
.lens-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lens-select {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.btn-byok {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}
.btn-byok:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
  color: var(--primary-text);
}
.btn-byok.active {
  background: var(--success-subtle);
  color: var(--success);
  border-color: var(--success);
  font-weight: 700;
}

.btn-audition {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}
.btn-audition:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-audition.playing {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success);
}

.btn-extension-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.btn-extension-toggle:hover {
  background: var(--bg-hover);
}
.btn-extension-toggle img {
  width: 18px;
  height: 18px;
}
.badge-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

/* Route Shortcuts Bar */
.route-presets {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
}
.route-preset-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.route-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}
.route-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border-strong);
}
.route-btn.active {
  background: var(--primary-subtle);
  color: var(--primary-text);
  border-color: var(--primary);
  font-weight: 600;
}

/* Viewport Container & Themes */
.viewport-outer {
  position: relative;
  min-height: 540px;
  max-height: 720px;
  overflow-y: auto;
  background: var(--bg-surface);
}

/* Floating Streaming / Cache Status Pill */
.sim-status-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}
.sim-status-pill.hidden {
  opacity: 0;
  transform: translate(-50%, -10px);
  pointer-events: none;
}
.sim-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pillPulse 1.2s infinite;
}
@keyframes pillPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Browser Bottom Status Bar */
.browser-bottombar {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  user-select: none;
  z-index: 10;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.bottombar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bottombar-left .status-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}
.bottombar-divider {
  color: var(--border-strong);
}
.bottombar-cache-pill {
  background: var(--success-subtle);
  color: var(--success);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}
.btn-bottombar-inspect {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-bottombar-inspect:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}

/* BYOK Modal Overlay */
.byok-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.byok-modal[aria-hidden="true"] {
  display: none;
}
.byok-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.byok-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.byok-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.byok-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
}
.byok-close:hover {
  color: var(--text);
}
.byok-body {
  padding: 1.25rem;
}
.byok-body p {
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}
.byok-notice {
  font-size: 0.8rem;
  background: var(--bg-subtle);
  border-left: 3px solid var(--primary);
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.byok-field {
  margin-bottom: 1.25rem;
}
.byok-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.byok-field input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}
.byok-field input:focus {
  border-color: var(--primary);
}
.byok-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.byok-status {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.byok-status.success { color: var(--success); }
.byok-status.error { color: var(--danger); }

/* Lens-Specific Renderings & Era Injections */
.lens-view {
  min-height: 100%;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

/* Lens 1: Modern */
.lens-view.lens-modern {
  font-family: var(--font-body);
  background: #ffffff;
  color: #0f172a;
}
[data-theme="dark"] .lens-view.lens-modern {
  background: #0f172a;
  color: #f8fafc;
}

/* Lens 2: Retro 90s Geocities */
.lens-view.lens-retro-90s {
  font-family: "Times New Roman", Times, serif;
  background-color: #008080;
  background-image: radial-gradient(#006666 15%, transparent 16%);
  background-size: 16px 16px;
  color: #ffff00;
}
.lens-view.lens-retro-90s a {
  color: #00ffff !important;
  text-decoration: underline;
}
.lens-banner-retro {
  background: #000080;
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  font-family: "Comic Sans MS", "Arial", sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  border: 2px outset #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lens-marquee {
  color: #ff00ff;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.lens-view.lens-retro-90s .r-box {
  background: #c0c0c0;
  color: #000000;
  border: 3px outset #ffffff;
  padding: 1rem;
  box-shadow: 4px 4px 0 #000000;
  margin-bottom: 1.25rem;
}
.lens-footer-retro {
  margin-top: 1.5rem;
  text-align: center;
  background: #c0c0c0;
  border: 2px outset #ffffff;
  padding: 0.5rem;
  color: #000;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.led-counter {
  background: #000;
  color: #00ff00;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border: 1px solid #444;
  letter-spacing: 0.1em;
}

/* Lens 3: Y2K Frutiger Aero */
.lens-view.lens-y2k {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
  color: #0369a1;
}
.lens-banner-y2k {
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(224,242,254,0.6) 100%);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 12px rgba(3,105,161,0.15);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}
.lens-view.lens-y2k .y2k-box {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.12);
  padding: 1.25rem;
  color: #0c4a6e;
  margin-bottom: 1.25rem;
}

/* Lens 4: Cyberpunk 2077 */
.lens-view.lens-cyberpunk-2077 {
  font-family: var(--font-mono);
  background: #050508;
  color: #00f3ff;
  border-left: 2px solid #ff0055;
  position: relative;
}
.lens-view.lens-cyberpunk-2077 a {
  color: #ff0055 !important;
}
.lens-banner-cyber {
  background: #0a0b12;
  border-bottom: 1px solid #00f3ff;
  border-top: 1px solid #ff0055;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  color: #ff0055;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}
.lens-view.lens-cyberpunk-2077 .cp-box {
  background: #0d0f1a;
  border: 1px solid #00f3ff;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 0 16px rgba(0,243,255,0.1);
  margin-bottom: 1.25rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

/* Lens 5: Neo-Brutalist */
.lens-view.lens-brutalist {
  font-family: "Impact", "Arial Black", sans-serif;
  background: #fffb00;
  color: #000000;
}
.lens-banner-brut {
  background: #000000;
  color: #fffb00;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  border: 4px solid #000000;
}
.lens-view.lens-brutalist .brut-box {
  background: #ffffff;
  color: #000000;
  border: 4px solid #000000;
  box-shadow: 8px 8px 0 #000000;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Lens 6: Vaporwave */
.lens-view.lens-vaporwave {
  font-family: "Lucida Console", Monaco, monospace;
  background: linear-gradient(180deg, #2b1055 0%, #7597de 70%, #ff71ce 100%);
  color: #01cdfe;
}
.lens-banner-vapor {
  background: rgba(43, 16, 85, 0.8);
  border: 1px solid #ff71ce;
  padding: 0.5rem 1rem;
  color: #fffb96;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.1em;
}
.lens-view.lens-vaporwave .vapor-box {
  background: rgba(10, 5, 25, 0.85);
  border: 2px solid #01cdfe;
  box-shadow: 0 0 15px rgba(255, 113, 206, 0.4);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  color: #f8fafc;
}

/* Lens 7: Film Noir 1940s */
.lens-view.lens-noir-1940s {
  font-family: "Georgia", serif;
  background: #181818;
  color: #e5e5e5;
  filter: contrast(115%);
}
.lens-banner-noir {
  border-top: 3px double #e5e5e5;
  border-bottom: 3px double #e5e5e5;
  padding: 0.5rem 0;
  text-align: center;
  margin-bottom: 1.25rem;
}
.lens-banner-noir h3 {
  font-family: "Playfair Display", "Georgia", serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.2rem;
  color: #e5e5e5;
}
.lens-view.lens-noir-1940s .noir-box {
  background: #222222;
  border: 1px solid #444444;
  padding: 1.25rem;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
  margin-bottom: 1.25rem;
}

/* Lens 8: Arcade 8-Bit */
.lens-view.lens-arcade-8bit {
  font-family: var(--font-mono);
  background: #000000;
  color: #00ff00;
}
.lens-banner-arcade {
  background: #111111;
  border: 2px solid #ffff00;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: #ffff00;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
}
.lens-view.lens-arcade-8bit .arc-box {
  border: 2px dashed #ff0055;
  padding: 1rem;
  background: #0a0a0a;
  margin-bottom: 1.25rem;
}

/* Interactive Drawer: Coherence & Link Intent Inspector */
.coherence-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  padding: 1rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  font-family: var(--font-body);
}
.coherence-drawer.open {
  transform: translateY(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.drawer-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.drawer-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
}
.drawer-close:hover {
  color: var(--text);
}
.drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  font-size: 0.85rem;
}
.drawer-col {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}
.drawer-col h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.drawer-col pre {
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text);
  max-height: 180px;
  overflow-y: auto;
}

/* Extension Popup Simulator Overlay (Authentic Replica of extension/popup.html) */
.extension-popup-sim {
  position: absolute;
  top: 48px;
  right: 12px;
  width: 330px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem;
  z-index: 90;
  display: none;
  font-family: var(--font-body);
  max-height: 580px;
  overflow-y: auto;
}
.extension-popup-sim.active {
  display: block;
}
.ext-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
}
.ext-sim-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.ext-sim-badge-tag {
  font-size: 0.65rem;
  background: var(--primary-subtle);
  color: var(--primary-text);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}
.ext-sim-total-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.ext-sim-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.ext-btn {
  border: 1px solid var(--border);
  padding: 0.35rem 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.12s ease;
}
.ext-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.ext-btn-primary:hover {
  background: var(--primary-hover);
}
.ext-btn-secondary {
  background: var(--bg-subtle);
  color: var(--text);
}
.ext-btn-secondary:hover {
  background: var(--bg-hover);
}
.ext-sim-section {
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}
.ext-sim-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.ext-sim-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ext-sim-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.ext-sim-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  color: var(--text);
  outline: none;
}
.ext-sim-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ext-sim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}
.ext-sim-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.ext-sim-toggle-wrap input {
  cursor: pointer;
}
.ext-sim-row-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.ext-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
.ext-metric-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.2rem;
  text-align: center;
}
.ext-metric-title {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
}
.ext-metric-value {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}
.ext-requests-list {
  max-height: 140px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ext-req-item {
  background: var(--bg-subtle);
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.ext-req-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}
.ext-badge-html { background: var(--primary-subtle); color: var(--primary-text); }
.ext-badge-image { background: var(--success-subtle); color: var(--success); }
.ext-badge-video { background: #fed7aa; color: #9a3412; }
.ext-badge-audio { background: #fce7f3; color: #9d174d; }
.ext-req-url {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ext-req-cost {
  font-weight: 600;
  color: var(--text);
}
.ext-empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 0.75rem 0;
  font-size: 0.75rem;
}

/* ============================================================
   Specific Page Synthesizer Layouts
   ============================================================ */

/* 1. Hacker News Authentic Layout */
.hn-container {
  max-width: 900px;
  margin: 0 auto;
  background: #f6f6ef;
  color: #222;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  padding-bottom: 2rem;
}
.hn-header {
  background: #ff6600;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10pt;
  color: #222;
}
.hn-logo-box {
  border: 1px solid #ffffff;
  padding: 0 4px;
  color: #ffffff;
  font-weight: bold;
}
.hn-brand {
  font-weight: bold;
}
.hn-nav-links {
  display: flex;
  gap: 6px;
  font-size: 9pt;
}
.hn-nav-links a {
  color: #222 !important;
  text-decoration: none;
}
.hn-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}
.hn-row {
  line-height: 1.4;
}
.hn-rank {
  color: #828282;
  text-align: right;
  padding-right: 4px;
  width: 28px;
  vertical-align: top;
}
.hn-vote {
  vertical-align: top;
  width: 14px;
  padding-top: 2px;
}
.hn-arrow {
  display: inline-block;
  cursor: pointer;
  color: #828282;
  font-size: 9px;
  transition: color 0.1s ease;
  user-select: none;
}
.hn-arrow:hover, .hn-arrow.voted {
  color: #ff6600;
}
.hn-title-cell {
  vertical-align: top;
  padding-left: 4px;
}
.hn-story-title {
  color: #000000 !important;
  text-decoration: none;
  font-weight: 500;
}
.hn-story-title:hover {
  text-decoration: underline;
}
.hn-domain {
  color: #828282;
  font-size: 8pt;
  margin-left: 4px;
}
.hn-subtext {
  font-size: 7pt;
  color: #828282;
  padding-left: 4px;
  margin-bottom: 6px;
}
.hn-subtext a {
  color: #828282 !important;
}
.hn-subtext a:hover {
  text-decoration: underline;
}
.hn-comment-tree {
  padding: 1rem;
}
.hn-comment-item {
  margin-bottom: 1rem;
  line-height: 1.45;
}
.hn-comment-header {
  font-size: 8pt;
  color: #828282;
  margin-bottom: 4px;
}
.hn-comment-text {
  font-size: 9pt;
  color: #000;
}
.hn-add-comment-box {
  background: #f6f6ef;
  border-top: 1px solid #e0e0d8;
  padding: 1rem 0;
  margin-top: 1rem;
}
.hn-add-comment-box textarea {
  width: 100%;
  max-width: 500px;
  height: 60px;
  font-family: monospace;
  font-size: 9pt;
  padding: 4px;
  border: 1px solid #aaa;
  display: block;
  margin-bottom: 6px;
}
.hn-add-comment-box button {
  background: #fff;
  border: 1px solid #828282;
  padding: 2px 8px;
  font-size: 9pt;
  cursor: pointer;
}

/* 2. YouTube Video Watch Layout */
.yt-watch-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .yt-watch-grid {
    grid-template-columns: 1fr;
  }
}
.yt-player-container {
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}
.yt-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.yt-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.yt-btn-play {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
}
.yt-scrub-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.yt-scrub-fill {
  width: 25%;
  height: 100%;
  background: #ff0000;
  border-radius: 2px;
}
.yt-camera-badge {
  background: rgba(255,0,0,0.8);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.yt-video-details {
  margin-top: 1rem;
}
.yt-video-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.yt-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.yt-channel-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.yt-channel-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-btn-sub {
  background: #cc0000;
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.yt-btn-sub.subscribed {
  background: var(--bg-subtle);
  color: var(--text);
  border: 1px solid var(--border);
}
.yt-btn-like {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.yt-desc-box {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.yt-upnext-item {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  transition: background 0.12s ease;
}
.yt-upnext-item:hover {
  background: var(--bg-hover);
}
.yt-upnext-thumb {
  width: 120px;
  height: 68px;
  border-radius: 6px;
  background: #000;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.yt-upnext-thumb svg {
  width: 100%;
  height: 100%;
}
.yt-upnext-dur {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 2px;
  font-family: var(--font-mono);
}
.yt-upnext-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.yt-upnext-channel {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* 3. Paul Kinlan Developer Blog Layout */
.pk-blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.pk-author-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pk-avatar-svg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}
.pk-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}
.pk-nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.pk-nav a:hover {
  color: var(--primary);
}
.pk-podcast-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pk-podcast-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pk-podcast-details {
  flex: 1;
}
.pk-audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}
.pk-bar {
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
  height: 6px;
  transition: height 0.1s ease;
}
.pk-bar.animating {
  animation: eqBounce 0.6s infinite alternate ease-in-out;
}
@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 22px; }
}
.pk-article-full {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}
.pk-article-full h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.pk-article-full .meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.pk-article-full p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.pk-article-full pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.25rem 0;
}

/* 4. E-Commerce Store & Cart Layout */
.shop-hero {
  background: linear-gradient(135deg, var(--primary-subtle) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.shop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.shop-thumb {
  height: 120px;
  background: var(--bg-subtle);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-btn-add {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.12s ease;
}
.shop-btn-add:hover {
  background: var(--primary-hover);
}
.shop-cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.shop-cart-table th, .shop-cart-table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.shop-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.shop-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.shop-checkout-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  max-width: 440px;
}

/* 5. Wikipedia & Reddit Procedural Layouts */
.wiki-layout {
  max-width: 840px;
  margin: 0 auto;
  line-height: 1.6;
}
.wiki-infobox {
  float: right;
  width: 260px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  padding: 0.75rem;
  margin: 0 0 1rem 1.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
}
.wiki-infobox-header {
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
}
.wiki-toc {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: inline-block;
  border-radius: 6px;
  margin: 1rem 0;
  font-size: 0.85rem;
}
.wiki-toc ol {
  padding-left: 1.25rem;
}
.wiki-link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

/* Reddit Layout */
.reddit-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}
.reddit-vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-dim);
}
.reddit-vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
}
.reddit-vote-btn:hover {
  color: #ff4500;
}

/* Iframe for Live AI Mode */
.sim-iframe-viewport {
  width: 100%;
  height: 580px;
  border: none;
  display: block;
}

/* Feature Sections */
.features-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}
.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.feature-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--primary-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CLI & Config Generator */
.cli-section {
  padding: 4rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cli-builder {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
}
@media (max-width: 860px) {
  .cli-builder {
    grid-template-columns: 1fr;
  }
}
.cli-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.control-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.control-select, .control-input {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}
.control-select:focus, .control-input:focus {
  border-color: var(--primary);
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.25rem;
}

.cli-output-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.code-card {
  background: #14171d;
  color: #f1f3f5;
  border-radius: var(--radius-lg);
  border: 1px solid #282e3a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.code-card-header {
  background: #0d0f12;
  border-bottom: 1px solid #282e3a;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #9ba3b0;
}
.btn-copy {
  background: #1c2028;
  border: 1px solid #282e3a;
  color: #f1f3f5;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-copy:hover {
  background: #252b36;
}
.code-card pre {
  padding: 1rem;
  font-size: 0.85rem;
  overflow-x: auto;
  line-height: 1.5;
}

/* Architecture & Spec Tables */
.spec-section {
  padding: 4rem 0;
}
.spec-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.spec-table th, .spec-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  background: var(--bg-subtle);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spec-table tr:last-child td {
  border-bottom: none;
}
.spec-table code {
  background: var(--bg-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
