/* ============================ sekcia ============================ */
.sec { --mc: var(--accent); animation: fadeUp .35s var(--ease); }
.sec-head { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.sec-kicker { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sec-num { color: var(--mc); }
.sec-min { margin-left: auto; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 99px; letter-spacing: .06em; }
.sec-head h2 { margin-top: 14px; font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.sec-question { margin: 16px 0 0; font-size: clamp(17px, 2vw, 22px); font-weight: 600; color: var(--mc); line-height: 1.35; }
.sec-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 820px; }
.sec-blocks { display: grid; gap: 26px; }
.sec-acts { display: grid; gap: 22px; margin-top: 26px; }
.sec-blocks .act-slot { margin: 2px 0; }
.sec-sources { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.sec-sources ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.sec-sources li { margin: 4px 0; }
.sec--break .break-card { padding: 60px 30px; text-align: center; border-radius: 24px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.sec--break h2 { font-size: 48px; margin: 10px 0; }

/* ============================ bloky ============================ */
.b-title { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-family: var(--font); }
.b-p { font-size: 16px; line-height: 1.65; max-width: 860px; margin: 0; }
.b-h { font-size: 22px; margin-top: 6px; }
.b-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.points-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cols-2 .points-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.point { position: relative; padding: 18px 18px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s; }
.point:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.point-n { font-size: 11px; font-weight: 800; color: var(--mc, var(--accent)); letter-spacing: .1em; }
.point h4 { margin: 8px 0 6px; font-size: 16px; letter-spacing: -.01em; }
.point p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.ticks li { position: relative; padding-left: 26px; line-height: 1.5; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--mc, var(--accent)); font-weight: 900; }

ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
ol.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); position: relative; }
ol.steps li + li::before { content: ""; position: absolute; left: 35px; top: -11px; height: 10px; border-left: 2px dashed var(--line-strong); }
.step-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 16px; }
ol.steps h4 { font-size: 16px; margin: 2px 0 4px; }
ol.steps p { margin: 0; color: var(--ink-2); font-size: 14px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp { position: relative; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cmp--bad { background: var(--surface-2); }
.cmp--bad .cmp-label { color: var(--bad); }
.cmp--good { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cmp--good .cmp-label { color: var(--accent); }
.cmp--neutral { background: var(--surface); }
.cmp--neutral .cmp-label { color: var(--cyan); }
.cmp--warn { background: var(--warn-soft); border-color: transparent; }
.cmp--warn .cmp-label { color: var(--warn); }
.cmp-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cmp-text { font-size: 15px; line-height: 1.6; white-space: normal; }
.cmp .b-copy { align-self: flex-start; margin-top: auto; }
.cmp--good .btn { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }

.b-callout { display: grid; gap: 4px; padding: 14px 16px 14px 18px; border-radius: var(--radius-sm); border-left: 4px solid var(--cyan); background: var(--cyan-soft); font-size: 15px; line-height: 1.55; }
.b-callout strong { font-size: 13px; letter-spacing: .04em; }
.callout--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout--bad { border-left-color: var(--bad); background: var(--bad-soft); }
.callout--key { border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.callout--ok { border-left-color: var(--ok); background: var(--ok-soft); }
.callout--kia { border-left-color: var(--ink); background: var(--surface-3); }

.b-quote { margin: 0; padding: 20px 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.b-quote p { font-size: 20px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.b-quote cite { color: var(--muted); font-style: normal; font-size: 13px; }

.td-key { font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.tl { display: grid; grid-template-columns: 120px 26px 1fr; gap: 0; align-items: start; padding: 8px 0; }
.tl-date { font-size: 13px; font-weight: 800; text-align: right; padding-right: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ok); margin: 3px 0 0 6px; position: relative; z-index: 1; }
.tl--now .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl--future .tl-dot { border-color: var(--line-strong); }
.tl--future .tl-text { color: var(--muted); }
.tl-text { font-size: 14.5px; line-height: 1.5; padding-left: 10px; }

.b-case { padding: 20px; border-radius: var(--radius); border: 1px solid var(--bad-soft); background: linear-gradient(135deg, var(--bad-soft), transparent 60%); }
.case-head { display: flex; gap: 8px; margin-bottom: 10px; }
.b-case h3 { font-size: 20px; margin-bottom: 8px; }
.b-case p { margin: 0 0 8px; line-height: 1.6; }
.case-lesson { padding-top: 8px; border-top: 1px dashed var(--line-strong); }

.codebox { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #0b0b0d; color: #e4e4e8; }
.codebox-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 6px 14px; background: #141418; font-size: 12px; color: #9c9ca8; font-family: var(--mono); }
.codebox-head .btn { background: transparent; color: #e4e4e8; border-color: #34343d; }
.codebox pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.codebox code { background: none; padding: 0; white-space: pre; }

/* 3D vrstvy (bezpečnostné mantinely) */
.layers3d { perspective: 1400px; display: grid; gap: 10px; padding: 10px 0 10px; }
.layer { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  transform: rotateX(18deg) translateZ(calc((var(--n) - var(--i)) * 6px)); transform-origin: center bottom; transition: transform .35s var(--ease), box-shadow .35s;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--accent) calc((var(--n) - var(--i)) * 4%), transparent), transparent 60%); }
.layer:hover { transform: rotateX(0deg) translateZ(30px) scale(1.01); box-shadow: var(--shadow-3); z-index: 2; }
.layer-n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--ink); color: var(--bg); }
.layer h4 { margin: 2px 0 4px; font-size: 16px; }
.layer p { margin: 0; color: var(--ink-2); font-size: 14px; }

.b-kia { padding: clamp(22px, 3.4vw, 36px); border-radius: 20px; background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.b-kia::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.kia-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; letter-spacing: .14em; font-weight: 800; }
.kia-head strong { border: 1px solid rgba(255,255,255,.5); padding: 4px 9px; border-radius: 99px; font-weight: 600; letter-spacing: .04em; }
.b-kia h3 { font-size: clamp(24px, 3vw, 34px); margin: 26px 0 10px; letter-spacing: -.02em; }
.b-kia p { color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.6; max-width: 760px; margin: 0; }
.kia-kpi { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.35); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }
.kia-kpi span { letter-spacing: .12em; font-size: 10px; opacity: .8; }

.flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 6px 2px 10px; }
.flow-node { flex: 1 1 0; min-width: 130px; display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.flow-node span { font-size: 11px; font-weight: 800; color: var(--mc, var(--accent)); }
.flow-node strong { font-size: 15px; line-height: 1.25; }
.flow-node small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.flow-arrow { flex: 0 0 26px; align-self: center; height: 2px; background: var(--line-strong); position: relative; }
.flow-arrow::after { content: ""; position: absolute; right: 0; top: -4px; border: 5px solid transparent; border-left-color: var(--line-strong); }

/* ============================ vizualizácie ============================ */
.viz-slot { min-height: 60px; }
.viz3d { border-radius: 20px; overflow: hidden; background: radial-gradient(120% 120% at 30% 0%, #111115, #000000 70%); color: #f4f4f6; border: 1px solid #222228; }
.viz3d--split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); }
.viz3d-stage { position: relative; min-height: 320px; }
.viz3d-stage .three-canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.viz3d-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid #222228; }
.viz3d-bar .seg { background: #121215; border-color: #222228; }
.viz3d-bar .seg button { color: #9c9ca8; }
.viz3d-bar .seg button.is-on { background: #f4f4f6; color: #000000; }
.viz3d-cap { margin: 0; padding: 0 16px 14px; font-size: 13.5px; color: #9c9ca8; }
.viz3d-info { padding: 22px; border-left: 1px solid #222228; display: flex; flex-direction: column; gap: 8px; }
.viz3d-info h3 { font-size: 24px; }
.viz3d-info .muted { color: #9c9ca8; }
.viz3d-info .b-callout { color: #f4f4f6; }
.viz3d-core-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; text-align: center; font-weight: 800; font-size: 13px; text-shadow: 0 2px 10px rgba(0,0,0,.6); z-index: 2; opacity: .9; }
.viz3d-core-label small { font-weight: 500; opacity: .75; }
.three-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.three-label { position: absolute; left: 0; top: 0; pointer-events: auto; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--c); background: rgba(0,0,0, .78); color: #f4f4f6; font-size: 12.5px; font-weight: 700; white-space: nowrap; backdrop-filter: blur(4px); cursor: pointer; transition: background .2s; }
.three-label.is-on, .three-label:hover { background: var(--c); color: #000000; }
.three-labels--small .three-label { font-size: 11px; padding: 3px 7px; font-weight: 600; cursor: default; pointer-events: none; }
.three-label--point.is-hover { background: var(--c); color: #000000; }
.three-label--query { border-color: #ff5c74; background: #ff2d4b; color: #fff; font-size: 13px; }
.trust-fallback, .anatomy-fallback { padding: 30px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; min-height: 260px; }
.trust-stream { width: 100%; text-align: center; color: #9c9ca8; font-weight: 700; }
.viz-galaxy { position: relative; height: 320px; border-radius: 20px; overflow: hidden; background: #000000; }
.viz-galaxy .three-canvas { width: 100% !important; height: 100% !important; }

/* autoregresívna slučka */
.loopviz { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto auto minmax(0, 1.2fr); gap: 14px; align-items: center; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.loopviz-ctx, .loopviz-probs { display: grid; gap: 8px; }
.loopviz-text { font-family: var(--mono); font-size: 15px; line-height: 1.9; min-height: 64px; }
.loopviz-text .tok { padding: 2px 1px; border-radius: 4px; background: var(--cyan-soft); margin-right: 1px; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--cyan) 40%, transparent); white-space: pre; }
.loopviz-text .tok:last-of-type { background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.caret { display: inline-block; width: 8px; height: 18px; background: var(--accent); vertical-align: middle; animation: blink 1s infinite; margin-left: 2px; }
.loopviz-arrow { font-size: 22px; color: var(--faint); }
.loopviz-model { display: grid; justify-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.loopviz-cube { width: 54px; height: 54px; position: relative; transform-style: preserve-3d; animation: cube 8s linear infinite; }
.loopviz-cube i { position: absolute; inset: 0; border: 2px solid var(--accent); background: var(--accent-soft); }
.loopviz-cube i:nth-child(1) { transform: translateZ(27px); }
.loopviz-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(27px); }
.loopviz-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(27px); }
.loopviz-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(27px); }
.loopviz-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(27px); }
.loopviz-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(27px); }
@keyframes cube { to { transform: rotateX(360deg) rotateY(720deg); } }
.loopviz-probs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.loopviz-probs li { display: grid; grid-template-columns: 92px 1fr 46px; gap: 8px; align-items: center; font-size: 13px; }
.loopviz-probs li code { background: var(--surface-3); white-space: pre; }
.loopviz-probs li.is-pick code { background: var(--accent); color: #fff; }
.pbar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--cyan); border-radius: inherit; transition: width .5s var(--ease); }
.loopviz-probs li.is-pick .pbar i { background: var(--accent); }
.loopviz-back { grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--muted); padding-top: 6px; border-top: 1px dashed var(--line-strong); }

@media (max-width: 860px) {
  .compare { grid-template-columns: 1fr; }
  .viz3d--split { grid-template-columns: 1fr; }
  .viz3d-info { border-left: 0; border-top: 1px solid #222228; }
  .loopviz { grid-template-columns: 1fr; }
  .loopviz-arrow { transform: rotate(90deg); justify-self: center; }
  .timeline::before { left: 92px; }
  .tl { grid-template-columns: 82px 26px 1fr; }
  .tl-date { font-size: 12px; }
}

/* grid položky sa nesmú rozťahovať podľa obsahu (flow, tabuľky, kód) – inak pretečie mobil */
.sec-blocks, .sec-acts, .sec-blocks > *, .sec-acts > * { min-width: 0; }
.b-flow, .b-table, .b-code { max-width: 100%; }

/* ============================ LIVE demo krok (Copilot Studio) ============================ */
.b-demo { position: relative; padding: clamp(18px, 2.6vw, 28px); border-radius: 22px; border: 1px solid color-mix(in srgb, var(--c4) 45%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--c4) 12%, var(--surface)), var(--surface) 55%); box-shadow: var(--shadow-2); display: grid; gap: 14px; }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.demo-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.demo-step { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c4); }
.demo-title { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.02em; }
.demo-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.demo-path span { padding: 5px 11px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--line-strong); font-weight: 650; }
.demo-path span:last-child { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.demo-path i { font-style: normal; color: var(--faint); font-weight: 800; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.demo-grid:has(> .demo-side:empty) { grid-template-columns: 1fr; }
.demo-do { margin: 0; padding: 0; list-style: none; counter-reset: d; display: grid; gap: 8px; }
.demo-do li { counter-increment: d; position: relative; padding: 9px 12px 9px 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.demo-do li::before { content: counter(d); position: absolute; left: 10px; top: 8px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--c4); color: #fff; font-weight: 800; font-size: 12.5px; }
.demo-side { display: grid; gap: 10px; }
.demo-side:empty { display: none; }
.demo-copy { border-radius: 14px; overflow: hidden; border: 1px solid #26262d; background: #0b0b0d; color: #e4e4e8; }
.demo-copy-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 12px; background: #141418; font-size: 11.5px; font-weight: 700; color: #9c9ca8; letter-spacing: .04em; }
.demo-copy-head .btn { background: transparent; color: #e4e4e8; border-color: #34343d; }
.demo-copy pre { margin: 0; padding: 12px 14px; max-height: 260px; overflow: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.demo-expect { padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); border-left: 4px solid var(--ok); }
.demo-expect span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.demo-expect p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.demo-files { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-fallback { margin: 0; font-size: 13px; color: var(--muted); padding-top: 8px; border-top: 1px dashed var(--line-strong); }

/* súbory na stiahnutie */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 12px; }
.file-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s var(--ease); }
.file-card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.file-card strong { display: block; font-size: 14px; line-height: 1.3; }
.file-card small { color: var(--muted); font-size: 12px; }
.file-ext { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c4); color: #fff; font-size: 11px; font-weight: 800; }
.file-card i { font-style: normal; color: var(--muted); font-size: 18px; }
@media (max-width: 760px) { .demo-grid { grid-template-columns: 1fr; } }
