/* ============================================================
   AI workshop · Kia Slovakia – základ dizajnu
   ============================================================ */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;

  --bg: #f4f5f2;
  --bg-2: #eceee9;
  --surface: #ffffff;
  --surface-2: #f6f7f4;
  --surface-3: #eef0ec;
  --ink: #0a1218;
  --ink-2: #26313a;
  --muted: #5b6670;
  --faint: #8c969f;
  --line: #dde1dc;
  --line-strong: #c3c9c3;

  --accent: #ea0029;
  --accent-2: #c3001f;
  --accent-soft: rgba(234, 0, 41, .09);
  --cyan: #0b8fa8;
  --cyan-soft: rgba(11, 143, 168, .11);
  --violet: #6b4fd8;
  --violet-soft: rgba(107, 79, 216, .1);
  --ok: #12804b;
  --ok-soft: rgba(18, 128, 75, .1);
  --warn: #b26a00;
  --warn-soft: rgba(178, 106, 0, .11);
  --bad: #c8102e;
  --bad-soft: rgba(200, 16, 46, .09);

  --c1: #ea0029; /* modul 1 */
  --c2: #0b8fa8; /* modul 2 */
  --c3: #6b4fd8; /* modul 3 */
  --c4: #e07b00; /* modul 4 */

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-1: 0 1px 2px rgba(10, 18, 24, .06), 0 2px 8px rgba(10, 18, 24, .04);
  --shadow-2: 0 10px 30px rgba(10, 18, 24, .09), 0 2px 6px rgba(10, 18, 24, .05);
  --shadow-3: 0 30px 70px rgba(10, 18, 24, .18);
  --ring: 0 0 0 3px rgba(234, 0, 41, .25);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 3vw, 40px);
  color-scheme: light;
}

/* Tmavá téma – automaticky podľa systému (ak nie je vynútená svetlá) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-2: #070708;
    --surface: #0e0e11;
    --surface-2: #121215;
    --surface-3: #17171b;
    --ink: #f4f4f6;
    --ink-2: #d6d6dc;
    --muted: #9c9ca8;
    --faint: #6e6e7a;
    --line: #222228;
    --line-strong: #34343d;
    --accent: #ff2d4b;
    --accent-2: #ff5a71;
    --accent-soft: rgba(255, 45, 75, .14);
    --cyan: #3cc8e0;
    --cyan-soft: rgba(60, 200, 224, .13);
    --violet: #9d86ff;
    --violet-soft: rgba(157, 134, 255, .14);
    --ok: #3ad08a;
    --ok-soft: rgba(58, 208, 138, .13);
    --warn: #ffb547;
    --warn-soft: rgba(255, 181, 71, .13);
    --bad: #ff5c74;
    --bad-soft: rgba(255, 92, 116, .14);
    --c2: #3cc8e0;
    --c3: #9d86ff;
    --c4: #ffa23a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 14px 36px rgba(0, 0, 0, .35);
    --shadow-3: 0 30px 80px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #070708;
  --surface: #0e0e11;
  --surface-2: #121215;
  --surface-3: #17171b;
  --ink: #f4f4f6;
  --ink-2: #d6d6dc;
  --muted: #9c9ca8;
  --faint: #6e6e7a;
  --line: #222228;
  --line-strong: #34343d;
  --accent: #ff2d4b;
  --accent-2: #ff5a71;
  --accent-soft: rgba(255, 45, 75, .14);
  --cyan: #3cc8e0;
  --cyan-soft: rgba(60, 200, 224, .13);
  --violet: #9d86ff;
  --violet-soft: rgba(157, 134, 255, .14);
  --ok: #3ad08a;
  --ok-soft: rgba(58, 208, 138, .13);
  --warn: #ffb547;
  --warn-soft: rgba(255, 181, 71, .13);
  --bad: #ff5c74;
  --bad-soft: rgba(255, 92, 116, .14);
  --c2: #3cc8e0;
  --c3: #9d86ff;
  --c4: #ffa23a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 14px 36px rgba(0, 0, 0, .35);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0 0 .8em; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img, svg, canvas { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-3); padding: .1em .38em; border-radius: 5px; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 .4em; font-size: .8em; background: var(--surface); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.boot-mark { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.stack { display: grid; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }
.hidden { display: none !important; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
