/* Pipeline OS Test Project Styles */
/* Based on design specification by Riff */

/* CSS Variables - Color Palette */
:root {
  /* Primary Colors */
  --deep-blue: #1B365D;
  --bright-cyan: #00D4FF;
  --pure-white: #FFFFFF;
  
  /* Secondary Colors */
  --medium-gray: #6B7280;
  --light-gray: #F9FAFB;
  --success-green: #10B981;
  --warning-orange: #F59E0B;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--medium-gray);
  background-color: var(--pure-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  color: var(--deep-blue);
  font-weight: 700;
}

h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

h2 {
  font-size: 24px;
  margin-bottom: 24px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #2563EB 100%);
  color: var(--pure-white);
  padding: 80px 0;
  text-align: center;
}

.hero-title {
  color: var(--pure-white);
  font-size: 48px;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  border-radius: 50px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.status-label {
  font-weight: 500;
}

.status-value {
  font-weight: 600;
  color: var(--bright-cyan);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning-orange);
  animation: pulse 2s infinite;
}

.status-dot.active {
  background: var(--success-green);
}

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

.cta-button {
  background: var(--bright-cyan);
  color: var(--deep-blue);
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.cta-button:hover {
  background: #00B8E6;
  transform: translateY(-2px);
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background: var(--light-gray);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.stage {
  text-align: center;
  padding: 24px;
  background: var(--pure-white);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.stage.completed {
  border-color: var(--success-green);
}

.stage.active {
  border-color: var(--warning-orange);
  background: #FEF3E2;
}

.stage.pending {
  border-color: #E5E7EB;
  opacity: 0.6;
}

.stage-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
}

.stage.completed .stage-icon {
  background: var(--success-green);
  color: var(--pure-white);
}

.stage.active .stage-icon {
  background: var(--warning-orange);
  color: var(--pure-white);
}

.stage.pending .stage-icon {
  background: #E5E7EB;
  color: var(--medium-gray);
}

.stage h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.stage p {
  font-size: 14px;
  margin: 0;
}

/* Demonstration Section */
.demonstration {
  padding: 80px 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.demo-card {
  background: var(--pure-white);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 32px;
}

.test-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test-form input {
  padding: 12px 16px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-family);
}

.test-form input:focus {
  outline: none;
  border-color: var(--bright-cyan);
}

.test-form button {
  background: var(--deep-blue);
  color: var(--pure-white);
  border: none;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: var(--font-family);
}

.test-form button:hover {
  background: #15293F;
}

.form-response {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: var(--light-gray);
  font-size: 14px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.form-response.success {
  background: #ECFDF5;
  color: var(--success-green);
}

/* Logs Container */
.logs-container {
  background: #1F2937;
  border-radius: 8px;
  padding: 16px;
  height: 200px;
  overflow-y: auto;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.log-entry {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.timestamp {
  color: var(--medium-gray);
  font-weight: 500;
}

.log-text {
  color: #E5E7EB;
}

.log-entry.active .log-text {
  color: var(--bright-cyan);
}

/* Results Section */
.results {
  padding: 80px 0;
  background: var(--light-gray);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.metric-card {
  background: var(--pure-white);
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #E5E7EB;
}

.metric-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: var(--medium-gray);
}

.outputs-list {
  margin-top: 40px;
}

.output-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.output-link {
  padding: 12px 20px;
  background: var(--pure-white);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  text-decoration: none;
  color: var(--deep-blue);
  font-weight: 500;
  transition: all 0.2s ease;
}

.output-link:hover {
  background: var(--bright-cyan);
  color: var(--pure-white);
  border-color: var(--bright-cyan);
}

/* Footer */
.footer {
  background: var(--deep-blue);
  color: var(--pure-white);
  padding: 40px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  color: var(--pure-white);
  margin-bottom: 8px;
}

.footer-brand p,
.footer-tech p {
  opacity: 0.8;
  margin-bottom: 8px;
}

.footer-tech h4 {
  color: var(--bright-cyan);
  font-size: 16px;
  margin-bottom: 8px;
}

.last-updated {
  font-size: 14px;
  color: var(--medium-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  
  .demo-grid,
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .timeline {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .output-links {
    justify-content: center;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}