/* ==========================================================================
   Bits, LLC - Obsidian / Wasp Dark Theme
   ========================================================================== */

:root {
  /* Core palette - Obsidian dark with Wasp amber accent */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161e;
  --bg-card-hover: #1c1c28;

  --text-primary: #e8e8ed;
  --text-secondary: #8888a0;
  --text-muted: #555568;

  --accent: #e6a817;
  --accent-glow: #e6a81766;
  --accent-dim: #e6a81733;

  --border: #2a2a3a;
  --border-hover: #3a3a50;

  --nav-bg: rgba(10, 10, 15, 0.85);

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   Theme: Light
   ========================================================================== */

[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #eaeaef;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f5;

  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #8888a0;

  --accent: #c48a0a;
  --accent-glow: #c48a0a44;
  --accent-dim: #c48a0a22;

  --border: #d0d0dd;
  --border-hover: #b0b0c0;

  --nav-bg: rgba(245, 245, 247, 0.9);
}

/* ==========================================================================
   Theme: Terminal
   ========================================================================== */

[data-theme="terminal"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f0f;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;

  --text-primary: #33ff33;
  --text-secondary: #22aa22;
  --text-muted: #117711;

  --accent: #00ff41;
  --accent-glow: #00ff4166;
  --accent-dim: #00ff4133;

  --border: #1a3a1a;
  --border-hover: #2a5a2a;

  --nav-bg: rgba(10, 10, 10, 0.92);

  --font-sans: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="terminal"] body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.03) 2px,
    rgba(0, 255, 65, 0.03) 4px
  );
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Canvas background */
#nodeGraph {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  user-select: none;
}

.logo-bracket {
  color: var(--accent);
}

.logo-text {
  color: var(--text-primary);
  margin: 0 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  transition: color 0.25s ease;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-data-link {
  color: var(--accent) !important;
  opacity: 0.7;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.nav-data-link:hover {
  opacity: 1 !important;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  max-width: 700px;
}

.hero-tag {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.glow {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-dim);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.prompt-caret {
  color: var(--accent);
}

.prompt-text {
  color: var(--text-secondary);
}

.prompt-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */

.stack, .showcase, .about, .music, .gallery, .team {
  position: relative;
  z-index: 1;
  padding: 6rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.accent {
  color: var(--accent);
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* ==========================================================================
   Stack Grid
   ========================================================================== */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stack-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stack-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.stack-card h3 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.card-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   Showcase Grid
   ========================================================================== */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.showcase-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.showcase-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.showcase-item.featured {
  grid-column: 1 / -1;
  border-color: var(--accent-dim);
}

.showcase-item.featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-dim);
}

.showcase-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 1rem;
}

.badge-data {
  color: var(--accent);
  background: var(--accent-dim);
}

.showcase-item h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.showcase-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
}

.showcase-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.showcase-link.live {
  color: var(--accent);
}

.showcase-link.live:hover {
  text-shadow: 0 0 10px var(--accent-glow);
}

.showcase-link.soon {
  color: var(--text-muted);
  font-style: italic;
}

/* Showcase tech tags */
.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.showcase-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Showcase module highlights */
.showcase-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.showcase-module {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.8;
}

.showcase-module::before {
  content: '>';
  margin-right: 0.3rem;
  opacity: 0.5;
}

/* Badge variants */
.badge-platform {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
}

.badge-web {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}

.badge-fiction {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   Music Player
   ========================================================================== */

.genre-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.genre-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.genre-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.genre-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.now-playing {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.np-info {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.np-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.np-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.np-genre {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.np-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.np-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  border-radius: 50%;
}

.np-btn:hover {
  color: var(--text-primary);
}

.np-play {
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent) !important;
  border-radius: 50%;
  color: var(--accent);
}

.np-play:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.np-play.playing svg {
  display: none;
}

.np-play.playing::after {
  content: '❚❚';
  font-size: 14px;
  letter-spacing: 2px;
}

.np-progress {
  flex: 1;
  min-width: 200px;
}

.progress-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar:hover {
  height: 6px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.track:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
}

.track.active {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}

.track.active .track-name {
  color: var(--accent);
}

.track-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 24px;
}

.track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.track-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.track-genre {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.track-play {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.track:hover .track-play,
.track.active .track-play {
  color: var(--accent);
}

.track.hidden {
  display: none;
}

/* ==========================================================================
   Image Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow: 0 0 20px var(--accent-dim);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.75rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lb-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lb-title {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.2s ease;
  z-index: 1001;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  color: var(--accent);
}

.lb-close {
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
}

.lb-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lb-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

/* ==========================================================================
   Team
   ========================================================================== */

.team {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-group {
  margin-bottom: 3rem;
}

.team-group:last-child {
  margin-bottom: 0;
}

.team-group-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.team-card:hover::before {
  opacity: 1;
}

.team-card-header {
  margin-bottom: 0.75rem;
}

.team-name {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.team-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-brief {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  border-top: 1px solid var(--border);
}

.about-content {
  max-width: 650px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-text strong {
  color: var(--text-primary);
}

.about-tagline {
  font-family: var(--font-mono);
  color: var(--accent) !important;
  font-size: 1rem !important;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.footer-llc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .stack, .showcase, .about, .music, .gallery, .team {
    padding: 4rem 1.5rem;
  }

  .now-playing {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .np-controls {
    justify-content: center;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-item.featured {
    grid-column: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .hero-prompt {
    font-size: 0.8rem;
    padding: 0.7rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.75rem;
  }

  .stack-grid, .showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Animations - fade in on scroll
   ========================================================================== */

.stack-card,
.showcase-item,
.gallery-item,
.team-card,
.rule {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease, border-color 0.3s ease;
}

.stack-card.visible,
.showcase-item.visible,
.gallery-item.visible,
.team-card.visible,
.roadmap-card.visible,
.rule.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Roadmap Page
   ========================================================================== */

.roadmap-hero {
  position: relative;
  z-index: 1;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.roadmap-hero-content {
  text-align: center;
  max-width: 700px;
}

.roadmap-section {
  position: relative;
  z-index: 1;
  padding: 3rem 2.5rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Pipeline strip */
.roadmap-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
}

.pipeline-stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  flex: 1;
  max-width: 220px;
  text-align: center;
}

.pipeline-stage h4 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.pipeline-stage p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pipeline-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.4;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .roadmap-pipeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .pipeline-stage {
    max-width: 100%;
    width: 100%;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }
}

/* Legacy rules strip (unused) */
.roadmap-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.rule {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.rule-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
}

.rule h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.rule p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Project cards */
.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
}

.roadmap-card:hover {
  border-color: var(--border-hover);
}

.roadmap-card.active-project {
  border-color: var(--accent-dim);
}

.roadmap-card.active-project:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-dim);
}

.roadmap-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.roadmap-order {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}

.active-project .roadmap-order {
  opacity: 0.8;
  text-shadow: 0 0 20px var(--accent-glow);
}

.roadmap-card-title {
  flex: 1;
}

.roadmap-card-title h3 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.roadmap-oneliner {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  min-height: 2.8em;
}

.roadmap-badges {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Stage badges */
.stage-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
}

.stage-active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.stage-shipped {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.stage-waiting {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.stage-queued {
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

/* Type badges */
.type-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
}

.type-oss {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}

.type-saas {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
}

.type-fiction {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.type-ai {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.15);
}

.type-personal {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
}

/* Progress bar */
.roadmap-progress {
  margin-bottom: 1.25rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.progress-pct {
  color: var(--accent);
}

.roadmap-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.roadmap-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1s ease;
}

.active-project .roadmap-bar-fill {
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Criteria checklist */
.roadmap-criteria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex: 1;
  align-content: start;
}

.criteria-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0;
  color: var(--text-secondary);
}

.criteria-item.done::before {
  content: '\2713 ';
  color: #22c55e;
  margin-right: 0.3rem;
}

.criteria-item.pending::before {
  content: '\25CB ';
  color: var(--text-muted);
  margin-right: 0.3rem;
}

/* Tags reuse showcase-tag from main styles */
.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

/* Card footer */
.roadmap-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.roadmap-scope {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Nav active state */
.nav-active {
  color: var(--accent) !important;
}

/* Responsive roadmap */
@media (max-width: 768px) {
  .roadmap-section {
    padding: 2rem 1rem 3rem;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-rules {
    grid-template-columns: 1fr;
  }

  .roadmap-card-header {
    flex-wrap: wrap;
  }

  .roadmap-badges {
    width: 100%;
  }

  .roadmap-criteria {
    grid-template-columns: 1fr;
  }

  .roadmap-card-footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .roadmap-section {
    padding: 1.5rem 0.75rem 2rem;
  }

  .roadmap-hero-content {
    padding: 0 1rem;
  }
}
