/* ── Investor Deck Viewer ──────────────────────────────────────────────────── */

#investor-deck-overlay {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: #050a18;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: idFadeIn 0.3s ease;
  overflow: hidden;
}

@keyframes idFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Header bar ── */
.id-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(5, 10, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  z-index: 10;
}

.id-topbar-brand {
  font-size: 0.82rem;
  font-weight: 800;
  color: #8b5cf6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.id-topbar-progress {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.id-close-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.id-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ── Section tabs ── */
.id-section-tabs {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 14px;
  background: rgba(5, 10, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 9;
}

.id-section-tabs::-webkit-scrollbar { display: none; }

.id-section-tab {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.15s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.id-section-tab:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.id-section-tab.active {
  color: #c4b5fd;
  background: rgba(108, 60, 225, 0.22);
}

.id-section-divider {
  flex-shrink: 0;
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 2px;
}

/* ── Slide canvas ── */
.id-canvas {
  width: 100%;
  max-width: 860px;
  padding: 104px 28px 90px;
  overflow-y: auto;
  max-height: 100vh;
  scrollbar-width: none;
}

.id-canvas::-webkit-scrollbar { display: none; }

/* ── Slide ── */
.id-slide {
  display: none;
  animation: idSlideIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.id-slide.active { display: block; }

@keyframes idSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Nav bar ── */
.id-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(5, 10, 24, 0.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.id-nav-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 9px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}

.id-nav-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.id-nav-btn.primary {
  background: linear-gradient(135deg, #6C3CE1 0%, #8b5cf6 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 18px rgba(108, 60, 225, 0.45);
}

.id-nav-btn.primary:hover {
  box-shadow: 0 8px 28px rgba(108, 60, 225, 0.6);
  transform: translateY(-1px);
}

.id-nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.id-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.id-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s;
}

.id-dot.active {
  background: #8b5cf6;
  width: 18px;
  border-radius: 3px;
}

/* ── Slide typography ── */
.id-eyebrow {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8b5cf6;
  margin-bottom: 14px;
}

.id-h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
}

.id-h1 span {
  background: linear-gradient(135deg, #fff 30%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.id-subhead {
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 640px;
}

.id-h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.15;
}

.id-h2 span {
  background: linear-gradient(135deg, #fff 30%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.id-body {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.75;
  margin: 0 0 16px;
}

/* ── Stat cards ── */
.id-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.id-stat {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
}

.id-stat-num {
  font-size: 1.9rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}

.id-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ── Check list ── */
.id-checks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.id-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.id-checks li::before {
  content: '✓';
  color: #8b5cf6;
  font-weight: 900;
  font-size: 0.88rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Revenue model card ── */
.id-rev-card {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 18px;
  padding: 24px 22px;
  margin-bottom: 16px;
}

.id-rev-title {
  font-size: 1rem;
  font-weight: 800;
  color: #c4b5fd;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.id-rev-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin: 0 0 12px;
}

.id-rev-proj {
  font-size: 0.82rem;
  color: #a78bfa;
  font-weight: 700;
  background: rgba(108, 60, 225, 0.12);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-block;
}

/* ── Projection table ── */
.id-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin: 20px 0;
}

.id-proj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 520px;
}

.id-proj-table th {
  background: rgba(108, 60, 225, 0.18);
  color: #c4b5fd;
  font-weight: 800;
  padding: 12px 14px;
  text-align: right;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
}

.id-proj-table th:first-child { text-align: left; }

.id-proj-table td {
  padding: 11px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: right;
  color: rgba(255, 255, 255, 0.85);
}

.id-proj-table td:first-child { text-align: left; color: rgba(255, 255, 255, 0.85); font-weight: 600; }

.id-proj-table tr.total-row td {
  background: rgba(108, 60, 225, 0.1);
  color: #fff;
  font-weight: 800;
  border-top: 2px solid rgba(139, 92, 246, 0.35);
  font-size: 0.88rem;
}

.id-proj-table tr:hover td {
  background: rgba(139, 92, 246, 0.05);
}

/* ── Competitor grid ── */
.id-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.id-comp-card {
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.id-comp-card.us {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(108, 60, 225, 0.08);
}

.id-comp-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.id-comp-card.us .id-comp-name { color: #c4b5fd; }

.id-comp-miss {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.id-comp-card.us .id-comp-miss {
  color: rgba(196, 181, 253, 0.75);
}

/* ── Roadmap timeline ── */
.id-timeline {
  position: relative;
  padding-left: 28px;
  margin: 20px 0;
}

.id-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, #8b5cf6, rgba(139, 92, 246, 0.1));
  border-radius: 2px;
}

.id-tl-item {
  position: relative;
  margin-bottom: 18px;
}

.id-tl-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.id-tl-item:first-child::before { background: #a78bfa; box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.25); }

.id-tl-period {
  font-size: 0.74rem;
  font-weight: 800;
  color: #a78bfa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.id-tl-desc {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

/* ── Ask / CTA ── */
.id-ask-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.id-ask-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 22px 20px;
}

.id-ask-box.highlight {
  background: linear-gradient(135deg, rgba(108, 60, 225, 0.22) 0%, rgba(139, 92, 246, 0.12) 100%);
  border-color: rgba(139, 92, 246, 0.5);
}

.id-ask-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8b5cf6;
  margin-bottom: 8px;
}

.id-ask-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.id-ask-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.id-funds-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.id-funds-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.id-funds-list li:last-child { border-bottom: none; }

.id-funds-bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #6C3CE1, #8b5cf6);
  flex-shrink: 0;
}

/* ── Hero glow blobs ── */
.id-blob {
  pointer-events: none;
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}

/* ── Confidential banner ── */
.id-confidential {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ── Three-flywheel + cascade flow responsive grids ─────────────────── */
/* On large screens these are 3-col and 7-col inline grids. On mobile   */
/* we override with CSS to stack them properly.                          */
.id-flywheels-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 14px 0; }
.id-cascade-flow   { display: grid; grid-template-columns: repeat(7,1fr); align-items: center; gap: 4px; text-align: center; margin-bottom: 8px; }

/* ── Tablet ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .id-canvas { max-width: 100%; }
}

@media (max-width: 768px) {
  /* Flywheels: 3 cols → 1 col on tablet/mobile */
  .id-flywheels-grid { grid-template-columns: 1fr !important; }
  /* Cascade: 7 cols → 4 cols (More → Richer → Smarter → World, drop arrows) */
  .id-cascade-flow { grid-template-columns: repeat(4,1fr) !important; }
  /* Hide the arrow cells on smaller screens */
  .id-cascade-flow > div:nth-child(2),
  .id-cascade-flow > div:nth-child(4),
  .id-cascade-flow > div:nth-child(6) { display: none !important; }

  /* Canvas: topbar 54px + section tabs 40px = 94px — add 6px buffer */
  .id-canvas { padding: 100px 20px 80px; }
  .id-topbar { padding: 0 14px; }
  .id-topbar-brand { font-size: 0.74rem; }
  /* Keep progress counter visible on tablet — it's the only nav when dots are hidden */
  .id-body { font-size: 0.95rem; }
  .id-stat-num { font-size: 1.6rem; }
  .id-rev-card { padding: 18px 16px; }
  .id-timeline { padding-left: 24px; }
  .id-tl-desc { font-size: 0.88rem; }

  /* NAV: hide the 27-dot row on tablet/mobile — too wide; use topbar counter instead */
  .id-dots { display: none; }
  .id-nav {
    padding: 0 20px;
    justify-content: space-between;
    gap: 0;
  }
  .id-nav-btn { flex: 0 0 auto; padding: 10px 24px; font-size: 0.88rem; }
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  /* BUG FIX: canvas was 70px but section tabs reach 94px — content hid behind tabs */
  .id-canvas { padding: 98px 14px 76px; }
  .id-topbar { padding: 0 10px; }
  .id-topbar-brand { font-size: 0.68rem; letter-spacing: 0.03em; }
  /* Keep progress "5 / 27" visible — it's the nav indicator now that dots are hidden */
  .id-topbar-progress { font-size: 0.72rem; }

  /* Navigation — no dots, full width, arrow buttons on edges */
  .id-ask-grid { grid-template-columns: 1fr; }
  .id-dots { display: none; }
  .id-nav { padding: 0 16px; justify-content: space-between; gap: 0; }
  .id-nav-btn { padding: 9px 20px; font-size: 0.82rem; flex: 0 0 auto; min-width: 80px; text-align: center; }

  /* Section tabs */
  .id-section-tab { font-size: 0.62rem; padding: 4px 7px; }
  .id-section-divider { margin: 0 1px; }

  /* Typography */
  .id-eyebrow { font-size: 0.62rem; margin-bottom: 10px; }
  .id-body { font-size: 0.92rem; line-height: 1.65; }

  /* Stats */
  .id-stats { gap: 10px; }
  .id-stat { padding: 16px 14px; }
  .id-stat-num { font-size: 1.5rem; }
  .id-stat-label { font-size: 0.78rem; }

  /* Revenue cards */
  .id-rev-card { padding: 15px 14px; margin-bottom: 12px; }
  .id-rev-desc { font-size: 0.84rem; }

  /* Checklists */
  .id-checks li { font-size: 0.9rem; }

  /* Timeline */
  .id-timeline { padding-left: 22px; }
  .id-tl-desc { font-size: 0.84rem; }

  /* Ask */
  .id-ask-value { font-size: 1.4rem; }
  .id-ask-box { padding: 18px 16px; }
}

/* ── Very small phones ──────────────────────────────────────────────── */
@media (max-width: 380px) {
  .id-canvas { padding: 98px 10px 76px; }
  .id-body { font-size: 0.88rem; }
  .id-h2 { font-size: 1.45rem; }
  .id-stat-num { font-size: 1.35rem; }
  .id-section-tabs { gap: 0; padding: 0 8px; }
  .id-section-tab { font-size: 0.58rem; padding: 4px 5px; }
  /* Even tighter buttons on very small phones */
  .id-nav-btn { padding: 8px 16px; font-size: 0.78rem; min-width: 70px; }
}
