/*
 * ============================================================================
 * Meru Technologies Website
 * meru-technologies.com
 *
 * Copyright (c) 2026 Meru Technologies LLC.
 * All Rights Reserved.
 * ============================================================================
 *
 * Author: V.Bandarupalli
 * Date: 2026-08-07
 */

/* Guided demo tour (/demo.html): chapter nav + browser-framed shots.
   Colors come from the --meru-* tokens in site.css, never hardcoded. */

.demo-nav {
  position: sticky;
  top: 73px; /* below the sticky .site-header (72px nav + 1px border) */
  z-index: 40;
  background: color-mix(in srgb, var(--meru-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--meru-line);
}
.demo-nav .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
  /* centered when there is room; "safe" keeps the first pills reachable
     when the row overflows and scrolls on small screens */
  justify-content: safe center;
}
.demo-nav a {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--meru-ink-muted);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.demo-nav a:hover { color: var(--meru-ink); }
.demo-nav a.active {
  color: var(--meru-gold);
  border-color: var(--meru-line);
  background: var(--meru-card);
}

.demo-chapter { padding: 72px 0 24px; scroll-margin-top: 140px; }
.demo-chapter .kicker {
  color: var(--meru-gold);
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.demo-chapter h2 { margin: 0 0 10px; }
.demo-chapter .lede {
  color: var(--meru-ink-muted);
  line-height: 1.7;
  margin: 0 0 18px;
}
.demo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.demo-points li {
  font-size: 0.82rem;
  color: var(--meru-ink-muted);
  border: 1px solid var(--meru-line);
  border-radius: 999px;
  padding: 5px 12px;
}

/* Browser-framed screenshot */
.demo-shot {
  border: 1px solid var(--meru-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--meru-card);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55);
}
.demo-shot + .demo-shot { margin-top: 26px; }
.demo-shot .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--meru-line);
}
.demo-shot .bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--meru-line);
  display: inline-block;
}
.demo-shot .bar span {
  margin-left: 10px;
  font-size: 0.72rem;
  color: var(--meru-ink-muted);
  font-family: Menlo, Consolas, monospace;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-shot img { display: block; width: 100%; height: auto; }
.demo-shot figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--meru-ink-muted);
  border-top: 1px solid var(--meru-line);
}

@media (max-width: 720px) {
  .demo-chapter { padding-top: 48px; }
}

/* Overview video (top of the tour) — YouTube embed of the published
   channel upload (privacy-enhanced host, no cookies before play). */
.demo-video { padding: 24px 0 8px; }
.demo-video .video-frame {
  margin: 0 auto;
  max-width: 980px;
}
.demo-video .video-embed {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--meru-line, #2a2620);
  background: var(--meru-bg-deep, #0d0b08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.demo-video .video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.demo-video figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--meru-ink-muted, #8a8172);
  font-size: 0.95rem;
}
