@font-face {
  font-family: system-ui;
  src: local(".SFNSText"), local("Segoe UI"), local("Roboto"), local("Helvetica Neue"), local("Arial");
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #0f1220;
  color: #e6e8ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

:root {
  --slide-w: 1280px;
  --slide-h: 720px;
  --accent: #6aa5ff;
  --cover-title-scale: 0.10;
  --cover-tagline-scale: 0.06;
  --panel-bg: #0f1430;
  --panel-border: #2b325a;
  --muted: #9aa3c0;
  --header-h: calc(var(--slide-h) * 0.15);
  --safe-x: calc(var(--slide-w) * 0.05);
  --safe-y: calc(var(--slide-h) * 0.05);
  --space-8: 8px;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 12px;
}

#viewport {
  width: var(--slide-w);
  height: var(--slide-h);
  position: relative;
  transform-origin: center center;
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  border-radius: 12px;
  overflow: hidden;
  background: #12162b;
}

.slide {
  width: var(--slide-w);
  height: var(--slide-h);
  padding: 64px 80px;
  box-sizing: border-box;
  display: none;
  position: relative;
  color: #e6e8ef !important;
}

.slide.active { display: block; }

.slide.cover { display: none; }
.slide.cover.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5em;
}

h1 {
  font-size: 56px;
  margin: 0 0 16px 0;
  color: #ffffff !important;
}

h2 {
  font-size: 40px;
  margin: 0 0 24px 0;
  color: #e6e8ef !important;
}

p { font-size: 22px; }
ul { font-size: 22px; line-height: 1.6; }
li { margin: 6px 0; }

.cover-logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cover-title {
  font-size: clamp(36px, calc(var(--slide-h) * var(--cover-title-scale)), 88px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.28);
  animation: fadeZoom 520ms ease-out both;
  color: #ffffff !important;
  margin: 0;
}

.logo-word {
  display: inline;
  white-space: nowrap;
}

.logo-char-wrap {
  position: relative;
  display: inline-block;
}

.logo-adam,
.logo-lucy,
.logo-ash {
  position: absolute;
  width: 60px;
  height: auto;
  image-rendering: pixelated;
  top: 0;
  left: 50%;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.logo-adam {
  transform: translate(-50%, calc(-75% + 10px));
  animation: charBob 3s ease-in-out infinite;
}

.logo-lucy {
  transform: translate(-50%, calc(-75% + 10px));
  animation: charBob 3s ease-in-out infinite 0.5s;
}

.logo-ash {
  transform: translate(-50%, calc(-75% + 10px));
  animation: charBob 3s ease-in-out infinite 1s;
}

@keyframes charBob {
  0%, 100% { 
    transform: translate(-50%, calc(-75% + 10px)) scale(1); 
  }
  50% { 
    transform: translate(-50%, calc(-75% + 8px)) scale(1.02); 
  }
}

.cover-tagline {
  font-size: clamp(16px, calc(var(--slide-h) * var(--cover-tagline-scale)), 40px);
  color: #d7dbea !important;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.26);
  animation: fadeZoom 680ms ease-out 100ms both;
  margin: 10px 0 0 0;
}

@keyframes fadeZoom {
  from { opacity: 0; transform: translateY(6px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.placeholder {
  width: 60%;
  height: 160px;
  border: 2px dashed #3a3f63;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa3c0;
  font-size: 18px;
  margin-top: 16px;
}

.placeholder.large {
  width: 100%;
  height: 360px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 200;
  background: rgba(18,22,43,0.9);
  border: 1px solid #2b325a;
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(6px);
}

.controls button {
  background: #1a2141;
  color: #e6e8ef;
  border: 1px solid #2b325a;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.controls button:hover { border-color: var(--accent); }

#indicator { font-size: 16px; color: #9aa3c0; }

.export-hint, .size-hint {
  font-size: 14px;
  color: #9aa3c0;
}

.brand {
  display: none !important;
  position: absolute;
  right: 24px;
  bottom: 44px;
  width: 96px;
  height: auto;
  opacity: 0.92;
  image-rendering: auto;
}

.brand-text {
  display: none !important;
  position: absolute;
  right: 24px;
  bottom: 44px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.92;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.watermark {
  position: absolute;
  right: 20px;
  bottom: 16px;
  pointer-events: none;
  z-index: 999;
  display: block !important;
}

.watermark-adam {
  width: 48px;
  height: auto;
  image-rendering: pixelated;
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  display: block !important;
}

.wm-global { 
  display: none !important;
}

.upload-btn {
  background: #1a2141;
  color: #e6e8ef;
  border: 1px solid #2b325a;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.upload-btn:hover { border-color: var(--accent); }

#variant {
  background: #1a2141;
  color: #e6e8ef;
  border: 1px solid #2b325a;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
#variant:hover { border-color: var(--accent); }

@media print {
  @page { size: 1280px 720px; margin: 0; }
  body { background: white; }
  #app { gap: 0; }
  #viewport { box-shadow: none; border-radius: 0; background: white; transform: none; }
  .slide { display: block; page-break-after: always; color: black; }
  .controls, .export-hint, .size-hint { display: none; }
  .watermark { color: #333; opacity: 1; text-shadow: none; }
}
.media-row {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.card {
  flex: 1;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  animation: fadeZoom 420ms ease-out both;
}

.card h3 { margin: 0 0 8px 0; font-size: 18px; color: #cfd5e7; }
.card p { font-size: 18px; color: #e6e8ef; }

.card img, .card video {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #3a4270;
  background: #0b0f24;
}

.placeholder.card {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa3c0;
}

.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.badge { background: #1a2141; color: #cfd5e7; border: 1px solid #2b325a; padding: 6px 10px; border-radius: 999px; font-size: 14px; }

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.chart {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 14px;
}
.chart-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg,#6aa5ff,#7bd0ff); }
.chart small { color: #9aa3c0; display: block; margin-top: 8px; }
.two-col {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: start;
}

.desc {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 18px 20px;
}
.desc p { font-size: 22px; line-height: 1.6; }

.persona-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
}
.persona-card .avatar {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  border: 1px solid #3a4270;
  background: #0b0f24;
}
.persona-card h3 { margin: 0; font-size: 18px; color: #e6e8ef; }
.persona-card .subtitle { font-size: 14px; color: var(--muted); margin-top: 2px; }
.persona-card .list { margin-top: 10px; }
.persona-card .list li { font-size: 16px; color: #cfd5e7; }
.persona-card .badges { margin-top: 10px; }
.persona-card .badge { background: #1a2141; color: #cfd5e7; border: 1px solid #2b325a; padding: 6px 10px; border-radius: 999px; font-size: 12px; }

.hero-problem {
  background: linear-gradient(180deg, rgba(106,165,255,0.08), rgba(106,165,255,0.02));
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 20px 22px;
  position: relative;
}
.hero-problem p { font-size: 24px; line-height: 1.55; }
.hero-problem .emph { color: #ffffff; background: rgba(106,165,255,0.18); padding: 2px 6px; border-radius: 6px; }
.hero-problem .rule { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,#6aa5ff,#7bd0ff); border-top-left-radius: 12px; border-top-right-radius: 12px; }
.tag { background: rgba(123,208,255,0.22); color: #eaf6ff; border: 1px solid #3a5ea0; padding: 2px 6px; border-radius: 6px; }

.gif-avatar {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  border: 1px solid #3a4270;
  background: #0b0f24;
  object-fit: cover;
}

.persona-hero {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.persona-card.v2 {
  width: 100%;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  position: relative;
}
.persona-card.v2 .avatar-frame {
  width: 120px;
  height: 160px;
  border-radius: 10px;
  border: 1px solid #3a4270;
  background: #0b0f24;
  display: flex;
  align-items: center;
  justify-content: center;
}
.persona-card.v2 .avatar-frame img, .persona-card.v2 .avatar-frame canvas {
  max-width: 100%;
  height: auto;
}
.persona-card.v2 .meta h3 { margin: 0; font-size: 18px; color: #e6e8ef; }
.persona-card.v2 .meta .subtitle { font-size: 14px; color: var(--muted); margin-top: 4px; }
.persona-card.v2 .meta .list { margin-top: 10px; }
.persona-card.v2 .meta .list li { font-size: 16px; color: #cfd5e7; }
.persona-card.v2 .meta .badges { margin-top: 10px; }
.persona-hero .gif-hero {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #3a4270;
  background: #0b0f24;
  object-fit: contain;
  image-rendering: pixelated;
}
.sprite-canvas {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #3a4270;
  background: #0b0f24;
  image-rendering: pixelated;
}
.persona-hero .broken {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 420px;
  border-radius: 10px;
  border: 1px dashed #3a4270;
  color: #9aa3c0;
  background: #0b0f24;
}
.persona-hero .caption { margin-top: 10px; color: #cfd5e7; font-size: 16px; }

.persona-info {
  background: #141a3b;
  border: 1px solid #2b325a;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: #cfd5e7;
}
.persona-info .em {
  color: #7bd0ff;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .persona-hero { align-items: flex-start; }
}

/* Lucy OVERWORKED visual */
.lucy-content {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 20px 0 !important;
}

.lucy-overworked-wrapper {
  position: relative;
  width: min(1000px, calc(var(--slide-w) - var(--safe-x) * 2));
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}

.lucy-overworked-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05);
}

.lucy-card-slot {
  position: absolute;
  top: 30px;
  left: 30px;
  width: clamp(260px, 28%, 320px);
  pointer-events: none;
}

.lucy-card-overlay {
  position: relative;
  animation: lucyCardEnter 800ms ease 150ms both;
  pointer-events: auto;
}

@keyframes lucyCardEnter {
  from { 
    opacity: 0; 
    transform: translateY(-20px) scale(0.96);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.blank-slide {
  background: #0e1536;
}
.blank-slide.active {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.blank-slide .overcooked-container {
  height: calc(var(--slide-h) - var(--safe-y) * 2);
  width: calc(var(--slide-w) - var(--safe-x) * 2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
  box-sizing: border-box;
  transform: translateY(-12px);
}

.blank-slide .overcooked-gif {
  width: clamp(520px, 78%, calc(var(--slide-w) * 0.72));
  height: auto;
  max-height: calc(var(--slide-h) * 0.68);
  object-fit: contain;
}

.blank-slide-title {
  width: 100%;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  color: #e6e8ef;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
  margin-bottom: 18px;
  padding: 0 calc(var(--safe-x));
}

.blank-highlight {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251,191,36,0.55);
}

.blank-empty {
  background: #0e1536;
}
.blank-empty.active {
  display: flex !important;
}

/* Question slide with AI Scaling Law curve */
.blank-question-slide {
  background: #0e1536;
}
.blank-question-slide.active {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 60px 80px;
}

.blank-question-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #e6e8ef;
  text-align: center;
  line-height: 1.4;
  max-width: 900px;
  margin: 0;
}

.scaling-curve-wrap {
  width: 100%;
  max-width: 700px;
  padding: 20px;
  background: rgba(15, 20, 48, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.scaling-curve-svg {
  width: 100%;
  height: auto;
}

.persona-card-simplified {
  background: linear-gradient(135deg, #1a1f3a 0%, #0f1428 100%);
  border: 3px solid #4a5a8a;
  border-radius: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  width: 320px;
  align-items: start;
  box-shadow: 
    0 0 0 2px #2a3a5a,
    0 0 0 4px #1a1f3a,
    inset 0 0 20px rgba(106, 165, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.4);
  position: relative;
}

.persona-card-simplified::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6aa5ff, transparent);
  opacity: 0.6;
}

.persona-card-simplified .avatar-frame {
  width: 100px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
}

.persona-card-simplified .avatar-frame img,
.persona-card-simplified .avatar-frame canvas {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.meta-simplified {
  font-family: 'Press Start 2P', 'Courier New', monospace;
}

.meta-simplified h3 {
  margin: 0;
  font-size: 10px;
  color: #6aa5ff;
  line-height: 1.6;
  text-shadow: 
    2px 2px 0 #000,
    0 0 8px rgba(106, 165, 255, 0.5);
  font-weight: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 2px solid #4a5a8a;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.meta-simplified .subtitle {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-simplified .subtitle-line {
  font-size: 8px;
  color: #b8c5e0;
  line-height: 1.8;
  font-family: 'Press Start 2P', 'Courier New', monospace;
  padding-left: 16px;
  position: relative;
}

.meta-simplified .subtitle-line::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #6aa5ff;
  font-size: 14px;
  text-shadow: 0 0 4px rgba(106, 165, 255, 0.6);
}
.titlebar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: #0e1536;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  padding: calc(var(--space-8) * 2) calc(var(--safe-x) + var(--space-8) * 5);
  justify-content: center;
}

.titlebar .title-inner { max-width: calc(var(--slide-w) - var(--safe-x) * 2 - var(--space-8) * 10); width: 100%; }

.titlebar h1 {
  font-family: Arial Black, "Noto Sans SC", "Source Han Sans CN", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, calc(var(--slide-h) * 0.04), 34px);
  line-height: 1.2;
  color: #ffffff;
  white-space: normal;
}

.content { min-height: calc(var(--slide-h) - var(--header-h) - var(--safe-y)); padding: 0 calc(var(--safe-x) + var(--space-8) * 2); }

.content p { font-size: clamp(18px, calc(var(--slide-h) * 0.03), 24px); line-height: 1.5; margin: calc(var(--space-8) * 2) 0; }
.content ul { font-size: clamp(18px, calc(var(--slide-h) * 0.03), 24px); line-height: 1.5; padding-left: 24px; }
.content li { margin: calc(var(--space-8) * 2) 0; }

.content, .titlebar h1, .hero-problem p, .persona-info { color: #e6e8ef; }

/* spacing rules */
.titlebar + .content { margin-top: calc(var(--space-8) * 3); }
.hero-problem { margin-top: calc(var(--space-8) * 2); }
.content .hero-problem { margin-bottom: calc(var(--space-8) * 2); }
.media-row { gap: calc(var(--space-8) * 2.5); }
.badges { gap: calc(var(--space-8) * 1.25); }

/* accessibility: ensure contrast */
.hero-problem p, .persona-info { color: #dfe3f1; }
.hero-problem { background: linear-gradient(180deg, rgba(106,165,255,0.10), rgba(106,165,255,0.03)); }
.persona-info { background: #141a3b; }
.slide.with-header {
  padding: calc(var(--safe-y) + var(--header-h)) var(--safe-x) var(--safe-y) var(--safe-x);
}
.edu-logo {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 120px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}
.footnotes { margin-top: 12px; font-size: 13px; color: #9aa3c0; line-height: 1.5; }
.footnotes .ref { display: block; }
.tool-icons { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.tool-icons img { height: 24px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.pain-icons { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.pain-icons img { height: 20px; width: auto; }
.tools-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.tool-card { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 12px; padding: 16px; }
.tool-card h3 { margin: 4px 0 8px 0; font-size: 18px; color: #e6e8ef; }
.tool-card p { font-size: 18px; color: #dfe3f1; }
.tool-card ul { font-size: 16px; line-height: 1.5; margin-top: 8px; }
.pains-section { margin-top: 24px; }
.pains-section h3 { margin: 0 0 8px 0; font-size: 18px; color: #e6e8ef; }
.pains-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.pains-card { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 12px; padding: 14px; }
.pains-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pains-card .head img { height: 22px; }
.pains-card ul { font-size: 16px; line-height: 1.5; }

/* Bell curve visualization */
.bell-card { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 12px; padding: 16px; margin-top: 16px; }
.bell-title { font-size: 18px; color: #e6e8ef; margin: 0 0 8px 0; }
.bell-wrap { position: relative; width: 100%; height: 220px; }
.bell-wrap svg { width: 100%; height: 100%; }
.bell-label { position: absolute; color: #dfe3f1; font-size: 14px; text-align: center; padding: 4px 6px; background: rgba(20,26,59,0.6); border: 1px solid #2b325a; border-radius: 8px; }
.bell-icon { position: absolute; width: 28px; height: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }
.dist-content { display: flex; flex-direction: column; gap: 12px; }
.dist-shell { position: relative; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 14px; padding: 22px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,0.28); }
.dist-curve { position: absolute; inset: 0; opacity: 0.85; pointer-events: none; z-index: 0; }
.dist-curve svg { width: 100%; height: 100%; }
.dist-labels { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.dist-label { position: absolute; color: #cfd5e7; font-size: 12px; padding: 6px 8px; background: rgba(20,26,59,0.78); border: 1px solid #2b325a; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.3px; }
.dist-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 6px; }
.dist-card { background: rgba(17,22,46,0.9); border: 1px solid #2b325a; border-radius: 12px; padding: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.25); backdrop-filter: blur(4px); }
.dist-card.primary { border-color: #6aa5ff; box-shadow: 0 10px 30px rgba(106,165,255,0.25); background: rgba(23,31,69,0.96); }
.dist-card h3 { margin: 8px 0 6px 0; font-size: 18px; color: #e6e8ef; }
.dist-desc { margin: 0; font-size: 17px; color: #dfe3f1; line-height: 1.5; }
.dist-icon { width: 46px; height: 46px; border-radius: 10px; background: #182040; border: 1px solid #2f3a65; display: inline-flex; align-items: center; justify-content: center; }
.dist-icon img { width: 26px; height: 26px; }
.dist-segment { margin-top: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.dist-pain { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(106,165,255,0.12); border: 1px solid rgba(106,165,255,0.4); }
.dist-card.primary .dist-pain { background: rgba(106,165,255,0.16); border-color: rgba(106,165,255,0.55); }
.dist-pain img { width: 20px; height: 20px; }
.dist-pain small { color: #cfe4ff; font-size: 14px; line-height: 1.4; }
.nd-content { display: flex; flex-direction: column; gap: 12px; margin-top: 0; align-items: center; }
.nd-chart { position: relative; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 14px; padding: 50px 18px 70px 18px; height: 380px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.32); }
.nd-svg { width: 100%; height: 100%; }
.nd-nodes { position: absolute; inset: 0; pointer-events: none; }
.nd-node { position: absolute; transform: translate(-50%, 0); text-align: center; width: 200px; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: auto; transition: transform 180ms ease, filter 180ms ease; }
.nd-node .nd-title { font-size: 14px; color: #cfd5e7; text-transform: uppercase; letter-spacing: 0.3px; }
.nd-avatar { width: 120px; height: 140px; border-radius: 12px; border: 1px solid #2f3a65; background: #0b0f24; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.nd-avatar canvas, .nd-avatar img { max-width: 100%; height: auto; image-rendering: pixelated; object-fit: contain; }
.nd-avatar.plain { border: none; background: transparent; box-shadow: none; }
.nd-strap { display: none; }
.nd-majority { background: rgba(245, 158, 11, 0.9); color: #ffffff; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; margin-top: 6px; }
.nd-icons { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.nd-icons img { width: 28px; height: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); object-fit: contain; border-radius: 6px; background: rgba(255,255,255,0.95); padding: 3px; }
.nd-icons-above { margin-bottom: 8px; }
.nd-icons-below { margin-top: 8px; }
.nd-icons-messy { position: relative; padding: 6px 10px; background: rgba(220,38,38,0.12); border: 1px dashed rgba(220,38,38,0.4); border-radius: 10px; }
.nd-icons-messy img { transition: transform 0.2s ease; }
.nd-icons-messy::before { content: '🔥'; position: absolute; top: -10px; right: -8px; font-size: 14px; }
.nd-node.active { transform: translate(-50%, 0) scale(1.03); filter: drop-shadow(0 8px 18px rgba(106,165,255,0.35)); }
.nd-node.active .nd-avatar { border-color: #6aa5ff; box-shadow: 0 10px 28px rgba(106,165,255,0.35); }
.nd-cursor { position: absolute; width: 54px; height: 54px; border-radius: 14px; background: #172040; border: 1px solid #2f3a65; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,0.35), 0 0 16px rgba(106,165,255,0.25); transform: translate(-50%, -50%); z-index: 6; opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.nd-cursor.visible { opacity: 1; }
.nd-face { font-size: 28px; color: #e6e8ef; }
.nd-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #cfd5e7; font-size: 14px; }
.nd-node-bottom { transform: translate(-50%, 0); }
.nd-node-apex { z-index: 6; }
.usp-wrap { display: flex; justify-content: center; margin-top: 20px; }
.usp-gif { max-width: 90%; height: auto; border-radius: 12px; border: 1px solid #2b325a; box-shadow: 0 12px 32px rgba(0,0,0,0.28); }

/* Iceberg Layers - Slide 6 */
.iceberg-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Scrollbar styling - only for .iceberg-container when used */
.iceberg-container::-webkit-scrollbar {
  width: 6px;
}

.iceberg-container::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.iceberg-container::-webkit-scrollbar-thumb {
  background: rgba(106,165,255,0.4);
  border-radius: 3px;
}

.iceberg-container::-webkit-scrollbar-thumb:hover {
  background: rgba(106,165,255,0.6);
}

/* Hide scrollbars on infra-slide */
.infra-slide *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

.iceberg-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  transform-style: preserve-3d;
}

.iceberg-layer {
  position: relative;
  border-radius: 16px;
  padding: 20px 28px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top center;
  overflow: hidden;
}

.iceberg-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.iceberg-layer:hover::before {
  opacity: 1;
  background: rgba(255,255,255,0.03);
}

.iceberg-layer.collapsed {
  max-height: 50px;
  padding: 10px 24px;
  opacity: 0.7;
  transform: scaleY(1);
  margin-top: 4px;
}

.iceberg-layer.collapsed .iceberg-subtitle,
.iceberg-layer.collapsed .iceberg-content {
  display: none;
}

.iceberg-layer.collapsed:hover {
  opacity: 1;
  transform: scale(1.01);
}

.iceberg-layer.expanded {
  max-height: none;
  flex: 1;
  opacity: 1;
  transform: scaleY(1);
  margin-top: 8px;
  padding: 20px 28px;
}

.iceberg-layer:not(.iceberg-layer-1).expanded {
  min-height: 140px;
}

.iceberg-layer:not(.iceberg-layer-1).expanded .iceberg-content {
  min-height: 80px;
}

.iceberg-layer.hidden {
  display: none;
}

/* Layer 1 - Virtual Office (Top/Visible) - Always compact */
.iceberg-layer-1 {
  background: linear-gradient(135deg, rgba(106,165,255,0.25), rgba(123,208,255,0.15));
  border: 2px solid rgba(106,165,255,0.5);
  box-shadow: 0 8px 32px rgba(106,165,255,0.2);
  z-index: 5;
  cursor: default;
}

.iceberg-layer-1 .iceberg-content {
  display: block !important;
}

.iceberg-layer-1 .vo-scene {
  height: 140px;
}

.iceberg-layer-1 .vo-map {
  width: 50%;
  max-width: 280px;
}

/* Layer 2 - File System */
.iceberg-layer-2 {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.15));
  border: 2px solid rgba(139,92,246,0.4);
  box-shadow: 0 8px 32px rgba(139,92,246,0.15);
  z-index: 4;
}

/* Layer 3 - Agent Management */
.iceberg-layer-3 {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(52,211,153,0.12));
  border: 2px solid rgba(16,185,129,0.4);
  box-shadow: 0 8px 32px rgba(16,185,129,0.15);
  z-index: 3;
}

/* Layer 4 - Skill Library */
.iceberg-layer-4 {
  background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(251,191,36,0.12));
  border: 2px solid rgba(245,158,11,0.4);
  box-shadow: 0 8px 32px rgba(245,158,11,0.15);
  z-index: 2;
}

/* Layer 5 - Coordination (Bottom) */
.iceberg-layer-5 {
  background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(248,113,113,0.1));
  border: 2px solid rgba(239,68,68,0.35);
  box-shadow: 0 8px 32px rgba(239,68,68,0.12);
  z-index: 1;
}

.iceberg-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.iceberg-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.iceberg-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.iceberg-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-left: 46px;
  margin-top: 4px;
}

.iceberg-content {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  color: #dfe3f1;
  font-size: 15px;
  line-height: 1.6;
  display: none;
}

.iceberg-layer.expanded .iceberg-content {
  display: block;
  animation: fadeSlideIn 0.4s ease forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.iceberg-hint {
  text-align: center;
  color: #9aa3c0;
  font-size: 13px;
  margin-top: 16px;
  opacity: 0.8;
}

.iceberg-hint span {
  background: rgba(106,165,255,0.15);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(106,165,255,0.3);
}

/* Apple-style Infrastructure Stack */
.infra-slide {
  overflow: hidden !important;
}

.infra-slide .content {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 60px;
  min-height: auto;
  overflow: hidden !important;
}

.infra-slide .content::-webkit-scrollbar {
  display: none;
}

.infra-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 700px;
  width: 100%;
}

.infra-layer {
  width: 100%;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.infra-layer:hover {
  transform: scale(1.015);
}

.infra-layer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}

.infra-layer-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.infra-layer-text {
  flex: 1;
}

.infra-layer-title {
  font-size: 16px;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.infra-layer-desc {
  font-size: 13px;
  color: rgba(245, 245, 247, 0.6);
  font-weight: 400;
}

.infra-layer-components {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.infra-chip {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 12px;
  color: rgba(245, 245, 247, 0.8);
  font-weight: 500;
}

.infra-chip-arrow {
  color: rgba(245, 245, 247, 0.4);
  font-size: 13px;
  display: flex;
  align-items: center;
}

/* Layer-specific subtle accents */
.infra-layer-surface {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12);
}

.infra-layer-orch {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.infra-layer-runtime {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.infra-layer-fs {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.infra-layer-cloud {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Connector arrows */
.infra-arrow {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infra-arrow svg {
  width: 18px;
  height: 18px;
  color: rgba(245, 245, 247, 0.3);
}

/* Infrastructure Detail Slides */
.infra-detail-slide {
  padding: 50px 60px;
}

.infra-detail-slide .titlebar {
  margin-bottom: 24px;
}

.infra-detail-slide .titlebar h2 {
  font-size: 28px;
  color: #e6e8ef;
}

/* infra-content defined in .infra-slide .content above */

.fs-full, .fr-full, .coord-full {
  width: 100%;
  max-width: 900px;
}

.fs-full .fs-tree {
  gap: 16px;
}

.fs-full .fs-branch {
  padding: 16px;
}

.fr-full .fr-demo {
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
}

.fr-full .fr-video {
  max-width: 60%;
  height: auto;
}

.coord-full .coord-main {
  flex-direction: row;
  gap: 40px;
}

.coord-full .coord-svg {
  width: 300px;
  height: 200px;
}

.coord-full .coord-video {
  max-width: 100%;
  height: auto;
  max-height: 280px;
}

/* 3D Virtual Office Scene */
.vo-scene {
  position: relative;
  width: 100%;
  height: 280px;
  perspective: 800px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a1f3a 0%, #0d1025 100%);
}

.vo-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vo-map {
  width: 90%;
  max-width: 500px;
  height: auto;
  transform: perspective(800px) rotateX(50deg) rotateZ(-5deg);
  transform-origin: center center;
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.5),
    0 0 80px rgba(106,165,255,0.15);
  border-radius: 8px;
  border: 2px solid rgba(106,165,255,0.3);
}

.vo-characters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}

.vo-character {
  position: absolute;
  width: 48px;
  height: 64px;
  image-rendering: pixelated;
  transform: perspective(800px) rotateX(50deg) rotateZ(-5deg) translateZ(20px);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.vo-character canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.vo-char-1 {
  animation: voWalk1 12s linear infinite;
}

.vo-char-2 {
  animation: voWalk2 15s linear infinite;
}

.vo-char-3 {
  animation: voWalk3 18s linear infinite;
}

.vo-char-4 {
  animation: voWalk4 14s linear infinite;
}

@keyframes voWalk1 {
  0% { left: 20%; top: 60%; }
  25% { left: 50%; top: 45%; }
  50% { left: 70%; top: 55%; }
  75% { left: 40%; top: 65%; }
  100% { left: 20%; top: 60%; }
}

@keyframes voWalk2 {
  0% { left: 70%; top: 40%; }
  25% { left: 45%; top: 55%; }
  50% { left: 25%; top: 45%; }
  75% { left: 55%; top: 35%; }
  100% { left: 70%; top: 40%; }
}

@keyframes voWalk3 {
  0% { left: 30%; top: 35%; }
  25% { left: 60%; top: 50%; }
  50% { left: 75%; top: 35%; }
  75% { left: 50%; top: 45%; }
  100% { left: 30%; top: 35%; }
}

@keyframes voWalk4 {
  0% { left: 65%; top: 60%; }
  25% { left: 35%; top: 50%; }
  50% { left: 20%; top: 60%; }
  75% { left: 45%; top: 55%; }
  100% { left: 65%; top: 60%; }
}

.vo-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(106,165,255,0.2);
  border: 1px solid rgba(106,165,255,0.4);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  color: #cfe4ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Layer 2: File System Diagram */
.fs-diagram {
  padding: 12px;
}

.fs-office-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(99,102,241,0.1));
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 12px;
  margin-bottom: 16px;
}

.fs-office-icon {
  font-size: 24px;
}

.fs-office-label {
  font-weight: 600;
  color: #e6e8ef;
  font-size: 15px;
}

.fs-office-path {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 12px;
  color: #a78bfa;
  background: rgba(0,0,0,0.3);
  padding: 4px 10px;
  border-radius: 6px;
  margin-left: auto;
}

.fs-tree {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fs-branch {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.fs-shared { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); }
.fs-agents { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); }
.fs-temp { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }
.fs-logs { background: rgba(156,163,175,0.1); border-color: rgba(156,163,175,0.3); }

.fs-folder {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-icon { font-size: 18px; }

.fs-name {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 14px;
  color: #e6e8ef;
  font-weight: 600;
}

.fs-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 600;
  margin-left: auto;
}

.fs-tag-team { background: rgba(16,185,129,0.3); color: #6ee7b7; }
.fs-tag-private { background: rgba(99,102,241,0.3); color: #a5b4fc; }
.fs-tag-temp { background: rgba(245,158,11,0.3); color: #fcd34d; }
.fs-tag-logs { background: rgba(156,163,175,0.3); color: #d1d5db; }

.fs-desc {
  font-size: 11px;
  color: #9aa3c0;
  margin-top: 6px;
  padding-left: 26px;
}

.fs-agent-list {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-left: 26px;
  flex-wrap: wrap;
}

.fs-agent-item {
  font-size: 11px;
  color: #a5b4fc;
  background: rgba(99,102,241,0.2);
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fs-agent-avatar { font-size: 12px; }

.fs-agent-gm {
  background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(251,191,36,0.2));
  border: 1px solid rgba(245,158,11,0.5);
  color: #fcd34d;
  font-weight: 600;
}

.fs-isolation {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(239,68,68,0.08);
  border: 1px dashed rgba(239,68,68,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fs-iso-badge {
  font-size: 12px;
  font-weight: 600;
  color: #fca5a5;
  white-space: nowrap;
}

.fs-iso-text {
  font-size: 11px;
  color: #9aa3c0;
}

/* Layer 3: Account Management Diagram */
.am-diagram {
  padding: 8px;
}

.am-section {
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.am-hire {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(52,211,153,0.06));
  border: 1px solid rgba(16,185,129,0.3);
}

.am-bind {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.06));
  border: 1px solid rgba(99,102,241,0.3);
}

.am-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.am-section-icon { font-size: 18px; }

.am-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #e6e8ef;
}

.am-providers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.am-provider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.am-provider:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.am-provider-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.am-provider-name {
  font-size: 13px;
  color: #e6e8ef;
  font-weight: 500;
}

.am-provider-oss {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.08));
  border-color: rgba(245,158,11,0.4);
}

.am-oss-icon { font-size: 18px; }

.am-privacy-tag {
  font-size: 9px;
  background: rgba(245,158,11,0.3);
  color: #fcd34d;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 600;
}

.am-connector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.am-connector-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(106,165,255,0.5), transparent);
}

.am-connector-label {
  font-size: 11px;
  color: #6aa5ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.am-workspaces {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.am-workspace {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 20px;
  font-size: 13px;
  color: #a5b4fc;
  font-weight: 500;
  transition: all 0.2s ease;
}

.am-workspace:hover {
  background: rgba(99,102,241,0.25);
  transform: scale(1.02);
}

.am-ws-icon { font-size: 14px; }

.am-access-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(106,165,255,0.1);
  border: 1px dashed rgba(106,165,255,0.3);
  border-radius: 10px;
  font-size: 12px;
  color: #cfe4ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.am-note-icon { font-size: 14px; }

/* Layer 4: Fitting Room Diagram */
.fr-diagram {
  padding: 8px;
}

.fr-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.fr-icon {
  font-size: 32px;
  background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(251,191,36,0.1));
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(245,158,11,0.3);
}

.fr-title {
  font-size: 15px;
  font-weight: 600;
  color: #e6e8ef;
  margin-bottom: 4px;
}

.fr-subtitle {
  font-size: 12px;
  color: #9aa3c0;
}

.fr-demo {
  display: flex;
  gap: 14px;
  align-items: center;
}

.fr-video {
  width: 55%;
  max-width: 280px;
  border-radius: 12px;
  border: 2px solid rgba(245,158,11,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.fr-platforms {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.fr-platform {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 10px;
  font-size: 13px;
  color: #fcd34d;
  font-weight: 500;
  transition: all 0.2s ease;
}

.fr-platform:hover {
  background: rgba(245,158,11,0.2);
  transform: translateX(4px);
}

.fr-platform-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
}

.fr-platform-icon {
  font-size: 18px;
}

/* Layer 5: Multi-Agent Coordination Diagram */
.coord-diagram {
  padding: 8px;
}

.coord-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.coord-icon {
  font-size: 32px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(167,139,250,0.1));
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(139,92,246,0.3);
}

.coord-title {
  font-size: 15px;
  font-weight: 600;
  color: #e6e8ef;
  margin-bottom: 4px;
}

.coord-subtitle {
  font-size: 12px;
  color: #9aa3c0;
}

.coord-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.coord-infra {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coord-svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  background: rgba(30,27,75,0.5);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(139,92,246,0.2);
}

.coord-line {
  animation: dashMove 2s linear infinite;
}

@keyframes dashMove {
  to { stroke-dashoffset: -10; }
}

.coord-agent circle {
  transition: all 0.3s ease;
}

.coord-svg:hover .coord-agent circle {
  filter: drop-shadow(0 0 6px currentColor);
}

.coord-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coord-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 8px;
  font-size: 11px;
  color: #c4b5fd;
}

.coord-feature span {
  font-size: 14px;
}

.coord-demo {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coord-demo-label {
  font-size: 11px;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.coord-video {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  border: 2px solid rgba(139,92,246,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Target Evolution Slide */
.target-evolution-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 30px;
  margin-top: 0;
}

/* Larger titlebar for target evolution slide */
.slide:has(.target-evolution-content) .titlebar {
  height: auto;
  min-height: var(--header-h);
  padding-top: 20px;
  padding-bottom: 20px;
}

.slide:has(.target-evolution-content) .titlebar h2 {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.4;
  white-space: normal;
  max-width: 100%;
}

.target-evolution {
  width: 100%;
  max-width: 1000px;
}

.evolution-path {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 10px 0;
  min-height: 300px;
}

.evolution-stage {
  display: flex;
  align-items: flex-end;
  position: relative;
}

.stage-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(30,27,75,0.9), rgba(15,14,38,0.95));
  border: 2px solid var(--stage-color);
  border-radius: 16px;
  min-width: 160px;
  max-width: 180px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 20px rgba(99,102,241,0.2);
}

.evolution-stage:hover .stage-platform {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.4), 0 0 30px rgba(99,102,241,0.3);
}

/* Ascending heights */
.stage-1 .stage-platform { margin-bottom: 0; }
.stage-2 .stage-platform { margin-bottom: 40px; }
.stage-3 .stage-platform { margin-bottom: 80px; }
.stage-4 .stage-platform { margin-bottom: 120px; }

.stage-character {
  width: 64px;
  height: 80px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: charBounce 2s ease-in-out infinite;
}

.stage-character.stage-char-animated {
  background: transparent;
}

.stage-character.stage-char-animated canvas {
  width: 64px !important;
  height: 80px !important;
  image-rendering: pixelated;
}

.stage-char-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 8px;
}

@keyframes charBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.stage-label {
  padding: 4px 12px;
  background: var(--stage-color);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 8px;
}

.stage-title {
  font-size: 14px;
  font-weight: 600;
  color: #e6e8ef;
  text-align: center;
  margin-bottom: 6px;
}

.stage-desc {
  font-size: 10px;
  color: #9aa3c0;
  text-align: center;
  line-height: 1.4;
}

.stage-arrow {
  font-size: 28px;
  color: var(--stage-color);
  margin: 0 8px;
  align-self: center;
  margin-bottom: 60px;
  opacity: 0.6;
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

/* Dream stage special styling */
.stage-dream .stage-platform {
  background: linear-gradient(180deg, rgba(168,85,247,0.2), rgba(30,27,75,0.95));
  border-color: #a855f7;
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.3),
    0 0 40px rgba(168,85,247,0.3),
    inset 0 0 20px rgba(168,85,247,0.1);
}

.stage-dream .stage-label {
  background: linear-gradient(135deg, #a855f7, #fbbf24);
  animation: dreamGlow 2s ease-in-out infinite alternate;
}

@keyframes dreamGlow {
  0% { box-shadow: 0 0 10px rgba(168,85,247,0.5); }
  100% { box-shadow: 0 0 20px rgba(251,191,36,0.6); }
}

.stage-dream .stage-character {
  animation: charBounce 1.5s ease-in-out infinite;
}

.stage-dream .stage-char-img {
  border-radius: 50%;
  border: 2px solid #a855f7;
}

.stage-dream::before {
  content: '★';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: #fbbf24;
  animation: starSpin 3s linear infinite;
}

@keyframes starSpin {
  0% { transform: translateX(-50%) rotate(0deg) scale(1); }
  50% { transform: translateX(-50%) rotate(180deg) scale(1.2); }
  100% { transform: translateX(-50%) rotate(360deg) scale(1); }
}

.evolution-label {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #9aa3c0;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-top: 2px dashed rgba(99,102,241,0.3);
  margin-top: 10px;
}

.evolution-arrow {
  color: #6366f1;
  margin: 0 8px;
}

/* Market Size Slide */
.market-size-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 40px;
}

.market-size-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.market-bar {
  background: linear-gradient(180deg, rgba(30,27,75,0.9), rgba(15,14,38,0.95));
  border: 1px solid var(--bar-color);
  border-radius: 14px;
  padding: 14px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 20px rgba(99,102,241,0.1);
}

.market-bar:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 30px rgba(99,102,241,0.2);
}

.market-bar-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.market-bar-icon {
  font-size: 26px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

.market-bar-labels {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.market-bar-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--bar-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.market-bar-sublabel {
  font-size: 12px;
  color: #9aa3c0;
}

.market-bar-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 20px var(--bar-color);
}

.market-bar-track {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  margin-bottom: 6px;
}

.market-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bar-color), rgba(255,255,255,0.7));
  border-radius: 6px;
  animation: barGrow 1.5s ease-out forwards;
  transform-origin: left;
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.market-bar-growth {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(255,255,255,0.1) 4px,
    rgba(255,255,255,0.1) 8px
  );
  animation: growthPulse 2s ease-in-out infinite;
}

@keyframes growthPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.market-bar-detail {
  font-size: 12px;
  color: #7a84a6;
  line-height: 1.4;
}

/* Competition Slide - Left vs Right */
.competition-titlebar {
  height: auto;
  min-height: var(--header-h);
  padding-top: 16px;
  padding-bottom: 16px;
}

.competition-titlebar h2 {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.4;
}

.competition-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 30px;
}

.comp-vs-container {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

.comp-side {
  flex: 1;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comp-them-side {
  background: linear-gradient(180deg, rgba(239,68,68,0.1), rgba(15,14,38,0.95));
  border: 1px solid rgba(239,68,68,0.3);
}

.comp-us-side {
  background: linear-gradient(180deg, rgba(16,185,129,0.15), rgba(15,14,38,0.95));
  border: 1px solid rgba(16,185,129,0.4);
  box-shadow: 0 0 30px rgba(16,185,129,0.15);
}

.comp-side-header {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comp-side-label {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.comp-them-side .comp-side-label {
  color: #f87171;
}

.comp-us-side .comp-side-label {
  color: #34d399;
}

.comp-logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
}

.comp-grid-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255,255,255,0.9);
  padding: 4px;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.comp-grid-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.comp-us-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(99,102,241,0.2));
  border-radius: 12px;
  border: 1px solid rgba(16,185,129,0.3);
}

.comp-us-icon {
  font-size: 48px;
}

.comp-us-tagline {
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comp-problems, .comp-wins {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comp-problem-item, .comp-win-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.comp-problem-item {
  color: #9aa3c0;
  background: rgba(239,68,68,0.05);
}

.comp-problem-item:hover {
  background: rgba(239,68,68,0.1);
}

.comp-win-item {
  color: #e6e8ef;
  background: rgba(16,185,129,0.08);
}

.comp-win-item:hover {
  background: rgba(16,185,129,0.15);
}

.comp-x {
  color: #ef4444;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.comp-check {
  color: #10b981;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.comp-vs-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.comp-vs-text {
  font-size: 28px;
  font-weight: 900;
  color: #6366f1;
  text-shadow: 0 0 20px rgba(99,102,241,0.5);
  animation: vsPulse 2s ease-in-out infinite;
}

@keyframes vsPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* GTM Slide */
.gtm-titlebar {
  height: auto;
  min-height: var(--header-h);
  padding-top: 16px;
  padding-bottom: 16px;
}

.gtm-titlebar h2 {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.3;
}

.gtm-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 15px 30px;
}

.gtm-container {
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 950px;
}

.gtm-strategy {
  flex: 1.2;
  background: linear-gradient(180deg, rgba(30,27,75,0.9), rgba(15,14,38,0.95));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 16px;
  padding: 20px;
}

.gtm-strategy-title {
  font-size: 16px;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(99,102,241,0.2);
}

.gtm-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gtm-channel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: rgba(99,102,241,0.08);
  border-radius: 12px;
  border-left: 3px solid #6366f1;
  transition: all 0.2s ease;
}

.gtm-channel:hover {
  background: rgba(99,102,241,0.15);
  transform: translateX(4px);
}

.gtm-channel-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.15);
  border-radius: 10px;
  flex-shrink: 0;
}

.gtm-channel-name {
  font-size: 14px;
  font-weight: 600;
  color: #e6e8ef;
  margin-bottom: 4px;
}

.gtm-channel-desc {
  font-size: 12px;
  color: #9aa3c0;
  line-height: 1.4;
}

/* Spencer Section */
.gtm-spencer {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gtm-spencer-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(30,27,75,0.9));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 16px;
}

.gtm-spencer-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #10b981;
  box-shadow: 0 0 20px rgba(16,185,129,0.3);
}

.gtm-spencer-name {
  font-size: 18px;
  font-weight: 700;
  color: #e6e8ef;
}

.gtm-spencer-role {
  font-size: 12px;
  color: #34d399;
  font-weight: 600;
}

.gtm-spencer-network {
  background: linear-gradient(180deg, rgba(30,27,75,0.9), rgba(15,14,38,0.95));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 16px;
  padding: 16px;
  flex: 1;
}

.gtm-network-title {
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.gtm-network-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gtm-network-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: rgba(16,185,129,0.05);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.gtm-network-item:hover {
  background: rgba(16,185,129,0.1);
}

.gtm-network-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,185,129,0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.gtm-network-name {
  font-size: 12px;
  font-weight: 600;
  color: #e6e8ef;
}

.gtm-network-desc {
  font-size: 10px;
  color: #9aa3c0;
  line-height: 1.3;
}

/* Pricing Slide */
.pricing-titlebar {
  height: auto;
  min-height: var(--header-h);
  padding-top: 16px;
  padding-bottom: 16px;
}

.pricing-titlebar h2 {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.3;
}

.pricing-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 30px;
}

.pricing-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-tiers {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.pricing-card {
  flex: 1;
  max-width: 260px;
  background: linear-gradient(180deg, rgba(30,27,75,0.95), rgba(15,14,38,0.98));
  border: 2px solid var(--tier-color);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 30px rgba(99,102,241,0.25);
}

.pricing-card.popular {
  transform: scale(1.05);
  border-width: 3px;
  box-shadow: 0 8px 32px rgba(16,185,129,0.3);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.pricing-tier-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--tier-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
}

.pricing-price {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pricing-amount {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
}

.pricing-period {
  font-size: 12px;
  color: #9aa3c0;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-feature {
  text-align: center;
}

.pricing-feature-icons {
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.pricing-feature-label {
  font-size: 12px;
  color: #9aa3c0;
}

.pricing-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

.pricing-hours-icon {
  font-size: 20px;
}

.pricing-hours-value {
  font-size: 16px;
  font-weight: 700;
  color: #e6e8ef;
}

.pricing-overage {
  text-align: center;
  font-size: 11px;
  color: #7a84a6;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}

.pricing-overage strong {
  color: var(--tier-color);
}

/* Pricing Extras */
.pricing-extras {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.pricing-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(30,27,75,0.8);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  flex: 1;
  max-width: 300px;
}

.pricing-extra-icon {
  font-size: 28px;
}

.pricing-extra-title {
  font-size: 13px;
  font-weight: 600;
  color: #e6e8ef;
}

.pricing-extra-desc {
  font-size: 11px;
  color: #9aa3c0;
}

/* Milestone Slide */
.milestone-titlebar {
  height: auto;
  min-height: var(--header-h);
  padding-top: 16px;
  padding-bottom: 16px;
}

.milestone-titlebar h2 {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.3;
}

.milestone-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 30px;
}

.milestone-container {
  width: 100%;
  max-width: 950px;
  position: relative;
}

.milestone-timeline {
  position: absolute;
  top: 45px;
  left: 5%;
  right: 5%;
  height: 4px;
  z-index: 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 30px;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981, #f59e0b);
  border-radius: 2px;
}

.timeline-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #f59e0b;
}

.milestone-phases {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.milestone-card {
  flex: 1;
  max-width: 280px;
  background: linear-gradient(180deg, rgba(30,27,75,0.95), rgba(15,14,38,0.98));
  border: 2px solid var(--phase-color);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.milestone-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 25px rgba(99,102,241,0.2);
}

.milestone-card.highlight {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(99,102,241,0.3);
}

.milestone-card.highlight:hover {
  transform: scale(1.03) translateY(-6px);
}

.milestone-node {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--phase-color);
  border-radius: 50%;
  border: 3px solid #0e1536;
  box-shadow: 0 0 10px var(--phase-color);
}

.milestone-header {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.milestone-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.milestone-period {
  font-size: 18px;
  font-weight: 800;
  color: var(--phase-color);
  margin-bottom: 4px;
}

.milestone-label {
  font-size: 11px;
  font-weight: 600;
  color: #9aa3c0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.milestone-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #c5cbe8;
  line-height: 1.4;
}

.milestone-check {
  color: var(--phase-color);
  font-weight: bold;
  flex-shrink: 0;
}

/* Team Slide */
.team-titlebar {
  height: auto;
  min-height: var(--header-h);
  padding-top: 16px;
  padding-bottom: 16px;
}

.team-titlebar h2 {
  font-size: clamp(22px, 2.5vw, 32px);
}

.team-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5px 30px;
}

.team-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-section {
  background: linear-gradient(180deg, rgba(30,27,75,0.9), rgba(15,14,38,0.95));
  border-radius: 16px;
  padding: 16px;
}

.cofounders-section {
  border: 1px solid rgba(99,102,241,0.3);
}

.advisors-section {
  border: 1px solid rgba(16,185,129,0.3);
}

.team-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cofounders-section .team-section-label {
  color: #a5b4fc;
}

.advisors-section .team-section-label {
  color: #6ee7b7;
}

.team-cards {
  display: flex;
  gap: 16px;
}

.team-card {
  flex: 1;
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.team-card:hover {
  background: rgba(255,255,255,0.06);
}

.cofounder-card {
  align-items: flex-start;
}

.team-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #6366f1;
  flex-shrink: 0;
}

.team-info {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-size: 16px;
  font-weight: 700;
  color: #e6e8ef;
  margin-bottom: 2px;
}

.team-role {
  font-size: 11px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 8px;
}

.advisor-card .team-role {
  color: #6ee7b7;
}

.team-highlights {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.team-highlight {
  font-size: 10px;
  color: #9aa3c0;
  line-height: 1.3;
}

.advisor-focus {
  font-size: 10px;
  color: #9aa3c0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.team-logos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.team-logo {
  height: 22px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
  background: rgba(255,255,255,0.9);
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.team-logo:hover {
  transform: scale(1.1);
}

.team-links {
  display: flex;
  gap: 8px;
}

.team-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(99,102,241,0.15);
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.team-link:hover {
  background: rgba(99,102,241,0.3);
  transform: scale(1.1);
}

.team-link:has(img[src*="linkedin"]) {
  background: transparent;
  padding: 0;
  width: 32px;
  height: 32px;
}

.team-link:has(img[src*="twitter"]) {
  background: #fff;
  padding: 0;
  width: 32px;
  height: 32px;
}

.link-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
}

.link-icon[src*="linkedin"] {
  width: 32px;
  height: 32px;
}

.link-icon[src*="twitter"] {
  width: 18px;
  height: 18px;
}

/* Advisor cards - smaller */
.advisor-card {
  padding: 12px;
}

.advisors-cards .team-name {
  font-size: 14px;
}

.advisors-cards .team-role {
  font-size: 10px;
}

.advisors-cards .team-logo {
  height: 18px;
}

.advisors-cards .team-link {
  width: 24px;
  height: 24px;
  background: rgba(16,185,129,0.15);
}

.advisors-cards .team-link:hover {
  background: rgba(16,185,129,0.3);
}

/* Ask Slide - $1.5M Raise */
.ask-titlebar {
  height: auto;
  min-height: var(--header-h);
  padding-top: 14px;
  padding-bottom: 14px;
}

.ask-titlebar h2 {
  font-size: clamp(18px, 2.2vw, 24px);
}

.ask-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5px 30px;
}

.ask-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ask-hero {
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(99,102,241,0.1));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.ask-amount {
  font-size: 42px;
  font-weight: 900;
  color: #10b981;
  text-shadow: 0 0 30px rgba(16,185,129,0.4);
}

.ask-runway {
  font-size: 13px;
  color: #e6e8ef;
  font-weight: 600;
}

.ask-team-summary {
  font-size: 11px;
  color: #9aa3c0;
}

.ask-details {
  display: flex;
  gap: 12px;
}

.ask-section {
  flex: 1;
  background: linear-gradient(180deg, rgba(30,27,75,0.9), rgba(15,14,38,0.95));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  padding: 12px;
}

.ask-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ask-team-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ask-role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #e6e8ef;
  padding: 6px 8px;
  background: rgba(99,102,241,0.08);
  border-radius: 6px;
}

.ask-role-fractional {
  opacity: 0.7;
}

.ask-role em {
  font-size: 8px;
  color: #9aa3c0;
}

.ask-role-icon {
  font-size: 12px;
}

.ask-spend-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ask-spend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ask-spend-label {
  font-size: 10px;
  color: #9aa3c0;
  width: 65px;
  flex-shrink: 0;
}

.ask-spend-bar {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
}

.ask-spend-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease;
}

.ask-spend-pct {
  font-size: 10px;
  color: #e6e8ef;
  font-weight: 600;
  width: 50px;
  text-align: right;
}

.ask-milestones {
  background: linear-gradient(180deg, rgba(30,27,75,0.9), rgba(15,14,38,0.95));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 12px;
  padding: 12px;
}

.ask-milestones .ask-section-title {
  color: #6ee7b7;
}

.ask-milestone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ask-milestone {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  color: #c5cbe8;
  line-height: 1.4;
  padding: 8px;
  background: rgba(16,185,129,0.05);
  border-radius: 8px;
}

.ask-check {
  color: #10b981;
  font-weight: bold;
  flex-shrink: 0;
}

.ask-efficiency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 10px;
  font-size: 11px;
  color: #fcd34d;
}

.ask-efficiency-icon {
  font-size: 16px;
}

/* Vision Slide - Final */
.vision-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0a0d1f 0%, #0e1536 50%, #141a3b 100%);
}

.vision-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
  padding: 40px;
}

.vision-tagline {
  font-size: 14px;
  font-weight: 600;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.vision-headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #e6e8ef;
  line-height: 1.3;
  max-width: 700px;
}

.vision-brand {
  color: #ffffff;
}

.vision-characters {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  padding: 20px;
}

.vision-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vision-character canvas {
  width: 64px;
  height: 80px;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 12px rgba(99,102,241,0.3));
}

.vision-char-label {
  font-size: 12px;
  font-weight: 600;
  color: #9aa3c0;
  text-transform: capitalize;
}

.vision-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
}

.vision-contact-label {
  font-size: 13px;
  color: #9aa3c0;
}

.vision-contact-email {
  font-size: 15px;
  font-weight: 600;
  color: #a5b4fc;
  text-decoration: none;
  transition: all 0.2s ease;
}

.vision-contact-email:hover {
  color: #c7d2fe;
  text-shadow: 0 0 10px rgba(99,102,241,0.5);
}

/* Print preparation - show all slides */
body.printing #viewport {
  overflow: visible !important;
  height: auto !important;
  transform: none !important;
}

body.printing .controls,
body.printing .size-hint {
  display: none !important;
}

body.printing .slide.print-visible {
  display: flex !important;
  position: relative !important;
  width: 1280px !important;
  height: 720px !important;
  margin: 0 !important;
  transform: none !important;
  flex-shrink: 0 !important;
}

/* Print styles for PDF export */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #0e1536 !important;
  }
  
  #app {
    width: 1280px !important;
    background: #0e1536 !important;
  }
  
  #viewport {
    width: 1280px !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
  }
  
  .controls, .size-hint, .watermark, .global-watermark {
    display: none !important;
  }
  
  .slide.print-visible {
    display: flex !important;
    width: 1280px !important;
    height: 720px !important;
    min-height: 720px !important;
    max-height: 720px !important;
    margin: 0 !important;
    padding: 40px 60px !important;
    background: #0e1536 !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    break-after: page !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .slide.print-visible:last-of-type {
    page-break-after: auto !important;
  }
  
  @page {
    size: 1280px 720px landscape;
    margin: 0;
  }
}

@media (max-width: 900px) {
  .tools-row { grid-template-columns: 1fr; }
  .pains-grid { grid-template-columns: 1fr; }
  .dist-grid { grid-template-columns: 1fr; }
  .dist-shell { padding: 18px; }
  .dist-labels { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .dist-label { position: relative; left: auto; top: auto; }
  .nd-chart { height: 380px; padding: 18px 16px 70px 16px; overflow: hidden; }
  .nd-node { width: 180px; }
}
