/* demo.css - Reality Kernel Original Theme */

.demo-page {
  background-color: var(--bg-elev-0);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.demo-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  position: relative;
}

/* Tour Card (Top Center) */
.tour-card {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 520px;
  max-width: 100%;
  box-shadow: var(--shadow-card);
  position: absolute;
  top: 100px;
  z-index: 20;
}

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

.tour-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tour-dots {
  display: flex;
  gap: 6px;
}

.tour-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: all 0.2s ease;
}

.tour-dots .dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.tour-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  min-height: 48px;
}

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

/* Central Stage */
.demo-stage {
  position: relative;
  width: 640px;
  max-width: 100%;
  margin-top: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-snippet {
  width: 100%;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hidden {
  display: none !important;
}

/* Stage 1/4: Chat UI */
.chat-mock {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.chat-msg {
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 85%;
  box-shadow: var(--shadow);
}
.user-msg {
  background: #0f172a;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.user-msg.injection {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 13px;
  font-family: var(--font-mono);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
  margin-top: -8px;
}
.agent-msg {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.typing-indicator { color: var(--text-muted); font-style: italic; }

/* Stage 2/5: Terminal */
.term-mock {
  background: #09090b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid #27272a;
}
.term-header {
  background: #18181b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #27272a;
}
.term-header .mac {
  width: 10px; height: 10px; border-radius: 50%;
}
.term-header .mac.red { background: #ef4444; }
.term-header .mac.yellow { background: #eab308; }
.term-header .mac.green { background: #22c55e; }
.term-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
}
.term-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #e4e4e7;
  line-height: 1.6;
  min-height: 80px;
}
.term-cursor { animation: blink 1s step-end infinite; }

/* Stage 3/6: RK Intercept Alert */
.rk-alert-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.rk-alert-card.block-red {
  border: 1px solid var(--block-line);
  border-top: 4px solid var(--block);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.15);
}
.rk-alert-card.block-red .alert-head { color: var(--block); }

.rk-alert-card.allow-green {
  border: 1px solid var(--ok-line);
  border-top: 4px solid var(--ok);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}
.rk-alert-card.allow-green .alert-head { color: var(--ok); }

.alert-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  margin-bottom: 16px;
}
.alert-head svg { width: 24px; height: 24px; }
.alert-body p { margin: 0 0 16px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.alert-body code { font-size: 13px; font-family: var(--font-mono); }
.rk-alert-card.block-red .alert-body code { color: var(--block); background: var(--block-soft); }
.rk-alert-card.allow-green .alert-body code { color: var(--ok); background: var(--ok-soft); }

/* Stage 7: Dashboard Mock */
.dashboard-card {
  box-shadow: var(--shadow-card);
}
.dashboard-card h3 {
  margin: 0 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 16px;
}

/* Stage 8: Compliance Mock */
.compliance-card {
  box-shadow: var(--shadow-card);
}
.compliance-card h3 {
  margin: 0 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 16px;
}
.comp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comp-item {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: 6px;
  background: var(--bg-elev-0);
}
.comp-item strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--text); }
.comp-item span { display: block; font-size: 13px; color: var(--text-muted); }

/* Stage 9: Verifier Mock */
.verifier-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.verifier-card .sig-result {
  display: block;
  box-shadow: var(--shadow-card);
}

/* Stage 10: IDE Mock */
.ide-mock {
  background: #09090b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid #27272a;
}
.ide-body {
  padding: 24px;
}
.ide-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: #e4e4e7;
}
.tk-k { color: #c49bff; }
.tk-c { color: #71717a; font-style: italic; }
.tk-f { color: #8ab4f8; }
.tk-s { color: #2dd4bf; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink { 50% { opacity: 0; } }
