/**
 * Cadences Interactive Demo Styles
 * Professional, accessible design for all skill levels
 */

/* ============================================
   DEMO CONTAINER
   ============================================ */
.demo-interactive {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   SCENARIO SELECTOR
   ============================================ */
.demo-scenarios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.demo-scenario-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9999px;
  color: rgba(148, 163, 184, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-scenario-btn:hover {
  border-color: rgba(148, 163, 184, 0.4);
  color: white;
  transform: translateY(-2px);
}

.demo-scenario-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
  color: white;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.demo-scenario-btn svg {
  opacity: 0.7;
}

.demo-scenario-btn.active svg {
  opacity: 1;
}

/* ============================================
   MAIN STAGE
   ============================================ */
.demo-stage {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.08);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

/* Progress Steps */
.demo-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.demo-progress-step {
  display: flex;
  align-items: center;
  flex: 1;
}

.demo-progress-step:last-child {
  flex: 0;
}

.demo-progress-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(71, 85, 105, 0.5);
  border: 2px solid rgba(71, 85, 105, 0.8);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.demo-progress-step.active .demo-progress-dot {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.demo-progress-step.current .demo-progress-dot {
  transform: scale(1.3);
}

.demo-progress-line {
  flex: 1;
  height: 2px;
  background: rgba(71, 85, 105, 0.3);
  margin: 0 0.5rem;
  transition: background 0.4s ease;
}

.demo-progress-step.active .demo-progress-line {
  background: linear-gradient(90deg, #6366f1, rgba(99, 102, 241, 0.3));
}

/* Content Area */
.demo-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.demo-content.animating {
  opacity: 0;
  transform: translateY(10px);
}

/* Visual Area */
.demo-visual {
  width: 100%;
  max-width: 320px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text Area */
.demo-text {
  text-align: center;
  max-width: 600px;
}

.demo-step-header {
  margin-bottom: 1rem;
}

.demo-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem 0;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-step-subtitle {
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.demo-step-description {
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.7;
  margin: 0 0 1.25rem 0;
}

.demo-step-tech {
  display: inline-block;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

.demo-step-tech code {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.8);
  font-family: 'JetBrains Mono', monospace;
}

/* Controls */
.demo-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(71, 85, 105, 0.2);
}

.demo-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.demo-btn-prev {
  background: transparent;
  color: rgba(148, 163, 184, 0.7);
}

.demo-btn-prev:hover:not(:disabled) {
  color: white;
}

.demo-btn-prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.demo-btn-next {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.demo-btn-next:hover:not(.completed) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.demo-btn-next.completed {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.demo-dots {
  display: flex;
  gap: 0.5rem;
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(71, 85, 105, 0.5);
  transition: all 0.3s ease;
}

.demo-dot.active {
  background: rgba(148, 163, 184, 0.8);
  transform: scale(1.2);
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.demo-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(71, 85, 105, 0.2);
}

@media (max-width: 768px) {
  .demo-comparison {
    grid-template-columns: 1fr;
  }
}

.demo-comparison-item {
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 1rem;
  border: 1px solid rgba(71, 85, 105, 0.15);
  transition: all 0.3s ease;
}

.demo-comparison-item:hover {
  transform: translateY(-3px);
  border-color: rgba(71, 85, 105, 0.3);
}

.demo-comparison-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-color: rgba(99, 102, 241, 0.3);
  position: relative;
}

.demo-comparison-highlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.demo-comparison-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.demo-comparison-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem 0;
}

.demo-comparison-item p {
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.5;
  margin: 0;
}

.demo-comparison-highlight p {
  color: rgba(226, 232, 240, 0.9);
}

/* ============================================
   VISUAL COMPONENTS
   ============================================ */

/* Card Base */
.demo-visual-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  width: 100%;
  max-width: 280px;
}

.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.demo-card-title {
  font-weight: 700;
  color: #1f2937;
}

.demo-card-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
}

.demo-badge-danger {
  background: #fef2f2;
  color: #dc2626;
}

.demo-card-body {
  padding: 1rem;
}

.demo-customer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.demo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #4b5563;
}

.demo-customer-info {
  display: flex;
  flex-direction: column;
}

.demo-customer-info strong {
  color: #1f2937;
  font-size: 0.95rem;
}

.demo-customer-info span {
  color: #6b7280;
  font-size: 0.8rem;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
}

.demo-status-danger {
  background: #fef2f2;
  color: #dc2626;
}

.demo-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Brain Visual */
.demo-visual-brain {
  text-align: center;
  padding: 1.5rem;
}

.demo-brain-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  animation: brain-pulse 2s infinite;
}

@keyframes brain-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(139, 92, 246, 0); }
}

.demo-brain-thinking {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.demo-typing-dot {
  width: 8px;
  height: 8px;
  background: #a78bfa;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite;
}

.demo-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.demo-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

.demo-brain-output {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.demo-brain-output code {
  font-size: 0.75rem;
  color: #a78bfa;
  font-family: 'JetBrains Mono', monospace;
}

/* Phone Visual */
.demo-visual-phone {
  width: 100%;
  max-width: 260px;
}

.demo-phone-screen {
  background: linear-gradient(180deg, #1f2937, #111827);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 2px solid #374151;
}

.demo-phone-caller {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.demo-phone-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: phone-ring 1s infinite;
}

@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-10deg); }
  20%, 40% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
}

.demo-phone-info {
  display: flex;
  flex-direction: column;
}

.demo-phone-info strong {
  color: white;
  font-size: 0.95rem;
}

.demo-phone-info span {
  color: #9ca3af;
  font-size: 0.8rem;
}

.demo-phone-message {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 1rem;
  color: #10b981;
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.demo-phone-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.demo-phone-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.demo-phone-btn:hover {
  transform: scale(1.1);
}

.demo-btn-decline {
  background: #ef4444;
  color: white;
}

.demo-btn-accept {
  background: #10b981;
  color: white;
}

/* Dashboard Visual */
.demo-visual-dashboard {
  width: 100%;
  max-width: 300px;
  background: #0f172a;
  border-radius: 1rem;
  border: 1px solid #334155;
  overflow: hidden;
}

.demo-dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-dashboard-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  margin: 1rem;
  border-radius: 0.75rem;
}

.demo-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.demo-alert-success svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.demo-alert-success strong {
  display: block;
  color: #34d399;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.demo-alert-success p {
  color: rgba(52, 211, 153, 0.8);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

/* Website Visual */
.demo-visual-website {
  position: relative;
}

.demo-website-header {
  background: #f8fafc;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.demo-website-hero {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: white;
}

.demo-website-hero h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.demo-website-hero p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  opacity: 0.9;
}

.demo-website-badge {
  position: absolute;
  top: 2.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  animation: badge-bounce 1s infinite;
}

@keyframes badge-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Analysis Visual */
.demo-visual-analysis {
  width: 100%;
  max-width: 280px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(71, 85, 105, 0.3);
}

.demo-analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.demo-analysis-header span {
  color: #94a3b8;
  font-size: 0.85rem;
}

.demo-analysis-header strong {
  color: #10b981;
  font-size: 1.25rem;
}

.demo-analysis-bar {
  height: 8px;
  background: #1e293b;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.demo-analysis-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 9999px;
  animation: fill-grow 1s ease-out;
}

@keyframes fill-grow {
  from { width: 0; }
}

.demo-analysis-factors {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.demo-factor {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.demo-factor span:first-child {
  color: #94a3b8;
}

.demo-factor-high {
  color: #10b981;
  font-weight: 600;
}

.demo-analysis-action {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

/* WhatsApp Visual */
.demo-visual-whatsapp {
  width: 100%;
  max-width: 300px;
  background: #075e54;
  border-radius: 1rem;
  overflow: hidden;
}

.demo-wa-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #128c7e;
}

.demo-wa-avatar {
  width: 36px;
  height: 36px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.demo-wa-info strong {
  display: block;
  color: white;
  font-size: 0.9rem;
}

.demo-wa-info span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.demo-wa-messages {
  padding: 1rem;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='a' patternUnits='userSpaceOnUse' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='1' fill='%23ffffff' opacity='0.05'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='%23ece5dd'/%3E%3Crect width='100%25' height='100%25' fill='url(%23a)'/%3E%3C/svg%3E");
  min-height: 100px;
}

.demo-wa-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  position: relative;
}

.demo-wa-incoming {
  background: #dcf8c6;
  color: #303030;
  border-top-left-radius: 0;
  margin-left: 0.5rem;
}

.demo-wa-incoming::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: #dcf8c6 transparent transparent transparent;
}

/* Hybrid Chat Visual */
.demo-visual-hybrid {
  width: 100%;
  max-width: 300px;
  background: #0f172a;
  border-radius: 1rem;
  border: 1px solid #334155;
  overflow: hidden;
}

.demo-hybrid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.demo-hybrid-header span {
  color: #94a3b8;
  font-size: 0.8rem;
}

.demo-hybrid-takeover {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.demo-hybrid-takeover:hover {
  background: #2563eb;
}

.demo-hybrid-chat {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.demo-hybrid-msg {
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  max-width: 80%;
}

.demo-msg-user {
  background: #1e293b;
  color: #e2e8f0;
  align-self: flex-start;
}

.demo-msg-ai {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  align-self: flex-end;
}

.demo-hybrid-typing {
  display: flex;
  gap: 0.3rem;
  padding: 0.6rem 0.9rem;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 0.75rem;
  width: fit-content;
  align-self: flex-end;
}

.demo-hybrid-typing span {
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite;
}

.demo-hybrid-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-hybrid-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Admin Visual */
.demo-visual-admin {
  width: 100%;
  max-width: 260px;
  background: #1e293b;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #334155;
}

.demo-admin-field {
  margin-bottom: 1.25rem;
}

.demo-admin-field label {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.demo-admin-change {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demo-old-value {
  color: #64748b;
  text-decoration: line-through;
  font-size: 1rem;
}

.demo-arrow {
  color: #64748b;
}

.demo-new-value {
  color: #10b981;
  font-size: 1.25rem;
  font-weight: 700;
}

.demo-admin-save {
  width: 100%;
  padding: 0.75rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.demo-admin-save:hover {
  background: #2563eb;
}

/* Build Visual */
.demo-visual-build {
  text-align: center;
}

.demo-build-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.demo-build-block {
  height: 32px;
  background: #334155;
  border-radius: 0.25rem;
  animation: block-pulse 1.5s infinite;
}

.demo-build-block:nth-child(1) { animation-delay: 0s; }
.demo-build-block:nth-child(2) { animation-delay: 0.1s; }
.demo-build-block:nth-child(3) { animation-delay: 0.2s; }
.demo-build-block:nth-child(4) { animation-delay: 0.3s; }
.demo-build-block:nth-child(5) { animation-delay: 0.4s; }
.demo-build-block:nth-child(6) { animation-delay: 0.5s; }
.demo-build-block:nth-child(7) { animation-delay: 0.6s; }
.demo-build-block:nth-child(8) { animation-delay: 0.7s; }

@keyframes block-pulse {
  0%, 100% { background: #334155; }
  50% { background: #475569; }
}

.demo-build-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fbbf24;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.demo-build-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Global Visual */
.demo-visual-global {
  text-align: center;
}

.demo-globe {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.demo-globe svg {
  color: #475569;
}

.demo-globe-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: globe-pulse 2s infinite;
}

@keyframes globe-pulse {
  0%, 100% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
}

.demo-globe-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px #10b981, 0 0 40px rgba(16, 185, 129, 0.5);
}

.demo-global-stats {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Speed Visual */
.demo-visual-speed {
  text-align: center;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 4px solid #10b981;
  width: 100%;
  max-width: 200px;
}

.demo-speed-score {
  font-size: 3.5rem;
  font-weight: 900;
  color: #1f2937;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.demo-speed-label {
  color: #6b7280;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.demo-speed-metric {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 600;
}

.demo-speed-metric svg {
  color: #f59e0b;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .demo-interactive {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .demo-scenarios {
    gap: 0.5rem;
  }

  .demo-scenario-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }

  .demo-scenario-btn span {
    display: none;
  }

  .demo-stage {
    padding: 1.25rem;
    min-height: 420px;
  }

  .demo-progress {
    padding: 0;
  }

  .demo-step-title {
    font-size: 1.25rem;
  }

  .demo-step-description {
    font-size: 0.95rem;
  }

  .demo-controls {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .demo-dots {
    order: -1;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .demo-visual {
    transform: scale(0.9);
  }
}
