/* ir-slides.css — unified base stylesheet for all ir-slides decks */
/* Do NOT add deck-specific bg-images here. Link this from every deck's HTML. */

:root {
  --bg: #091c1f;
  --surface: rgba(20,184,166,0.04);
  --surface-2: rgba(255,255,255,0.04);
  --border: rgba(20,184,166,0.18);
  --border-sub: rgba(255,255,255,0.07);
  --text: #dff0f0;
  --muted: #4a8a8e;
  --teal: #14b8a6;
  --orange: #f97316;
  --blue: #60a5fa;
  --green: #4ade80;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  user-select: none;
}

/* DOT GRID */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(20,184,166,0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* RADIAL GLOW */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(20,184,166,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* PROGRESS */
.progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--teal); transition: width 0.4s ease; z-index: 300;
}

/* DECK */
.deck { width: 100%; height: 100%; position: relative; z-index: 1; }

/* SLIDES */
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 52px 80px 76px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateX(40px) scale(0.98);
}
.slide.active { opacity: 1; pointer-events: all; transform: translateX(0) scale(1); }
.slide.exit   { opacity: 0; transform: translateX(-40px) scale(0.98); }
.slide.center { align-items: center; text-align: center; justify-content: center; }

/* NAV */
.nav {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; z-index: 200;
  background: rgba(9,28,31,0.92); border: 1px solid var(--border-sub);
  border-radius: 40px; padding: 7px 16px; backdrop-filter: blur(20px);
}
.nav-btn {
  background: none; border: 1px solid rgba(255,255,255,0.09); color: #2a5a5e;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.nav-btn:hover { border-color: var(--teal); color: var(--teal); }
.nav-btn:disabled { opacity: 0.15; cursor: default; }
.nav-counter { font-size: 0.68rem; color: #2a5a5e; min-width: 40px; text-align: center; letter-spacing: 0.06em; }
.dots { display: flex; gap: 5px; align-items: center; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.1); cursor: pointer; transition: all 0.25s; }
.dot.active { background: var(--teal); width: 18px; border-radius: 3px; }

/* LOGO CORNER */
.logo-corner { position: fixed; top: 20px; right: 24px; z-index: 200; opacity: 0.65; }
.logo-corner img { height: 20px; }
.logo-text { font-size: 0.82rem; font-weight: 800; color: var(--teal); letter-spacing: 0.04em; }

/* BADGE */
.badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 22px; width: fit-content;
}
.badge.context { color: #2a5a5e; border: 1px solid rgba(255,255,255,0.07); }
.badge.teal    { color: var(--teal);   border: 1px solid rgba(20,184,166,0.25);  background: rgba(20,184,166,0.06); }
.badge.orange  { color: var(--orange); border: 1px solid rgba(249,115,22,0.3);   background: rgba(249,115,22,0.06); }

/* TYPOGRAPHY */
h1 { font-size: clamp(2.8rem,5.5vw,4.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 18px; }
h2 { font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 900; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px; }
h1 em, h2 em { font-style: normal; color: var(--teal); }
h1 .accent, h2 .accent { font-style: normal; color: var(--orange); }
.sub { font-size: clamp(1rem,1.5vw,1.15rem); color: var(--muted); line-height: 1.7; max-width: 560px; margin-bottom: 24px; }
.sub.wide { max-width: 740px; }

/* STAT ROW */
.stat-row { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 14px; }
.stat-num { font-size: clamp(2rem,3.8vw,3.2rem); font-weight: 900; color: var(--teal); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }

/* BIG STAT */
.big-stats { display: flex; gap: 24px; margin-top: 20px; }
.big-stat { flex: 1; background: var(--surface-2); border: 1px solid var(--border-sub); border-radius: 14px; padding: 20px 22px; }
.big-stat .num { font-size: clamp(2.8rem,5vw,4rem); font-weight: 900; line-height: 1; color: var(--orange); }
.big-stat .lbl { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* LAYOUTS */
.two-col      { display: grid; grid-template-columns: 1fr 1fr;      gap: 48px; align-items: center; }
.two-col-wide { display: grid; grid-template-columns: 3fr 2fr;      gap: 40px; align-items: center; }
.three-col    { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.five-col     { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin-top: 20px; }

/* GLASS CARDS */
.card {
  background: var(--surface-2); border: 1px solid var(--border-sub);
  border-radius: 14px; padding: 22px 24px; backdrop-filter: blur(12px);
}
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.card .num        { font-size: 2rem; font-weight: 900; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.card .num.orange { color: var(--orange); }
.card-num   { font-size: 3.5rem; font-weight: 900; color: var(--teal); line-height: 1; margin-bottom: 10px; opacity: 0.35; }
.card-title { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -0.01em; }
.card-body  { font-size: 0.92rem; color: #8aaab0; line-height: 1.6; }

/* DOMAIN CARDS */
.domain-card { background: var(--surface-2); border: 1px solid var(--border-sub); border-radius: 12px; padding: 18px 14px; }
.domain-card h3 { font-size: 0.9rem; font-weight: 800; color: var(--teal); margin-bottom: 10px; }
.domain-card ul { list-style: none; padding: 0; }
.domain-card li { font-size: 0.7rem; color: var(--muted); padding: 3px 0; border-bottom: 1px solid var(--border-sub); line-height: 1.4; }
.domain-card li:last-child { border-bottom: none; }

/* PROJECT CARDS */
.project-img  { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px 10px 0 0; display: block; }
.project-card { background: var(--surface-2); border: 1px solid var(--border-sub); border-radius: 12px; overflow: hidden; }
.project-card .label { font-size: 0.8rem; font-weight: 700; color: var(--teal); padding: 12px 14px 4px; }
.project-card p { font-size: 0.74rem; color: var(--muted); padding: 0 14px 14px; line-height: 1.5; }

/* TESTIMONIAL */
.testimonial { background: var(--surface-2); border: 1px solid var(--border-sub); border-radius: 12px; padding: 16px 20px; margin-top: 16px; }
.testimonial blockquote { font-size: 0.82rem; color: #8aaab0; line-height: 1.65; font-style: italic; margin-bottom: 10px; }
.testimonial cite { font-size: 0.75rem; font-weight: 700; color: var(--teal); font-style: normal; }

/* MEDIA */
.media-box {
  background: rgba(0,0,0,0.35); border: 1px solid var(--border-sub); border-radius: 14px;
  aspect-ratio: 16/9; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.media-box img { width: 100%; height: 100%; object-fit: cover; }
.diagram-img { width: 100%; border-radius: 12px; display: block; }
.media-placeholder { color: #2a5a5e; font-size: 0.8rem; text-align: center; padding: 20px; }

/* PIPELINE */
.pipeline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.pipe-step {
  background: var(--surface-2); border: 1px solid var(--border-sub);
  border-radius: 8px; padding: 8px 16px; font-size: 0.88rem; font-weight: 600;
}
.pipe-arrow  { color: var(--teal); opacity: 0.5; font-size: 1.1rem; }
.pipe-result { background: rgba(20,184,166,0.12); border: 1px solid rgba(20,184,166,0.3); border-radius: 8px; padding: 8px 20px; font-size: 0.9rem; font-weight: 800; color: var(--teal); }

/* ARCH FLOW */
.arch-flow  { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 20px; }
.arch-box   { background: var(--surface-2); border: 1px solid var(--border-sub); border-radius: 14px; padding: 20px 18px; }
.arch-box h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.arch-arrow { font-size: 1.4rem; color: var(--teal); opacity: 0.4; text-align: center; }
.arch-item  { font-size: 0.78rem; color: #8aaab0; padding: 4px 0; border-bottom: 1px solid var(--border-sub); }
.arch-item:last-child { border-bottom: none; }
.arch-teal  { background: rgba(20,184,166,0.08); border-color: rgba(20,184,166,0.25); }
.arch-teal h3 { color: var(--teal); }

/* HIGHLIGHT BOX */
.hbox { background: var(--surface-2); border: 1px solid var(--border-sub); border-radius: 10px; padding: 14px 18px; margin-top: 12px; }
.hbox h3 { font-size: 0.8rem; font-weight: 700; margin-bottom: 4px; color: var(--teal); }
.hbox p  { font-size: 0.76rem; color: var(--muted); line-height: 1.6; }
.hbox.orange h3 { color: var(--orange); }

/* GALLERY */
.gallery-wrap  { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; overflow: hidden; }
.gallery-frame {
  flex: 1; min-height: 0; position: relative;
  background: rgba(0,0,0,0.45); border: 1px solid var(--border-sub); border-radius: 14px;
  overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gallery-frame img  { width: 100%; height: 100%; object-fit: cover; }
.gallery-frame video.cover   { width: 100%; height: 100%; object-fit: cover; }
.gallery-frame video.contain { max-width: 100%; max-height: 100%; object-fit: contain; }
.g-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(9,28,31,0.8); border: 1px solid var(--border-sub);
  color: var(--teal); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; z-index: 10; font-size: 0.95rem;
}
.g-arrow:hover { background: rgba(20,184,166,0.2); }
.g-arrow.left  { left: 12px; }
.g-arrow.right { right: 12px; }
.gallery-meta { display: flex; align-items: center; justify-content: space-between; }
.g-info  { font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.g-days  { font-size: 0.7rem; color: var(--teal); }
.g-dots  { display: flex; gap: 5px; }
.g-dot   { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.1); cursor: pointer; transition: all 0.22s; }
.g-dot.active { background: var(--teal); width: 14px; border-radius: 3px; }
.g-count { font-size: 0.68rem; color: #2a5a5e; }

/* CODE BLOCK */
.code-card {
  background: rgba(0,0,0,0.55); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px;
  font-family: 'SF Mono','Fira Code','Courier New', monospace;
  font-size: 0.76rem; line-height: 1.85; color: #7ad4ce;
}
.code-card .cm  { color: #2a5a5e; }
.code-card .kw  { color: var(--teal); }
.code-card .fn  { color: #93c5fd; }
.code-card .str { color: #86efac; }
.code-card .out { color: #4ade80; font-size: 0.7rem; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); }

/* INTEGRATION TAGS */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag  { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border-sub); color: var(--muted); }

/* SDK CARD */
.sdk-card {
  background: rgba(10,20,22,0.85); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 28px 28px 22px;
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 0;
}
.sdk-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.sdk-logo   { height: 40px; width: 40px; object-fit: contain; }
.sdk-logo-fallback { height:40px;width:40px;border-radius:10px;background:var(--teal);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:1.1rem;color:#091c1f; }
.sdk-name   { font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.2; }
.sdk-org    { font-size: 0.78rem; color: #4a6a6e; margin-top: 1px; }
.sdk-tags   { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sdk-tag    { font-size: 0.72rem; font-weight: 500; padding: 5px 13px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); color: #8aaab0; }
.sdk-desc   { font-size: 0.82rem; color: #8aaab0; line-height: 1.65; margin-bottom: 14px; }
.sdk-checks { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.sdk-checks li { font-size: 0.82rem; color: #c0d8db; padding-left: 20px; position: relative; }
.sdk-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.sdk-divider      { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 16px; }
.sdk-footer-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: #2a5a5e; text-transform: uppercase; }
.sdk-link   { font-size: 0.82rem; font-weight: 600; color: var(--teal); margin-top: 16px; cursor: pointer; }

/* HERO SLIDE — deck adds background-image in per-deck style.css */
.slide-hero { padding: 0; overflow: hidden; }
.slide-hero .inner { position: relative; z-index: 2; padding: 52px 80px; max-width: 840px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, rgba(9,28,31,0.97) 45%, rgba(9,28,31,0.6) 100%);
}
.hero-visual {
  position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 1; overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 20%, black 60%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 20%, black 60%);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: left top; filter: brightness(0.9); }
.hero-app-preview {
  position: absolute; top: 0; right: 0; bottom: 0; width: 52%;
  z-index: 0; overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, rgba(0,0,0,0.85) 50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, rgba(0,0,0,0.85) 50%);
}
.hero-app-preview img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }

/* PROBLEM SLIDE — deck adds background-image in per-deck style.css */
.slide-problem { padding: 0; }
.slide-problem .inner { position: relative; z-index: 2; padding: 52px 80px; }
.problem-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.problem-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.25) grayscale(0.3); }
.problem-bg::after { content: ''; position: absolute; inset: 0; background: rgba(9,28,31,0.65); }

/* EMBED / MAP / LIVE */
.slide-embed  { padding: 32px 60px; }
.embed-frame  { width: 100%; height: 100%; border: none; border-radius: 12px; display: block; }
.slide-map    { padding: 0; overflow: hidden; }
.map-container { width: 100%; height: 100%; position: relative; }
.map-overlay  {
  position: absolute; bottom: 32px; left: 48px; z-index: 10;
  background: rgba(9,28,31,0.92); border: 1px solid var(--border-sub);
  border-radius: 12px; padding: 16px 20px; backdrop-filter: blur(20px);
  max-width: 340px;
}
.live-result  { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 900; color: var(--teal); line-height: 1.1; margin: 12px 0; }
.live-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.88rem; }
.live-loading::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--teal); border-top-color: transparent; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* GIVEAWAY */
.giveaway-code {
  font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 900; letter-spacing: 0.08em;
  color: var(--orange); border: 2px solid rgba(249,115,22,0.4);
  border-radius: 12px; padding: 14px 32px; display: inline-block; margin: 12px 0;
  background: rgba(249,115,22,0.07);
}
.giveaway-discount {
  font-size: clamp(3.5rem,7vw,5.5rem); font-weight: 900; line-height: 1;
  color: var(--teal); letter-spacing: -0.04em; margin-bottom: 8px;
}

/* SPEAKER */
.speaker { position: absolute; bottom: 44px; left: 80px; display: flex; align-items: center; gap: 10px; }
.speaker-photo { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; border: 1.5px solid rgba(20,184,166,0.3); flex-shrink: 0; }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker-name { font-size: 0.82rem; font-weight: 700; }
.speaker-role { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }

/* MERMAID DIAGRAMS */
pre.mermaid {
  display: flex; justify-content: center; align-items: center;
  margin: 16px 0; min-height: 100px; background: none; border: none;
}
pre.mermaid svg { max-width: 100%; height: auto; }
pre.mermaid .edgeLabel { background: #091c1f !important; }
pre.mermaid .nodeLabel { font-weight: 600; }

/* CLOSING LOGO */
.closing-logo { margin-bottom: 28px; }
.closing-logo img { height: 40px; opacity: 0.85; }

/* RESPONSIVE */
@media (max-width: 760px) {
  .slide { padding: 32px 20px 76px; }
  .slide-hero .inner, .slide-problem .inner { padding: 32px 20px; }
  .two-col, .two-col-wide, .three-col, .five-col, .arch-flow { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .big-stats { flex-direction: column; }
  .arch-arrow { display: none; }
  .speaker { position: static; margin-top: 32px; }
}
