/* Description: Styles for the Hub Demo section  */
/* Container for the Hub Demo section */
:root {
  --neon:         #39ff14;
  --neon-dim:     #1a7a09;
  --neon-faint:   rgba(57,255,20,0.07);
  --bg:           #0c0c0c;
  --bg-card:      #111;
  --bg-card-2:    #161616;
  --border:       #242424;
  --text:         #e2e2e2;
  --muted:        #666;
  --accent-amber: #f59e0b;
  --accent-blue:  #3b82f6;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', 'Roboto Mono', monospace;
}

.demo-page { background: var(--bg); min-height: 100vh; padding-top: 90px; padding-bottom: 80px; }

/* ── BREADCRUMB ─────────────────────────────────────────────────────────── */
.hub-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
  margin-bottom: 28px;
}
.hub-breadcrumb a { color: var(--muted); text-decoration: none; }
.hub-breadcrumb a:hover { color: var(--neon); }
.hub-breadcrumb .sep { color: var(--border); }

/* ── DEMO HEADER ─────────────────────────────────────────────────────────── */
.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.demo-header-left { display: flex; align-items: center; gap: 16px; }
.demo-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--neon-faint);
  border: 1px solid rgba(57,255,20,0.2);
  display: grid; place-items: center; flex-shrink: 0;
}
.demo-icon i { color: var(--neon); font-size: 1.2rem; }
.demo-icon.ebook { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }
.demo-icon.ebook i { color: var(--accent-amber); }

.demo-title-group h1 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 5px;
  line-height: 1.2;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  border: 1px solid rgba(57,255,20,0.3);
  border-radius: 999px;
  padding: 3px 10px;
}
.demo-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 5px var(--neon);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* ── PROGRESS BAR ────────────────────────────────────────────────────────── */
.demo-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}
.demo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-dim), var(--neon));
  border-radius: 2px;
  width: 20%; /* represents ~20% free preview */
  transition: width 0.8s ease;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ── DEMO CONTENT AREA ──────────────────────────────────────────────────── */
.demo-content-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* toolbar */
.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}
.toolbar-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.toolbar-dot.red   { background: #f43f5e; }
.toolbar-dot.amber { background: #f59e0b; }
.toolbar-dot.green { background: var(--neon); }
.toolbar-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.06em;
}

/* content body */
.demo-body {
  padding: 32px 36px;
  font-size: 0.88rem;
  color: #c4c4c4;
  line-height: 1.85;
  min-height: 280px;
}
.demo-body.ebook-mode {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.92rem;
  max-width: 680px;
  margin: 0 auto;
}
.demo-body.tool-mode {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #9a9a9a;
  white-space: pre-wrap;
}

/* chapter header */
.chapter-header {
  border-left: 3px solid var(--neon);
  padding-left: 16px;
  margin-bottom: 20px;
}
.chapter-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 4px;
}
.chapter-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* ── FADE / LOCK OVERLAY ────────────────────────────────────────────────── */
.demo-lock-wrap {
  position: relative;
}
.demo-fade-mask {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
}

/* ── LOCK CTA CARD ───────────────────────────────────────────────────────── */
.lock-cta {
  background: linear-gradient(135deg, var(--bg-card), #141e14);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-top: 4px;
}
.lock-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(57,255,20,0.08);
  border: 1px solid rgba(57,255,20,0.25);
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.lock-icon i { color: var(--neon); font-size: 1.2rem; }
.lock-cta h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.lock-cta p {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto 22px;
  line-height: 1.65;
}
.lock-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}
.cta-btn-neon { background: var(--neon); color: #000; }
.cta-btn-neon:hover {
  background: #4fff28;
  box-shadow: 0 0 18px rgba(57,255,20,0.35);
  color: #000; text-decoration: none;
}
.cta-btn-amber {
  background: rgba(245,158,11,0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245,158,11,0.3);
}
.cta-btn-amber:hover {
  background: rgba(245,158,11,0.28);
  color: var(--accent-amber); text-decoration: none;
}
.cta-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.cta-btn-ghost:hover {
  border-color: var(--neon-dim);
  color: var(--neon); text-decoration: none;
}

/* ── FADE UP ─────────────────────────────────────────────────────────────── */
.fade-up { opacity:0; transform:translateY(16px); animation:fadeUp 0.45s forwards; }
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }
