/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #1a1f2e;
  --bg-darker: #131720;
  --bg-card: #212738;
  --teal: #0d9488;
  --teal-light: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.15);
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --white: #ffffff;
  --red: #ef4444;
  --green: #22c55e;
  --slide-w: 100vw;
  --slide-h: 100vh;
}

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

/* ===== PRESENTATION CONTAINER ===== */
.presentation {
  width: var(--slide-w);
  height: var(--slide-h);
  position: relative;
}

/* ===== SLIDE BASE ===== */
.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5vh 8vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  background: var(--bg-dark);
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

/* ===== SLIDE LAYOUTS ===== */
.slide--title {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-darker) 0%, #0f2027 50%, #1a3a4a 100%);
}

.slide--section {
  text-align: center;
  background: linear-gradient(160deg, var(--bg-darker) 0%, #162032 100%);
}

.slide--data {
  background: var(--bg-dark);
}

.slide--dark {
  background: linear-gradient(180deg, #0f1318 0%, #1a1f2e 100%);
  text-align: center;
}

.slide--pause {
  background: linear-gradient(135deg, #1a2332 0%, #0d1b2a 100%);
  text-align: center;
}

/* ===== TYPOGRAPHY ===== */
.slide-number {
  position: absolute;
  top: 2vh;
  right: 3vw;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.subtitle {
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  color: var(--text-dim);
  font-weight: 400;
  line-height: 1.5;
  max-width: 70%;
  margin: 0 auto;
}

.meta {
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  color: var(--teal-light);
  font-weight: 500;
  margin-top: 2rem;
  letter-spacing: 0.08em;
}

/* ===== ACCENT ELEMENTS ===== */
.highlight {
  color: var(--teal-light);
}

.highlight--accent {
  color: var(--accent);
}

.big-number {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  color: var(--teal-light);
  line-height: 1;
  letter-spacing: -0.03em;
}

.big-number--accent {
  color: var(--accent);
}

.big-number small {
  font-size: 0.4em;
  color: var(--text-dim);
  font-weight: 500;
  display: block;
  margin-top: 0.3em;
}

/* ===== THESIS / STATEMENT ===== */
.thesis {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.6;
  max-width: 800px;
  text-align: center;
  color: var(--text);
  font-weight: 400;
}

.thesis strong {
  color: var(--teal-light);
  font-weight: 600;
}

/* ===== CARDS GRID ===== */
.cards {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  max-width: 1200px;
}

.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: clamp(1.2rem, 2vw, 2rem);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

.card__icon {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.8rem;
}

.card__title {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.card__text {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--text-dim);
  line-height: 1.5;
}

.card--highlighted {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--bg-card), rgba(13,148,136,0.1));
}

.card--dark {
  background: rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.04);
}

.card--question {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(245,158,11,0.2);
  text-align: left;
}

.card--question .card__title {
  color: var(--accent-light);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

/* ===== STATS ROW ===== */
.stats {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__value {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--teal-light);
  line-height: 1;
}

.stat__value--accent { color: var(--accent); }

.stat__label {
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  color: var(--text-dim);
  margin-top: 0.6rem;
  max-width: 220px;
  line-height: 1.4;
}

/* ===== TABLE ===== */
.table-wrap {
  width: 100%;
  max-width: 1100px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
}

th {
  background: rgba(13,148,136,0.15);
  color: var(--teal-light);
  font-weight: 600;
  text-align: left;
  padding: 0.9rem 1.2rem;
  border-bottom: 2px solid rgba(13,148,136,0.3);
}

td {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-dim);
}

tr.row--highlighted {
  background: rgba(13,148,136,0.08);
}

tr.row--highlighted td {
  color: var(--white);
  font-weight: 500;
}

/* ===== LISTS ===== */
.list {
  list-style: none;
  max-width: 900px;
  width: 100%;
}

.list li {
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.6;
}

.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1em;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.list--numbered {
  counter-reset: item;
}

.list--numbered li::before {
  background: none;
  content: counter(item);
  counter-increment: item;
  color: var(--teal-light);
  font-weight: 800;
  font-size: 1.1em;
  width: auto;
  height: auto;
  top: 0.6rem;
}

/* ===== FUNNEL ===== */
.funnel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.funnel__step {
  background: var(--bg-card);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  white-space: nowrap;
}

.funnel__arrow {
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 300;
}

/* ===== TWO COLUMNS ===== */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: 100%;
  max-width: 1100px;
}

.column {
  padding: clamp(1rem, 2vw, 2rem);
}

.column--box {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.column__title {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== CALLOUT / BOTTOM NOTE ===== */
.callout {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(13,148,136,0.08);
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-dim);
  max-width: 900px;
  line-height: 1.5;
}

.callout--accent {
  border-left-color: var(--accent);
  background: rgba(245,158,11,0.06);
}

.source {
  position: absolute;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ===== CHECKLIST ===== */
.checklist {
  list-style: none;
  max-width: 900px;
  width: 100%;
  columns: 2;
  column-gap: 3rem;
}

.checklist li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-dim);
  line-height: 1.5;
  break-inside: avoid;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ===== MATRIX ===== */
.matrix {
  width: 100%;
  max-width: 1000px;
}

.matrix__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  align-items: center;
}

.matrix__situation {
  color: var(--text-dim);
  font-weight: 500;
}

.matrix__action {
  color: var(--teal-light);
  font-weight: 600;
}

.matrix__arrow {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

/* ===== SCALE BAR ===== */
.scale {
  display: flex;
  width: 100%;
  max-width: 1000px;
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
}

.scale__segment {
  padding: 1rem;
  text-align: center;
  flex: 1;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 600;
}

.scale__segment:nth-child(1) { background: rgba(34,197,94,0.15); color: var(--green); }
.scale__segment:nth-child(2) { background: rgba(45,212,191,0.12); color: var(--teal-light); }
.scale__segment:nth-child(3) { background: rgba(59,130,246,0.12); color: #60a5fa; }
.scale__segment:nth-child(4) { background: rgba(245,158,11,0.12); color: var(--accent-light); }
.scale__segment:nth-child(5) { background: rgba(239,68,68,0.1); color: var(--red); }

.scale__label { display: block; font-weight: 400; font-size: 0.85em; margin-top: 0.3em; opacity: 0.7; }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transition: width 0.4s ease;
  z-index: 100;
}

/* ===== CONTROLS HINT ===== */
.controls-hint {
  position: fixed;
  bottom: 2vh;
  right: 3vw;
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 50;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.controls-hint kbd {
  background: rgba(255,255,255,0.08);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85em;
}

/* ===== ICONS (emoji-based) ===== */
.icon { font-style: normal; }

/* ===== SPEAKER BADGES ===== */
.speaker-badge {
  position: absolute;
  top: 2vh;
  left: 3vw;
  font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  font-weight: 600;
  padding: 0.25em 0.6em;
  border-radius: 6px;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.speaker-badge--a {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.25);
}

.speaker-badge--t {
  background: rgba(245,158,11,0.12);
  color: var(--accent-light);
  border: 1px solid rgba(245,158,11,0.2);
}

.speaker-badge--both {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ===== CJM PATHS ===== */
.cjm-path {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}

.cjm-step {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.08);
}

.cjm-step--social { background: rgba(99,102,241,0.12); color: #a5b4fc; }
.cjm-step--site { background: rgba(13,148,136,0.15); color: var(--teal-light); }
.cjm-step--map { background: rgba(245,158,11,0.12); color: var(--accent-light); }
.cjm-step--market { background: rgba(239,68,68,0.1); color: #fca5a5; }

.cjm-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .slide { padding: 4vh 5vw; }
  .cards--3, .cards--4, .cards--5 { grid-template-columns: 1fr 1fr; }
  .columns { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .stats { gap: 1.5rem; }
  .subtitle { max-width: 95%; }
}

@media (max-width: 480px) {
  .cards--3, .cards--4, .cards--5, .cards--2 { grid-template-columns: 1fr; }
  .funnel { flex-direction: column; }
  .scale { flex-direction: column; }
}
