/* ═══════════════════════════════════════════════════
   DECK.CSS — Web Presentation Framework Core Styles
   ═══════════════════════════════════════════════════ */

/* ── Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Design Tokens ────────────────────────────────── */
:root {
  --deck-bg: #070d1a;
  --slide-bg: #0d1a2e;
  --accent-1: #4fffb0;
  --accent-2: #7c6fff;
  --accent-3: #ff6b9d;
  --accent-4: #ffd166;
  --text-primary: #f0f4ff;
  --text-secondary: #8899bb;
  --text-muted: #445577;
  --border: rgba(255,255,255,0.07);
  --glow-1: rgba(79,255,176,0.15);
  --glow-2: rgba(124,111,255,0.15);
  --transition: 520ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: Arial, 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
/* :root {
  --deck-bg: #c0c8da;
  --slide-bg: #d9e6f9;
  --accent-1: #13442e;
  --accent-2: #211d47;
  --accent-3: #ff6b9d;
  --accent-4: #584721;
  --text-primary: #000104;
  --text-secondary: #3a4252;
  --text-muted: #718dc5;
  --border: rgba(7, 7, 7, 0.07);
  --glow-1: rgba(32, 98, 69, 0.15);
  --glow-2: rgba(36, 32, 80, 0.15);
  --transition: 520ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: Arial, 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
} */

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--deck-bg);
  font-family: var(--font-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ── Deck Container ───────────────────────────────── */
.deck {
  position: fixed;
  inset: 0;
  perspective: 1200px;
}

/* ── Slide Base ───────────────────────────────────── */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: var(--slide-bg);
  overflow: hidden;
  will-change: transform, opacity;
  transition: transform var(--transition), opacity var(--transition);
}

/* Grain overlay on slides */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
}

/* ── Slide States ─────────────────────────────────── */
.slide--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}

.slide--active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.slide--prev {
  opacity: 0;
  transform: translateY(-60px);
  pointer-events: none;
}

.slide--next {
  opacity: 0;
  transform: translateY(60px);
  pointer-events: none;
}

.slide--entering-down {
  opacity: 0;
  transform: translateY(60px);
}

.slide--entering-up {
  opacity: 0;
  transform: translateY(-60px);
}

/* ── State Visibility ─────────────────────────────── */
.state-hidden {
  opacity: 0 !important;
  pointer-events: none;
}

.state-visible {
  opacity: 1 !important;
}

/* ── State Appear ─────────────────────────────── */
.state-disappearing {
  display: none !important;
  pointer-events: none;
}

.state-appearing {
  opacity: 1 !important;
  display:block !important;
}

/* ── Progress Bar ─────────────────────────────────── */
.deck-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
  z-index: 1000;
}

.deck-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--accent-1);
}

/* ── Slide Counter ────────────────────────────────── */
.deck-counter {
  position: fixed;
  bottom: 18px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  z-index: 1000;
  letter-spacing: 0.1em;
}

/* ── Hints ────────────────────────────────────────── */
.deck-hints {
  position: fixed;
  bottom: 18px;
  left: 24px;
  display: flex;
  gap: 8px;
  z-index: 1000;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.deck-hints:hover { opacity: 1; }

.deck-hints span {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
}

/* ── Fullscreen Button ────────────────────────────── */
.deck-fullscreen-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.deck-fullscreen-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════
   LAYOUT HELPERS
   ═══════════════════════════════════════════════════ */

.slide-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Grid layouts */
.layout-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; width: 100%; align-items: center; }
.layout-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; width: 100%; }
.layout-hero  { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.layout-left  { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ═══════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════ */

.slide-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 8px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 0.6em;
}

.slide-title em {
  color: var(--accent-1);
  font-style: italic;
}

.slide-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.5;
  max-width: 700px;
}

.slide-body {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.slide-big-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  color: var(--accent-1);
  font-weight: 400;
}

.slide-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent-2);
  background: rgba(124,111,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

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

/* ═══════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════ */

/* ── Cards ────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}

.card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.card-accent-1 { border-left: 3px solid var(--accent-1); }
.card-accent-2 { border-left: 3px solid var(--accent-2); }
.card-accent-3 { border-left: 3px solid var(--accent-3); }
.card-accent-4 { border-left: 3px solid var(--accent-4); }

/* ── Callout ──────────────────────────────────────── */
.callout {
  background: rgba(79,255,176,0.06);
  border: 1px solid rgba(79,255,176,0.2);
  border-radius: 12px;
  padding: 20px 28px;
  color: var(--accent-1);
  font-size: 1.05em;
}

/* ── Divider ──────────────────────────────────────── */
.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), transparent);
  border: none;
  margin: 0;
}

/* ── Pill / Tag ───────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.pill-1 { background: rgba(79,255,176,0.1); color: var(--accent-1); border: 1px solid rgba(79,255,176,0.25); }
.pill-2 { background: rgba(124,111,255,0.1); color: var(--accent-2); border: 1px solid rgba(124,111,255,0.25); }
.pill-3 { background: rgba(255,107,157,0.1); color: var(--accent-3); border: 1px solid rgba(255,107,157,0.25); }
.pill-4 { background: rgba(255,209,102,0.1); color: var(--accent-4); border: 1px solid rgba(255,209,102,0.25); }

/* ── List ─────────────────────────────────────────── */
.deck-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deck-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.deck-list li::before {
  content: '▸';
  color: var(--accent-1);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Chart Container ──────────────────────────────── */
.chart-container {
  width: 100%;
  height: 260px;
  position: relative;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ── Quote ────────────────────────────────────────── */
.slide-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--text-primary);
  position: relative;
  padding-left: 28px;
}

.slide-quote::before {
  content: '"';
  position: absolute;
  left: -10px;
  top: -20px;
  font-size: 5rem;
  color: var(--accent-2);
  opacity: 0.3;
  line-height: 1;
}

.slide-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6em;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.1em;
}

/* ── Glow Orbs (decorative) ───────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 { background: var(--glow-1); width: 400px; height: 400px; top: -100px; right: -100px; }
.orb-2 { background: var(--glow-2); width: 300px; height: 300px; bottom: -80px; left: -80px; }

/* ── Icon Circle ──────────────────────────────────── */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.icon-circle-1 { background: rgba(79,255,176,0.1); border: 1px solid rgba(79,255,176,0.2); }
.icon-circle-2 { background: rgba(124,111,255,0.1); border: 1px solid rgba(124,111,255,0.2); }
.icon-circle-3 { background: rgba(255,107,157,0.1); border: 1px solid rgba(255,107,157,0.2); }
.icon-circle-4 { background: rgba(255,209,102,0.1); border: 1px solid rgba(255,209,102,0.25); }

/* ── Steps / Timeline ─────────────────────────────── */
.step-line {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  width: 2px;
  height: calc(100% - 16px);
  background: linear-gradient(var(--accent-1), transparent);
  opacity: 0.3;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-1);
  color: var(--accent-1);
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(79,255,176,0.05);
}

/* ── Full-bleed image backdrop ────────────────────── */
.slide-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.slide-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,13,26,0.92) 40%, rgba(7,13,26,0.6));
}

.slide > * { position: relative; z-index: 1; }

/* ── Slide-specific themes ────────────────────────── */
.slide-dark    { --slide-bg: #070d1a; }
.slide-light   { --slide-bg: #f0f4ff; color: #111; --text-primary: #111; --text-secondary: #445; }
.slide-accent  { --slide-bg: #0d2218; }
.slide-purple  { --slide-bg: #100d20; }

/* ── Positioned elements (for animation) ─────────── */
[data-pos-1], [data-show-1], [data-hide-1] {
  will-change: transform, opacity;
}

/* ── Highlight text ───────────────────────────────── */
.hl-1 { color: var(--accent-1); }
.hl-2 { color: var(--accent-2); }
.hl-3 { color: var(--accent-3); }
.hl-4 { color: var(--accent-4); }

/* ── Animate-in classes (for state transitions) ───── */
.anim-rise    { transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s ease; }
.anim-fade    { transition: opacity 0.5s ease; }
.anim-pop     { transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease; }
.anim-slide-r { transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s ease; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .slide { padding: 40px 28px; }
  .layout-2col, .layout-3col { grid-template-columns: 1fr; }
  .slide-title { font-size: 1.8rem; }
}
