/* ───────────────────── Northwind seed deck — theme ─────────────────────
   A custom reveal.js theme. reveal.css supplies layout; everything here is
   typography, color, and the bespoke slide components. */

:root {
  --ink:    #0A0E17;
  --ink-2:  #070A12;
  --panel:  #121a2b;
  --panel-2:#0f1626;
  --line:   #1f2a40;
  --text:   #E9EEF8;
  --muted:  #93A2BE;
  --faint:  #61708d;
  --indigo: #7C9BFF;
  --teal:   #4FD8C4;
  --grad:   linear-gradient(110deg, #7C9BFF 0%, #4FD8C4 100%);
}

/* ── base reveal overrides ── */
.reveal {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 34px;
  color: var(--text);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.reveal .slides { text-align: left; }
.reveal .slides section { line-height: 1.45; }

.reveal h1, .reveal h2, .reveal h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.4em;
  text-transform: none;
  font-weight: 600;
}
.reveal h2 { font-size: 1.7em; }
.reveal h3 { font-size: 0.86em; font-weight: 600; }
.reveal p  { margin: 0 0 0.6em; }
.reveal a  { color: var(--teal); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); }
.reveal a:hover { color: #8df0e1; }
.reveal sup { font-size: 0.55em; color: var(--faint); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* reveal chrome */
.reveal .progress { color: var(--teal); height: 4px; }
.reveal .controls { color: var(--indigo); }
.reveal .slide-number { background: transparent; color: var(--faint); font-family: "Space Grotesk", sans-serif; }

/* slide padding helper */
.slide-pad { padding: 0 1.5%; }

.eyebrow {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.46em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.7em;
  font-weight: 600;
}
.sub {
  color: var(--muted);
  font-size: 0.66em;
  max-width: 22ch;
  max-width: 760px;
  line-height: 1.5;
  margin-bottom: 1em;
}
.downcue { color: var(--faint); font-size: 0.44em; letter-spacing: 0.04em; margin-top: 0.8em; }

/* ───────────────────── TITLE SLIDE ───────────────────── */
.slide-title { height: 100%; }
.title-bg { position: absolute; inset: 0; overflow: hidden; }
.title-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.16; filter: saturate(0.6) contrast(1.05); }
.slide-title::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(124,155,255,0.16), transparent 55%),
    radial-gradient(100% 80% at 90% 90%, rgba(79,216,196,0.14), transparent 55%),
    linear-gradient(180deg, rgba(7,10,18,0.55), rgba(7,10,18,0.92));
  pointer-events: none;
}
.title-inner { position: relative; z-index: 2; max-width: 980px; }
.brandrow { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.6rem; }
.brandrow.center { justify-content: center; }
.logomark { filter: drop-shadow(0 4px 18px rgba(79,216,196,0.25)); }
.wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 0.78em; letter-spacing: 0.01em;
}
.reveal .display { font-size: 2.4em; font-weight: 600; margin-bottom: 0.45em; }
.lede { color: var(--muted); font-size: 0.62em; max-width: 720px; line-height: 1.55; }
.meta-row { margin-top: 1.8rem; display: flex; align-items: center; gap: 0.7rem; font-size: 0.4em; color: var(--faint); letter-spacing: 0.04em; }
.pill { background: rgba(124,155,255,0.12); border: 1px solid var(--line); color: var(--indigo); padding: 0.35em 0.9em; border-radius: 999px; }
.dot { color: var(--faint); }
.kbd-hint { position: absolute; bottom: 4%; left: 0; right: 0; text-align: center; z-index: 2; font-size: 0.3em; color: var(--faint); letter-spacing: 0.03em; }
kbd {
  font-family: "Space Grotesk", monospace; font-size: 0.85em;
  background: var(--panel); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 0.05em 0.45em; color: var(--text);
}

/* ───────────────────── STAT GRID (problem) ───────────────────── */
.stat-grid { display: grid; gap: 1rem; margin: 0.4em 0 0.8em; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem;
}
.stat-num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.4em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 0.4rem;
}
.stat-label { color: var(--muted); font-size: 0.4em; line-height: 1.45; }

.quote { margin-top: 0.4em; border-left: 3px solid var(--teal); padding-left: 1.1rem; }
.quote p { font-family: "Space Grotesk", sans-serif; font-size: 0.74em; color: var(--text); font-weight: 500; margin-bottom: 0.3em; }
.quote cite { font-style: normal; color: var(--faint); font-size: 0.42em; }

/* ───────────────────── PILLARS (solution) ───────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 0.5em; }
.pillar {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem;
}
.pillar-ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 0.7em; margin-bottom: 0.8rem; color: var(--ink);
  background: var(--grad); font-weight: 700;
}
.pillar-ico[data-c="b"] { background: linear-gradient(110deg, #4FD8C4, #7C9BFF); }
.pillar-ico[data-c="c"] { background: linear-gradient(110deg, #9b8cff, #4FD8C4); }
.pillar h3 { font-size: 0.7em; margin-bottom: 0.4rem; }
.pillar p { color: var(--muted); font-size: 0.4em; line-height: 1.5; margin: 0; }

/* flow / code slide */
.flow {
  box-shadow: none; border: 1px solid var(--line); border-radius: 14px;
  font-size: 0.42em; margin: 0.3em 0 0.9em; max-width: 900px;
}
.reveal pre.flow code { padding: 1.2rem 1.4rem; border-radius: 14px; background: #0c1322; max-height: none; }
.flowline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.42em; color: var(--muted); }
.flowline .node { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0.4em 0.9em; }
.flowline .node.accent { background: rgba(79,216,196,0.14); border-color: color-mix(in srgb, var(--teal) 45%, transparent); color: var(--teal); }
.flowline .arr { color: var(--faint); }

/* ───────────────────── MARKET ───────────────────── */
.market-row { display: grid; grid-template-columns: 320px 1fr; gap: 2.4rem; align-items: center; margin-top: 0.3em; }
.tam { display: grid; place-items: center; }
.ring { border-radius: 50%; display: grid; place-items: center; position: relative; }
.tam-ring { width: 300px; height: 300px; background: rgba(124,155,255,0.10); border: 1px solid color-mix(in srgb, var(--indigo) 30%, transparent); }
.sam-ring { width: 210px; height: 210px; background: rgba(124,155,255,0.16); border: 1px solid color-mix(in srgb, var(--indigo) 45%, transparent); }
.som-ring { width: 118px; height: 118px; background: var(--grad); color: var(--ink); }
.som-ring span { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.5em; }
.ring-cap { position: absolute; font-family: "Space Grotesk", sans-serif; font-size: 0.34em; color: var(--muted); letter-spacing: 0.12em; }
.tam-cap { top: 10px; }
.sam-cap { top: 8px; }
.market-legend { display: flex; flex-direction: column; gap: 0.9rem; }
.leg { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.42em; color: var(--muted); line-height: 1.4; }
.leg strong { color: var(--text); font-family: "Space Grotesk", sans-serif; }
.sw { width: 16px; height: 16px; border-radius: 5px; margin-top: 2px; flex: none; }
.sw.t { background: rgba(124,155,255,0.35); }
.sw.s { background: rgba(124,155,255,0.6); }
.sw.o { background: var(--grad); }
.bottomup { font-size: 0.42em; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem; margin-top: 0.3rem; line-height: 1.45; }
.bottomup strong { color: var(--teal); }
.src { font-size: 0.3em; color: var(--faint); margin-top: 1em; }

/* ───────────────────── TRACTION ───────────────────── */
.traction-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: stretch; margin-top: 0.3em; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; align-content: start; }
.kpi { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.kpi-num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.kpi-lab { color: var(--muted); font-size: 0.34em; margin-top: 0.4rem; line-height: 1.35; }

.chart { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.4rem 1rem; display: flex; flex-direction: column; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 0.9rem; min-height: 200px; padding-top: 0.5rem; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.bar::before {
  content: ""; width: 100%; max-width: 46px; height: var(--h);
  background: linear-gradient(180deg, color-mix(in srgb, var(--indigo) 70%, transparent), color-mix(in srgb, var(--teal) 35%, transparent));
  border-radius: 8px 8px 3px 3px; transition: height 0.8s cubic-bezier(.2,.8,.2,1);
}
.bar.tall::before { background: var(--grad); box-shadow: 0 0 26px rgba(79,216,196,0.35); }
.bar .bv { order: -1; font-family: "Space Grotesk", sans-serif; font-size: 0.34em; color: var(--text); margin-bottom: 0.4rem; }
.bar .bl { font-size: 0.32em; color: var(--faint); margin-top: 0.5rem; }
.chart-cap { font-size: 0.32em; color: var(--faint); text-align: center; margin-top: 0.6rem; }

.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1em; }
.ll { font-size: 0.36em; color: var(--faint); margin-right: 0.3rem; }
.logo-chip { font-family: "Space Grotesk", sans-serif; font-size: 0.4em; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.35em 0.8em; }

/* ───────────────────── ASK ───────────────────── */
.slide-ask::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 80% 10%, rgba(79,216,196,0.10), transparent 60%);
  pointer-events: none;
}
.ask-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; margin-top: 0.4em; position: relative; }
.ask-cols h3 { font-size: 0.56em; color: var(--muted); margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
.bars-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.bars-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.6rem 0.8rem; font-size: 0.42em; }
.bars-list .ul { color: var(--text); }
.bars-list .up { color: var(--teal); font-family: "Space Grotesk", sans-serif; }
.bars-list .ub { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--line); position: relative; order: 2; }
.bars-list .ub::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--grad); border-radius: 999px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.checklist li { font-size: 0.42em; color: var(--text); padding-left: 1.8rem; position: relative; line-height: 1.4; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: -0.05em; width: 1.2rem; height: 1.2rem; display: grid; place-items: center; background: rgba(79,216,196,0.14); color: var(--teal); border-radius: 6px; font-size: 0.85em; }
.team-line { margin-top: 1.4em; font-size: 0.4em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1em; line-height: 1.5; position: relative; }
.team-line strong { color: var(--text); }

/* ───────────────────── CLOSE ───────────────────── */
.slide-close { height: 100%; display: grid; place-items: center; text-align: center; }
.slide-close::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 40%, rgba(124,155,255,0.12), transparent 60%);
  pointer-events: none;
}
.slide-close .title-inner { text-align: center; position: relative; z-index: 2; }
.thanks { font-size: 1.9em; margin: 0.6em 0 0.3em; }
.contact { margin-top: 1.4rem; display: flex; gap: 0.8rem; justify-content: center; font-size: 0.46em; }
.thanks-meta { margin-top: 2rem; color: var(--faint); font-size: 0.4em; letter-spacing: 0.05em; }

/* ───────────────────── HELP OVERLAY ───────────────────── */
.help { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5,8,14,0.78); backdrop-filter: blur(6px); }
.help[hidden] { display: none; }
.help-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 2.2rem; max-width: 460px; width: 90%; box-shadow: 0 30px 90px rgba(0,0,0,0.5); position: relative; font-family: "Inter", sans-serif; }
.help-card h3 { font-family: "Space Grotesk", sans-serif; font-size: 22px; margin: 0 0 1.2rem; color: var(--text); }
.help-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.help-card li { font-size: 15px; color: var(--muted); line-height: 1.4; }
.help-card strong { color: var(--text); }
.help-x { position: absolute; top: 1rem; right: 1.2rem; background: none; border: none; color: var(--faint); font-size: 28px; line-height: 1; cursor: pointer; }
.help-x:hover { color: var(--text); }

/* ───────────────────── RESPONSIVE / MOBILE ───────────────────── */
@media (max-width: 820px) {
  .reveal { font-size: 26px; }
  .stat-grid.three { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .market-row { grid-template-columns: 1fr; gap: 1.4rem; justify-items: center; text-align: left; }
  .traction-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .ask-cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .flowline { font-size: 0.5em; }
}
@media (max-width: 500px) {
  .reveal { font-size: 21px; }
  .kpis { grid-template-columns: 1fr; }
}
