/* t222rminal — strona produktowa. Kolory marki: #0c0c0d, #ededed, #a78bfa. */
:root {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #17171b;
  --line: #232329;
  --ink: #fafafa;
  --muted: #a1a1aa;
  --accent: #a78bfa;
  --accent-ink: #0c0c0d;

  --font: "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;

  --max: 1240px;
  --pad: clamp(1rem, 4vw, 2rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
code { font-family: var(--mono); }
:target { scroll-margin-top: 90px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg.ico { width: 18px; height: 18px; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 44px; padding: 0 1.2rem; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, transform 140ms var(--ease), box-shadow 200ms ease; }
.btn:hover { background: #bba5fc; box-shadow: 0 8px 28px -8px rgba(167, 139, 250, 0.7); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 38px; padding: 0 1rem; }
.btn--lg { min-height: 54px; padding: 0 1.6rem; font-size: 1.0625rem; border-radius: 10px; }
.btn--ghost { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.13); box-shadow: none; }
.btn--inv { background: #fafafa; color: #0c0c0d; }
.btn--inv:hover { background: #fff; box-shadow: 0 10px 34px -8px rgba(0, 0, 0, 0.5); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(9, 9, 11, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 200ms ease, background-color 200ms ease; }
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(9, 9, 11, 0.88); }
.nav__in { max-width: var(--max); margin: 0 auto; height: 68px; padding: 0 var(--pad); display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav__links a { padding: 0.5rem 0.9rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500; transition: color 160ms ease, background-color 160ms ease; }
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

/* ---------- hero ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad) 0; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 1rem + 5.4vw, 5.25rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; max-width: 15ch; margin: 0 auto; text-wrap: balance; }
.hero__sub { margin: 1.25rem auto 0; max-width: 56ch; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); color: var(--muted); line-height: 1.5; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 1.75rem; }
.hero__fine { margin-top: 1.1rem; font-size: 0.875rem; color: var(--muted); }
.stage { margin-top: clamp(2rem, 4vw, 3rem); }
.stage__note { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }

/* ---------- gradient frame (jak niebieska ramka VS Code) ---------- */
.frame { padding: clamp(0.75rem, 3.2vw, 3rem); border-radius: 22px; background: radial-gradient(120% 90% at 85% 0%, #c4b5fd 0%, rgba(196, 181, 253, 0) 55%), linear-gradient(135deg, #5a3fd1 0%, #8b6cf0 55%, #a78bfa 100%); position: relative; overflow: hidden; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); pointer-events: none; }
.frame--b { background: radial-gradient(110% 90% at 10% 0%, #7dd3fc 0%, rgba(125, 211, 252, 0) 50%), linear-gradient(135deg, #4338ca 0%, #6d5ae6 60%, #a78bfa 100%); }
.frame--hero { padding: clamp(0.75rem, 3.6vw, 3.25rem) clamp(0.75rem, 3.6vw, 3.25rem) 0; border-radius: 26px; }

/* ---------- okno aplikacji (fragmenty UI) ---------- */
.win { --w-bg: #0c0c0d; --w-side: #09090a; --w-panel: #131314; --w-raised: #1b1b1d; --w-line: #222224; --w-ink: #ededed; --w-mute: #8f8f94; --w-acc: #a78bfa; --w-good: #7ee787; --w-warn: #f59e0b; --w-bad: #f87171;
  background: var(--w-bg); color: var(--w-ink); border-radius: 10px; border: 1px solid #2a2a2e; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 10px 30px -10px rgba(0, 0, 0, 0.5); overflow: hidden; font-size: 13px; line-height: 1.45; text-align: left; font-family: var(--font); }
.win__bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--w-side); border-bottom: 1px solid var(--w-line); color: var(--w-mute); font-size: 12px; }
.win__ctl { margin-left: auto; display: flex; gap: 14px; }
.win__ctl i { width: 10px; height: 10px; border: 1px solid #55555a; border-radius: 2px; }
.win__ctl i:first-child { border-width: 0 0 1px; border-radius: 0; height: 6px; }
.win svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.win code { font-size: 12px; }
.win .plus { color: var(--w-good); font-style: normal; }
.win .minus { color: var(--w-bad); font-style: normal; }
.win .ok { color: var(--w-good); font-style: normal; }

.app__body { display: grid; grid-template-columns: 208px minmax(0, 1fr); height: clamp(520px, 52vw, 660px); }
.side { display: flex; flex-direction: column; gap: 1px; padding: 10px 8px; background: var(--w-side); border-right: 1px solid var(--w-line); overflow: auto; }
.side__i { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 5px; color: #b9b9be; font-size: 13px; text-align: left; transition: background-color 120ms ease, color 120ms ease; }
.side__i b { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--w-acc); color: #0c0c0d; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; transition: transform 240ms var(--ease); }
.side__i b.bump { transform: scale(1.3); }
.side__i b[hidden] { display: none; }
.side__i:not(:disabled):hover { background: #161617; color: var(--w-ink); }
.side__i.is-on { background: var(--w-raised); color: var(--w-ink); }
.side__i:disabled { color: #67676d; }
.side__g { padding: 12px 10px 4px; font-size: 11px; color: var(--w-mute); }
.side__foot { margin-top: auto; }
.app__main { position: relative; min-width: 0; background: var(--w-bg); }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.view[hidden] { display: none; }
.view.is-on { animation: view-in 320ms var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.mount { min-height: 0; }

/* czat */
.chat { display: grid; grid-template-columns: minmax(0, 1fr) 236px; height: 100%; min-height: 0; }
.chat__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tabs { display: flex; align-items: flex-end; gap: 2px; padding: 8px 8px 0; background: var(--w-side); border-bottom: 1px solid var(--w-line); }
.tabs__t { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 6px 6px 0 0; color: var(--w-mute); font-size: 12.5px; white-space: nowrap; }
.tabs__t small { color: var(--w-mute); font-size: 11px; }
.tabs__t.is-on { background: var(--w-bg); color: var(--w-ink); }
.tabs__plus { margin-left: 6px; align-self: center; color: var(--w-mute); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--w-good); }
.chat__scroll { flex: 1; min-height: 0; overflow: auto; padding: 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.msg--me { align-self: flex-end; max-width: 78%; background: #1c1c1f; border-radius: 10px; padding: 10px 14px; }
.msg--ai { display: grid; gap: 12px; max-width: 94%; color: #dcdce0; }
.tools { display: grid; border: 1px solid var(--w-line); border-radius: 8px; overflow: hidden; }
.tools li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 12px; background: var(--w-panel); }
.tools li + li { border-top: 1px solid var(--w-line); }
.tools b { width: 40px; color: var(--w-mute); font-weight: 500; }
.tools em { margin-left: auto; font-size: 12px; }
.tools em + em { margin-left: 4px; }
.tools li code + em { margin-left: auto; }
.prop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #3b3066; background: #1a1730; border-radius: 8px; }
.prop div { display: grid; }
.prop__k { font-size: 11px; color: var(--w-acc); }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--w-raised); color: #cfcfd4; font-size: 12px; white-space: nowrap; }
.chip--go { background: var(--w-acc); color: #0c0c0d; font-weight: 600; transition: background-color 120ms ease, transform 140ms var(--ease); }
.chip--go:hover { background: #bba5fc; }
.chip--go:active { transform: scale(0.96); }
.composer { margin: 0 20px 18px; padding: 12px; background: var(--w-panel); border: 1px solid #2a2a2e; border-radius: 10px; }
.composer__in { color: #6a6a70; padding: 2px 4px 12px; }
.composer__row { display: flex; align-items: center; gap: 8px; }
.composer__send { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: #ededed; color: #0c0c0d; display: grid; place-items: center; }
.guard { border-left: 1px solid var(--w-line); background: var(--w-panel); padding: 14px; display: flex; flex-direction: column; gap: 18px; overflow: auto; }
.guard__h { font-weight: 600; font-size: 14px; }
.guard__s { display: grid; gap: 7px; }
.guard__s small { color: var(--w-mute); font-size: 11px; }
.guard__row { display: flex; justify-content: space-between; color: #b9b9be; }
.guard__row b { color: var(--w-ink); font-weight: 600; }
.bar { display: block; height: 5px; border-radius: 3px; background: #26262a; position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--w-acc); border-radius: 3px; transition: width 800ms var(--ease) 150ms; }
.files { display: grid; gap: 5px; }
.files li { display: flex; justify-content: space-between; font-size: 12px; color: #cfcfd4; }
.guard__hint { margin-top: auto; padding: 10px; border-radius: 8px; background: #2a2210; color: #f3d9a4; font-size: 12px; }

/* kolejka */
.q { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); height: 100%; min-height: 0; }
.q__list { display: flex; flex-direction: column; border-right: 1px solid var(--w-line); background: var(--w-panel); min-height: 0; }
.q__head { display: flex; justify-content: space-between; align-items: center; padding: 14px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--w-line); }
.q__pill { font-size: 11px; font-weight: 500; color: var(--w-acc); background: rgba(167, 139, 250, 0.14); padding: 2px 9px; border-radius: 10px; }
.q__items { overflow: auto; }
.q__item { display: grid; gap: 2px; padding: 11px 14px; border-bottom: 1px solid var(--w-line); cursor: pointer; transition: background-color 120ms ease, opacity 220ms ease, transform 220ms var(--ease); }
.q__item:hover { background: #161617; }
.q__item[aria-selected="true"] { background: var(--w-raised); box-shadow: inset 2px 0 0 var(--w-acc); }
.q__item.out { opacity: 0; transform: translateX(-16px); }
.q__kind { font-size: 11px; color: var(--w-mute); }
.q__kind b { font-weight: 600; color: var(--k, var(--w-acc)); }
.q__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q__empty { display: grid; gap: 12px; padding: 20px 14px; color: var(--w-mute); }
.q__empty[hidden] { display: none; }
.q__detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.q__card { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; }
.q__card.swap { animation: view-in 260ms var(--ease); }
.q__title { font-size: 19px; font-weight: 600; line-height: 1.3; }
.q__by { color: var(--w-mute); font-size: 12px; }
.q__body { color: #d6d6d9; }
.q__body code { background: var(--w-raised); padding: 1px 5px; border-radius: 3px; }
.q__diff { margin: 0; background: #09090a; border: 1px solid var(--w-line); border-radius: 6px; padding: 10px 12px; white-space: pre-wrap; color: var(--w-mute); font-family: var(--mono); font-size: 12px; }
.q__diff code { font-family: inherit; font-size: inherit; }
.q__diff .add { color: var(--w-good); }
.q__meta { display: grid; margin: 0; border: 1px solid var(--w-line); border-radius: 6px; }
.q__meta div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; }
.q__meta div + div { border-top: 1px solid var(--w-line); }
.q__meta dt { color: var(--w-mute); }
.q__meta dd { margin: 0; text-align: right; }
.q__acts { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.q__btn { height: 34px; padding: 0 16px; border-radius: 6px; border: 1px solid #2c2c30; background: var(--w-raised); color: var(--w-ink); font-size: 13px; font-weight: 500; transition: background-color 120ms ease, transform 140ms var(--ease); }
.q__btn:hover { background: #26262a; }
.q__btn:active { transform: scale(0.96); }
.q__btn--ok { background: #ededed; color: #0c0c0d; border-color: #ededed; }
.q__btn--ok:hover { background: #fff; }
.q__btn--no { color: var(--w-bad); }
.q__log { display: flex; align-items: center; gap: 8px; padding: 10px 22px; border-top: 1px solid var(--w-line); color: var(--w-mute); font-size: 12px; }
.q__dotg { width: 7px; height: 7px; border-radius: 50%; background: var(--w-good); flex: none; }

/* obserwatorium */
.obs { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; height: 100%; min-height: 0; }
.obs__view { display: flex; flex-direction: column; gap: 14px; padding: 22px; min-width: 0; min-height: 0; }
.obs__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.obs__label { color: var(--w-mute); font-size: 12px; }
.obs__total { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.obs__total small { font-size: 14px; color: var(--w-mute); font-weight: 500; letter-spacing: 0; }
.obs__legend { display: grid; grid-template-columns: auto auto; gap: 4px 14px; font-size: 12px; color: #b5b5ba; }
.obs__legend li { display: flex; align-items: center; gap: 6px; }
.obs__legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.obs__chart { flex: 1; display: flex; align-items: flex-end; gap: 6px; min-height: 180px; padding-top: 8px; border-bottom: 1px solid #2a2a2d; }
.obs__bar { flex: 1; display: flex; flex-direction: column-reverse; height: 100%; position: relative; }
.obs__bar span { display: block; width: 100%; background: var(--c); transition: height 520ms var(--ease); }
.obs__bar span:last-child { border-radius: 2px 2px 0 0; }
.obs__bar:hover::after { content: attr(data-v); position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--h) + 6px); background: #1f1f22; border: 1px solid #2c2c30; padding: 2px 7px; border-radius: 4px; font-size: 11px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); z-index: 2; }
.obs__axis { display: flex; gap: 6px; color: var(--w-mute); font-size: 11px; }
.obs__axis span { flex: 1; text-align: center; }
.obs__note { color: var(--w-mute); font-size: 12px; }
.obs__note b { color: var(--w-ink); }
.obs__ctrl { display: flex; flex-direction: column; background: var(--w-raised); padding-top: 10px; min-width: 0; }
.obs__ctrl-h { padding: 8px 16px 10px; font-weight: 600; font-size: 14px; }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 16px; font-size: 13.5px; border-top: 1px solid #26262a; cursor: pointer; }
.crow--m { color: var(--w-mute); font-size: 12px; cursor: default; }
.sw { appearance: none; -webkit-appearance: none; width: 32px; height: 18px; border-radius: 9px; background: #3b3b40; position: relative; cursor: pointer; transition: background-color 160ms ease; flex: none; margin: 0; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ededed; transition: transform 240ms var(--ease); }
.sw:checked { background: var(--w-acc); }
.sw:checked::after { transform: translateX(14px); }
.seg { display: inline-flex; background: #0c0c0d; border-radius: 5px; padding: 2px; }
.seg button { height: 26px; padding: 0 10px; border-radius: 4px; font-size: 12px; color: var(--w-mute); transition: background-color 160ms ease, color 160ms ease; }
.seg button[aria-checked="true"] { background: #2a2a2e; color: var(--w-ink); }

/* planer */
.pl { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 18px; min-height: 0; overflow: auto; }
.pl__head { display: flex; align-items: center; gap: 10px; }
.pl__head b { font-size: 15px; }
.pl__head span { color: var(--w-mute); font-size: 12px; }
.pl__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 10px; flex: 1; min-height: 0; }
.pl__col { display: flex; flex-direction: column; gap: 8px; background: #0f0f10; border-radius: 8px; padding: 10px; min-height: 180px; }
.pl__colh { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: #b5b5ba; padding: 2px 2px 4px; }
.pl__colh i { font-style: normal; color: var(--w-mute); font-weight: 500; }
.pl__card { display: grid; gap: 3px; text-align: left; background: var(--w-raised); border: 1px solid #26262a; border-radius: 6px; padding: 9px 10px; line-height: 1.35; transition: border-color 140ms ease, transform 200ms var(--ease), background-color 140ms ease; }
.pl__card:not(:disabled):hover { border-color: var(--w-acc); transform: translateY(-1px); }
.pl__card:disabled { color: #b5b5ba; }
.pl__card.is-new { border-color: var(--w-acc); box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.16); }
.pl__id { font-size: 11px; color: var(--w-acc); font-weight: 600; }
.pl__log { margin-top: auto; display: flex; align-items: center; gap: 8px; color: var(--w-mute); font-size: 12px; }
.pl__log .q__dotg { background: var(--w-acc); }
.pl__reset { margin-left: auto; color: var(--w-acc); font-size: 12px; }
.pl__reset:hover { text-decoration: underline; }

/* roadmapa */
.rm { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 18px; min-height: 0; overflow: auto; }
.rm__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rm__h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: #b5b5ba; padding: 0 2px 8px; }
.rm__h i { font-style: normal; color: var(--w-mute); font-weight: 500; }
.rm__col { display: grid; gap: 10px; align-content: start; }
.rm__n { display: grid; gap: 10px; text-align: left; background: var(--w-raised); border: 1px solid #2a2a2e; border-radius: 8px; padding: 16px 14px; font-size: 14px; font-weight: 600; line-height: 1.3; transition: border-color 140ms ease, transform 200ms var(--ease); }
.rm__n:hover { border-color: #5b4a96; transform: translateY(-1px); }
.rm__n[aria-pressed="true"] { border-color: var(--w-acc); }
.rm__p { font-size: 11px; color: var(--w-mute); font-weight: 500; }
.rm__n i { display: block; height: 4px; border-radius: 2px; background: #2a2a2e; position: relative; overflow: hidden; }
.rm__n i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--w-acc); transition: width 800ms var(--ease) 100ms; }
.rm__n.is-done i::after { background: var(--w-good); }
.rm__detail { margin-top: auto; background: #0f0f10; border-radius: 8px; padding: 16px; display: grid; gap: 6px; color: #c9c9cd; }
.rm__detail b { color: var(--w-ink); font-size: 14px; }
.rm__detail small { color: var(--w-mute); font-size: 12px; }

/* pliki */
.fx { display: grid; grid-template-columns: 200px minmax(0, 1fr); height: 100%; min-height: 0; }
.fx__tree { background: var(--w-panel); border-right: 1px solid var(--w-line); padding: 10px 8px; display: grid; gap: 1px; align-content: start; font-size: 12.5px; overflow: auto; }
.fx__d { padding: 5px 8px; color: var(--w-mute); }
.fx__f { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 22px; border-radius: 4px; color: #c4c4c9; text-align: left; transition: background-color 120ms ease; }
.fx__f:hover { background: #1a1a1c; }
.fx__f.is-on { background: var(--w-raised); color: var(--w-ink); }
.fx__f em { margin-left: auto; font-size: 11px; }
.fx__edit { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fx__tabs { display: flex; gap: 2px; padding: 8px 8px 0; background: var(--w-side); border-bottom: 1px solid var(--w-line); }
.fx__tabs span { height: 30px; padding: 0 14px; display: flex; align-items: center; border-radius: 6px 6px 0 0; color: var(--w-mute); font-size: 12px; }
.fx__tabs span.is-on { background: var(--w-bg); color: var(--w-ink); }
.fx__code { flex: 1; min-height: 0; overflow: auto; padding: 12px 0; font-family: var(--mono); font-size: 12px; line-height: 1.7; }
.fx__ln { display: grid; grid-template-columns: 44px minmax(0, 1fr); white-space: pre; }
.fx__ln > span:first-child { text-align: right; padding-right: 14px; color: #55555a; user-select: none; }
.fx__ln.add { background: rgba(126, 231, 135, 0.09); }
.fx__ln.add > span:first-child { color: var(--w-good); }
.fx__ln.del { background: rgba(248, 113, 113, 0.09); color: #c9a4a4; }
.fx__term { border-top: 1px solid var(--w-line); background: #09090a; padding: 10px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: #b9b9be; }
.fx__term .pr { color: var(--w-acc); }

/* okna w sekcjach: mniejsze */
.win--sm .mount { height: clamp(380px, 38vw, 470px); }
.win--sm .app__body { height: auto; }
.win--sm .q, .win--sm .obs, .win--sm .fx { height: 100%; }

/* ---------- sekcje ---------- */
.works { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 8vw, 6rem) var(--pad) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; color: var(--muted); }
.works ul { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; justify-content: center; font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.works__soon { width: 100%; text-align: center; font-size: 0.875rem; }

.feat { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) var(--pad) 0; }
.feat__head h2, .tabsec__head h2, .data__head h2, .faq__head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); line-height: 1.06; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.feat__head h2 { text-align: center; max-width: 18ch; margin: 0 auto; }
article.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(4rem, 9vw, 8rem); }
article.row--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
article.row--flip .row__text { order: 2; }
.row__text h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.row__text p { margin-top: 1.1rem; color: var(--muted); font-size: 1.0625rem; max-width: 46ch; }
.ticks { margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: #d4d4d8; font-size: 1rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-30%); }

.tabsec { max-width: var(--max); margin: 0 auto; padding: clamp(6rem, 12vw, 10rem) var(--pad) 0; }
.tabsec__head, .data__head, .faq__head { max-width: 40rem; }
.tabsec__head p, .data__head p, .faq__head p { margin-top: 1.1rem; color: var(--muted); font-size: 1.125rem; }
.cards { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform 240ms var(--ease), border-color 200ms ease, background-color 200ms ease; }
.card:hover { transform: translateY(-4px); border-color: #3a3a44; background: var(--surface-2); }
.card__i { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.1rem; }
.card h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin-top: 0.4rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.card--wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; column-gap: 1.2rem; align-items: center; }
.card--wide .card__i { grid-row: span 2; margin: 0; }
.card--wide p { margin-top: 0.2rem; max-width: 70ch; }

.stats { max-width: var(--max); margin: clamp(6rem, 12vw, 10rem) auto 0; padding: 0 var(--pad); }
.stats dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; }
.stats dt { font-size: clamp(2.5rem, 1.6rem + 2.4vw, 4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; background: linear-gradient(135deg, #fafafa 20%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats div:last-child dt { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.35; font-family: var(--mono); font-weight: 500; letter-spacing: -0.04em; }
.stats dd { margin-top: 0.8rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

.data { max-width: var(--max); margin: 0 auto; padding: clamp(6rem, 12vw, 10rem) var(--pad) 0; }
.data__grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.dcard--note { background: #15121f; border-color: #2e2650; }
.dcard__i { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.dcard h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.dcard p { margin-top: 0.5rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.faq { max-width: var(--max); margin: 0 auto; padding: clamp(6rem, 12vw, 10rem) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; cursor: pointer; transition: color 160ms ease; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 260ms var(--ease), border-color 160ms ease; margin-right: 4px; }
details[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); }
summary:hover { color: var(--accent); }
details p { padding: 0 2.5rem 1.5rem 0; color: var(--muted); max-width: 58ch; }
details[open] p { animation: view-in 300ms var(--ease); }

.cta { max-width: var(--max); margin: clamp(6rem, 12vw, 10rem) auto 0; padding: 0 var(--pad); }
.cta__in { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem); text-align: center; background: radial-gradient(90% 120% at 100% 0%, #c4b5fd 0%, rgba(196, 181, 253, 0) 55%), linear-gradient(135deg, #4c34c2 0%, #7c5ce8 55%, #a78bfa 100%); color: #fff; }
.cta__in h2 { font-size: clamp(2rem, 1rem + 3.6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.045em; font-weight: 800; max-width: 17ch; margin: 0 auto; text-wrap: balance; }
.cta__in > p { margin: 1.25rem auto 0; max-width: 46ch; font-size: 1.1875rem; opacity: 0.92; }
.cta__btns { display: flex; justify-content: center; margin-top: 2.25rem; }
.cta__in .cta__fine { margin-top: 1.1rem; font-size: 0.875rem; opacity: 0.85; }

.foot { max-width: var(--max); margin: clamp(5rem, 10vw, 8rem) auto 0; padding: 0 var(--pad) 2.5rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.foot__brand p { margin-top: 0.8rem; color: var(--muted); font-size: 0.9375rem; }
.foot__col { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.9375rem; color: #d4d4d8; }
.foot__col h4 { margin: 0 0 0.4rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.foot__col a { text-decoration: none; color: #d4d4d8; transition: color 160ms ease; }
.foot__col a:hover { color: var(--accent); }
.foot__col .muted { color: var(--muted); font-size: 0.875rem; }
.foot__copy { margin-top: 3rem; color: var(--muted); font-size: 0.875rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(22px); animation: rise 900ms var(--ease) forwards; animation-delay: calc(var(--i, 0) * 100ms + 100ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1020px) {
  article.row, article.row--flip { grid-template-columns: 1fr; }
  article.row--flip .row__text { order: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; }
  .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat { grid-template-columns: 1fr; }
  .guard { display: none; }
  .obs { grid-template-columns: 1fr; }
  .obs__ctrl { display: none; }
}

/* ---------- telefon ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 2.5rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .frame { padding: 0.6rem; border-radius: 16px; }
  .frame--hero { padding: 0.6rem 0.6rem 0; border-radius: 18px; }
  .app__body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 600px; }
  .side { flex-direction: row; overflow-x: auto; gap: 2px; padding: 6px; border-right: 0; border-bottom: 1px solid var(--w-line); }
  .side__g, .side__i:disabled { display: none; }
  .side__i { flex: none; padding: 0 12px; height: 34px; }
  .side__i svg { display: none; }
  .q, .fx { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .q__list { border-right: 0; border-bottom: 1px solid var(--w-line); max-height: 150px; }
  .fx__tree { display: none; }
  .pl__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm__cols { grid-template-columns: 1fr; }
  .win--sm .mount { height: 460px; }
  .win--sm .app__body { display: block; }
  .cards, .data__grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; grid-template-columns: 1fr; }
  .card--wide .card__i { grid-row: auto; margin-bottom: 1rem; }
  .stats dl { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats div { padding: 1.4rem 1.1rem; }
  details p { padding-right: 0; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .works ul { font-size: 1.0625rem; gap: 0.4rem 1.5rem; }
}
