/* =====================================================================
   AXON — AI Meeting Companion
   Vizuální systém: noční jednací místnost osvětlená jen světelným pásem.
   Teplá téměř černá, jantarové světlo (#FFB000 = LISTEN), vlasové linky,
   Mona Sans (osa šířky) + Martian Mono pro technická data.
   ===================================================================== */

:root {
  color-scheme: dark;

  --bg: #0b0a09;
  --bg-1: #0f0e0c;
  --bg-2: #161412;
  --bg-3: #1d1a17;
  --line: rgba(255, 236, 214, 0.085);
  --line-2: rgba(255, 236, 214, 0.15);
  --line-3: rgba(255, 236, 214, 0.26);

  --text: #f3eee7;
  --text-2: #b9b0a4;
  --text-3: #80786d;

  /* světelné stavy podle axon.json */
  --mute: #ff2d2d;
  --amber: #ffb000;
  --think: #1677ff;
  --speak: #ffffff;
  --active: #43cf85;
  --glow: #ff9a3c;
  --hot: #ffe7c4;

  --font: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1360px;
  --nav-h: 72px;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
code { font-family: var(--mono); }
::selection { background: rgba(255, 176, 0, 0.32); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 300; padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.wordmark {
  height: 1em; width: auto; aspect-ratio: 498 / 124;
  fill: none; stroke: currentColor; stroke-width: 10; stroke-miterlimit: 14;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* zrno pro fotografický dojem */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- typografie ---------- */
.h1 {
  font-size: clamp(38px, 5.3vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 330;
  font-stretch: 104%;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 3.9vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 340;
  font-stretch: 104%;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 380;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.28vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 36em;
  text-wrap: pretty;
}
.muted { color: var(--text-3); font-size: 14.5px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 560; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: .2em; line-height: 1;
  color: var(--text-2);
}
.eyebrow__line {
  width: 28px; height: 2px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--amber), var(--hot));
  box-shadow: 0 0 10px rgba(255, 160, 40, .75);
}
.eyebrow__num { font-family: var(--mono); font-stretch: 100%; font-weight: 400; letter-spacing: 0; color: var(--amber); }

/* split-text maska */
.line-mask { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- tlačítka, stavy ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 540; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s, border-color .35s, box-shadow .35s;
}
.btn--light { background: var(--text); color: #0b0a09; }
.btn--light:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 10px 40px -10px rgba(255, 190, 110, .45); }
.btn--light .icon { transition: transform .45s var(--ease); }
.btn--light:hover .icon { transform: translateX(3px); }
.btn--ghost { padding-left: 6px; color: var(--text); }
.btn__disc {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-3); transition: border-color .35s, background-color .35s;
}
.btn__disc .icon { width: 15px; height: 15px; rotate: 90deg; transition: translate .45s var(--ease); }
.btn--ghost:hover .btn__disc .icon { translate: 0 2px; }
.btn--ghost:hover .btn__disc { border-color: var(--amber); background: rgba(255, 176, 0, .1); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 13.5px; }

.status-dot {
  /* mini svislá LED — stejný jazyk jako světelný pás AXONu */
  --c: var(--amber);
  display: inline-block; flex: none; width: 4px; height: 13px; border-radius: 2px;
  background: var(--c);
  box-shadow: 0 0 9px color-mix(in srgb, var(--c) 75%, transparent), 0 0 2px var(--c);
  transition: background-color .4s, box-shadow .4s;
}
.status-dot[data-state="idle"] { animation: ledBreathe 4.8s ease-in-out infinite; }
.status-dot[data-state="listen"] { animation: ledListen 1.9s linear infinite; }
.status-dot[data-state="thinking"] { --c: var(--think); animation: ledPulse 1.6s ease-in-out infinite; }
.status-dot[data-state="speaking"] {
  --c: var(--speak);
  background: linear-gradient(0deg, rgba(255, 255, 255, .2) 0%, #fff 25%, rgba(255, 255, 255, .2) 50%, #fff 75%, rgba(255, 255, 255, .2) 100%) 0 0 / 100% 200%;
  animation: ledFlow .8s linear infinite;
}
.status-dot[data-state="mute"] { --c: var(--mute); }
.status-dot[data-state="active"] { --c: var(--active); }
@keyframes ledBreathe { 0%, 100% { opacity: .16; box-shadow: 0 0 2px var(--c); } 50% { opacity: 1; box-shadow: 0 0 11px var(--c), 0 0 2px var(--c); } }
@keyframes ledPulse { 0%, 100% { opacity: .1; box-shadow: none; } 50% { opacity: 1; box-shadow: 0 0 14px var(--c), 0 0 3px var(--c); } }
@keyframes ledListen { 0%, 100% { opacity: 1; } 18% { opacity: .74; } 30% { opacity: .96; } 46% { opacity: .7; } 60% { opacity: 1; } 78% { opacity: .82; } }
@keyframes ledFlow { from { background-position: 0 0%; } to { background-position: 0 100%; } }
@keyframes dotPulse { 50% { opacity: .35; box-shadow: 0 0 0 3px transparent, 0 0 4px var(--c); } }

.tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 8px 4px 7px; border-radius: 6px; border: 1px solid; line-height: 1;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag--req { color: #ffc766; border-color: rgba(255, 199, 102, .3); background: rgba(255, 199, 102, .06); }
.tag--q { color: #7fb2ff; border-color: rgba(127, 178, 255, .3); background: rgba(127, 178, 255, .06); }
.tag--dec { color: #6fe0a4; border-color: rgba(111, 224, 164, .3); background: rgba(111, 224, 164, .06); }
.tag--task { color: #e8b8ff; border-color: rgba(232, 184, 255, .3); background: rgba(232, 184, 255, .06); }
.tag--info { color: #d9d2c7; border-color: var(--line-3); background: rgba(255, 255, 255, .03); }

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(33, 29, 25, .82), rgba(19, 17, 15, .9));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 240, 220, .06);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
}
.panel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.panel__title { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 560; letter-spacing: -0.005em; }
.panel__title .icon { color: var(--amber); width: 16px; height: 16px; }
.panel__meta { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: .02em; }

/* technické rohové značky (jako na výkresu) */
.ticks { position: absolute; inset: 14px; pointer-events: none; z-index: 3; }
.ticks i { position: absolute; width: 14px; height: 14px; border-color: var(--line-3); border-style: solid; border-width: 0; }
.ticks i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.ticks i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.ticks i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.ticks i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

/* obrázek, který se chová jako object-fit: cover, ale drží souřadnice fotky
   → překryvy (světelné pásy, kóty) sedí přesně na produktu */
.cover {
  --w: max(calc(100cqw * var(--zoom, 1)), calc(100cqh * var(--ar) * var(--zoom, 1)));
  --h: max(calc(100cqh * var(--zoom, 1)), calc(100cqw / var(--ar) * var(--zoom, 1)));
  position: absolute; left: var(--cx, 50%); top: var(--cy, 50%);
  width: var(--w); height: var(--h);
  margin-left: calc(var(--w) / -2); margin-top: calc(var(--h) / -2);
}
.cover img, .cover picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* intro hera: skryté jen do startu JS; pojistka je odhalí i bez něj */
.js:not(.hero-ready) :is([data-hero-in], [data-wordmark], [data-hero-img], [data-hero-tag]) {
  opacity: 0;
  animation: heroFailsafe .01s 6s forwards;
}
@keyframes heroFailsafe { to { opacity: 1; } }

/* ---------- boot (startup sweep ze specifikace, 1200 ms) ---------- */
.boot { display: none; }
.is-booting .boot {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: #060505;
  animation: bootFailsafe .01s 4.5s forwards;
}
.boot__line {
  width: 3px; height: 30vh; border-radius: 3px; transform-origin: 50% 100%; transform: scaleY(0);
  background: linear-gradient(to top, var(--amber), var(--hot) 70%, #fff);
  box-shadow: 0 0 16px 2px rgba(255, 170, 60, .75), 0 0 70px 12px rgba(255, 140, 30, .22);
}
.boot__label {
  position: absolute; bottom: calc(36px + env(safe-area-inset-bottom, 0px)); left: 50%; translate: -50% 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3);
}
@keyframes bootFailsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- navigace ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color .5s, border-color .5s, transform .6s var(--ease), -webkit-backdrop-filter .5s, backdrop-filter .5s;
}
.nav.is-scrolled {
  background: rgba(11, 10, 9, .66);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
}
.nav__logo { display: flex; align-items: center; height: 40px; }
.nav__logo .wordmark { height: 15px; stroke-width: 12; }
.nav__links { display: flex; gap: clamp(18px, 2vw, 30px); margin-inline: auto; font-size: 13.5px; color: var(--text-2); }
.nav__links a { position: relative; padding: 8px 0; transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: linear-gradient(90deg, var(--amber), var(--hot)); box-shadow: 0 0 8px var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav__links + .nav__end { margin-left: 0; }
.nav__status {
  display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2);
}
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; position: relative; }
.nav__burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__burger i:nth-of-type(1) { top: 16px; }
.nav__burger i:nth-of-type(2) { top: 24px; }
.nav__burger[aria-expanded="true"] i:nth-of-type(1) { top: 20px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:nth-of-type(2) { top: 20px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: -1; background: rgba(8, 7, 6, .96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + 40px + env(safe-area-inset-top, 0px)) var(--gutter) 40px;
}
.menu nav { display: grid; gap: 6px; }
.menu nav a:not(.btn) { font-size: clamp(30px, 8vw, 44px); font-weight: 340; letter-spacing: -0.03em; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 28px; justify-self: start; }

/* ---------- progres (svislá světelná linka vpravo, plní se zdola) ---------- */
.rail {
  position: fixed; right: 22px; top: 50%; translate: 0 -50%; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 16px; pointer-events: none;
  opacity: 0; transition: opacity .6s;
}
.rail.is-on { opacity: 1; }
.rail__track { position: relative; width: 2px; height: 150px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.rail__fill {
  position: absolute; inset: 0; transform-origin: 50% 100%; transform: scaleY(var(--p, 0));
  background: linear-gradient(to top, var(--amber), var(--hot)); box-shadow: 0 0 10px var(--amber);
}
.rail__label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3);
}

/* ============================ HERO ============================ */
.hero {
  position: relative; isolation: isolate;
  min-height: max(660px, 100svh);
  display: grid; grid-template-rows: 1fr auto;
  overflow: clip;
}
.hero__frame {
  position: absolute; inset: 0 0 0 18%; z-index: -1; container-type: size; overflow: hidden;
}
.hero__frame .cover { --cx: 54%; }
.hero__frame::before, .hero__frame::after { content: ""; position: absolute; z-index: 2; pointer-events: none; }
.hero__frame::before {
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11, 10, 9, .9) 14%, rgba(11, 10, 9, .45) 30%, transparent 46%),
    linear-gradient(180deg, rgba(11, 10, 9, .7) 0%, transparent 18%);
}
.hero__frame::after { inset: auto 0 0 0; height: 38%; background: linear-gradient(0deg, var(--bg) 4%, transparent); }

.led { pointer-events: none; }
.led--dim { mix-blend-mode: multiply; opacity: 0; }
.led--dim g { stroke: #170d05; fill: none; }
.led--tint { mix-blend-mode: color; opacity: 0; }
.led--tint g { fill: none; stroke: var(--tint, #1677ff); }
.led--glow { mix-blend-mode: screen; }
.led__halo { stroke: var(--led-c, #ffb000); fill: none; opacity: 0; }
.led__flow { opacity: 0; }
.led__flow path { stroke: #fff; stroke-linecap: round; stroke-dasharray: 44 72; }
.led__sweep path { stroke: #fff4e2; stroke-dasharray: .2 1.6; stroke-dashoffset: .2; }

.hero__tag {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(18, 15, 12, .55); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 12.5px; color: var(--text-2);
}
.hero__tag::before {
  content: ""; position: absolute; right: 100%; top: 50%; width: clamp(28px, 4.6cqw, 90px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-3));
}
.hero__tag-mode { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); }

.hero__content {
  align-self: center;
  padding-top: calc(var(--nav-h) + 40px);
  display: grid; justify-items: start; gap: 24px;
  grid-template-columns: minmax(0, min(560px, 42vw));
}
.hero__wordmark {
  width: 100%; height: auto; overflow: visible;
  fill: none; stroke: var(--text); stroke-width: 3.4; stroke-miterlimit: 14;
  margin-block: 6px 4px;
}
.hero__title { font-size: clamp(25px, 2.35vw, 38px); line-height: 1.15; letter-spacing: -0.022em; font-weight: 360; text-wrap: balance; max-width: 15em; }
.hero__text { color: var(--text-2); font-size: clamp(16px, 1.12vw, 18px); max-width: 30em; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }

.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(24px, 4vh, 44px); }
.hero__facts { list-style: none; display: flex; gap: clamp(20px, 3vw, 44px); }
.hero__facts li { display: grid; align-content: start; gap: 10px; max-width: 8.5em; font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.hero__facts .icon { width: 20px; height: 20px; color: var(--text); }
.hero__tagline { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.hero__tagline span { transition: color .6s; }
.hero__tagline span.is-lit { color: var(--amber); text-shadow: 0 0 14px rgba(255, 176, 0, .6); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 22px; height: 36px;
  border: 1px solid var(--line-3); border-radius: 12px; display: none;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: var(--amber); animation: scrollCue 2s var(--ease-io) infinite; }
@keyframes scrollCue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ============================ MANIFEST ============================ */
.manifesto { padding-block: clamp(110px, 15vw, 220px) clamp(90px, 12vw, 180px); }
.manifesto__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px var(--gutter); align-items: end; }
.manifesto .eyebrow { grid-column: 1 / -1; }
.manifesto__text {
  grid-column: 1 / span 9;
  font-size: clamp(28px, 3.6vw, 56px); line-height: 1.14; letter-spacing: -0.028em; font-weight: 330;
  text-wrap: pretty;
}
.manifesto__aside { grid-column: 10 / -1; display: grid; gap: 20px; color: var(--text-2); font-size: 15px; padding-bottom: .6em; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); }

/* ============================ 3D STAGE ============================ */
.stage { position: relative; padding-block: clamp(40px, 6vw, 90px) clamp(80px, 10vw, 140px); }
.stage__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
.stage__steps { grid-column: 1; grid-row: 1; padding-bottom: 14svh; }
.stage__pin {
  grid-column: 2; grid-row: 1;
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; gap: 16px;
  padding-block: calc(var(--nav-h) + 16px) 28px;
}
.stage__view {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 50% 70%, #15120f 0%, var(--bg) 70%);
}
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hud {
  position: absolute; left: 22px; right: 22px; z-index: 4; display: flex; align-items: center; gap: 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  pointer-events: none;
}
.hud b { color: var(--text); font-weight: 400; font-variant-numeric: tabular-nums; display: inline-block; min-width: 3.4em; }
.hud--top { top: 22px; justify-content: space-between; }
.hud--bottom { bottom: 22px; }
.hud__state { display: inline-flex; align-items: center; gap: 10px; }
.hud__state b { min-width: 0; font-size: 11px; letter-spacing: .14em; }
.hud__how { color: var(--text-3); }
.hud__how::before { content: "· "; }
.hud__variant { color: var(--text-2); }
.hud__hint { margin-left: auto; text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12px; color: var(--text-3); }
.hud__caption {
  position: absolute; left: 50%; bottom: 58px; translate: -50% 0; z-index: 4; width: min(88%, 520px);
  text-align: center; font-size: 15px; line-height: 1.45; color: var(--text); text-wrap: balance;
  opacity: 0; transition: opacity .5s; pointer-events: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .8);
}
.hud__caption.is-on { opacity: 1; }
.hud__caption small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }

.segmented {
  display: inline-flex; align-self: center; padding: 4px; gap: 2px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(22, 20, 18, .8);
}
.segmented button {
  display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3);
  transition: color .3s, background-color .3s;
}
.segmented button .status-dot { box-shadow: none; opacity: .4; transition: opacity .3s, box-shadow .3s; }
.segmented button:not([aria-pressed="true"]) .status-dot { animation: none; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.segmented button[aria-pressed="true"] .status-dot { opacity: 1; box-shadow: 0 0 10px var(--c), 0 0 2px var(--c); }

.step {
  min-height: 86svh; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  max-width: 470px; padding-block: 40px;
  transition: opacity .7s var(--ease);
}
.js .step { opacity: .22; }
.js .step.is-active { opacity: 1; }
.step--intro { min-height: 80svh; }
.step p:not(.eyebrow):not(.step__key):not(.lead):not(.quote-line):not(.muted) { color: var(--text-2); font-size: 17px; }
.step__key {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.quote-line { font-size: 19px; font-weight: 360; letter-spacing: -0.01em; color: var(--text); padding-left: 16px; border-left: 2px solid var(--think); }
.legend { list-style: none; display: grid; gap: 2px; margin-block: 6px; }
.legend button {
  width: 100%; display: grid; grid-template-columns: 10px 86px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px; text-align: left; font-size: 14px; color: var(--text-2);
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.legend button:hover { background: var(--bg-2); color: var(--text); }
.legend button.is-on { background: var(--bg-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.legend b { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.legend code { font-size: 10.5px; color: var(--text-3); }
.specline { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 6px 0 0; }
.specline div { display: grid; gap: 4px; }
.specline dt { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.specline dd { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.variants { list-style: none; display: grid; gap: 6px; }
.variants button {
  width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; text-align: left;
  padding: 10px 14px 10px 10px; border-radius: 12px; border: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.variants button:hover { background: var(--bg-2); }
.variants button[aria-pressed="true"] { border-color: var(--line-2); background: var(--bg-2); }
.variants b { font-weight: 500; font-size: 16px; }
.variants span:last-child { font-size: 13px; color: var(--text-3); }
.variant__chip { width: 34px; height: 34px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 16px -6px rgba(0, 0, 0, .8); }

/* ============================ SEKČNÍ HLAVIČKY ============================ */
.section-head { display: grid; gap: 22px; max-width: 920px; margin-bottom: clamp(44px, 6vw, 88px); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 28px var(--gutter); }
.section-head--split > div { display: grid; gap: 22px; }
.section-head--center { margin-inline: auto; justify-items: center; text-align: center; }
.section-head--center .lead { max-width: 40em; }

/* ============================ 01 LISTEN ============================ */
.listen { padding-block: clamp(100px, 12vw, 180px) clamp(80px, 10vw, 140px); }
.listen__scene { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.listen__photo {
  grid-column: 1 / span 9; grid-row: 1; margin: 0; position: relative; overflow: hidden;
  border-radius: var(--r-lg); aspect-ratio: 3 / 2; background: var(--bg-2);
}
.listen__photo img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.listen__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(11, 10, 9, .55)); pointer-events: none; }
.transcript {
  grid-column: 8 / -1; grid-row: 1; z-index: 2; margin-right: 0;
  display: flex; flex-direction: column; height: min(520px, 40vw); min-height: 440px; overflow: hidden;
}
.transcript__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.transcript__head .panel__meta { margin-top: 5px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); box-shadow: 0 0 10px var(--mute); animation: dotPulse 1.6s infinite; }
.micarray { display: grid; justify-items: center; gap: 4px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; color: var(--text-3); }
.micarray svg { width: 58px; height: 58px; overflow: visible; }
.micarray__ring { fill: none; stroke: var(--line-2); }
.micarray__beam { fill: rgba(255, 176, 0, .22); stroke: rgba(255, 176, 0, .6); stroke-width: .6; transform-origin: 0 0; transition: transform 1.2s var(--ease); }
.micarray__mics circle { fill: var(--text-2); }
.transcript__lines {
  list-style: none; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  padding: 18px 20px 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 70px);
}
.line { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.line__who {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  background: hsl(var(--h) 30% 26%); color: hsl(var(--h) 60% 86%);
}
.line__meta { font-size: 12px; color: var(--text-3); }
.line__meta b { color: var(--text-2); font-weight: 560; }
.line__text { font-size: 14.5px; line-height: 1.5; color: var(--text); margin-top: 2px; }
.line.is-typing .line__text::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 3px; translate: 0 2px; background: var(--amber); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.features {
  list-style: none; margin-top: clamp(56px, 7vw, 100px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.features li { background: var(--bg); padding: 30px 28px 34px; display: grid; gap: 10px; align-content: start; }
.features .icon { width: 22px; height: 22px; color: var(--amber); }
.features h3 { font-size: 17px; font-weight: 520; letter-spacing: -0.01em; margin-top: 10px; }
.features p { color: var(--text-2); font-size: 14.5px; }

/* ============================ 02 UNDERSTAND ============================ */
.knowledge { padding-block: clamp(100px, 12vw, 180px) clamp(60px, 8vw, 120px); background: linear-gradient(180deg, var(--bg), var(--bg-1) 30%, var(--bg-1) 70%, var(--bg)); }
.kb { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; }
.kb__demo { padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 22px; align-content: start; }
.kb__who { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); display: inline-flex; align-items: center; gap: 10px; }
.kb__who--axon { color: var(--text); }
.kb__question { font-size: clamp(20px, 1.75vw, 27px); line-height: 1.3; letter-spacing: -0.018em; font-weight: 380; margin-top: 10px; text-wrap: balance; }
.pipeline { list-style: none; display: grid; gap: 2px; padding: 6px; border-radius: var(--r); background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.pipeline li {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 3.8em; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--text-2); transition: color .4s, background-color .4s;
}
.pipeline code { font-size: 9.5px; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-3); white-space: nowrap; }
.pipeline__dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--text-3); transition: all .4s; }
.pipeline__t { font-family: var(--mono); font-size: 10.5px; text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; }
.js .kb__demo.is-armed .pipeline li { color: var(--text-3); }
.js .kb__demo.is-armed .pipeline__t { opacity: 0; }
.pipeline li.is-run { color: var(--text); background: rgba(22, 119, 255, .09); }
.pipeline li.is-run .pipeline__dot { border-color: var(--think); background: var(--think); box-shadow: 0 0 10px var(--think); animation: dotPulse 1s infinite; }
.pipeline li.is-done { color: var(--text-2); }
.pipeline li.is-done .pipeline__dot { border-color: var(--active); background: var(--active); }
.pipeline li.is-done .pipeline__t, .pipeline li.is-run .pipeline__t { opacity: 1; transition: opacity .3s; }
.kb__answer { display: grid; gap: 12px; padding-top: 4px; transition: opacity .6s, transform .6s var(--ease); }
.js .kb__demo.is-armed .kb__answer { opacity: .0; transform: translateY(8px); }
.js .kb__demo.is-armed .kb__answer.is-on { opacity: 1; transform: none; }
.kb__text { font-size: 16.5px; line-height: 1.55; color: var(--text); }
.kb__text .w { transition: opacity .25s; }
.sources { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sources li {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2);
  padding: 7px 11px; border-radius: 8px; border: 1px solid rgba(255, 176, 0, .25); background: rgba(255, 176, 0, .05);
}
.sources .icon { width: 14px; height: 14px; color: var(--amber); }
.replay {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3);
  padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line); transition: color .3s, border-color .3s;
}
.replay .icon { width: 13px; height: 13px; fill: currentColor; stroke-width: 1; }
.replay:hover { color: var(--text); border-color: var(--line-3); }
.kb__sources { display: grid; gap: 14px; align-content: start; }
.kb__label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.sourcegrid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sourcegrid li {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .012);
  font-size: 13.5px; line-height: 1.3; color: var(--text-2);
  transition: border-color .5s, color .5s, background-color .5s, box-shadow .5s;
}
.sourcegrid li:last-child { grid-column: 1 / -1; }
.sourcegrid .icon { width: 17px; height: 17px; color: var(--text-3); transition: color .5s; }
.sourcegrid li.is-scan { border-color: var(--line-3); color: var(--text); }
.sourcegrid li.is-hit {
  border-color: rgba(255, 176, 0, .55); color: var(--text); background: rgba(255, 176, 0, .07);
  box-shadow: 0 0 0 1px rgba(255, 176, 0, .18), 0 0 30px -8px rgba(255, 160, 40, .55);
}
.sourcegrid li.is-hit .icon { color: var(--amber); }

.honesty { margin-top: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px var(--gutter); align-items: start; }
.honesty__lead { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35; letter-spacing: -0.016em; font-weight: 360; text-wrap: balance; }
.outcomes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.outcomes li { border-top: 1px solid var(--line-2); padding-top: 20px; display: grid; gap: 6px; }
.meter { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 14px; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 100%); background: linear-gradient(90deg, var(--amber), var(--hot)); box-shadow: 0 0 10px var(--amber); transform-origin: left; }
.outcomes__if { color: var(--text-2); font-size: 14px; }
.outcomes__then { font-size: clamp(22px, 2vw, 30px); font-weight: 380; letter-spacing: -0.022em; line-height: 1.15; }

/* ============================ KONTEXT ============================ */
.context { padding-block: clamp(70px, 9vw, 140px); }
.context__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px var(--gutter); align-items: center; }
.context__copy { display: grid; gap: 22px; }
.context__copy > p:last-child { color: var(--text-2); font-size: 17px; max-width: 32em; }
.timeline { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 26px; }
.timeline__track { position: relative; height: 150px; margin-inline: 8px; }
.timeline__arc { position: absolute; left: 0; top: 0; width: 100%; height: 118px; overflow: visible; }
.timeline__arc path { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(255, 160, 40, .75)); }
.timeline__axis { position: absolute; left: 0; right: 0; top: 118px; height: 1px; background: var(--line-3); }
.timeline__tick {
  position: absolute; top: 128px; left: calc(var(--p) * 100%); translate: -50% 0;
  font-family: var(--mono); font-size: 9.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.timeline__tick:first-of-type { translate: 0 0; }
.timeline__tick:last-of-type { translate: -100% 0; }
.timeline__pin {
  position: absolute; top: 112px; left: calc(var(--p) * 100%); width: 13px; height: 13px; translate: -50% 0; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--amber); box-shadow: 0 0 12px var(--amber);
}
.timeline__pin--now { background: var(--amber); }
.timeline__arc-label {
  position: absolute; top: 4px; left: 29.2%; translate: -50% 0; white-space: nowrap;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber);
  padding: 4px 8px; border-radius: 6px; background: rgba(11, 10, 9, .85);
}
.timeline__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bubble { padding: 14px 16px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); font-size: 14.5px; line-height: 1.5; color: var(--text); }
.bubble__meta { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 6px; }
.bubble__meta code { color: var(--text-2); }
.bubble--axon { border-color: rgba(255, 176, 0, .35); background: linear-gradient(180deg, rgba(255, 176, 0, .08), rgba(255, 176, 0, .015)); }
.bubble--axon .bubble__meta { color: var(--amber); }

/* ============================ 03 ACT ============================ */
.act { padding-block: clamp(100px, 12vw, 180px) clamp(60px, 8vw, 110px); }
.act__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.log__list { list-style: none; display: grid; gap: 2px; padding: 8px; }
.log__list li {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px;
  padding: 11px 10px; border-radius: 10px; font-size: 14px; color: var(--text-2); transition: color .4s, background-color .4s, opacity .4s;
}
.log__list .icon { width: 17px; height: 17px; color: var(--text-3); }
.log__list code { font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16ch; }
.log__state { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-3); position: relative; }
.js .log.is-armed li { opacity: .38; }
.log__list li.is-run { opacity: 1; color: var(--text); background: rgba(255, 255, 255, .03); }
.log__list li.is-run .log__state { border-color: var(--think); border-top-color: transparent; animation: spin .7s linear infinite; }
.log__list li.is-done { opacity: 1; color: var(--text); }
.log__list li.is-done .icon { color: var(--amber); }
.log__list li.is-done .log__state { border-color: var(--active); background: var(--active); }
.log__list li.is-done .log__state::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 3.5px; height: 7px; border: solid #0b0a09; border-width: 0 1.6px 1.6px 0; rotate: 45deg; }
.log__list li.log__warn.is-done .log__state { border-color: var(--amber); background: var(--amber); }
.log__list li.log__warn.is-done .log__state::after { left: 5.8px; top: 2.5px; width: 1.6px; height: 6px; border: 0; background: #0b0a09; rotate: 0deg; box-shadow: 0 1.5px 0 -0px transparent; }
.log__list li.log__warn.is-done { color: var(--hot); }
@keyframes spin { to { rotate: 360deg; } }

.summary__title { font-size: clamp(19px, 1.6vw, 23px); font-weight: 420; letter-spacing: -0.016em; line-height: 1.3; margin: 22px 24px 18px; text-wrap: balance; }
.summary__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; padding: 0 24px; }
.summary h4 { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-bottom: 6px; }
.summary section p { font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.summary__h { margin: 26px 24px 8px; }
.actions { list-style: none; margin: 0 24px; border-top: 1px solid var(--line); }
.actions li { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.actions__who { color: var(--amber); font-size: 13px; }
.actions__due { font-family: var(--mono); font-size: 10px; color: var(--text-3); white-space: nowrap; }
.summary__foot { display: flex; align-items: center; gap: 8px; margin: 18px 24px 22px; color: var(--active); font-size: 13px; }
.summary__foot .icon { width: 15px; height: 15px; }

/* ============================ UČENÍ ============================ */
.learn { padding-block: clamp(60px, 8vw, 120px) clamp(90px, 11vw, 160px); }
.learn__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px var(--gutter); align-items: center; }
.learn__copy { display: grid; gap: 22px; }
.learn__copy > p:last-child { color: var(--text-2); font-size: 17px; max-width: 32em; }
.learn__demo { display: grid; gap: 40px; }
.dialog { display: grid; gap: 12px; max-width: 560px; }
.dialog .bubble { max-width: 420px; }
.bubble--human { justify-self: end; border-color: var(--line-3); }
.bubble--axon p:last-child { position: relative; display: inline; background-image: linear-gradient(var(--mute), var(--mute)); background-size: 0% 1.5px; background-position: 0 58%; background-repeat: no-repeat; transition: background-size .8s var(--ease-io); }
.bubble--axon.is-corrected p:last-child { background-size: 100% 1.5px; color: var(--text-2); }
.flow { list-style: none; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 24px; height: 1px; background: var(--line-3); }
.flow::after {
  content: ""; position: absolute; left: 10%; top: 23px; height: 3px; width: 12%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--hot)); box-shadow: 0 0 12px var(--amber);
  animation: flowPulse 3.2s var(--ease-io) infinite; opacity: 0;
}
.flow.is-live::after { opacity: 1; }
@keyframes flowPulse { 0% { left: 8%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 80%; opacity: 0; } }
.flow li { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--text-2); }
.flow b { font-weight: 480; }
.flow__node {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-3); color: var(--text-2); transition: border-color .5s, color .5s, box-shadow .5s;
}
.flow__node .icon { width: 19px; height: 19px; }
.flow li.is-lit .flow__node { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 26px -4px rgba(255, 160, 40, .65); }
.flow li.is-lit { color: var(--text); }

/* ============================ APLIKACE ============================ */
.app { padding-block: clamp(100px, 12vw, 180px); background: linear-gradient(180deg, var(--bg), var(--bg-1) 40%, var(--bg)); }
.window {
  margin-top: clamp(10px, 2vw, 20px); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: #121110;
  box-shadow: 0 80px 140px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .7), 0 0 120px -40px rgba(255, 150, 50, .15);
}
.window__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #181614;
  font-size: 12.5px; color: var(--text-2);
}
.window__lights { display: flex; gap: 8px; }
.window__lights i { width: 12px; height: 12px; border-radius: 50%; background: #3a3632; }
.window__lights i:nth-child(1) { background: #ff5f57; }
.window__lights i:nth-child(2) { background: #febc2e; }
.window__lights i:nth-child(3) { background: #28c840; }
.window__title { font-weight: 520; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__conn { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--text-3); white-space: nowrap; }
.window__conn .icon { width: 13px; height: 13px; color: #6aa8ff; }
.window__body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 290px; min-height: 540px; }
.app__side { padding: 18px 12px; background: #141210; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 8px; }
.app__brand { padding: 4px 10px 12px; }
.app__brand .wordmark { height: 12px; stroke-width: 13; }
.app__nav { display: grid; gap: 2px; }
.app__nav span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.app__nav span.is-on { background: var(--bg-3); color: var(--text); }
.app__nav .icon { width: 15px; height: 15px; }
.app__group { margin: 14px 10px 4px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.app__meetings { list-style: none; display: grid; gap: 2px; }
.app__meetings li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; }
.app__meetings li b { font-weight: 520; color: var(--text-2); }
.app__meetings li span { font-size: 11px; color: var(--text-3); }
.app__meetings li.is-on { background: rgba(255, 176, 0, .07); box-shadow: inset 2px 0 0 var(--amber); }
.app__meetings li.is-on b { color: var(--text); }
.app__main { display: flex; flex-direction: column; min-width: 0; }
.app__tabs { display: flex; gap: 22px; padding: 0 24px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.app__tabs span { padding: 14px 0 12px; }
.app__tabs span.is-on { color: var(--text); box-shadow: inset 0 -2px 0 var(--amber); }
.app__feed { list-style: none; flex: 1; display: grid; align-content: start; gap: 18px; padding: 22px 24px; }
.app__feed li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.feed__t { font-family: var(--mono); font-size: 10px; color: var(--text-3); padding-top: 3px; }
.app__feed b { font-size: 12.5px; font-weight: 560; color: var(--text-2); }
.app__feed p { color: var(--text); line-height: 1.5; }
.feed--axon > div { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 176, 0, .28); background: linear-gradient(180deg, rgba(255, 176, 0, .08), rgba(255, 176, 0, .02)); }
.feed--axon b { color: var(--amber); }
.feed__src { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--text-3); }
.feed__src .icon { width: 13px; height: 13px; }
.app__ask {
  display: flex; align-items: center; gap: 10px; margin: 0 24px 22px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); font-size: 13.5px; color: var(--text-3);
}
.app__ask .icon { width: 16px; height: 16px; color: var(--amber); }
.app__ask span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.app__ask span.is-typing { color: var(--text); }
.app__ask kbd { font-family: var(--mono); font-size: 9.5px; padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--text-3); }
.app__panel { padding: 18px; border-left: 1px solid var(--line); display: grid; align-content: start; gap: 12px; background: #131110; }
.app__label { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-top: 6px; }
.segmented--app { align-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); }
.segmented--app button { justify-content: center; padding: 0 8px; height: 34px; font-size: 9.5px; gap: 7px; }
.app__wave {
  --wc: var(--amber);
  display: flex; align-items: center; gap: 3px; height: 54px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .25);
}
.app__wave i { flex: 1; height: 30%; border-radius: 2px; background: var(--wc); opacity: .85; animation: wave 1.1s ease-in-out infinite; }
.app__wave i:nth-child(3n) { animation-duration: .9s; }
.app__wave i:nth-child(4n+1) { animation-duration: 1.3s; animation-delay: -.4s; }
.app__wave i:nth-child(5n+2) { animation-duration: .8s; animation-delay: -.2s; }
.app__wave i:nth-child(odd) { animation-delay: -.6s; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 82%; } }
.window[data-mode="mute"] .app__wave { --wc: var(--mute); }
.window[data-mode="mute"] .app__wave i { animation: none; height: 6%; opacity: .6; }
.window[data-mode="active"] .app__wave { --wc: var(--active); }
.app__status { font-size: 12.5px; color: var(--text-2); }
.app__moments, .app__docs { list-style: none; display: grid; gap: 6px; }
.app__moments li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.app__moments code { font-size: 9.5px; color: var(--amber); padding-top: 2px; }
.app__docs li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.app__docs .icon { width: 14px; height: 14px; color: var(--amber); }

.app__features {
  list-style: none; margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gutter);
}
.app__features li {
  display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--text-2);
}
.app__features li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); flex: none; }

/* ============================ DESIGN ============================ */
.design { padding-top: clamp(40px, 6vw, 90px); }
.design__stage { position: relative; height: min(100svh, 1000px); min-height: 640px; container-type: size; overflow: hidden; }
.design__stage .cover { --zoom: 1; --cx: 62%; }
.design__stage::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 13%, rgba(11, 10, 9, .72) 28%, transparent 46%),
    linear-gradient(180deg, var(--bg) 0%, transparent 16%, transparent 90%, var(--bg) 100%);
}
.dims { z-index: 2; }
.dims__lines path { fill: none; stroke: rgba(243, 238, 231, .5); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.dims__labels text { fill: var(--text-2); font-family: var(--mono); font-size: 17px; letter-spacing: .06em; }
.dims__labels .dims__sub { fill: var(--text-3); font-size: 13px; }
.design__hero { position: relative; }
.design__copy { position: absolute; left: 0; right: 0; top: clamp(40px, 9vh, 110px); z-index: 3; display: grid; gap: 22px; justify-items: start; pointer-events: none; }
.design__copy > * { pointer-events: auto; }
.design__copy .h1 { max-width: 7.5em; }
.design__copy .lead { max-width: 25em; }

.principles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gutter); margin-top: clamp(20px, 3vw, 40px); }
.principles li { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line-2); }
.principles__k { font-family: var(--mono); font-size: 10.5px; color: var(--amber); }
.principles h3 { font-size: 18px; font-weight: 520; letter-spacing: -0.01em; }
.principles p { color: var(--text-2); font-size: 14.5px; }

.lineup { margin: clamp(80px, 10vw, 150px) 0 0; position: relative; }
.lineup img { width: 100%; aspect-ratio: 1774 / 530; object-fit: cover; }
.lineup__img { position: relative; overflow: hidden; }
.lineup__img::before, .lineup__img::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.lineup__img::before { top: 0; height: 30%; background: linear-gradient(var(--bg), transparent); }
.lineup__img::after { bottom: 0; height: 26%; background: linear-gradient(transparent, var(--bg)); }
.lineup figcaption {
  max-width: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 6px; position: relative; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); text-align: center;
}

/* ============================ SPECIFIKACE ============================ */
.specs { padding-block: clamp(100px, 12vw, 180px); }
.specs__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.spec { margin: 0; background: var(--bg); padding: 26px 24px 30px; display: grid; gap: 16px; align-content: start; }
.spec dt { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.spec dt .icon { width: 17px; height: 17px; color: var(--amber); }
.spec dd { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.spec dd b { display: block; color: var(--text); font-size: 19px; font-weight: 420; letter-spacing: -0.012em; line-height: 1.25; margin-bottom: 8px; }
.arch { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px; padding: clamp(20px, 2.6vw, 34px); }
.arch__head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 520; }
.arch__head .icon { color: var(--amber); }
.arch__col ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.arch__col li { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.arch__link { display: grid; justify-items: center; gap: 10px; font-size: 9.5px; color: var(--text-3); }
.arch__link code { letter-spacing: .08em; }
.arch__link span { position: relative; width: 120px; height: 1px; background: var(--line-3); overflow: hidden; }
.arch__link span::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); animation: packet 2.4s linear infinite; }
.arch__link span:last-child::after { animation-direction: reverse; }
@keyframes packet { to { left: 100%; } }

/* ============================ CTA ============================ */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(120px, 16vw, 230px) clamp(110px, 14vw, 200px); text-align: center; }
.cta__glow {
  position: absolute; z-index: -1; left: 50%; bottom: -30%; width: min(1100px, 140vw); aspect-ratio: 2 / 1; translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 150, 40, .2), rgba(255, 150, 40, .06) 45%, transparent 70%);
  filter: blur(10px);
}
.cta__inner { display: grid; justify-items: center; gap: 28px; }
.cta__tag {
  font-size: clamp(44px, 8.4vw, 132px); line-height: .96; letter-spacing: -0.045em; font-weight: 300; font-stretch: 112%;
  color: var(--text-3);
}
.cta__tag span { transition: color 1s var(--ease), text-shadow 1s; }
.cta__tag span.is-lit { color: var(--text); }
.cta__tag span.is-lit:last-child { color: var(--hot); text-shadow: 0 0 40px rgba(255, 160, 40, .45); }
.cta__title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 360; max-width: 26em; color: var(--text-2); letter-spacing: -0.018em; line-height: 1.3; }
.signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; width: min(560px, 100%); }
.signup input {
  flex: 1 1 260px; height: 50px; padding: 0 22px; border-radius: 999px; min-width: 0;
  border: 1px solid var(--line-3); background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .3s, box-shadow .3s;
}
.signup input::placeholder { color: var(--text-3); }
.signup input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 176, 0, .14); }
.signup input[aria-invalid="true"] { border-color: var(--mute); }
.signup__msg { flex-basis: 100%; min-height: 1.5em; font-size: 14px; color: var(--text-2); }
.cta__note { font-size: 14px; color: var(--text-3); }

/* ============================ PATIČKA ============================ */
.footer { border-top: 1px solid var(--line); padding-block: 44px calc(44px + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer__brand { display: flex; align-items: center; gap: 16px; color: var(--text-3); font-size: 13px; }
.footer__brand .wordmark { height: 14px; stroke-width: 12; color: var(--text); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--text-2); }
.footer__nav a:hover { color: var(--text); }
.footer__legal { font-size: 12.5px; color: var(--text-3); }

/* ============================ RESPONZIVITA ============================ */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__status { display: none; }
  .rail { display: none; }
  .window__body { grid-template-columns: minmax(0, 1fr) 270px; }
  .app__side { display: none; }
  .specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .section-head--split, .kb, .act__grid, .context__grid, .learn__grid, .honesty { grid-template-columns: minmax(0, 1fr); }
  .manifesto__text { grid-column: 1 / -1; }
  .manifesto__aside { grid-column: 1 / -1; max-width: 32em; }
  .listen__scene { grid-template-columns: minmax(0, 1fr); }
  .listen__photo { grid-column: 1; }
  .transcript { grid-column: 1; grid-row: 2; margin-top: -90px; margin-inline: 14px; height: 480px; min-height: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stage__grid { grid-template-columns: minmax(0, 1fr); }
  .stage__pin {
    grid-column: 1; grid-row: 1; z-index: 3; height: 58svh; padding-block: calc(var(--nav-h) - 8px) 10px;
    background: linear-gradient(var(--bg) 88%, transparent);
  }
  .stage__steps { grid-column: 1; grid-row: 2; }
  .step { min-height: 64svh; max-width: 560px; }
  .step--intro { min-height: 50svh; }
  .hud__hint { display: none; }
  .segmented button { padding: 0 12px; }
}

/* hero: tablet na šířku — produkt víc doprava, užší textový sloupec */
@media (min-width: 901px) and (max-width: 1180px) {
  .hero__frame { inset: 0 0 0 12%; }
  .hero__frame .cover { --cx: 62%; }
  .hero__content { grid-template-columns: minmax(0, 36vw); }
  .hero__tag { display: none; }
}

/* hero: telefon a tablet na výšku — fotka nahoře, text pod ní */
@media (max-width: 900px) {
  .hero { min-height: 0; grid-template-rows: auto auto; }
  .hero__frame { inset: 0 0 auto 0; height: min(66svh, 110vw); }
  .hero__frame .cover { --cx: 50%; --cy: 57%; }
  .hero__frame::before { background: linear-gradient(180deg, rgba(11, 10, 9, .75) 0%, transparent 22%); }
  .hero__frame::after { height: 45%; }
  .hero__tag { display: none; }
  .hero__content { padding-top: calc(min(66svh, 110vw) - 14svh); grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero__wordmark { width: min(78vw, 460px); stroke-width: 5; }
  .hero__foot { flex-direction: column; align-items: flex-start; padding-top: 36px; }
  .hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; width: 100%; }
  .hero__facts li { max-width: none; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .hero__actions .btn { flex: 1 1 auto; }

  .features, .app__features, .specs__grid, .principles, .outcomes, .timeline__cards, .summary__cols { grid-template-columns: minmax(0, 1fr); }
  .sourcegrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sourcegrid li { font-size: 12.5px; padding: 10px 12px; }
  .pipeline li { grid-template-columns: 14px minmax(0, 1fr) 3.2em; }
  .pipeline code { display: none; }
  .transcript { margin-top: -50px; margin-inline: 8px; }
  .legend button { grid-template-columns: 10px 78px minmax(0, 1fr); }
  .legend code { display: none; }
  .actions li { grid-template-columns: minmax(0, 1fr) auto; }
  .actions__who { grid-column: 1 / -1; }
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .flow li { font-size: 11px; }
  .flow__node { width: 40px; height: 40px; }
  .flow::before, .flow::after { top: 20px; }
  .window__body { grid-template-columns: minmax(0, 1fr); }
  .app__panel { border-left: 0; border-top: 1px solid var(--line); }
  .window__conn { display: none; }
  .window__bar { grid-template-columns: auto minmax(0, 1fr); }
  .app__feed { padding: 18px 16px; }
  .app__ask { margin: 0 16px 18px; }
  .design__stage { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .design__stage .cover { --zoom: 1; --cx: 50%; }
  .design__hero { display: flex; flex-direction: column; }
  .design__copy { position: static; order: -1; padding-bottom: 8px; }
  .design__stage::before { background: linear-gradient(180deg, var(--bg) 0%, transparent 12%, transparent 86%, var(--bg) 100%); }
  .dims__labels text { font-size: 26px; }
  .dims .dims--r { display: none; }
  .lineup figcaption { font-size: 8.5px; letter-spacing: .08em; }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .arch__link span { width: 1px; height: 30px; }
  .arch__link span::after { width: 1px; height: 40%; top: -40%; left: 0; animation-name: packetV; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@keyframes packetV { to { top: 100%; } }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .step { opacity: 1; }
  .status-dot[data-state] { animation: none !important; opacity: 1; }
}
