/* ==========================================================================
   OMNI AI WORKFLOWS - BLACK & WHITE AI AGENTS DESIGN SYSTEM
   Platform: omni.winplaybox.in
   Aesthetic: Ultra-Minimalist High-Tech Monochrome, Laser Data Lines, 
              Pure Pitch Blacks, Crisp White Highlights, Carbon Glass
   ========================================================================== */

:root {
  --bg-pure: #000000;
  --bg-primary: #050505;
  --bg-secondary: #0c0c0c;
  --bg-card: rgba(18, 18, 18, 0.75);
  --bg-glass: rgba(12, 12, 12, 0.85);
  --bg-input: #0a0a0a;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.35);
  --border-glow: #ffffff;

  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #525252;
  --text-inverse: #000000;

  --accent-white: #ffffff;
  --accent-silver: #d4d4d4;
  --accent-platinum: #e5e5e5;
  --accent-zinc: #71717a;

  --node-bg: rgba(15, 15, 15, 0.9);
  --node-border: #262626;
  --node-border-active: #ffffff;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.9);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.95);
  --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-pure);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-pure);
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: #ffffff;
  color: #000000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

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

/* Buttons (B&W High Contrast) */
.btn-primary {
  background: #ffffff;
  color: #000000;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

/* Main Navigation Tabs Bar */
.main-mode-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  max-width: 620px;
  margin: 1.5rem auto 0 auto;
}

.mode-tab-btn {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.mode-tab-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3rem 0;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.65;
}

/* Generator & Input Cards */
.generator-card {
  max-width: 920px;
  margin: 0 auto 2.5rem auto;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.generator-card:focus-within {
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
}

.prompt-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.prompt-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  resize: vertical;
  min-height: 54px;
  line-height: 1.5;
}

.prompt-input:focus {
  border-color: #ffffff;
  background: #0d0d0d;
}

.quick-prompts-wrapper {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-prompt-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.quick-prompt-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.775rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-prompt-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Studio & Interactive Canvas */
.studio-section {
  padding: 1rem 0 5rem 0;
}

.studio-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  background: #000000;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.workflow-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.workflow-title {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

.workflow-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pipeline-status-indicator {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  display: inline-block;
  animation: pulseWhite 1.5s infinite;
}

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

/* Execution Progress Bar */
.pipeline-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.pipeline-progress-bar {
  height: 100%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff;
  transition: width 0.35s ease;
}

/* Stage Telemetry Strip */
.pipeline-stage-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  background: #080808;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  overflow-x: auto;
}

.stage-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.stage-tag.active {
  color: #000000;
  background: #ffffff;
  font-weight: 700;
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Canvas Viewport */
.canvas-viewport {
  position: relative;
  min-height: 480px;
  max-height: 560px;
  background-color: #030303;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow-x: auto;
  overflow-y: hidden;
  display: block;
}

.pipeline-canvas-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 100%;
  min-height: 480px;
  padding: 3rem 2.5rem;
  box-sizing: border-box;
}

.svg-connections {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

/* SVG Line Animation Cable */
.pipeline-cable {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}

.pipeline-cable.active-stream {
  stroke: #ffffff;
  stroke-width: 3.5;
  stroke-dasharray: 8 6;
  animation: flowLaser 0.5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

.pipeline-cable.completed-stream {
  stroke: #ffffff;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

@keyframes flowLaser {
  from { stroke-dashoffset: 28; }
  to { stroke-dashoffset: 0; }
}

.pipeline-nodes-container {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

/* Node Block - Monochrome & Animated */
.wf-node {
  width: 220px;
  background: var(--node-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--node-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  padding: 1.25rem 1.15rem;
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  user-select: none;
}

.wf-node:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95);
}

.wf-node.executing {
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
  transform: translateY(-4px) scale(1.02);
}

.wf-node.completed {
  border-color: rgba(255, 255, 255, 0.4);
}

.node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.node-type-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.node-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.node-service {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.node-state-pill {
  margin-top: 0.65rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.5rem;
}

.node-port {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid #000000;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.node-port.input { left: -7px; }
.node-port.output { right: -7px; }

/* Console / Log Drawer */
.studio-console {
  background: #000000;
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  max-height: 180px;
  overflow-y: auto;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.log-line {
  margin-bottom: 0.35rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.log-time { color: var(--text-muted); }
.log-source { color: #ffffff; font-weight: 700; }
.log-msg { color: var(--text-secondary); }
.log-msg.success { color: #ffffff; }

/* Multimodal Prompt Replicator & Studio */
.multimodal-studio-section {
  padding: 3rem 0;
}

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

.mm-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.mm-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-pure);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.mm-tab-btn {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.mm-tab-btn.active {
  background: #ffffff;
  color: #000000;
}

.mm-target-selector-box {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mm-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mm-select:focus {
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.mm-input-area {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

/* File Upload Drop Zone */
.file-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.file-dropzone:hover, .file-dropzone.drag-active {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.dropzone-icon {
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.dropzone-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.dropzone-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.dropzone-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
}

/* Media Preview Box */
.media-preview-box {
  background: #080808;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-clear-media {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-media:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.preview-media-wrapper {
  width: 100%;
  max-height: 240px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-media-wrapper video, .preview-media-wrapper img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.media-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
  text-align: center;
}

.metric-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
}

.metric-label {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-val {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.15rem;
}

/* Keyframes Decomposition */
.keyframes-section {
  margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.keyframes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.keyframes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.keyframe-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  aspect-ratio: 16/9;
}

.keyframe-item canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.keyframe-timestamp {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

/* URL Notice & Fallback */
.mm-text-fallback {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.url-notice-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.url-notice-pill svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #ffffff;
}

.prompt-sanitized-banner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.output-sublabel {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
}

.mm-textarea {
  width: 100%;
  height: 85px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  color: #fff;
  font-size: 0.875rem;
  resize: vertical;
  outline: none;
}

.mm-textarea:focus {
  border-color: #ffffff;
}

.mm-output-card {
  background: #020202;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

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

.output-target-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.prompt-output-box {
  background: #080808;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #ffffff;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 120px;
  max-height: 260px;
  overflow-y: auto;
  line-height: 1.6;
}

.prompt-parameters-box, .prompt-negative-box {
  background: #080808;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #d1d1d1;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

/* Pre-Data Prompt Bank */
.pre-data-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.prompt-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
}

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

.prompt-type-pill {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.prompt-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.prompt-snippet {
  background: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  max-height: 120px;
  overflow-y: auto;
}

/* Catalog of Workflows */
.catalog-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cat-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.15rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-tab-btn.active, .cat-tab-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.workflows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.workflow-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95);
}

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

.wf-card-domain {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.wf-card-steps {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wf-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: #fff;
}

.wf-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex: 1;
}

.wf-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.wf-tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wf-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* Footer & Global Elements */
.site-footer {
  background: #000000;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

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

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

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 0.65rem;
}

.footer-links-list a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
}

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open { display: flex; }

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-size: 1.15rem; font-weight: 800; color: #fff; }

.modal-close {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { color: #fff; }

.modal-body { padding: 1.5rem; overflow-y: auto; }

.code-export-box {
  background: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffffff;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 360px;
  overflow-y: auto;
}

/* Workflows Catalog & Prompts Bank */
.catalog-section {
  padding: 4rem 0 6rem 0;
  border-top: 1px solid var(--border-subtle);
}

.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cat-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-tab-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.cat-tab-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.25);
}

.workflows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.workflow-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9);
}

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

.wf-card-domain {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
}

.wf-card-steps {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.wf-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.wf-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.wf-card-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.wf-tech-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.5rem;
}

.wf-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

/* Prompts Bank Cards */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.prompt-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9);
}

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

.prompt-type-pill {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #ffffff;
  color: #ffffff;
}

.prompt-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.prompt-snippet {
  background: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffffff;
  line-height: 1.6;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 992px) {
  .mm-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .prompt-form { flex-direction: column; }
  .pipeline-nodes-container { flex-direction: column; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
