/* ============================================
   MysliSrdcom — AI Deck
   Reveal.js téma v štýle marketacik/MysliSrdcom:
   dark mode, červený accent, orbs, shimmer, border glow rotate,
   glow sweep, morph animácie, kinetic typography.
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --surface: #1e1e1e;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666;

  --red: #ed1c24;
  --red-bright: #ff3a3a;
  --red-deep: #a81218;
  --red-dark: #c41920;
  --red-glow: rgba(237, 28, 36, 0.45);
  --red-glow-soft: rgba(237, 28, 36, 0.18);
  --red-subtle: rgba(237, 28, 36, 0.08);

  --brand-gradient: linear-gradient(135deg, var(--red-deep), var(--red), var(--red-bright));
  --brand-glow: 0 4px 24px rgba(237, 28, 36, 0.35);
  --brand-glow-hover: 0 8px 40px rgba(237, 28, 36, 0.5);

  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);

  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --noise: 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.05'/%3E%3C/svg%3E");
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

html, body { background: #050505; }
.reveal-viewport { background: #050505; }

.reveal {
  font-family: var(--font-sans);
  font-size: 32px;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.reveal ::selection { background: var(--red); color: #fff; }

/* ================= GLOBAL BACKGROUND ================= */

/* Global orbs — always visible behind all slides */
.deck-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.deck-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.deck-bg .orb-1 {
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(237, 28, 36, 0.38) 0%, transparent 70%);
  top: -10%; left: -8%;
  animation: orbFloat1 26s ease-in-out infinite;
}
.deck-bg .orb-2 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255, 58, 58, 0.28) 0%, transparent 70%);
  bottom: -12%; right: -8%;
  animation: orbFloat2 32s ease-in-out infinite;
}
.deck-bg .orb-3 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(168, 18, 24, 0.3) 0%, transparent 70%);
  top: 40%; left: 45%;
  animation: orbFloat3 22s ease-in-out infinite;
}
.deck-bg .noise {
  position: absolute; inset: 0;
  background-image: var(--noise);
  background-size: 256px 256px;
  mix-blend-mode: overlay;
  opacity: 0.7;
}
.deck-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, -60px) scale(1.1); }
  50% { transform: translate(-40px, -120px) scale(0.95); }
  75% { transform: translate(-100px, 40px) scale(1.05); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-70px, 80px) scale(1.08); }
  50% { transform: translate(60px, 40px) scale(0.92); }
  75% { transform: translate(30px, -90px) scale(1.12); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, 70px) scale(1.05); }
  50% { transform: translate(-80px, -30px) scale(1.1); }
  75% { transform: translate(40px, -60px) scale(0.9); }
}

/* Slide base */
.reveal .slides section {
  text-align: left;
}
.reveal .slides section.stack { padding: 0; }

/* ================= TYPOGRAPHY ================= */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--font-sans);
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: none;
  margin: 0 0 0.35em;
}
.reveal h1 { font-size: clamp(3.4rem, 6vw, 5.8rem); }
.reveal h2 { font-size: clamp(2.6rem, 4.8vw, 4.2rem); }
.reveal h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 600; }

.reveal em, .reveal .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  letter-spacing: -0.02em;
}
.reveal .serif-light {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}

.reveal p, .reveal li { color: var(--text-secondary); line-height: 1.5; font-weight: 400; }
.reveal strong { color: var(--text); font-weight: 700; }

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-red-gradient {
  background: linear-gradient(135deg, var(--red-bright), var(--red), var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= EYEBROW (section label) ================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-sans);
  font-size: 0.68em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  padding: 0.5em 1.1em;
  border: 1px solid rgba(237, 28, 36, 0.4);
  border-radius: var(--radius-pill);
  background: var(--red-subtle);
  backdrop-filter: blur(10px);
  margin-bottom: 1.4em;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ================= BUTTONS (display-only on slides) ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  font-family: var(--font-sans);
  font-size: 0.88em;
  font-weight: 600;
  color: #fff;
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
  border: none;
  background: var(--brand-gradient);
  box-shadow: var(--brand-glow);
  letter-spacing: -0.005em;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
  animation: shimmer 2.6s ease-in-out infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn--glow {
  position: relative;
}
.btn--glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0%,
    transparent 25%,
    rgba(255, 255, 255, 0.5) 33%,
    #fff 38%,
    rgba(255, 255, 255, 0.5) 43%,
    transparent 50%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  animation: borderGlowRotate 3s linear infinite;
}
@keyframes borderGlowRotate {
  0%   { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}

/* ================= GLOW LINES ================= */
.glow-line {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  overflow: visible;
  margin: 1.5rem 0;
}
.glow-line::before,
.glow-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 4px;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center, var(--red), rgba(237, 28, 36, 0.45) 40%, transparent 70%);
  filter: blur(2px);
}
.glow-line::before {
  animation: glowSweep 2.2s ease-in-out infinite alternate;
}
.glow-line::after {
  animation: glowSweep 1.4s ease-in-out infinite alternate-reverse;
  opacity: 0.5;
}
@keyframes glowSweep {
  0% { left: 0%; }
  100% { left: 72%; }
}

/* ================= SLIDE-LEVEL COMPONENTS ================= */

/* TITLE SLIDE */
.title-slide {
  text-align: center;
  position: relative;
}
.title-slide .eyebrow { margin-bottom: 2em; }
.title-slide h1 {
  font-size: clamp(3.6rem, 7.2vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 900;
}
.title-slide h1 .serif {
  display: block;
  font-size: 0.92em;
  line-height: 1;
  margin-top: 0.1em;
}
.title-slide .sub {
  color: var(--text-secondary);
  font-size: 1.6em;
  line-height: 1.35;
  margin-top: 1.5em;
  max-width: none;
}
/* Author block (on slide 2) */
.author-block {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  font-size: 0.85em;
}
.author-block > div strong {
  color: var(--text);
  display: block;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.author-block > div span {
  font-size: 0.85em;
  color: var(--text-muted);
}
.brand-line-inline {
  margin-top: 1.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text);
  font-size: 1.4em;
  letter-spacing: -0.015em;
}
.brand-line-inline em {
  color: var(--red);
  font-style: italic;
}

/* Ring logo (morphs into other visuals) */
.ring-logo {
  position: relative;
  width: 220px; height: 220px;
  margin: 0 auto 2.5rem;
}
/* Dekoratívny orb na ostatných slajdoch — absolútne pozicovaný, nenarušuje layout */
.ring-logo.ring-decor {
  position: absolute;
  margin: 0;
  pointer-events: none;
  z-index: 0;
}
.ring-logo.ring-decor-tr { top: -100px; left: calc(100% - 120px); }
.ring-logo.ring-decor-br { top: calc(100% - 120px); left: calc(100% - 120px); }
.ring-logo.ring-decor-bl { top: calc(100% - 120px); left: -100px; }
.ring-logo.ring-decor-tl { top: -100px; left: -100px; }
.ring-logo.ring-decor-tc { top: -180px; left: calc(50% - 110px); }
.ring-logo .core {
  position: absolute; top: 50%; left: 50%;
  width: 78px; height: 78px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--red-bright) 0%, var(--red) 55%, var(--red-deep) 100%);
  box-shadow: 0 0 50px var(--red-glow), 0 0 90px var(--red-glow-soft);
  animation: corePulse 3.2s ease-in-out infinite, coreGlow 8s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
}
@keyframes coreGlow {
  0%, 100% { box-shadow: 0 0 50px rgba(237,28,36,0.5), 0 0 90px rgba(237,28,36,0.25); }
  50%      { box-shadow: 0 0 80px rgba(255,58,58,0.65), 0 0 140px rgba(237,28,36,0.35); }
}

.ring-logo .ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-logo .ring::after {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px var(--red), 0 0 26px var(--red-glow);
  transform: translateX(-50%);
}
.ring-logo .r1 {
  width: 120px; height: 120px;
  border: 1px dashed rgba(237, 28, 36, 0.5);
  animation: ringSpin 12s linear infinite;
}
.ring-logo .r2 {
  width: 170px; height: 170px;
  border: 1px dotted rgba(237, 28, 36, 0.35);
  animation: ringSpin 18s linear infinite reverse;
}
.ring-logo .r3 {
  width: 220px; height: 220px;
  border: 1px solid rgba(237, 28, 36, 0.2);
  animation: ringSpin 26s linear infinite;
}
@keyframes ringSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Split layout (left + right) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}
.split.ratio-3-2 { grid-template-columns: 3fr 2fr; }
.split.ratio-2-3 { grid-template-columns: 2fr 3fr; }
.split.mt-3 { align-items: start; }

/* Cards */
.cards {
  display: grid; gap: 1rem;
  margin-top: 2rem;
}
.cards.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards.cards-5 {
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.cards.cards-5 .card { padding: 2rem 1.8rem; grid-column: span 2; }
.cards.cards-5 .card:nth-child(4) { grid-column: 2 / span 2; }
.cards.cards-5 .card:nth-child(5) { grid-column: 4 / span 2; }
.cards.cards-5 .card h4 { font-size: 2.1rem; margin-bottom: 0.6rem; line-height: 1.15; }
.cards.cards-5 .card p { font-size: 1.5rem; line-height: 1.4; }
.cards.cards-5 .card .icon { width: 64px; height: 64px; font-size: 1.9rem; margin-bottom: 1rem; }

/* Slide 2 (Kto som): cards-2 natiahnuté na výšku, väčší text */
.split.ratio-2-3 .cards.cards-2 { grid-auto-rows: 1fr; gap: 0.9rem; }
.split.ratio-2-3 .cards.cards-2 .card { padding: 1.6rem 1.5rem; }
.split.ratio-2-3 .cards.cards-2 .card h4 { font-size: 1.85rem; margin-bottom: 0.6rem; }
.split.ratio-2-3 .cards.cards-2 .card p { font-size: 1.2rem; line-height: 1.4; }
.split.ratio-2-3 .cards.cards-2 .card .icon { width: 62px; height: 62px; font-size: 1.9rem; margin-bottom: 1rem; }

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  text-align: left;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.5s var(--ease);
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card .num {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.card h4 {
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  font-weight: 700;
}
.card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}
.card .icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--red-subtle);
  color: var(--red);
  margin-bottom: 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.75rem;
  font-weight: 600;
  border: 1px solid rgba(237, 28, 36, 0.25);
  line-height: 1;
}

/* Animated border card (conic rotating) */
.card--glow {
  position: relative;
}
.card--glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0%,
    transparent 30%,
    var(--red) 40%,
    var(--red-bright) 50%,
    var(--red) 60%,
    transparent 70%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  animation: borderGlowRotate 5s linear infinite;
}

/* Bullets */
.reveal .bullets {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  text-align: left;
}
.reveal .bullets li {
  position: relative;
  padding: 0.55em 0 0.55em 1.7em;
  font-size: 1em;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.reveal .bullets li:last-child { border-bottom: none; }
.reveal .bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.05em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}
.reveal .bullets.big li {
  font-size: 1.35em;
  padding: 0.7em 0 0.7em 2em;
  font-weight: 600;
}
.reveal .bullets.big li::before {
  width: 12px; height: 12px;
  top: 1.3em;
  background: var(--red);
  box-shadow: 0 0 16px var(--red-glow);
}

/* Big stat */
.big-num {
  font-size: clamp(6rem, 13vw, 12rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.065em;
  display: block;
}

/* Pills row */
.pill-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.3rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.45em 1.05em;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.92em;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
}
.pill.red {
  color: var(--red);
  border-color: rgba(237, 28, 36, 0.45);
  background: var(--red-subtle);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
.pill .pill-ic {
  width: 1.05em; height: 1.05em;
  flex-shrink: 0;
  opacity: 0.95;
}

/* Callout quote */
.callout {
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.12), rgba(237, 28, 36, 0.03));
  border-left: 3px solid var(--red);
  padding: 1.3rem 1.6rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15em;
  color: var(--text);
  margin-top: 1.6rem;
  text-align: left;
  line-height: 1.4;
  position: relative;
}
.callout::before {
  content: '\201C';
  font-family: var(--font-serif);
  color: var(--red);
  font-size: 3em;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 0.08em;
}

/* Pipeline */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
  flex-wrap: nowrap;
}
.pipeline > * {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pipeline.visible > * { opacity: 1; transform: translateX(0); }
.pipeline.visible > *:nth-child(1)  { transition-delay: 0s; }
.pipeline.visible > *:nth-child(2)  { transition-delay: 0.75s; }
.pipeline.visible > *:nth-child(3)  { transition-delay: 1.5s; }
.pipeline.visible > *:nth-child(4)  { transition-delay: 2.25s; }
.pipeline.visible > *:nth-child(5)  { transition-delay: 3s; }
.pipeline.visible > *:nth-child(6)  { transition-delay: 3.75s; }
.pipeline.visible > *:nth-child(7)  { transition-delay: 4.5s; }
.pipeline.visible > *:nth-child(8)  { transition-delay: 5.25s; }
.pipeline.visible > *:nth-child(9)  { transition-delay: 6s; }
.pipeline.visible > *:nth-child(10) { transition-delay: 6.75s; }
.pipeline.visible > *:nth-child(11) { transition-delay: 7.5s; }
.pipeline.visible > *:nth-child(12) { transition-delay: 8.25s; }
.pipeline.visible > *:nth-child(13) { transition-delay: 9s; }
.pipe-item {
  padding: 0.75em 1.1em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95em;
  white-space: nowrap;
  color: var(--text);
  backdrop-filter: blur(10px);
}
.pipe-item.red {
  background: var(--red-subtle);
  border-color: rgba(237, 28, 36, 0.45);
  color: var(--red);
}
.pipe-arrow {
  color: var(--red);
  font-size: 1.3em;
  font-weight: 300;
  opacity: 0.8;
}

/* Steps line (5 cols) */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  margin-top: 2rem;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 5%; right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--red), transparent);
  filter: blur(0.5px);
  box-shadow: 0 0 12px var(--red-glow);
}
.step {
  text-align: center;
  position: relative;
}
.step .dot {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--red);
  display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red);
  font-size: 1.5rem;
  position: relative; z-index: 2;
  box-shadow: 0 0 28px rgba(237, 28, 36, 0.4);
}
.step h4 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--text);
  line-height: 1.15;
}
.step p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* Warnings (4 grid) */
.warn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.warn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.callout-feature {
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.18), rgba(237, 28, 36, 0.04));
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2.4rem 2.6rem 2.4rem 3.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4.6rem;
  line-height: 1.1;
  color: var(--text);
  position: relative;
}
.callout-feature::before {
  content: '\201C';
  font-family: var(--font-serif);
  color: var(--red);
  font-size: 6rem;
  line-height: 0.8;
  position: absolute;
  top: 1.2rem; left: 1.4rem;
  opacity: 0.35;
}
.callout-feature strong {
  color: var(--red);
  font-style: italic;
  font-weight: 700;
  display: block;
  margin-top: 0.35em;
  font-size: 1em;
}
.warn {
  background: rgba(237, 28, 36, 0.06);
  border: 1px solid rgba(237, 28, 36, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}
.warn .ic {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  box-shadow: 0 0 16px var(--red-glow);
}
.warn span {
  color: var(--text);
  font-weight: 500;
  font-size: 1.1em;
  line-height: 1.35;
}

/* Chat mock */
.chat {
  max-width: 520px;
  margin: 1.2rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.2rem;
  text-align: left;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.chat-head .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  font-family: var(--font-serif);
  font-style: italic;
}
.chat-head .meta strong {
  color: var(--text);
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}
.chat-head .meta span { font-size: 0.85rem; color: var(--text-muted); }
.chat-head .status {
  margin-left: auto;
  font-size: 0.85rem;
  color: #3ddc7f;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.chat-head .status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ddc7f;
  box-shadow: 0 0 8px #3ddc7f;
}
.bubble {
  padding: 0.75em 1.1em;
  border-radius: 16px;
  font-size: 1.1em;
  margin-bottom: 0.5rem;
  max-width: 85%;
  line-height: 1.4;
}
.bubble.user {
  background: var(--surface);
  color: var(--text);
  margin-left: auto;
  text-align: right;
  border: 1px solid var(--border);
}
.bubble.bot {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow-soft);
}
.bubble.bot.faint {
  background: rgba(237, 28, 36, 0.14);
  color: var(--text);
  border: 1px solid rgba(237, 28, 36, 0.35);
  box-shadow: none;
}
.dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: dot 1.4s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* System (center + surrounding) */
.system {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  position: relative;
  margin-top: 2rem;
  min-height: 360px;
  overflow: hidden;
  border-radius: 24px;
}
/* CSS-based connectors: dashed horizontal lines spanning each row */
.system::before,
.system::after {
  content: '';
  position: absolute;
  left: 8%; right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(237, 28, 36, 0.4) 0 6px, transparent 6px 12px);
  z-index: 0;
  pointer-events: none;
}
.system::before { top: 25%; }
.system::after  { top: 75%; }
.sys-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease);
}
.sys-node strong {
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 700;
}
.sys-node span { font-size: 1em; color: var(--text-secondary); }
.sys-node.center {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  grid-column: 2;
  grid-row: 1 / span 2;
  box-shadow: 0 0 60px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 2;
}
.sys-node:not(.center) { z-index: 1; }
.sys-node.center strong { color: #fff; font-size: 1.9em; letter-spacing: -0.02em; }
.sys-node.center span { color: rgba(255, 255, 255, 0.9); font-size: 1em; }

/* SVG connectors */
.sys-links {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.sys-links path {
  fill: none;
  stroke: rgba(237, 28, 36, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: dashMove 20s linear infinite;
}
@keyframes dashMove {
  to { stroke-dashoffset: -100; }
}

/* Search mock */
.search-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  text-align: left;
  margin-top: 0;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--border);
}
.search-bar .ic-s {
  width: 18px; height: 18px;
  color: var(--red);
  flex-shrink: 0;
}
.search-bar .q {
  color: var(--text);
  font-size: 1.1em;
  font-weight: 500;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 0;
  transition: max-width 2.4s steps(36, end) 0.3s;
}
.search-bar.visible .q { max-width: 600px; }
.search-bar .caret {
  width: 2px; height: 1.2em;
  background: var(--red);
  animation: blink 1s step-end infinite;
  display: inline-block;
  margin-left: 1px;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }
.search-ai {
  margin-top: 0.7rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.14), rgba(237, 28, 36, 0.03));
  border: 1px solid rgba(237, 28, 36, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.95em;
  color: var(--text);
  line-height: 1.4;
}
.search-ai strong {
  color: var(--red);
  font-size: 0.85em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.55em;
  font-weight: 700;
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 2rem;
  text-align: left;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--red), var(--red), transparent);
}
.tl-item {
  position: relative;
  padding-bottom: 1.4rem;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.3em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 16px var(--red-glow);
}
.tl-date {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red);
  font-size: 1.1em;
}
.tl-item strong {
  display: block;
  font-size: 1.25em;
  margin: 0.25em 0 0.3em;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tl-item span {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Small source ref */
.source {
  font-size: 1em;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1.3rem;
  display: block;
  line-height: 1.4;
}

/* Slide counter / title chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: 0.7em;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.chip span.idx {
  color: var(--red);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3em;
  letter-spacing: 0;
  text-transform: none;
}

/* Final slide */
.final { text-align: center; }
.final h2 {
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.final .sig {
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.final .sig strong {
  font-size: 1.1em;
  color: var(--text);
  font-weight: 700;
}
.final .sig span {
  font-size: 0.75em;
  color: var(--text-muted);
  margin-top: 0.3em;
}
.final .brand-line {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red);
  font-size: 1.45em;
  margin-top: 1rem;
}

/* ================= REVEAL CONTROLS ================= */
.reveal .progress {
  color: var(--red);
  height: 3px;
  background: rgba(237, 28, 36, 0.15);
}
.reveal .slide-number {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(10, 10, 10, 0.75);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.reveal .controls button { color: var(--red) !important; }

/* ================= UTILITY ================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.muted { color: var(--text-muted); font-size: 0.9em; }
.small { font-size: 0.95em; }

/* Corner buttons — bottom-left (theme toggle + fullscreen); slide-number is bottom-right */
.fs-toggle,
.theme-toggle {
  position: fixed;
  bottom: 16px;
  z-index: 40;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(20, 20, 24, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.theme-toggle { left: 18px; }
.fs-toggle { left: 64px; }
.fs-toggle:hover,
.theme-toggle:hover {
  background: rgba(40, 40, 48, 0.75);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}
.fs-toggle:active,
.theme-toggle:active { transform: scale(0.96); }
.fs-toggle:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--red, #ef4444);
  outline-offset: 2px;
}
.fs-toggle .fs-ic,
.theme-toggle .th-ic {
  width: 18px;
  height: 18px;
  display: block;
}
.fs-toggle .fs-ic-exit { display: none; }
.fs-toggle.is-fullscreen { display: none; }
.theme-toggle .th-ic-moon { display: none; }
html[data-theme="light"] .theme-toggle .th-ic-sun { display: none; }
html[data-theme="light"] .theme-toggle .th-ic-moon { display: block; }

/* ========== SLIDE MENU MODAL ========== */
.slide-menu {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(10px);
  z-index: 9999;
  overflow-y: auto;
  padding: 3rem 2rem;
  display: none;
}
.slide-menu.is-open { display: block; }
.slide-menu-panel {
  max-width: 1400px;
  margin: 0 auto;
  color: var(--text);
  font-family: var(--font-sans);
}
.slide-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.slide-menu-head h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}
.slide-menu-close {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.slide-menu-close:hover {
  border-color: var(--red);
  color: var(--red);
}
.slide-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.slide-menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease);
  color: var(--text);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  aspect-ratio: 16/9;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}
.slide-menu-card:hover {
  border-color: rgba(237, 28, 36, 0.6);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(237, 28, 36, 0.15);
}
.slide-menu-card .num {
  color: var(--red);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 600;
}
.slide-menu-card .title {
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}

/* Reveal fragment behavior */
.reveal .slides section .fragment.fade-up {
  opacity: 0;
  transform: translateY(14px);
}
.reveal .slides section .fragment.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* Print */
@media print {
  .deck-bg .orb { animation: none !important; }
  .deck-bg .noise { display: none; }
}

/* ============================================
   LIGHT THEME
   Aktivácia: <html data-theme="light"> (toggle button vľavo dole).
   Stratégia: override CSS custom properties + explicitné pravidlá pre
   hardcoded biele/tmavé rgba hodnoty, ktoré nepoužívajú var().
   ============================================ */
html[data-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.88);
  --surface: #f0f0f0;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.2);
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;

  --red-glow: rgba(237, 28, 36, 0.35);
  --red-glow-soft: rgba(237, 28, 36, 0.14);
  --red-subtle: rgba(237, 28, 36, 0.06);

  --brand-glow: 0 4px 24px rgba(237, 28, 36, 0.22);
  --brand-glow-hover: 0 8px 40px rgba(237, 28, 36, 0.35);
}

/* Global page / viewport background */
html[data-theme="light"],
html[data-theme="light"] body {
  background: #fafafa;
}
html[data-theme="light"] .reveal-viewport { background: #fafafa; }

/* Deck background layer — grid lines + noise + orbs */
html[data-theme="light"] .deck-bg .grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}
html[data-theme="light"] .deck-bg .noise {
  opacity: 0.22;
  mix-blend-mode: multiply;
}
html[data-theme="light"] .deck-bg .orb-1 {
  background: radial-gradient(circle, rgba(237, 28, 36, 0.22) 0%, transparent 70%);
}
html[data-theme="light"] .deck-bg .orb-2 {
  background: radial-gradient(circle, rgba(255, 58, 58, 0.18) 0%, transparent 70%);
}
html[data-theme="light"] .deck-bg .orb-3 {
  background: radial-gradient(circle, rgba(168, 18, 24, 0.2) 0%, transparent 70%);
}

/* Text gradient — dark→grey instead of white→grey */
html[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #000 0%, #555 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Eyebrow chip — softer red tint on light */
html[data-theme="light"] .eyebrow {
  background: rgba(237, 28, 36, 0.08);
  border-color: rgba(237, 28, 36, 0.3);
}

/* Cards — translucent white */
html[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .card::before {
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.08), transparent 60%);
}

/* Ghost btn — translucent white */
html[data-theme="light"] .btn.ghost {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Pills */
html[data-theme="light"] .pill {
  background: rgba(255, 255, 255, 0.55);
}

/* Sys-node grid — okrem center (ten má brand-gradient) */
html[data-theme="light"] .sys-node:not(.center) {
  background: rgba(255, 255, 255, 0.65);
}

/* Step circle — white fill instead of --bg (which is light, but explicit reads cleaner) */
html[data-theme="light"] .step .dot {
  background: #ffffff;
}

/* Chat bubble user — solid light surface + dark border */
html[data-theme="light"] .bubble.user {
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Heavy dark shadows → soft shadows on light */
html[data-theme="light"] .chat {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .search-mock {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Strike-through in slide 4 "Nie…" list — inline style uses rgba(255,255,255,0.18) */
html[data-theme="light"] .bullets li[style*="line-through"] {
  text-decoration-color: rgba(0, 0, 0, 0.25) !important;
}

/* Slide number chip — dark chip on dark, light chip on light */
html[data-theme="light"] .reveal .slide-number {
  background: rgba(255, 255, 255, 0.82);
  color: #555;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Progress bar bg */
html[data-theme="light"] .reveal .progress {
  background: rgba(237, 28, 36, 0.12);
}

/* Corner buttons (theme + fullscreen) — light chrome */
html[data-theme="light"] .fs-toggle,
html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}
html[data-theme="light"] .fs-toggle:hover,
html[data-theme="light"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.22);
  color: #000;
}

/* Slide-menu modal backdrop — light */
html[data-theme="light"] .slide-menu {
  background: rgba(250, 250, 250, 0.94);
}
html[data-theme="light"] .slide-menu-close {
  background: rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .slide-menu-card {
  background: rgba(255, 255, 255, 0.75);
}
html[data-theme="light"] .slide-menu-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(237, 28, 36, 0.12);
}
