/* ── RESET & VARIABLES (LIGHT MODE EXECUTIVE THEME) ──────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.95);
  
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --border-focus: #94a3b8;
  
  --text: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  
  --accent-blue: #0284c7;
  --accent-cyan: #0891b2;
  --accent-orange: #ea580c;
  --accent-amber: #d97706;
  --accent-green: #10b981;
  --accent-emerald: #059669;
  --accent-purple: #7c3aed;
  --accent-red: #dc2626;

  --grad-blue: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --grad-orange: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-fire: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── DECK & SLIDE SYSTEM ────────────────────────────── */
.deck {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(254, 215, 170, 0.25) 0%, transparent 40%),
              radial-gradient(circle at 85% 85%, rgba(186, 230, 253, 0.3) 0%, transparent 45%),
              var(--bg-main);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 5vw 4.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.97) translateX(30px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s;
  z-index: 1;
  overflow-y: auto;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: scale(1) translateX(0);
  z-index: 2;
}

.slide.past {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97) translateX(-30px);
}

.slide-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── BACKGROUND GLOWS ────────────────────────────────── */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

/* ── TOP HEADER / BRAND BAR ──────────────────────────── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-badge .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--grad-orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.brand-badge span.sub {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--accent-blue);
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

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

.pill-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.pill-btn:hover {
  background: #e2e8f0;
  color: var(--text);
  border-color: var(--border-focus);
}

/* ── BOTTOM NAVIGATION DOCK ──────────────────────────── */
.nav-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-light);
  border-radius: 40px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.dock-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dock-btn:hover {
  background: #f1f5f9;
  color: var(--accent-orange);
}

.dock-counter {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-orange);
  font-family: 'JetBrains Mono', monospace;
  min-width: 55px;
  text-align: center;
}

#progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--grad-orange);
  width: 0%;
  transition: width 0.3s ease;
  z-index: 60;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.4);
}

/* ── TYPOGRAPHY ──────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  margin-bottom: 0.6rem;
}

h1.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
}

h2.slide-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.lead-text {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.6;
}

.grad-text-orange { background: var(--grad-orange); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.grad-text-blue   { background: var(--grad-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.grad-text-green  { background: var(--grad-green); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.grad-text-purple { background: var(--grad-purple); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ── GRID & CARD LAYOUTS ─────────────────────────────── */
.grid { display: grid; gap: 1.5rem; width: 100%; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-1-2 { grid-template-columns: 1fr 1.6fr; }
.grid-2-1 { grid-template-columns: 1.6fr 1fr; }
.grid-1-1 { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.card.glow-orange { border-color: #fed7aa; box-shadow: 0 4px 18px rgba(234, 88, 12, 0.08); }
.card.glow-blue   { border-color: #bae6fd; box-shadow: 0 4px 18px rgba(2, 132, 199, 0.08); }
.card.glow-green  { border-color: #bbf7d0; box-shadow: 0 4px 18px rgba(16, 185, 129, 0.08); }
.card.glow-purple { border-color: #e9d5ff; box-shadow: 0 4px 18px rgba(124, 58, 237, 0.08); }

/* ── REAL UI SCREENSHOT FRAMES (PORTAL SNAPSHOTS) ───── */
.ui-frame {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  position: relative;
  cursor: zoom-in;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.ui-frame:hover {
  transform: scale(1.015);
  border-color: var(--accent-orange);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.ui-frame-header {
  background: #f8fafc;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.ui-frame-dots {
  display: flex;
  gap: 5px;
}
.ui-dot { width: 9px; height: 9px; border-radius: 50%; }
.ui-dot.red { background: #ef4444; }
.ui-dot.yellow { background: #f59e0b; }
.ui-dot.green { background: #10b981; }

.ui-frame-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.ui-frame-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 0.2s;
}

.ui-frame-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  color: #fff;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── FEATURE CHIPS & TAGS ────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chip-orange { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.chip-blue   { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.chip-green  { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.chip-purple { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.chip-red    { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* ── COMPARISON TABLE ────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.compare-table th, .compare-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: #f8fafc;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.compare-table th.highlight {
  background: #ffedd5;
  color: #c2410c;
  border-bottom: 2.5px solid var(--accent-orange);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #f8fafc; }
.compare-table td.highlight { background: #fff7ed; font-weight: 600; color: var(--text); }

.status-bad  { color: #dc2626; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status-good { color: #15803d; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* ── LIGHTBOX ZOOM MODAL ─────────────────────────────── */
#lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
#lightbox-modal.open { display: flex; }
#lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 14px;
  border: 2px solid var(--border-light);
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  object-fit: contain;
  background: #ffffff;
}

/* ── PRESENTER NOTES MODAL (P) ────────────────────────── */
#presenter-modal {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  height: 100%;
  background: #ffffff;
  border-left: 3px solid var(--accent-orange);
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.12);
  z-index: 100;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
#presenter-modal.open { right: 0; }
.pm-header { padding: 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: #f8fafc; }
.pm-body { padding: 1.5rem; overflow-y: auto; flex: 1; font-size: 0.95rem; line-height: 1.65; color: var(--text-muted); }
.pm-body h4 { color: var(--accent-orange); margin: 1.2rem 0 0.4rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; }
.pm-body h4:first-child { margin-top: 0; }
.pm-body ul { margin-left: 1.2rem; margin-bottom: 1rem; }
.pm-body li { margin-bottom: 0.4rem; }
.pm-timer { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 800; color: var(--accent-blue); background: #e0f2fe; padding: 4px 10px; border-radius: 6px; border: 1px solid #bae6fd; }

/* ── MATRIX / SLIDE JUMPER (M) ───────────────────────── */
#matrix-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
#matrix-modal.open { display: flex; }
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 10px;
}
.matrix-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.matrix-card:hover, .matrix-card.active {
  border-color: var(--accent-orange);
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.2);
}
.matrix-num { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--accent-orange); font-weight: 800; margin-bottom: 4px; }
.matrix-title { font-size: 0.92rem; font-weight: 700; color: var(--text); }

@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4, .grid-1-2, .grid-2-1, .grid-1-1 { grid-template-columns: 1fr; }
  #presenter-modal { width: 100%; }
  .matrix-grid { grid-template-columns: repeat(2, 1fr); }
}