/* ==========================================================================
   WAYREEL STYLING SYSTEM
   Retro-Futuristic Cyber / Tech / Monospace Aesthetic
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --font-sans: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Color Palette */
  --bg-base: #030611;
  --bg-surface: #0a0e20;
  --bg-surface-hover: #121832;
  --bg-panel: rgba(10, 14, 32, 0.7);
  --border-color: rgba(0, 242, 254, 0.1);
  --border-color-hover: rgba(139, 92, 246, 0.3);
  --border-color-bright: rgba(0, 242, 254, 0.4);
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  
  /* Accent Colors (Neon) */
  --accent-cyan: #00f2fe;
  --accent-purple: #8b5cf6;
  --accent-pink: #f43f5e;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
  --grad-cyan-purple: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  --grad-dark: linear-gradient(180deg, #0a0e20 0%, #030611 100%);
  
  /* Shadows & Glows */
  --glow-cyan: 0 0 15px rgba(0, 242, 254, 0.25);
  --glow-purple: 0 0 15px rgba(139, 92, 246, 0.25);
  --glow-green: 0 0 15px rgba(16, 185, 129, 0.25);
  --shadow-base: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  
  /* Layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color-hover);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Background Grids & Elements */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
  z-index: 1;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, rgba(139, 92, 246, 0.03) 40%, transparent 70%);
  z-index: 2;
  transition: width 0.3s ease, height 0.3s ease;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}

.gradient-text {
  background: var(--grad-cyan-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Global Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--grad-cyan-purple);
  color: #000;
  border: none;
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  display: inline-block;
  box-shadow: var(--glow-green);
}

/* Header & Nav */
.header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(3, 6, 17, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  gap: 0.75rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.logo-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.logo-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-pink);
  animation: pulse 1.5s infinite;
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

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

.version-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.version-badge:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: var(--glow-green);
}

.codeberg-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}
.codeberg-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

/* Hero Section */
.hero {
  padding: 5rem 0 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  animation: pulse 1.5s infinite;
  box-shadow: var(--glow-cyan);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.terminal-command-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.5;
}
.terminal-command-line:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  color: var(--text-primary);
}
.terminal-command-line .command-text {
  flex-grow: 1;
  overflow-x: auto;
  white-space: nowrap;
}
.terminal-command-line .btn-copy-code {
  flex-shrink: 0;
}

.install-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}
.install-note a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.install-note a:hover {
  text-decoration: underline;
}

.prompt-symbol {
  color: var(--accent-purple);
  font-weight: bold;
  white-space: nowrap;
}
.command-text {
  color: var(--text-primary);
}
.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--accent-cyan);
  font-weight: bold;
}
.vim-cursor {
  background-color: var(--accent-cyan);
  color: #060916;
  font-weight: bold;
  display: inline-block;
  min-width: 0.5em;
  text-align: center;
  animation: vim-cursor-blink 1s step-end infinite;
}
@keyframes vim-cursor-blink {
  50% {
    background-color: transparent;
    color: inherit;
  }
}


/* Desktop Wayland/Sway Simulator */
.desktop-simulator {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base), 0 0 30px rgba(139, 92, 246, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 10;
  aspect-ratio: 16/11.5;
  display: flex;
  flex-direction: column;
}

.desktop-header {
  background: #060916;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  user-select: none;
}

.desktop-workspaces {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.workspace-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
}
.workspace-tab.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.desktop-title {
  color: var(--text-muted);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-status {
  display: flex;
  gap: 1rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  white-space: nowrap;
}

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

.workspace-pane {
  flex-grow: 1;
  flex-shrink: 1;
  min-height: 0;
  display: none;
  position: relative;
  background: #04060d;
}
.workspace-pane.active {
  display: flex;
}

/* Simulator: Terminal */
.sim-terminal {
  width: 90%;
  height: 85%;
  margin: auto;
  background: #060812;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sim-terminal-header {
  background: #0c0f20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
}

.term-dots {
  display: flex;
  gap: 0.35rem;
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-close { background-color: var(--accent-pink); }
.dot-min { background-color: var(--accent-yellow); }
.dot-max { background-color: var(--accent-green); }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.term-recording-hud {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(244, 63, 94, 0.07);
  border: 1px solid rgba(244, 63, 94, 0.15);
  color: var(--accent-pink);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: bold;
}
.hud-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-pink);
  animation: pulse 1s infinite;
}

.sim-terminal-body {
  flex-grow: 1;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cdd6f4;
  overflow-y: auto;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
}

.terminal-line {
  margin-bottom: 0.35rem;
}
.terminal-output {
  color: var(--text-secondary);
}
.terminal-success {
  color: var(--accent-green);
}
.terminal-special {
  color: var(--accent-cyan);
}

.sim-terminal-footer {
  background: #0c0f20;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.sim-terminal-footer .footer-right {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Simulator: GUI Text Editor */
.sim-gui-app {
  width: 90%;
  height: 85%;
  margin: auto;
  background: #0f1222;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-sans);
}

.gui-app-header {
  background: #151930;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.75rem;
}

.gui-app-tabs {
  display: flex;
  gap: 0.25rem;
}

.gui-tab {
  background: #0f1222;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  color: var(--text-secondary);
}
.gui-tab.active {
  background: #0f1222;
  color: var(--text-primary);
  border-top: 2px solid var(--accent-cyan);
}

.gui-app-controls {
  display: flex;
  gap: 0.5rem;
}

.gui-btn {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.03);
  padding: 0.15rem 0.4rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  color: var(--text-secondary);
  cursor: pointer;
}

.gui-app-body {
  flex-grow: 1;
  display: flex;
  background: #0f1222;
}

.gui-editor-lines {
  width: 30px;
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  user-select: none;
}

.gui-editor-content {
  padding: 0.75rem;
  flex-grow: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.gui-app-footer {
  background: #151930;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 0.2rem 0.75rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Simulator: Video Player */
.sim-video-player {
  width: 90%;
  height: 85%;
  margin: auto;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-hud {
  background: rgba(10, 14, 32, 0.95);
  padding: 0.4rem 0.75rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.player-screen {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.player-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent-cyan);
}

.play-icon-big {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-controls {
  background: rgba(10, 14, 32, 0.95);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
}
.player-btn:hover {
  color: var(--accent-cyan);
}

.player-progress-bar {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.player-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--grad-cyan-purple);
}

.player-speed {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
}

/* Simulator Footer Controls */
.desktop-controls {
  background: #060916;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  flex-shrink: 0;
}

.control-btn {
  white-space: nowrap;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: var(--transition);
}
.control-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.control-speed-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-cyan {
  color: var(--accent-cyan);
  font-weight: 700;
}
.status-green {
  color: var(--accent-green);
  font-weight: 700;
}

.control-tabs {
  display: flex;
  gap: 0.25rem;
}

.mini-tab {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition);
}
.mini-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}
.mini-tab.active {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Section Common headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Wayland Recording Pipeline Section */
.pipeline-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.02), transparent 40%);
}

.pipeline-container {
  position: relative;
  width: 100%;
  margin-bottom: 3rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 2.5rem 1rem;
  border-radius: var(--radius-lg);
}

.pipeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.flow-line {
  stroke: var(--border-color);
  stroke-width: 2px;
  fill: none;
}

.flow-line-laser {
  stroke: url(#laserGrad);
  stroke-width: 3px;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 20, 80;
  animation: laserFlow 3s linear infinite;
  display: none;
}

.pipeline-nodes {
  display: flex;
  justify-content: space-around;
  position: relative;
  z-index: 10;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  width: 130px;
}

.node-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-base);
}

.node-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}

.node-sublabel {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
}

/* Node Hover & Active states */
.pipeline-node:hover .node-icon {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  transform: scale(1.1);
  box-shadow: var(--glow-purple);
}

.pipeline-node.active .node-icon {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  box-shadow: var(--glow-cyan);
  transform: scale(1.15);
}

.pipeline-node.active .node-label {
  color: var(--accent-cyan);
}

/* Detail Board for nodes */
.pipeline-detail-board {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
}

.board-header {
  background: #060916;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.tab-indicator {
  color: var(--accent-cyan);
  font-weight: bold;
}
.board-status {
  color: var(--text-muted);
}

.board-body-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.3fr;
  min-height: 200px;
}

.board-text {
  padding: 2rem;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.board-text h4 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.board-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.board-diagram-wrapper, .tech-diagram-wrapper {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  min-height: 200px;
}

.board-code {
  padding: 1.5rem;
  background: #04060d;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: auto;
}
.board-code code {
  color: #cdd6f4;
}

/* Showcase Demos Section */
.examples-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.showcase-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.showcase-tab-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}
.showcase-tab-btn.active {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  display: flex;
  flex-direction: column;
}

.card-bar {
  background: #060916;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
}

.card-dots {
  display: flex;
  gap: 0.35rem;
}

.card-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.card-glow-indicator {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: bold;
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-pink);
  border: 1px solid rgba(244, 63, 94, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.card-content-video {
  flex-grow: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/10;
}

.card-content-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-content-code {
  flex-grow: 1;
  background: #04060d;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  overflow: auto;
  aspect-ratio: 16/10;
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}
.btn-copy-code.btn-cyan {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn-copy-code.btn-cyan:hover {
  background: rgba(0, 242, 254, 0.2);
  color: var(--text-primary);
}

/* DSL Script Highlighting Styles */
.dsl-comment { color: #585b70; font-style: italic; }
.dsl-string { color: var(--accent-green); }
.dsl-setting { color: var(--accent-purple); font-weight: bold; }
.dsl-reel-header { color: var(--accent-pink); font-weight: bold; }
.dsl-command { color: var(--accent-cyan); font-weight: bold; }
.dsl-vhs-key { color: var(--accent-yellow); }
.dsl-modifier { color: var(--accent-pink); }
.dsl-number { color: #f9e2af; }
.dsl-shell-macro { color: var(--accent-yellow); font-weight: bold; }
.dsl-exec-macro { color: var(--accent-pink); font-weight: bold; }

/* DSL Syntax highlighting colors */
.json-key { color: var(--accent-pink); font-weight: 600; }
.json-string { color: var(--accent-green); }
.json-number { color: var(--accent-cyan); }
.json-boolean { color: var(--accent-purple); }
.json-null { color: var(--text-muted); }

/* Fast Mode Section */
.fastmode-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at bottom, rgba(0, 242, 254, 0.015), transparent 45%);
}

.fastmode-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.savings-ticker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ticker-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-base);
}

.ticker-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1.2;
}

.ticker-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Fast Mode Benchmarker Widget */
.fastmode-benchmarker {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-base);
}

.benchmarker-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.status-indicator-mini {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-green);
}

.benchmark-tracks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.benchmark-track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.track-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.neon-cyan {
  color: var(--accent-cyan);
}

.track-bar-bg {
  height: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.02);
}

.track-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 6px;
}
.fill-std {
  background: var(--text-muted);
}
.fill-wr {
  background: var(--grad-cyan-purple);
  box-shadow: var(--glow-cyan);
}

.bench-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.bench-slider-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bench-slider-group label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  cursor: pointer;
  transition: var(--transition);
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.btn-bench-run {
  flex-shrink: 0;
  font-weight: bold;
}

.benchmark-results {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* DSL Sandbox / Compiler Section */
.compiler-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.02), transparent 45%);
}

.compiler-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
}

.editor-template-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.select-cyber {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.select-cyber:focus {
  border-color: var(--accent-cyan);
}

.card-content-editor {
  flex-grow: 1;
  background: #04060d;
  position: relative;
  aspect-ratio: 16/10;
}

.editor-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.editor-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1.5rem;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: transparent;
  color: #f8fafc;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  text-align: left;
}

.editor-highlight code {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: inherit;
  word-wrap: inherit;
  display: block;
  text-align: left;
}

.editor-textarea {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1.5rem;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: transparent !important;
  color: transparent !important;
  caret-color: var(--accent-cyan);
  z-index: 2;
  border: none;
  outline: none;
  resize: none;
  overflow: auto;
  text-align: left;
}

.card-content-json {
  flex-grow: 1;
  background: #04060d;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  overflow: auto;
  aspect-ratio: 16/10;
}

.editor-actions-group {
  display: flex;
  gap: 0.5rem;
}

/* Technical depth section with side-tabs */
.tech-depth-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.tech-tabs-panel {
  display: flex;
  gap: 3rem;
}

.tech-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 280px;
  flex-shrink: 0;
}

.tech-tab-btn {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.tech-tab-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}
.tech-tab-btn.active {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.tech-tab-panes {
  flex-grow: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
}

.tech-tab-pane {
  display: none;
}
.tech-tab-pane.active {
  display: block;
}

.pane-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.3fr;
  min-height: 320px;
}

.pane-text {
  padding: 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.pane-text h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.pane-text p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.pane-code {
  background: #04060d;
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: auto;
}
.pane-code code {
  color: #89b4fa;
}

/* Specs & Limitations Section */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.spec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-base);
}

.spec-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 1rem;
}
.spec-card-header h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 1.25rem;
}
.spec-list li::before {
  content: "»";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.limit-card {
  border-color: rgba(245, 158, 11, 0.1);
}
.limit-card:hover {
  border-color: rgba(245, 158, 11, 0.25);
}
.limit-card .spec-list li::before {
  content: "!";
  color: var(--accent-yellow);
  font-weight: bold;
}

/* Footer styling */
.footer {
  background: #02040a;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 3rem 0;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 6rem;
  margin-bottom: 3rem;
}

.footer-about .logo {
  margin-bottom: 1rem;
}
.footer-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 500px;
}

.footer-privacy h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}
.footer-privacy p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Mock CLI Palette Console Overlay */
.cli-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 6, 17, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cli-modal {
  width: 90%;
  max-width: 640px;
  background: #05070f;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cli-modal-header {
  background: #0a0e1c;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.cli-modal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.cli-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.cli-modal-close:hover {
  color: var(--accent-pink);
}

.cli-modal-body {
  padding: 1.5rem;
  height: 300px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #030408;
}

.cli-log {
  color: #a6e3a1;
}
.cli-log-cmd {
  color: var(--text-primary);
  margin-top: 0.5rem;
}
.cli-log-error {
  color: var(--accent-pink);
}
.cli-log-output {
  color: var(--text-secondary);
  white-space: pre-wrap;
  padding-left: 1rem;
}

.cli-modal-input-row {
  border-top: 1px solid rgba(255,255,255,0.05);
  background: #070a14;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cli-prompt-symbol {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-purple);
  font-weight: bold;
}

.cli-input-box {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  flex-grow: 1;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes laserFlow {
  to {
    stroke-dashoffset: -100;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  html { font-size: 15px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .pipeline-nodes {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .pipeline-node {
    width: 30%;
  }
  .pipeline-svg {
    display: none; /* Hide svg paths on wrap */
  }
  .board-body-grid {
    grid-template-columns: 1fr;
  }
  .board-text {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .board-diagram-wrapper, .tech-diagram-wrapper {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .showcase-layout, .fastmode-grid-layout, .compiler-layout, .pane-grid, .spec-grid, .footer-layout {
    grid-template-columns: 1fr;
  }
  .tech-tabs-panel {
    flex-direction: column;
    gap: 1.5rem;
  }
  .tech-tabs-nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tech-tab-btn {
    flex-grow: 1;
    text-align: center;
  }
  .pane-code {
    aspect-ratio: 16/10;
  }
  .footer-layout {
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  html { font-size: 14px; }
  .container {
    padding: 0 1.25rem;
  }
  /* Drop the fixed aspect ratio so wrapped header/controls
     cannot crush the workspace pane between them. */
  .desktop-simulator {
    aspect-ratio: auto;
  }
  .workspace-pane {
    min-height: 280px;
  }
  .desktop-title {
    display: none;
  }
  .desktop-status .status-item:first-child {
    display: none; /* hide DISPLAY :99, keep the clock */
  }
  .nav-menu {
    display: none; /* Hide menu links on small mobile */
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .pipeline-node {
    width: 45%;
  }
  .showcase-tabs {
    flex-wrap: wrap;
  }
}

/* Custom Mermaid Styling Overrides */
.mermaid {
  font-family: var(--font-mono) !important;
}
.mermaid svg {
  background: transparent !important;
}

/* 1. Mermaid Node Styling (Highly specific to override dynamically loaded ID themes) */
#node-info-diagram svg .node rect,
#node-info-diagram svg .node circle,
#node-info-diagram svg .node polygon,
#node-info-diagram svg .node path,
#diagram-tech-socket svg .node rect,
#diagram-tech-socket svg .node circle,
#diagram-tech-socket svg .node polygon,
#diagram-tech-socket svg .node path,
#diagram-tech-input svg .node rect,
#diagram-tech-input svg .node circle,
#diagram-tech-input svg .node polygon,
#diagram-tech-input svg .node path,
#diagram-tech-cleanup svg .node rect,
#diagram-tech-cleanup svg .node circle,
#diagram-tech-cleanup svg .node polygon,
#diagram-tech-cleanup svg .node path {
  fill: #060916 !important;
  stroke: var(--accent-purple) !important;
  stroke-width: 1.5px !important;
  rx: 6px !important;
  ry: 6px !important;
  transition: var(--transition) !important;
}

/* Node Hover Effect */
#node-info-diagram svg .node:hover rect,
#node-info-diagram svg .node:hover circle,
#node-info-diagram svg .node:hover polygon,
#node-info-diagram svg .node:hover path,
#diagram-tech-socket svg .node:hover rect,
#diagram-tech-socket svg .node:hover circle,
#diagram-tech-socket svg .node:hover polygon,
#diagram-tech-socket svg .node:hover path,
#diagram-tech-input svg .node:hover rect,
#diagram-tech-input svg .node:hover circle,
#diagram-tech-input svg .node:hover polygon,
#diagram-tech-input svg .node:hover path,
#diagram-tech-cleanup svg .node:hover rect,
#diagram-tech-cleanup svg .node:hover circle,
#diagram-tech-cleanup svg .node:hover polygon,
#diagram-tech-cleanup svg .node:hover path {
  fill: #0a0e20 !important;
  stroke: var(--accent-cyan) !important;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.4)) !important;
  cursor: pointer;
}

/* 2. Node Text / Label Styling */
#node-info-diagram svg .node .label,
#diagram-tech-socket svg .node .label,
#diagram-tech-input svg .node .label,
#diagram-tech-cleanup svg .node .label {
  color: var(--text-primary) !important;
  fill: var(--text-primary) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
}

/* 3. Edge / Connection Path Styling */
#node-info-diagram svg .edgePath .path,
#diagram-tech-socket svg .edgePath .path,
#diagram-tech-input svg .edgePath .path,
#diagram-tech-cleanup svg .edgePath .path {
  stroke: var(--accent-purple) !important;
  stroke-width: 1.5px !important;
  opacity: 0.85 !important;
  transition: var(--transition) !important;
}

#node-info-diagram svg .edgePath:hover .path,
#diagram-tech-socket svg .edgePath:hover .path,
#diagram-tech-input svg .edgePath:hover .path,
#diagram-tech-cleanup svg .edgePath:hover .path {
  stroke: var(--accent-cyan) !important;
  stroke-width: 2px !important;
  opacity: 1 !important;
}

/* 4. Arrow Markers */
#node-info-diagram svg .marker,
#node-info-diagram svg marker path,
#diagram-tech-socket svg .marker,
#diagram-tech-socket svg marker path,
#diagram-tech-input svg .marker,
#diagram-tech-input svg marker path,
#diagram-tech-cleanup svg .marker,
#diagram-tech-cleanup svg marker path {
  fill: var(--accent-purple) !important;
  stroke: none !important;
  transition: var(--transition) !important;
}

/* 5. Edge Label Background & Text (Fixes the grey boxes / background panels) */
#node-info-diagram svg .edgeLabel,
#diagram-tech-socket svg .edgeLabel,
#diagram-tech-input svg .edgeLabel,
#diagram-tech-cleanup svg .edgeLabel {
  background-color: transparent !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

#node-info-diagram svg .edgeLabel rect,
#diagram-tech-socket svg .edgeLabel rect,
#diagram-tech-input svg .edgeLabel rect,
#diagram-tech-cleanup svg .edgeLabel rect {
  fill: #060916 !important;
  stroke: rgba(0, 242, 254, 0.25) !important;
  stroke-width: 1px !important;
  rx: 4px !important;
  ry: 4px !important;
}

#node-info-diagram svg .edgeLabel span,
#node-info-diagram svg .edgeLabel .label span,
#diagram-tech-socket svg .edgeLabel span,
#diagram-tech-socket svg .edgeLabel .label span,
#diagram-tech-input svg .edgeLabel span,
#diagram-tech-input svg .edgeLabel .label span,
#diagram-tech-cleanup svg .edgeLabel span,
#diagram-tech-cleanup svg .edgeLabel .label span {
  background-color: #060916 !important;
  background: #060916 !important;
  color: var(--accent-cyan) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.65rem !important;
  font-weight: 500 !important;
  padding: 3px 8px !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid rgba(0, 242, 254, 0.25) !important;
  display: inline-block !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
  letter-spacing: 0.02em !important;
}

/* 6. Subgraph Clusters */
#node-info-diagram svg .cluster rect,
#diagram-tech-socket svg .cluster rect,
#diagram-tech-input svg .cluster rect,
#diagram-tech-cleanup svg .cluster rect {
  fill: rgba(10, 14, 32, 0.4) !important;
  stroke: rgba(0, 242, 254, 0.15) !important;
  stroke-width: 1px !important;
  rx: 8px !important;
  ry: 8px !important;
}

#node-info-diagram svg .cluster .label,
#diagram-tech-socket svg .cluster .label,
#diagram-tech-input svg .cluster .label,
#diagram-tech-cleanup svg .cluster .label {
  color: var(--text-secondary) !important;
  fill: var(--text-secondary) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

