:root {
  --bg-dark: #070B14;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-elevated: #1E293B;
  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-accent: rgba(56, 189, 248, 0.4);
  --border-glow: rgba(16, 185, 129, 0.3);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --accent-sky: #38BDF8;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;
  --accent-purple: #8B5CF6;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow-cyan: 0 0 35px rgba(6, 182, 212, 0.25);
  --shadow-glow-emerald: 0 0 35px rgba(16, 185, 129, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

/* Background Atmosphere Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.95) 0%, #070B14 100%);
}

/* Presentation Container */
.deck-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Top Navigation Bar */
.top-nav {
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #04131A;
  font-family: var(--font-heading);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.brand-logo svg {
  width: 24px;
  height: 24px;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #FFFFFF, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 11px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-capsule {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-capsule .total {
  color: var(--text-muted);
}

.action-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
}

/* Slide Viewport */
.slide-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 32px 48px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97) translateX(30px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateX(0);
}

/* Slide Header */
.slide-header {
  margin-bottom: 24px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.tag-pill.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.tag-pill.amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.slide-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 6px;
  max-width: 900px;
  line-height: 1.5;
}

/* Slide Content Layouts */
.slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  height: 100%;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.glass-card.highlight {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-cyan);
}

.glass-card.highlight-emerald {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-emerald);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hero Section in Slide 1 */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.4) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(to right, #FFFFFF, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 10px;
  line-height: 1.6;
}

.stat-pills-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.stat-pill {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
}

.stat-pill .value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-pill .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Phase Flow Timeline in Slide 2 */
.phase-timeline {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(15, 23, 42, 0.5);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.phase-node {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phase-node:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-cyan);
}

.phase-node.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.15));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.phase-number {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 700;
}

.phase-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phase-detail-panel {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-block h4 {
  font-size: 13px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}

.detail-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* Barcode Simulator in Slide 3 */
.barcode-box {
  background: #FFFFFF;
  color: #000000;
  padding: 20px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.barcode-stripes {
  height: 60px;
  width: 100%;
  background: repeating-linear-gradient(
    to right,
    #000000 0px, #000000 3px,
    #FFFFFF 3px, #FFFFFF 5px,
    #000000 5px, #000000 8px,
    #FFFFFF 8px, #FFFFFF 12px
  );
  border-radius: 2px;
}

.barcode-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

.ai-segment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.ai-pill {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-pill:hover, .ai-pill.selected {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
}

.ai-pill .code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 13px;
}

.ai-pill .desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Multi-Scan Camera Simulator */
.scanner-viewport {
  position: relative;
  width: 100%;
  height: 240px;
  background: #020617;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent-emerald), transparent);
  box-shadow: 0 0 15px var(--accent-emerald);
  animation: scanSweep 2.5s infinite linear;
}

@keyframes scanSweep {
  0% { top: 0; opacity: 0.8; }
  50% { top: 95%; opacity: 1; }
  100% { top: 0; opacity: 0.8; }
}

.bounding-box {
  position: absolute;
  border: 2px solid var(--accent-emerald);
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: flex-start;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #FFFFFF;
}

/* Chart Canvas Container */
.chart-card {
  height: 320px;
  position: relative;
}

/* Interactive Device Simulator in Slide 9 */
.phone-mockup {
  width: 320px;
  height: 520px;
  background: #0B1120;
  border: 6px solid #1E293B;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.phone-screen {
  flex: 1;
  background: #070B14;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: #0F172A;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-avatar {
  width: 32px;
  height: 32px;
  background: var(--accent-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 13px;
}

.chat-avatar svg {
  width: 20px;
  height: 20px;
}

.chat-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
}

.chat-msg.incoming {
  background: #1E293B;
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.outgoing {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Comparison Matrix Table in Slide 10 */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-primary);
  font-family: var(--font-heading);
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.compare-table tr:hover td {
  background: rgba(30, 41, 59, 0.4);
}

.compare-table .badge-legacy {
  color: var(--accent-rose);
  font-weight: 600;
}

.compare-table .badge-platform {
  color: var(--accent-emerald);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bottom Navigation Dock */
.bottom-dock {
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}

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

.nav-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.nav-pill-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.slide-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

/* Slide Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 440px;
  height: 100%;
  background: #0B1120;
  border-left: 1px solid var(--border-subtle);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.drawer-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-item {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-item:hover, .drawer-item.active {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
}

.drawer-item .title {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.drawer-item .index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
}
