/* Shared styles for all demo pages */
:root {
  --bg: #080808;
  --bg-2: #0d0d0d;
  --bg-card: #111111;
  --border: #1a1a1a;
  --border-bright: #262626;
  --accent: #00ff88;
  --accent-glow: rgba(0, 255, 136, 0.2);
  --accent-dim: rgba(0, 255, 136, 0.08);
  --accent2: #00ccff;
  --red: #ff4757;
  --yellow: #ffd93d;
  --text: #c8c8c8;
  --text-dim: #444;
  --text-muted: #777;
  --text-bright: #f0f0f0;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 8px;
  --radius-sm: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3 { font-weight: 800; color: var(--text-bright); line-height: 1.2; }
a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

.demo-header {
  padding: 1.25rem 2rem;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.back-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.demo-header-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-bright);
}
.demo-header-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  margin-left: auto;
}

.demo-main { max-width: 960px; margin: 0 auto; padding: 3rem 2rem; }

.section-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.demo-section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.demo-section:last-child { border-bottom: none; }

.demo-block {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
