/* Demo Showcase Styles */

.hero-demo-showcase {
  max-width: 800px;
  margin: 2rem auto;
}

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

.demo-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #00D9FF;
  text-transform: uppercase;
}

.demo-tabs {
  display: flex;
  gap: 0.5rem;
}

.demo-tab {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #A0A0B0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-tab:hover {
  border-color: rgba(0, 217, 255, 0.3);
  color: #E0E0E0;
}

.demo-tab.active {
  background: rgba(0, 217, 255, 0.1);
  border-color: #00D9FF;
  color: #00D9FF;
}

/* Terminal Container */
.terminal-container {
  background: #0f111a; /* Darker, flatter background for terminal realism */
  border: 1px solid #333; /* Sharper border */
  border-radius: 6px; /* Reduced radius for more technical feel */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; /* Enforce monospace strictly */
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px; /* Tighter padding */
  background: #1a1c25; /* Distinct header bg */
  border-bottom: 1px solid #333;
}

.terminal-header .dot {
  width: 10px; /* Slightly smaller dots */
  height: 10px;
  border-radius: 50%;
}

.terminal-header .dot.red { background: #ff5f56; }
.terminal-header .dot.yellow { background: #ffbd2e; }
.terminal-header .dot.green { background: #27ca40; }

.terminal-title {
  margin-left: auto;
  font-size: 12px;
  color: #888; /* Muted title */
  font-family: inherit;
}

.terminal-body {
  padding: 1rem;
  font-family: inherit; /* Inherit monospace */
  font-size: 13px; /* Standard terminal size */
  line-height: 1.5; /* Standard terminal leading */
  max-height: 500px;
  overflow-y: auto;
  color: #d4d4d4; /* Default terminal text color */
}

/* Scrollbar styling for realism */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
  background: #0f111a;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Demo Command */
.demo-command {
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #333; /* Dashed line for command separation */
}

.command-prompt {
  color: #00d9ff; /* Prompt color */
  margin-right: 8px;
  font-weight: bold;
}

/* Tool Execution Lines */
.tool-execution {
  color: #6b7280; /* Dimmed for execution lines */
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-execution::before {
  content: "→";
  color: #4b5563;
}

/* Demo Sections */
.demo-section {
  margin-bottom: 1rem;
  padding-left: 1rem; /* Indent output */
  border-left: 2px solid #333; /* Thread line */
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.tool-name {
  font-weight: bold;
}

/* Specific Tool Colors - adjusted for terminal visibility */
.tool-name.gigathink { color: #facc15; } /* Yellow-400 */
.tool-name.laserlogic { color: #22d3ee; } /* Cyan-400 */
.tool-name.bedrock { color: #f97316; } /* Orange-500 */
.tool-name.proofguard { color: #34d399; } /* Emerald-400 */
.tool-name.brutalhonesty { color: #f43f5e; } /* Rose-500 */

.tool-output {
  color: #d1d5db; /* Gray-300 */
}

.tool-output ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-output li {
  margin-bottom: 0.2rem;
  padding-left: 1rem;
  position: relative;
}

.tool-output li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #6b7280;
}

/* Highlight keywords in output */
.tool-output strong {
  color: #fff;
  font-weight: 600;
}

/* Verdict Box - ASCII art style */
.demo-verdict {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid #00d9ff;
  border-radius: 4px;
  color: #00d9ff;
}

.verdict-label {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.verdict-main {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Terminal Footer info */
.terminal-footer-info {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .demo-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .demo-tabs {
    flex-wrap: wrap;
  }
  
  .demo-tab {
    font-size: 12px;
    padding: 0.4rem 0.75rem;
  }
  
  .terminal-body {
    font-size: 11px;
    padding: 1rem;
  }
  
  .demo-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Instant Value Preview Styles */
.value-preview-container {
  margin: 2rem auto;
  max-width: 800px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.4);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.preview-tabs {
  display: flex;
  background: rgba(3, 5, 8, 0.5);
  border-bottom: 1px solid rgba(75, 85, 99, 0.4);
  padding: 0.25rem;
  gap: 0.25rem;
}

.preview-tab {
  flex: 1;
  padding: 0.75rem 0.5rem;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px; /* Rounded buttons instead of underlining */
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.preview-tab:hover {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.05);
}

.preview-tab.active {
  color: #22d3ee;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.1);
}

.preview-window {
  padding: 2rem;
}

.preview-question {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 2rem;
  text-align: center;
  
  /* Gradient text effect */
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #f9fafb; /* Fallback */
  
  /* Subtle text shadow for depth */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.preview-question::before,
.preview-question::after {
  content: '"';
  color: rgba(138, 92, 246, 0.5); /* Purple accent */
  -webkit-text-fill-color: rgba(138, 92, 246, 0.5); /* Override gradient */
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

.preview-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .preview-comparison {
    grid-template-columns: 1fr 1fr;
  }
}

.preview-side {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.preview-side.typical {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.preview-side.reasonkit {
  background: linear-gradient(135deg, rgba(138, 92, 246, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
  border-color: rgba(138, 92, 246, 0.3);
  box-shadow: 
    0 0 0 1px rgba(138, 92, 246, 0.1),
    0 4px 24px rgba(138, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.preview-side:hover {
  transform: translateY(-4px);
  z-index: 1;
}

.preview-side.typical:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.preview-side.reasonkit:hover {
  border-color: rgba(138, 92, 246, 0.5);
  box-shadow: 0 0 40px rgba(138, 92, 246, 0.2);
}

/* Staggered animation */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preview-side {
  animation: slideUpFade 0.6s ease-out forwards;
}

.preview-side.typical { animation-delay: 0.1s; }
.preview-side.reasonkit { animation-delay: 0.2s; }

.preview-label {
  font-size: 0.75rem;
  font-weight: 700; /* Increased weight */
  text-transform: uppercase;
  letter-spacing: 0.1em; /* Increased spacing */
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-side.reasonkit .preview-label {
  color: #22d3ee;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.3); /* Glow effect */
}

.preview-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e5e7eb;
}

.preview-side.reasonkit .preview-text {
    font-weight: 500;
}

@media (max-width: 768px), (prefers-reduced-transparency: reduce) {
  .value-preview-container {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(17, 24, 39, 0.92);
  }

  .preview-side {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .preview-side.typical {
    background: rgba(17, 24, 39, 0.85);
  }
}
