/* CorePilot — design tokens + slide styles */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* mood A — Midnight Indigo (default) */
  --bg: #07070b;
  --bg-2: #0c0c12;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f5f5f7;
  --ink-2: #c4c4cc;
  --muted: #6b6b78;
  --muted-2: #45454f;

  --accent: #818cf8;        /* indigo 400 */
  --accent-2: #a5b4fc;      /* indigo 300 */
  --accent-deep: #4f46e5;   /* indigo 600 */
  --accent-glow: rgba(129, 140, 248, 0.45);

  --warn: #f5a524;
  --good: #4ade80;
  --hot: #f87171;

  --grid-color: rgba(255, 255, 255, 0.04);

  --radius: 14px;
  --radius-sm: 8px;

  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

/* mood B — Atlas (deep blue gradient, AI feel) */
[data-mood="atlas"] {
  --bg: #050a18;
  --bg-2: #081230;
  --surface: rgba(40, 80, 160, 0.10);
  --surface-2: rgba(60, 110, 200, 0.14);
  --line: rgba(120, 170, 255, 0.12);
  --line-strong: rgba(120, 170, 255, 0.22);
  --ink: #eef4ff;
  --ink-2: #c2cfe5;
  --muted: #7a8aa8;
  --muted-2: #4a5775;

  --accent: #22d3ee;
  --accent-2: #67e8f9;
  --accent-deep: #0ea5e9;
  --accent-glow: rgba(34, 211, 238, 0.40);
  --grid-color: rgba(120, 170, 255, 0.05);
}

/* page chrome */
html, body { background: #000; color: var(--ink); margin: 0; font-family: var(--font-body); }
body { overflow: hidden; }

/* deck stage canvas */
deck-stage { --slide-bg: var(--bg); }
deck-stage > section {
  background: var(--bg);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}

/* ambient grid background — mood A */
deck-stage > section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 75%);
}

/* ambient orbs — mood B */
[data-mood="atlas"] deck-stage > section::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(50% 50% at 12% 90%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(40% 40% at 50% 110%, rgba(14, 165, 233, 0.10), transparent 70%);
  pointer-events: none;
}

/* layout primitives */
.slide-pad { padding: 88px 96px; height: 100%; box-sizing: border-box; position: relative; z-index: 2; display: flex; flex-direction: column; }
.slide-pad.flush { padding: 0; }
.slide-pad.tight { padding: 72px 80px; }

.deck-chrome {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 96px; font-family: var(--font-mono);
  font-size: 12px; color: var(--muted); letter-spacing: 0.04em;
  z-index: 3; pointer-events: none;
}
.deck-chrome .left { display: flex; gap: 18px; align-items: center; }
.deck-chrome .right { display: flex; gap: 18px; align-items: center; }
.deck-chrome .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

/* eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}

/* type scale */
h1.hero {
  font-family: var(--font-display);
  font-size: 124px;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
}
h1.title {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h2.sub {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p.lead { font-size: 22px; color: var(--ink-2); line-height: 1.45; max-width: 56ch; font-weight: 400; }
p.body { font-size: 17px; color: var(--ink-2); line-height: 1.55; max-width: 56ch; }
p.small { font-size: 14px; color: var(--muted); line-height: 1.5; }

em.serif { font-family: var(--font-serif); font-style: italic; color: var(--accent-2); font-weight: 400; }

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }

/* cover */
.cover { display: grid; place-items: center; text-align: center; }
.cover .wordmark { display: flex; align-items: baseline; gap: 8px; }
.cover .wordmark svg { display: block; }

/* logo lockup */
.lockup {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
}
.lockup .mark {
  width: 22px; height: 22px; position: relative;
}
.lockup .mark svg { width: 100%; height: 100%; display: block; }

/* problem grid */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pain-cell {
  background: var(--bg);
  padding: 28px 26px;
  min-height: 116px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  cursor: default;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pain-cell:hover { background: var(--surface-2); }
.pain-cell .num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; align-self: flex-start; }
.pain-cell .txt { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.pain-cell .x { position: absolute; top: 22px; right: 24px; color: var(--hot); opacity: 0.5; font-family: var(--font-mono); font-size: 12px; }

/* capability cards (what we do) */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cap-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.cap-card:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.cap-card .cap-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.12em;
}
.cap-card .cap-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink); line-height: 1.15;
}
.cap-card .cap-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.cap-card .cap-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 9px;
  color: var(--accent);
  background: var(--surface);
}
.cap-card .cap-icon svg { width: 20px; height: 20px; }

/* spans */
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.row-span-2 { grid-row: span 2; }

/* chip / tag */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--surface);
}
.chip .swatch { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* horizontal rule */
.hr {
  height: 1px;
  background: linear-gradient(to right, var(--line) 0%, var(--line-strong) 30%, var(--line) 100%);
  width: 100%;
}

/* big stat / numeric */
.bignum {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 8px;
}
.bignum .unit { font-size: 28px; color: var(--accent); letter-spacing: -0.01em; }

/* before / after */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px 22px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 18px;
}
.ba-card.after { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 24px 60px -20px var(--accent-glow); }
.ba-card .ba-head { display: flex; align-items: center; justify-content: space-between; }
.ba-card .ba-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.ba-card.after .ba-label { color: var(--accent); }
.ba-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.ba-card li { font-size: 16.5px; color: var(--ink-2); display: flex; gap: 12px; line-height: 1.45; }
.ba-card li::before { content: ""; width: 18px; flex-shrink: 0; margin-top: 9px; height: 1px; background: var(--muted-2); }
.ba-card.after li::before { background: var(--accent); }

/* process steps */
.process-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  position: relative;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 17px; left: 17px; right: 17px;
  height: 1px;
  background: linear-gradient(to right, var(--accent) 0%, var(--line-strong) 100%);
  z-index: 0;
}
.process-step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.process-step .pip {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}
.process-step h4 {
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink); margin: 0; line-height: 1.2;
}
.process-step p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }

/* AI doc flow */
.flow-stage {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  position: relative;
}
.flow-arrow {
  position: absolute;
  top: 50%;
  width: 22px; height: 22px;
  transform: translateY(-50%);
  display: grid; place-items: center;
  color: var(--accent);
  z-index: 2;
}
.flow-arrow.a1 { left: calc(33.33% - 11px); }
.flow-arrow.a2 { left: calc(66.66% - 11px); }
.flow-col {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 320px;
}
.flow-col .flow-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.flow-col h4 { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); margin: 0; }
.flow-col .doc-mini {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-2);
  background: var(--bg);
  display: flex; justify-content: space-between; align-items: center;
}

/* integrations hub */
.hub {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 540px;
}
.hub-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em;
  box-shadow: 0 0 60px var(--accent-glow), 0 0 0 1px var(--line-strong);
}
.hub-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
}
.hub-node {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  transform: translate(-50%, -50%);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.hub-node:hover { border-color: var(--accent); color: var(--ink); }
.hub-node .hn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* dashboard mock */
.mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mock-bar .tl { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); }
.mock-bar .url { flex: 1; height: 22px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }

/* chat mock */
.chat-mock { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.chat-msg { display: flex; gap: 10px; max-width: 78%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.chat-msg.user .avatar { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.chat-msg .bubble { padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.chat-msg.user .bubble { background: rgba(129,140,248,0.10); border-color: rgba(129,140,248,0.35); color: var(--ink); }
[data-mood="atlas"] .chat-msg.user .bubble { background: rgba(34,211,238,0.10); border-color: rgba(34,211,238,0.30); }

/* security layers / cloud */
.layers { display: flex; flex-direction: column; gap: 10px; }
.layer-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.layer-row:first-child { border-top: none; }
.layer-row .l-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.layer-row .l-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* large case study */
.case-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: stretch;
}
.case-side h2 { margin-bottom: 12px; }
.case-side .case-pts { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.case-pt { display: flex; gap: 14px; align-items: flex-start; }
.case-pt .case-pt-tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent); padding-top: 2px; min-width: 36px; }
.case-pt .case-pt-body { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.case-pt .case-pt-body strong { color: var(--ink); font-weight: 500; }

/* "lang" toggling */
[data-lang="sk"] .en { display: none; }
[data-lang="en"] .sk { display: none; }

/* utility flex */
.col { display: flex; flex-direction: column; }
.row { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; } .gap-64 { gap: 64px; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.text-c { text-align: center; }
.fill { width: 100%; height: 100%; }

/* Slide content is fully visible by default. We tried CSS keyframe entry
   animations, but deck-stage's visibility transitions on navigation cause
   them to get stuck at the "from" state. Plain content is more reliable
   than fragile entry choreography. */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: 0; } }

.rise { opacity: 1; transform: none; }

/* glow rings for AI feel */
.glow-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.3;
  animation: pulse 3s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* big quote */
.quote-block {
  font-family: var(--font-serif);
  font-size: 84px;
  line-height: 1.05;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}
.quote-block em { font-style: italic; color: var(--accent-2); }

/* keep static-html slides editable */
