
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.demos-hero {
  min-height: 0;
  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: 2rem 1rem 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 {
  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-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  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;
}

.live-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.live-app-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
}

.live-app-card .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}


.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);
  }
}


.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 {
  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: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  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;
}


@media (max-width: 768px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .live-app-grid {grid-template-columns:1fr;}
  
  .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;
  }
}

.funnel-canvas {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  align-content: center;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.92), rgba(36, 18, 8, 0.92));
}

.funnel-stage {
  display: grid;
  gap: 0.35rem;
}

.funnel-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.72);
}

.funnel-value {
  font-size: 1.45rem;
  color: #fff7ef;
}

.funnel-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.funnel-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon1), var(--neon2));
  box-shadow: 0 0 16px rgba(255,159,26,0.35);
  transition: width 0.45s ease;
}

.funnel-canvas.pulse {
  animation: funnelPulse 0.55s ease;
}

@keyframes funnelPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

[data-theme="light"] .demo-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,241,232,0.92));
  border-color: rgba(107,88,73,0.16);
  box-shadow: 0 18px 34px rgba(77,58,37,0.08);
}

[data-theme="light"] .demo-card::before {
  background: radial-gradient(circle at 20% 20%, rgba(196,91,19,0.08), transparent 60%);
}

[data-theme="light"] .demo-canvas {
  background: linear-gradient(180deg, rgba(38, 28, 20, 0.98), rgba(22, 17, 12, 0.98));
  border-color: rgba(107,88,73,0.16);
}

[data-theme="light"] .text-display {
  color: #ffd5b1;
  text-shadow: 0 0 20px rgba(196,91,19,0.28);
}

[data-theme="light"] .monitor-stats {
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(246,235,222,0.92));
}

[data-theme="light"] .stat-row span:first-child,
[data-theme="light"] .feature-content p {
  color: var(--muted);
}

[data-theme="light"] .stat-row span:last-child {
  color: var(--neon1);
}

[data-theme="light"] .feature-item {
  background: rgba(255,255,255,0.88);
  border-color: rgba(107,88,73,0.14);
}

[data-theme="light"] .feature-icon {
  box-shadow: 0 12px 24px rgba(77,58,37,0.08);
}

[data-theme="light"] .bg-canvas {
  opacity: 0.16;
}
