/* ==========================================================================
   e-Rating Showcase Presentation Stylesheet
   Modern, Dark Theme with Purple Accent & Responsive 16:9 Scaling
   ========================================================================== */

:root {
  /* Theme Colors - Easy to customize accent color */
  --accent-primary: #8b5cf6;       /* Violet / Purple */
  --accent-hover: #7c3aed;         /* Deep Purple */
  --accent-glow: rgba(139, 92, 246, 0.35);
  --accent-subtle: rgba(139, 92, 246, 0.12);
  --accent-border: rgba(139, 92, 246, 0.3);

  /* Secondary Accents */
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);
  --emerald-subtle: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --rose: #f43f5e;
  --cyan: #06b6d4;

  /* Backgrounds & Surfaces */
  --bg-deep: #07090e;
  --bg-base: #0b0f19;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(31, 41, 55, 0.95);
  --bg-glass: rgba(17, 24, 39, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  /* Dimensions */
  --stage-aspect: 16 / 9;
  --header-height: 60px;
  --footer-height: 68px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Presentation Wrapper */
#presentation-app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
              var(--bg-deep);
  position: relative;
  overflow: hidden;
}

/* Background Subtle Grid Pattern */
.bg-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

/* ──────────────────────────────────────────────────────────
   Top Header Bar
   ────────────────────────────────────────────────────────── */
.showcase-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-primary), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-glow);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--accent-subtle);
  color: #c4b5fd;
  border: 1px solid var(--accent-border);
  font-weight: 500;
}

.header-center-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slide-title-mini {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Picker */
.theme-picker-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: 20px;
}

.theme-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  padding: 0;
}

.theme-color-dot:hover {
  transform: scale(1.25);
}

.theme-color-dot.active {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* Timer Ring & Auto Play Badge */
.timer-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.timer-ring-svg {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2.5;
  fill: none;
}

.timer-ring-fill {
  stroke: var(--accent-primary);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 56.5;
  stroke-dashoffset: 56.5;
  transition: stroke-dashoffset 0.1s linear;
}

.timer-status-text {
  font-variant-numeric: tabular-nums;
  min-width: 38px;
}

/* Header Buttons */
.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-icon.active {
  background: var(--accent-subtle);
  color: #c4b5fd;
  border-color: var(--accent-border);
}

/* ──────────────────────────────────────────────────────────
   16:9 Viewport Stage Container
   ────────────────────────────────────────────────────────── */
.stage-outer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  padding: 12px 24px;
  overflow: hidden;
}

.stage-viewport {
  width: 100%;
  height: 100%;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* Slide Panels Container */
.slides-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98) translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s;
  pointer-events: none;
}

.slide-panel.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Slide Header */
.slide-top {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slide-pill-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.slide-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--accent-subtle);
  color: #c4b5fd;
  border: 1px solid var(--accent-border);
}

.slide-headline {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #ffffff;
}

.slide-subline {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
  max-width: 900px;
}

/* Slide Content Body */
.slide-body {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

/* ──────────────────────────────────────────────────────────
   Fragments (Step-by-step builds within a slide)
   ────────────────────────────────────────────────────────── */
.fragment {
  opacity: 0.25;
  transform: translateY(6px);
  filter: blur(1px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fragment.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.fragment.highlighted {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 20px var(--accent-glow) !important;
}

/* ──────────────────────────────────────────────────────────
   Slide 1: Title Slide
   ────────────────────────────────────────────────────────── */
.title-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-right: 20px;
}

.title-tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.title-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.title-pill.featured {
  background: var(--accent-subtle);
  color: #ddd6fe;
  border-color: var(--accent-border);
}

.title-main-h1 {
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 30%, #c4b5fd 80%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-tagline {
  font-size: 1.35rem;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.35;
  margin-bottom: 20px;
  max-width: 820px;
}

.title-brief-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-primary);
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
  max-width: 860px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.title-footer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.title-hashtags {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.hashtag-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #a78bfa;
}

/* ──────────────────────────────────────────────────────────
   Slide 2: Problem Grid
   ────────────────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), transparent);
}

.problem-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.12);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.problem-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.problem-stat {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: #fda4af;
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────────
   Slide 3: Solution Pillar
   ────────────────────────────────────────────────────────── */
.solution-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 24px;
}

.solution-hero-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.solution-hero-banner blockquote {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.solution-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-subtle);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}

.pillar-tech-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  align-self: flex-start;
}

/* ──────────────────────────────────────────────────────────
   Slide 4: Key Features Cards
   ────────────────────────────────────────────────────────── */
.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-box:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.feature-box-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-box-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.feature-box-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.feature-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* ──────────────────────────────────────────────────────────
   Slides 5-10: Architecture & Flow Walkthrough Layout
   ────────────────────────────────────────────────────────── */
.flow-walkthrough-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.flow-step-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  overflow-y: auto;
}

.step-card-header {
  margin-bottom: 16px;
}

.step-number-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #a78bfa;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.step-card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.step-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.step-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.step-item-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  margin-top: 7px;
  flex-shrink: 0;
}

.step-code-preview {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #cbd5e1;
  overflow-x: auto;
  line-height: 1.4;
  margin-top: auto;
}

.step-code-preview .keyword { color: #f43f5e; }
.step-code-preview .function { color: #38bdf8; }
.step-code-preview .string { color: #a7f3d0; }
.step-code-preview .comment { color: #64748b; }

/* Diagram Canvas Wrapper */
.diagram-canvas-wrap {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.arch-svg-root {
  width: 100%;
  height: 100%;
  max-width: 900px;
  max-height: 520px;
}

/* SVG Diagram Component Styling */
.node-box {
  transition: all 0.35s ease;
  cursor: pointer;
}

.node-rect {
  fill: #131b2e;
  stroke: #334155;
  stroke-width: 1.5;
  rx: 10;
  transition: all 0.35s ease;
}

.node-title {
  fill: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
  transition: fill 0.3s;
}

.node-subtitle {
  fill: #94a3b8;
  font-size: 11px;
  text-anchor: middle;
  font-family: var(--font-mono);
}

.trust-boundary-line {
  stroke: #6366f1;
  stroke-dasharray: 6 6;
  stroke-width: 2;
  opacity: 0.6;
}

.trust-label {
  fill: #818cf8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-anchor: middle;
  text-transform: uppercase;
}

/* Connection Flow Lines */
.flow-path {
  fill: none;
  stroke: #334155;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.35s ease, stroke-width 0.35s ease, opacity 0.35s ease;
}

.flow-label {
  fill: #94a3b8;
  font-size: 10.5px;
  font-weight: 500;
  text-anchor: middle;
  transition: fill 0.35s ease, font-weight 0.35s ease;
}

.flow-label-bg {
  fill: #0b0f19;
  opacity: 0.85;
  rx: 4;
}

/* Dynamic Diagram Highlighting States */
.diagram-dimmed .node-box:not(.highlighted),
.diagram-dimmed .flow-group:not(.highlighted) {
  opacity: 0.22;
  filter: grayscale(0.6);
}

.node-box.highlighted .node-rect {
  fill: #1e1b4b;
  stroke: var(--accent-primary);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.node-box.highlighted .node-title {
  fill: #ffffff;
}

.flow-group.highlighted .flow-path {
  stroke: var(--accent-primary);
  stroke-width: 3.5;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.flow-group.highlighted .flow-label {
  fill: #e0e7ff;
  font-weight: 700;
}

/* Animated Data Packet */
.packet-dot {
  fill: #38bdf8;
  filter: drop-shadow(0 0 6px #38bdf8);
}

/* ──────────────────────────────────────────────────────────
   Slide 11: Security & Threat Model
   ────────────────────────────────────────────────────────── */
.security-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: 100%;
}

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.security-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.security-threat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.threat-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.threat-badge.critical {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.threat-badge.shield {
  background: var(--emerald-subtle);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.security-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.security-guarantee-box {
  background: rgba(16, 185, 129, 0.06);
  border-left: 3px solid var(--emerald);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #a7f3d0;
  line-height: 1.35;
  margin-top: auto;
}

/* ──────────────────────────────────────────────────────────
   Slide 12: Tech Stack Highlights
   ────────────────────────────────────────────────────────── */
.tech-stack-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.tech-column {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.tech-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-col-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-subtle);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-col-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.tech-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-item-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tech-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tech-item-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ──────────────────────────────────────────────────────────
   Slide 13: Live Demo / Screenshots Tabs
   ────────────────────────────────────────────────────────── */
.demo-showcase-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 16px;
}

.demo-tabs-bar {
  display: flex;
  gap: 10px;
}

.demo-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.demo-tab-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: #ddd6fe;
}

.demo-browser-window {
  flex: 1;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.demo-browser-chrome {
  height: 38px;
  background: #090e1a;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}

.demo-traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.traffic-dot.red { background: #ef4444; }
.traffic-dot.yellow { background: #f59e0b; }
.traffic-dot.green { background: #10b981; }

.demo-url-bar {
  flex: 1;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 3px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-portal-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  margin-left: auto;
}

.demo-content-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: none;
}

.demo-content-body.active {
  display: block;
}

/* Realistic Mock UI Inside Browser Window */
.mock-ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.mock-ui-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.mock-status-pill {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--emerald-subtle);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.mock-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-card-info h5 {
  font-size: 0.95rem;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.mock-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #93c5fd;
}

/* Verifier 3-Step Verification Checklist Mock */
.verify-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 10px 16px;
}

.check-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #d1fae5;
}

.check-pill-ok {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

/* ──────────────────────────────────────────────────────────
   Slide 14: Future Work & Q&A
   ────────────────────────────────────────────────────────── */
.future-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  width: 100%;
}

.future-roadmap-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.future-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.future-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-subtle);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.future-item-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.future-item-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.qa-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qa-card h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.qa-card p {
  font-size: 0.95rem;
  color: #c4b5fd;
  margin-bottom: 24px;
  max-width: 300px;
}

.qa-actions {
  display: flex;
  gap: 12px;
}

/* ──────────────────────────────────────────────────────────
   Bottom Control & Navigation Bar
   ────────────────────────────────────────────────────────── */
.showcase-footer {
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.footer-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-medium);
}

.btn-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-nav-primary {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-nav-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 60px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Slide Dots Navigation Bar */
.dots-track-wrap {
  flex: 1;
  max-width: 520px;
  margin: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), #38bdf8);
  border-radius: 4px;
  width: 7.14%;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-dots-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.4);
}

.slide-dot.active {
  background: var(--accent-primary);
  transform: scale(1.5);
  box-shadow: 0 0 8px var(--accent-primary);
}

.slide-dot::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1e293b;
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-family);
  z-index: 100;
}

.slide-dot:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.footer-mode-toggles {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.mode-pill-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.mode-pill-toggle.autoplay-active {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: #ddd6fe;
}

/* ──────────────────────────────────────────────────────────
   Modal / Drawers: Info & Full Description
   ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.modal-body p {
  margin-bottom: 16px;
}

/* ──────────────────────────────────────────────────────────
   Keyboard Shortcuts Overlay / Help Drawer
   ────────────────────────────────────────────────────────── */
.shortcuts-badge-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

kbd {
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #f8fafc;
  box-shadow: 0 2px 0 #0f172a;
}

/* ──────────────────────────────────────────────────────────
   Accessibility & Reduced Motion
   ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Slide geometry stays fixed; presentation-fit.js scales the 16:9 canvas. */
