/* Demos page specific styles */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

.demos-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.demos-hero .hero-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.demos-hero h1 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 1rem 0 0.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Demo Grid */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.demo-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.demo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0,229,255,0.1), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.demo-header {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.demo-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--text);
}

.demo-header p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.demo-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 200px;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.demo-controls {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.demo-controls .btn {
  flex: 1;
  min-width: 120px;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0.6rem 0.8rem;
}

/* Text Effects Demo */
.text-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0,229,255,0.05), transparent);
}

.text-display {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--neon1);
  text-shadow: 0 0 20px var(--neon1);
  animation: textPulse 2s ease-in-out infinite alternate;
}

@keyframes textPulse {
  0% { 
    transform: scale(1);
    text-shadow: 0 0 20px var(--neon1);
  }
  100% { 
    transform: scale(1.05);
    text-shadow: 0 0 30px var(--neon1), 0 0 40px var(--neon2);
  }
}

/* Performance Monitor */
.monitor-stats {
  width: 100%;
  height: 100%;
  padding: 1rem;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.stat-row span:first-child {
  color: var(--muted);
}

.stat-row span:last-child {
  color: var(--neon1);
  font-weight: 700;
}

.chart-container {
  margin-top: 1rem;
  height: 80px;
  position: relative;
}

.chart-container canvas {
  width: 100%;
  height: 100%;
}

/* Feature List */
.feature-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.feature-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--neon1), var(--neon2));
  border-radius: 16px;
  flex-shrink: 0;
}

.feature-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .demo-canvas {
    height: 180px;
  }
  
  .text-display {
    font-size: 1.5rem;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    align-self: center;
  }
}

@media (max-width: 540px) {
  .demo-controls {
    flex-direction: column;
  }
  
  .demo-controls .btn {
    min-width: auto;
  }
  
  .demos-hero .hero-content {
    padding: 2rem 1rem;
  }
}