/* ══════════════════════════════════════════════════════════════
   llm-d Live Demo Environment — Stylesheet
   ══════════════════════════════════════════════════════════════ */

:root {
  --color-bg: #0f1117;
  --color-surface: #1a1d27;
  --color-surface-raised: #22252f;
  --color-surface-hover: #282c38;
  --color-text: #e8eaf0;
  --color-text-secondary: #9ca3af;
  --color-text-muted: #6b7280;
  --color-border: #2d3140;
  --color-border-light: #373b4a;

  --color-green: #38a169;
  --color-green-bright: #4ade80;
  --color-green-dim: rgba(56, 161, 105, 0.12);
  --color-green-glow: rgba(56, 161, 105, 0.25);

  --color-blue: #3b82f6;
  --color-blue-dim: rgba(59, 130, 246, 0.12);

  --color-red: #ef4444;
  --color-red-dim: rgba(239, 68, 68, 0.12);

  --color-amber: #f59e0b;
  --color-amber-dim: rgba(245, 158, 11, 0.12);

  --color-purple: #8b5cf6;
  --color-purple-dim: rgba(139, 92, 246, 0.12);

  --font-display: 'Red Hat Display', system-ui, sans-serif;
  --font-body: 'Red Hat Text', system-ui, sans-serif;
  --font-mono: 'Red Hat Mono', 'SF Mono', 'Consolas', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: rgba(56, 161, 105, 0.3); }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  background:
    radial-gradient(ellipse at 15% 50%, rgba(56,161,105,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(43,108,176,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(107,70,193,0.03) 0%, transparent 50%),
    var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Animated flowing gradient overlay — very slow, not distracting */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  background:
    radial-gradient(circle at 30% 40%, rgba(56,161,105,0.07) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(43,108,176,0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 30%, rgba(107,70,193,0.04) 0%, transparent 40%);
  animation: meshFloat 30s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Noise texture overlay for premium grain feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -3%) rotate(1deg); }
  66% { transform: translate(-2%, 2%) rotate(-1deg); }
}

/* ── Header ── */
.site-header {
  background: rgba(15, 17, 23, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand { display: flex; align-items: center; gap: 12px; }
.header-logo { width: 26px; height: 26px; border-radius: 5px; }
.header-title { font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.header-subtitle { font-size: 11px; color: var(--color-text-muted); font-weight: 500; margin-left: 8px; }
.header-actions { display: flex; gap: 8px; align-items: center; }

.btn-outline {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-outline:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  text-decoration: none;
}

.btn-reset {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-red-dim);
  color: var(--color-red);
  border: 1px solid rgba(239,68,68,0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reset:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
}

/* ── Layout ── */
.demo-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  min-height: calc(100vh - 56px - 48px);
  position: relative;
  z-index: 1;
}

/* ── Panels ── */
.panel-header { margin-bottom: 16px; }
.panel-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 800; margin-bottom: 4px;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-green-bright) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.panel-subtitle { font-size: 12px; color: var(--color-text-muted); }

.section-title {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-llmd, #276749) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prompt-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 56px - 48px - 40px);
  position: relative;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 8px rgba(0,0,0,0.03),
    0 12px 32px rgba(0,0,0,0.05);
}

.prompt-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-xl) + 1px);
  background: linear-gradient(135deg, rgba(56,161,105,0.3), rgba(59,130,246,0.15), rgba(56,161,105,0.3));
  background-size: 300% 300%;
  animation: borderGlow 6s ease-in-out infinite;
  z-index: -1;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cluster-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* ── Routing Toggle ── */
.routing-toggle {
  display: flex;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 3px;
  border: 1px solid var(--color-border);
}

.routing-toggle-btn {
  flex: 1;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.routing-toggle-btn.active {
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 2px 8px var(--color-green-glow);
}

.routing-toggle-btn:not(.active):hover { color: var(--color-text); }

.routing-toggle-btn[data-mode="roundrobin"].active {
  background: var(--color-red);
  box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}

/* ── Inputs ── */
.input-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  display: block;
}

.system-prompt-display {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  line-height: 1.5;
}

.prompt-input {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  width: 100%;
  resize: vertical;
  line-height: 1.5;
  transition: border-color var(--transition-fast);
}

.prompt-input:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px var(--color-green-dim);
}

/* ── Preset Prompts ── */
.preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-btn {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  border-color: var(--color-green);
  color: var(--color-green-bright);
  background: var(--color-green-dim);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(56,161,105,0.15);
}

.preset-btn:active {
  transform: translateY(0) scale(0.97);
}

/* ── Send Button ── */
.send-btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-green), #2d8659);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.send-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
  0%, 70%, 100% { left: -100%; }
  50% { left: 150%; }
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56,161,105,0.25), 0 8px 32px rgba(56,161,105,0.15);
}

.send-btn:active { transform: translateY(0); }

.send-btn.sending {
  pointer-events: none;
  opacity: 0.7;
}

.send-btn-icon { font-size: 16px; transition: transform var(--transition-fast); }
.send-btn:hover .send-btn-icon { transform: translateX(3px); }

/* ── Request Log ── */
.request-log { flex: 1; min-height: 0; }

.log-entries {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.log-entries::-webkit-scrollbar { width: 4px; }
.log-entries::-webkit-scrollbar-track { background: transparent; }
.log-entries::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.log-empty {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 20px;
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  animation: logSlideIn 0.3s ease;
}

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

.log-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-text-muted);
  width: 20px;
  flex-shrink: 0;
}

.log-prompt {
  flex: 1;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-pod {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.log-ttft {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  width: 60px;
  text-align: right;
  flex-shrink: 0;
}

.log-hit { color: var(--color-green-bright); }
.log-miss { color: var(--color-red); }

.log-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.log-badge--hit { background: var(--color-green-dim); color: var(--color-green-bright); }
.log-badge--miss { background: var(--color-red-dim); color: var(--color-red); }

/* ── Routing Indicator ── */
.routing-indicator {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-base);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 8px rgba(0,0,0,0.03),
    0 12px 32px rgba(0,0,0,0.05);
}

.routing-indicator.active-routing {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.08);
}

.routing-indicator-mode {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.routing-indicator-mode::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 6px var(--color-green-glow);
  animation: liveDot 2s ease-in-out infinite;
}

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

.routing-indicator-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.routing-indicator.active-routing .routing-indicator-status {
  color: var(--color-amber);
}

/* ── Flow Area ── */
.flow-area {
  background: var(--color-surface);
  background-image: radial-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 120px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 8px rgba(0,0,0,0.03),
    0 12px 32px rgba(0,0,0,0.05);
}

.flow-gateway { text-align: center; width: 100%; }

.flow-gateway-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.flow-gateway-box {
  background: var(--color-blue-dim);
  border: 2px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  animation: gatewayIdle 3s ease-in-out infinite;
}

@keyframes gatewayIdle {
  0%, 100% { box-shadow: 0 0 0 rgba(59,130,246,0); }
  50% { box-shadow: 0 0 12px rgba(59,130,246,0.15); }
}

.flow-gateway-box.active {
  border-color: var(--color-green);
  background: var(--color-green-dim);
  box-shadow: 0 0 20px var(--color-green-glow);
  animation: none;
}

.flow-gateway-inner {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-blue);
}

.flow-epp-label {
  color: var(--color-green);
  transition: color var(--transition-fast);
}

.flow-connectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.flow-conn {
  height: 24px;
  display: flex;
  justify-content: center;
  position: relative;
}

.flow-conn::before {
  content: '';
  width: 2px;
  height: 100%;
  background: var(--color-border);
  transition: background var(--transition-base);
}

.flow-conn.active::before {
  background: var(--color-green);
  box-shadow: 0 0 8px var(--color-green-glow);
}

.flow-conn .flow-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green-bright);
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--color-green-glow);
  animation: flowDotDown 0.6s ease-in-out forwards;
}

@keyframes flowDotDown {
  0% { top: -4px; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* ── Pod Cards ── */
.pods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pod-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 8px rgba(0,0,0,0.03),
    0 12px 32px rgba(0,0,0,0.05);
}

.pod-card:hover {
  border-color: var(--color-border-light);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.02),
    0 8px 16px rgba(0,0,0,0.04),
    0 24px 48px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.pod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-amber);
  opacity: 0.5;
}

.pod-card.targeted {
  border-color: var(--color-green);
  box-shadow: 0 0 24px var(--color-green-glow);
}

.pod-card.targeted::before {
  background: var(--color-green);
  opacity: 1;
}

.pod-card.processing {
  animation: podPulse 0.8s ease-in-out;
}

@keyframes podPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(56,161,105,0); }
  50% { box-shadow: 0 0 30px var(--color-green-glow); }
}

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

.pod-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

.pod-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-green-dim);
  color: var(--color-green);
}

.pod-status--busy {
  background: var(--color-amber-dim);
  color: var(--color-amber);
}

/* Pod cache visualization */
.pod-cache-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.pod-cache-blocks {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  margin-bottom: 10px;
}

.cache-block {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  transition: all 0.4s ease;
  position: relative;
}

.cache-block.filled {
  background: var(--color-green-dim);
  border-color: rgba(56,161,105,0.3);
}

.cache-block.filling {
  animation: blockFill 0.4s ease forwards;
}

@keyframes blockFill {
  0% { background: var(--color-surface-raised); border-color: var(--color-border); transform: scale(1); }
  50% { background: var(--color-green); border-color: var(--color-green); transform: scale(1.2); }
  100% { background: var(--color-green-dim); border-color: rgba(56,161,105,0.3); transform: scale(1); }
}

.cache-block.hit {
  animation: blockHit 0.5s ease;
}

@keyframes blockHit {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 8px var(--color-green-bright); background: var(--color-green); }
}

.pod-cache-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-align: center;
}

.pod-cache-pct span { color: var(--color-green); }

/* Pod metrics */
.pod-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.pod-metric {
  text-align: center;
}

.pod-metric-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  text-shadow: 0 0 30px currentColor;
}

.pod-metric-lbl {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-text-muted);
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 8px rgba(0,0,0,0.03),
    0 12px 32px rgba(0,0,0,0.05);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-green), var(--color-blue));
  opacity: 0.4;
  transition: opacity var(--transition-base);
}

.stat-item:hover {
  border-color: var(--color-border-light);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.02),
    0 8px 16px rgba(0,0,0,0.04),
    0 24px 48px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.stat-item:hover::before { opacity: 1; }

.stat-item-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--color-text);
  text-shadow: 0 0 30px currentColor;
}

.stat-item-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ── Response Area ── */
.response-area {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  flex: 1;
  min-height: 120px;
  transition: all var(--transition-base);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 8px rgba(0,0,0,0.03),
    0 12px 32px rgba(0,0,0,0.05);
}

.response-area:has(.response-content) {
  border-color: rgba(56, 161, 105, 0.2);
  box-shadow: 0 4px 20px rgba(56, 161, 105, 0.05);
}

.response-placeholder {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 30px;
  background-image: radial-gradient(rgba(56, 161, 105, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: var(--radius-md);
}

.response-content { animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.response-timing {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.response-timing-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 80px;
}

.response-timing-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.response-timing-val--fast { color: var(--color-green-bright); }
.response-timing-val--slow { color: var(--color-red); }
.response-timing-val--neutral { color: var(--color-text); }

.response-timing-lbl {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.response-body {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.response-body .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--color-green);
  margin-left: 2px;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

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

/* ── Scroll Reveal — Premium easing ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Section Dividers — Gradient line ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,161,105,0.3), rgba(43,108,176,0.2), transparent);
  border: none;
}

/* ── Footer ── */
.site-footer {
  padding: 14px 24px;
  border-top: 1px solid transparent;
  background-image: linear-gradient(var(--color-bg), var(--color-bg)),
                    linear-gradient(90deg, transparent, rgba(56,161,105,0.3), rgba(43,108,176,0.2), transparent);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
}

.footer-dot { margin: 0 8px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
  .prompt-panel {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .demo-layout { padding: 12px; gap: 12px; }
  .pods-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .flow-connectors { display: none; }
}
