/* ── Demo page styles — mirrors theme.css, adds demo-specific layout ── */

:root {
  --bg: #0d0d12;
  --bg2: #111118;
  --bg3: #16161e;
  --fg: #e8e4dc;
  --fg-muted: #8a8680;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.15);
  --red: #f87171;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(245, 166, 35, 0.3);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'IBM Plex Mono', monospace; }

/* ── NAV ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 18px; color: var(--fg); }
.nav-badge {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; background: rgba(52,211,153,0.12); color: var(--green);
  border: 1px solid rgba(52,211,153,0.25); padding: 2px 8px; border-radius: 4px;
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-status { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--fg-muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.nav-cta {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--fg-muted);
  text-decoration: none; border: 1px solid var(--border); padding: 6px 14px;
  border-radius: 6px; transition: color 0.2s, border-color 0.2s;
}
.nav-cta:hover { color: var(--fg); border-color: var(--border-accent); }

/* ── HERO ── */
.demo-hero {
  padding: 72px 48px 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative; overflow: hidden;
}
.demo-hero::before {
  content: ''; position: absolute; top: -150px; right: -80px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.06) 0%, transparent 70%); pointer-events: none;
}
.demo-hero-inner { max-width: 900px; margin: 0 auto; }
.hero-eyebrow { margin-bottom: 24px; }
.pulse-badge-sm {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--accent);
  border: 1px solid var(--border-accent); background: var(--accent-dim); padding: 4px 12px; border-radius: 20px;
}
.pulse-dot-sm {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 6px var(--accent); animation: pulse-green 1.5s infinite;
}
.demo-headline {
  font-family: 'IBM Plex Mono', monospace; font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700; line-height: 1.05; letter-spacing: -2.5px; color: var(--fg);
  margin-bottom: 20px;
}
.demo-sub {
  font-size: 18px; color: var(--fg-muted); max-width: 560px; line-height: 1.7; margin-bottom: 40px;
}
.demo-stats-row {
  display: flex; align-items: center; gap: 0; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; width: fit-content;
}
.dstat { padding: 14px 28px; background: var(--bg2); text-align: center; }
.dstat-num { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 22px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.dstat-label { font-size: 11px; color: var(--fg-muted); font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.05em; }
.dstat-sep { width: 1px; height: 48px; background: var(--border); }

/* ── AGENT BARS ── */
.agent-bars {
  padding: 16px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.agent-bar-wrap { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.agent-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 16px;
}
.agent-bar-left { display: flex; align-items: center; gap: 10px; color: var(--fg-muted); }
.agent-name { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; color: var(--fg); }
.agent-bar-right { display: flex; align-items: center; gap: 16px; }
.ab-status {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; padding: 2px 8px; border-radius: 4px;
}
.ab-status.active { color: var(--green); background: var(--green-dim); border: 1px solid rgba(52,211,153,0.2); }
@keyframes ab-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.ab-pulse { animation: ab-pulse 1s ease-in-out; }
.ab-metric { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--fg-muted); }

/* ── FEEDS ── */
.feeds-section { padding: 48px 48px 64px; }
.feeds-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.feed-panel {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.feed-panel-header {
  padding: 18px 20px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.fp-label { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; color: var(--fg); }
.fp-badge {
  display: flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--green);
  border: 1px solid rgba(52,211,153,0.2); background: var(--green-dim);
  padding: 3px 8px; border-radius: 12px;
}
.feed-panel-subheader {
  padding: 8px 20px 14px;
  font-size: 12px; color: var(--fg-muted); line-height: 1.5; border-bottom: 1px solid var(--border);
}
.feed-events { display: flex; flex-direction: column; }

/* ── EVENT CARD ── */
.event-card {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.event-card:last-child { border-bottom: none; }
.event-header { display: flex; align-items: center; justify-content: space-between; }
.event-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
}
.type-escalate { color: var(--red); background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.2); }
.type-reply   { color: var(--green); background: var(--green-dim); border: 1px solid rgba(52,211,153,0.2); }
.type-classify { color: var(--fg-muted); background: rgba(138,134,128,0.1); border: 1px solid var(--border); }
.type-posted  { color: var(--green); background: var(--green-dim); border: 1px solid rgba(52,211,153,0.2); }
.type-monitor { color: var(--accent); background: var(--accent-dim); border: 1px solid var(--border-accent); }
.event-time { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--fg-muted); }
.event-from { font-size: 12px; color: var(--fg-muted); }
.from-label { color: var(--fg-muted); font-family: 'IBM Plex Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }
.event-subject { font-size: 14px; font-weight: 500; color: var(--fg); line-height: 1.4; }
.event-classification { display: flex; align-items: center; gap: 6px; }
.cl-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; padding: 2px 7px; border-radius: 4px;
}
.urgency-high   { color: var(--red); background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.2); }
.urgency-medium { color: var(--accent); background: var(--accent-dim); border: 1px solid var(--border-accent); }
.urgency-low    { color: var(--fg-muted); background: rgba(138,134,128,0.1); border: 1px solid var(--border); }
.type-tag { color: var(--fg-muted); background: rgba(138,134,128,0.08); border: 1px solid var(--border); }
.event-summary { font-size: 13px; color: var(--fg-muted); line-height: 1.55; }

/* ── REPLY BLOCK ── */
.event-reply {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px;
}
.reply-label {
  display: flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--green); text-transform: uppercase; margin-bottom: 8px;
}
.reply-body { font-size: 12px; color: var(--fg-muted); line-height: 1.6; font-style: italic; }

/* ── TWEET CARD ── */
.tweet-card {}
.tweet-content { font-size: 14px; color: var(--fg); line-height: 1.6; font-style: italic; }
.tweet-outcome {
  display: flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--green);
}

/* ── VIDEO CARD ── */
.video-card {}
.video-header {
  display: flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600;
  color: var(--accent); margin-bottom: 12px;
}
.video-placeholder {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; min-height: 140px;
}
.vp-inner { text-align: center; padding: 20px; }
.vp-icon { margin-bottom: 12px; opacity: 0.6; }
.vp-text { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--fg); margin-bottom: 6px; }
.vp-sub { font-size: 12px; color: var(--fg-muted); margin-bottom: 10px; }
.vp-url {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent);
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  padding: 4px 12px; border-radius: 6px; display: inline-block;
}

/* ── HOW IT WORKS ── */
.hiw-demo {
  padding: 64px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.hiw-demo-inner { max-width: 900px; margin: 0 auto; }
.hiw-demo-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 24px; font-weight: 700;
  color: var(--fg); letter-spacing: -0.5px; margin-bottom: 36px;
}
.hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.hiw-item { background: var(--bg); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.hiw-ico { width: 44px; height: 44px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.hiw-step { font-family: 'IBM Plex Mono', monospace; font-size: 32px; font-weight: 700; color: var(--accent); opacity: 0.25; line-height: 1; margin-bottom: 4px; }
.hiw-name { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600; color: var(--fg); }
.hiw-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.65; }
.hiw-desc strong { color: var(--fg); font-weight: 500; }

/* ── CTA ── */
.demo-cta {
  padding: 80px 48px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.demo-cta-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cta-headline {
  font-family: 'IBM Plex Mono', monospace; font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; color: var(--fg); letter-spacing: -1.5px; margin-bottom: 16px;
}
.cta-sub { font-size: 16px; color: var(--fg-muted); line-height: 1.7; margin-bottom: 40px; }
.cta-btn-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; }
.btn-primary {
  background: var(--accent); color: #0d0d12; font-family: 'IBM Plex Mono', monospace;
  font-size: 14px; font-weight: 700; padding: 12px 28px; border-radius: 8px;
  text-decoration: none; letter-spacing: -0.2px; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  background: transparent; color: var(--fg-muted); font-family: 'IBM Plex Mono', monospace;
  font-size: 14px; font-weight: 500; padding: 12px 24px; border-radius: 8px;
  border: 1px solid var(--border); text-decoration: none; transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: var(--fg); border-color: var(--border-accent); }
.cta-url-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cta-url-label { font-size: 11px; color: var(--fg-muted); }
.cta-url { font-size: 11px; color: var(--accent); }

/* ── FOOTER ── */
.footer { padding: 32px 48px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 15px; color: var(--fg); }
.footer-tagline { font-size: 12px; color: var(--fg-muted); }
.footer-links { font-size: 12px; color: var(--fg-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 14px 24px; }
  .demo-hero { padding: 48px 24px 40px; }
  .feeds-section { padding: 32px 24px; }
  .feeds-grid { grid-template-columns: 1fr; }
  .hiw-demo { padding: 48px 24px; }
  .hiw-grid { grid-template-columns: 1fr; }
  .demo-cta { padding: 64px 24px; }
  .footer { padding: 28px 24px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .cta-btn-row { flex-direction: column; }
  .demo-stats-row { flex-wrap: wrap; }
  .agent-bars { padding: 12px 24px; }
}