/* ============================================================================
   investors-deck.html — modern pitch-deck presentation
   Full-screen scroll-snap slides, dark premium theme, pure-CSS charts.
   Self-contained: does not rely on ai-one.css.
   ========================================================================== */

.deck-body {
  --d-bg:        #070816;
  --d-bg-2:      #0b1024;
  --d-panel:     rgba(255,255,255,0.055);
  --d-panel-2:   rgba(255,255,255,0.09);
  --d-border:    rgba(255,255,255,0.12);
  --d-text:      #f7f8ff;
  --d-muted:     #b6bfd9;
  --d-brand:     #8c5cff;
  --d-brand-2:   #34d5ff;
  --d-green:     #20f0a0;
  --d-amber:     #ffc857;
  --d-pink:      #ff5c93;
  --d-radius:    24px;
  --d-max:       1180px;

  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--d-text);
  background:
    radial-gradient(circle at 18% 0%,  rgba(140,92,255,0.18), transparent 38%),
    radial-gradient(circle at 82% 10%, rgba(52,213,255,0.12), transparent 36%),
    linear-gradient(180deg, #060715 0%, #0b1024 50%, #070816 100%);
  background-attachment: fixed;
}

* { box-sizing: border-box; }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.deck-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(7,8,22,0.66);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.deck-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--d-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.deck-logo img { border-radius: 7px; }
.deck-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.deck-counter {
  font-size: 0.82rem;
  color: var(--d-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.deck-counter #deck-current { color: var(--d-text); font-weight: 700; }
.deck-exit {
  font-size: 0.82rem;
  color: var(--d-muted);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--d-border);
  border-radius: 999px;
  transition: all 0.2s;
}
.deck-exit:hover { color: var(--d-text); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.deck-progress {
  position: fixed;
  top: 60px; left: 0; right: 0;
  height: 3px;
  z-index: 49;
  background: rgba(255,255,255,0.06);
}
.deck-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--d-brand), var(--d-brand-2), var(--d-green));
  transition: width 0.25s ease;
}

/* ── Side dot navigation ─────────────────────────────────────────────────── */
.deck-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.deck-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 0.25s;
}
.deck-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--d-muted);
  background: rgba(7,8,22,0.9);
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 4px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.deck-dot:hover::after { opacity: 1; }
.deck-dot.active {
  background: var(--d-brand-2);
  border-color: var(--d-brand-2);
  box-shadow: 0 0 12px rgba(52,213,255,0.7);
  transform: scale(1.25);
}

/* ── Deck scroll container ───────────────────────────────────────────────── */
.deck {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.deck::-webkit-scrollbar { width: 0; }

/* ── Slide ───────────────────────────────────────────────────────────────── */
.slide {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 28px 56px;
  position: relative;
}
.slide-inner {
  width: 100%;
  max-width: var(--d-max);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide.in-view .slide-inner { opacity: 1; transform: none; }

/* Kicker / section label */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-brand-2);
  font-weight: 600;
  margin-bottom: 18px;
}
.kicker .num {
  font-variant-numeric: tabular-nums;
  color: var(--d-muted);
  border: 1px solid var(--d-border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.72rem;
}

.slide h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--d-text);
}
.slide .lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--d-muted);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 0 36px;
}
.slide .lead strong, .slide h2 strong { color: var(--d-text); }

.grad {
  background: linear-gradient(120deg, var(--d-brand) 0%, var(--d-brand-2) 60%, var(--d-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.strike { text-decoration: line-through; text-decoration-color: var(--d-pink); opacity: 0.7; }

/* ── COVER ───────────────────────────────────────────────────────────────── */
.slide-cover { text-align: left; }
.cover-inner { max-width: 920px; }
.cover-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--d-brand-2); margin-bottom: 26px;
}
.cover-eyebrow .dot,
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--d-brand-2); display: inline-block; }
.cover-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 28px;
}
.cover-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--d-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 32px;
}
.cover-lead strong { color: var(--d-text); }
.cover-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.chip {
  font-size: 0.86rem;
  color: var(--d-muted);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--d-border);
  background: rgba(255,255,255,0.04);
}
.cover-hint {
  font-size: 0.82rem;
  color: var(--d-muted);
  opacity: 0.6;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── Card grids ──────────────────────────────────────────────────────────── */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.mini-card {
  background: var(--d-panel);
  border: 1px solid var(--d-border);
  border-radius: 20px;
  padding: 24px 22px;
  transition: all 0.25s;
}
.mini-card:hover { background: var(--d-panel-2); border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.mini-ico, .why-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(140,92,255,0.30), rgba(52,213,255,0.16));
  font-size: 22px;
  margin-bottom: 16px;
}
.mini-card h3, .why-card h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--d-text); }
.mini-card p, .why-card p { font-size: 0.88rem; color: var(--d-muted); line-height: 1.55; margin: 0; }
.mini-card.accent { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--d-brand), var(--d-brand-2)) 1; }

.why-card {
  background: var(--d-panel);
  border: 1px solid var(--d-border);
  border-radius: 22px;
  padding: 30px 28px;
  transition: all 0.25s;
}
.why-card:hover { background: var(--d-panel-2); transform: translateY(-3px); }
.num-card .rn {
  font-size: 1.4rem; font-weight: 900; color: var(--d-brand-2);
  margin-bottom: 14px;
}

/* ── SHIFT slide ─────────────────────────────────────────────────────────── */
.shift-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}
.shift-col {
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  padding: 28px;
  background: var(--d-panel);
}
.shift-old { background: linear-gradient(135deg, rgba(255,92,147,0.08), rgba(255,255,255,0.03)); }
.shift-new { background: linear-gradient(135deg, rgba(32,240,160,0.10), rgba(52,213,255,0.05)); border-color: rgba(32,240,160,0.25); }
.shift-head { font-size: 1.2rem; font-weight: 800; margin-bottom: 18px; }
.shift-head span { font-weight: 500; color: var(--d-muted); font-size: 0.9rem; }
.shift-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.shift-col li { font-size: 0.92rem; color: var(--d-muted); line-height: 1.5; padding-left: 26px; position: relative; }
.shift-old li::before { content: "×"; position: absolute; left: 0; color: var(--d-pink); font-weight: 900; }
.shift-new li::before { content: "✓"; position: absolute; left: 0; color: var(--d-green); font-weight: 900; }
.shift-new li strong { color: var(--d-text); }
.shift-arrow { font-size: 2.4rem; color: var(--d-brand-2); }

/* ── MARKET / big stats ──────────────────────────────────────────────────── */
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.big-stat {
  background: var(--d-panel);
  border: 1px solid var(--d-border);
  border-radius: 20px;
  padding: 26px 24px;
}
.big-val { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }
.big-stat:nth-child(1) .big-val { color: var(--d-brand-2); }
.big-stat:nth-child(2) .big-val { color: var(--d-green); }
.big-stat:nth-child(3) .big-val { color: var(--d-amber); }
.big-lbl { font-size: 0.86rem; color: var(--d-text); line-height: 1.45; }
.big-src { font-size: 0.72rem; color: var(--d-muted); opacity: 0.65; margin-top: 8px; }

/* Chart block (shared) */
.chart-block {
  background: var(--d-panel);
  border: 1px solid var(--d-border);
  border-radius: 22px;
  padding: 26px 28px;
}
.chart-head { font-size: 0.9rem; font-weight: 600; color: var(--d-text); margin-bottom: 22px; }
.chart-foot { font-size: 0.74rem; color: var(--d-muted); opacity: 0.7; margin-top: 14px; line-height: 1.5; }

/* Vertical bars */
.vbars { display: flex; align-items: flex-end; gap: 22px; height: 200px; }
.vbar-g { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.vbar-c { width: 100%; height: 100%; display: flex; align-items: flex-end; }
.vbar { width: 100%; border-radius: 9px 9px 0 0; transition: height 0.8s cubic-bezier(.2,.8,.2,1); height: 0; }
.slide.in-view .vbar.b1 { height: 49%; }
.slide.in-view .vbar.b2 { height: 63%; }
.slide.in-view .vbar.b3 { height: 79%; }
.slide.in-view .vbar.b4 { height: 100%; }
.vbar.b1 { background: #8c5cff; }
.vbar.b2 { background: #7a52ee; }
.vbar.b3 { background: #5a3fd8; }
.vbar.b4 { background: linear-gradient(180deg, var(--d-brand-2), var(--d-brand)); }
.vbar-y { font-size: 0.78rem; color: var(--d-muted); font-weight: 600; }
.vbar-v { font-size: 0.78rem; color: var(--d-text); font-weight: 700; }

/* Horizontal bars (CAGR) */
.hbars { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.hbar-r { display: grid; grid-template-columns: 240px 1fr 60px; align-items: center; gap: 16px; }
.hbar-l { font-size: 0.92rem; color: var(--d-muted); }
.hbar-t { height: 14px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.hbar-f { height: 100%; border-radius: 999px; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.hbar-v { font-size: 0.95rem; font-weight: 800; text-align: right; }
.r-ai   .hbar-f { background: linear-gradient(90deg, var(--d-brand), var(--d-brand-2)); }
.r-lcnc .hbar-f { background: linear-gradient(90deg, var(--d-brand-2), var(--d-green)); }
.r-saas .hbar-f { background: linear-gradient(90deg, #5a3fd8, var(--d-brand)); }
.r-esw  .hbar-f { background: linear-gradient(90deg, #3d2faa, #6b52d8); }
.r-it   .hbar-f { background: linear-gradient(90deg, #2a1f7a, #4a3aa8); }
.slide.in-view .r-ai   .hbar-f { width: 94%; }
.slide.in-view .r-lcnc .hbar-f { width: 100%; }
.slide.in-view .r-saas .hbar-f { width: 42%; }
.slide.in-view .r-esw  .hbar-f { width: 41%; }
.slide.in-view .r-it   .hbar-f { width: 27%; }
.r-ai .hbar-v   { color: var(--d-brand-2); }
.r-lcnc .hbar-v { color: var(--d-green); }
.r-saas .hbar-v, .r-esw .hbar-v, .r-it .hbar-v { color: var(--d-muted); }

/* ── LOOP (how it works) ─────────────────────────────────────────────────── */
.loop { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin-top: 10px; }
.loop-step {
  background: var(--d-panel);
  border: 1px solid var(--d-border);
  border-radius: 20px;
  padding: 24px 20px;
}
.loop-n { font-size: 0.8rem; font-weight: 800; color: var(--d-brand-2); margin-bottom: 12px; letter-spacing: 0.05em; }
.loop-step h3 { font-size: 1rem; margin: 0 0 8px; color: var(--d-text); }
.loop-step p { font-size: 0.84rem; color: var(--d-muted); line-height: 1.5; margin: 0; }
.loop-conn { display: grid; place-items: center; font-size: 1.5rem; color: var(--d-brand-2); }
.derisk-badge {
  margin-top: 26px;
  padding: 16px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(32,240,160,0.12), rgba(52,213,255,0.06));
  border: 1px solid rgba(32,240,160,0.25);
  font-size: 0.9rem;
  color: var(--d-text);
}

/* ── EXECUTION GAP (donut) ───────────────────────────────────────────────── */
.gap-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  margin-top: 12px;
}
.gap-chart-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.donut {
  --scale: 26%;
  --exp: 75%;   /* 26 + 49 */
  width: 240px;
  height: 240px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    var(--d-green)  0      var(--scale),
    var(--d-amber)  var(--scale) var(--exp),
    rgba(140,92,255,0.55) var(--exp) 100%
  );
  display: grid;
  place-items: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.donut-hole {
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: var(--d-bg-2);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--d-text);
  line-height: 1.25;
}
.donut-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; width: 100%; max-width: 340px; }
.donut-legend li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--d-muted); }
.donut-legend b { color: var(--d-text); }
.lg { width: 13px; height: 13px; border-radius: 4px; flex: 0 0 auto; }
.lg-scale { background: var(--d-green); }
.lg-exp   { background: var(--d-amber); }
.lg-start { background: rgba(140,92,255,0.55); }

.gap-text { display: flex; flex-direction: column; gap: 22px; }
.gap-text .lead { margin: 0; }
.gap-callout {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(32,240,160,0.12), rgba(52,213,255,0.06));
  border: 1px solid rgba(32,240,160,0.25);
}
.gap-callout-ico { font-size: 1.6rem; line-height: 1; }
.gap-callout b { display: block; color: var(--d-text); font-size: 1.02rem; margin-bottom: 6px; }
.gap-callout span { color: var(--d-muted); font-size: 0.9rem; line-height: 1.55; }
.gap-callout span strong { color: var(--d-text); }
.gap-src { font-size: 0.74rem; color: var(--d-muted); opacity: 0.7; }

/* ── ECONOMICS / TCO ─────────────────────────────────────────────────────── */
.tco { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.tco-col { border: 1px solid var(--d-border); border-radius: var(--d-radius); padding: 26px; }
.tco-old { background: linear-gradient(135deg, rgba(255,92,147,0.07), rgba(255,255,255,0.03)); }
.tco-new { background: linear-gradient(135deg, rgba(32,240,160,0.09), rgba(52,213,255,0.05)); border-color: rgba(32,240,160,0.22); }
.tco-head { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; }
.tco-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.tco-row span { font-size: 0.88rem; color: var(--d-muted); }
.tco-row b { font-size: 0.88rem; text-align: right; }
.tco-row b.bad { color: var(--d-pink); }
.tco-row b.good { color: var(--d-green); }

/* ── THE ASK ─────────────────────────────────────────────────────────────── */
.slide-ask { text-align: center; }
.ask-inner { max-width: 880px; margin: 0 auto; }
.slide-ask .kicker { justify-content: center; }
.slide-ask .lead { margin-left: auto; margin-right: auto; }
.ask-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 38px; }
.ask-point {
  background: var(--d-panel);
  border: 1px solid var(--d-border);
  border-radius: 18px;
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.ask-point b { color: var(--d-text); font-size: 1rem; }
.ask-point span { color: var(--d-muted); font-size: 0.84rem; line-height: 1.5; }
.ask-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 38px; }
.btn-deck {
  display: inline-flex; align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: var(--d-text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-deck:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.35); }
.btn-deck-primary {
  background: linear-gradient(135deg, var(--d-brand), #6b3fcf);
  border-color: transparent;
  color: #fff;
}
.btn-deck-primary:hover { background: linear-gradient(135deg, #9d6fff, var(--d-brand)); }
.ask-tagline {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--d-brand), var(--d-brand-2), var(--d-green));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .loop { grid-template-columns: 1fr 1fr; }
  .loop-conn { display: none; }
  .hbar-r { grid-template-columns: 160px 1fr 52px; }
}
@media (max-width: 1024px) {
  .gap-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .deck-dots { display: none; }
  .slide { padding: 80px 18px 48px; }
  .cards-4, .cards-3, .big-stats, .ask-points { grid-template-columns: 1fr; }
  .donut { width: 200px; height: 200px; }
  .donut-hole { width: 120px; height: 120px; }
  .shift-grid { grid-template-columns: 1fr; }
  .shift-arrow { transform: rotate(90deg); justify-self: center; }
  .tco { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; }
  .vbars { gap: 12px; }
  .hbar-r { grid-template-columns: 110px 1fr 46px; gap: 10px; }
  .hbar-l { font-size: 0.78rem; }
  .ask-actions { flex-direction: column; align-items: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .slide-inner, .vbar, .hbar-f { transition: none; }
  .deck { scroll-behavior: auto; }
  .cover-hint { animation: none; }
}
