/* AIOSDEAS LP - skin: monochrome editorial (jak placeholder aiosdeas.com).
   Paleta #0b0b0c / #f2f2f2 / szarosci, zero koloru, spaced-caps, kreska-gradient.
   Font systemowy jak w oryginale - zero requestow, dziala offline. */


:root {
  --bg: #0b0b0c;
  --surface: #101012;
  --ink: #f2f2f2;
  --body-c: #b8b8bd;
  --muted: #8a8a8f;
  --faint: #6b6b70;
  --hair: rgba(255, 255, 255, 0.09);
  --hair-strong: rgba(255, 255, 255, 0.18);
  --r-s: 6px;
  --r-m: 10px;
  --shell: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* ziarno - ledwo widoczne */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.025;
  pointer-events: none;
}

::selection { background: rgba(242, 242, 242, 0.22); color: var(--ink); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
main { position: relative; }

h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
}
/* monochromatyczny akcent: druga linia przygaszona */
.hl { color: var(--muted); }

/* sygnaturowa kreska z placeholdera */
.bar { height: 2px; width: 4rem; background: linear-gradient(90deg, #f2f2f2, #6b6b70); margin: 1.6rem 0; border: 0; }
.bar-center { margin-left: auto; margin-right: auto; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-s); }

/* ---------- animacje wejscia ---------- */
.js .lift { opacity: 0; transform: translateY(16px); animation: liftIn 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes liftIn { to { opacity: 1; transform: none; } }
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); transition-delay: var(--rvd, 0ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv, .no-js .lift { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.wm-aios { font-weight: 700; color: var(--ink); }
.wm-deas { font-weight: 400; color: var(--muted); }
.wm-small { font-size: 0.76rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r-s);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn .arr { font-size: 0.9em; opacity: 0.5; transition: transform 0.18s var(--ease); }
.btn:hover .arr { transform: translateY(2px); }
.btn-primary {
  background: var(--ink);
  color: #0b0b0c;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover { transform: translateY(-1px); background: #ffffff; }
.btn-ghost { border-color: var(--hair-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 8px 16px; font-size: 0.88rem; }
.btn-big { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { padding: 104px 0 0; }
.hero-inner { text-align: center; }
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.lead {
  font-size: 1.13rem;
  color: var(--body-c);
  margin: 24px auto 0;
  max-width: 36em;
  line-height: 1.65;
}
.hero-inner .bar { margin: 1.8rem auto; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.microline { margin-top: 20px; font-size: 0.88rem; color: var(--faint); }

/* ---------- hero product (okno symulacji) ---------- */
.hero-product { margin-top: 80px; }
.window-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  margin-bottom: 18px;
}
.window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.45);
}
.window::before {
  content: "";
  position: absolute; top: 0; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  z-index: 2;
}
.titlebar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.015);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; background: #3a3a3e; }
.win-title { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); flex: 1; }
.counter {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--hair-strong);
  border-radius: 5px;
  padding: 2px 10px;
  font-variant-numeric: tabular-nums;
}

.stage { position: relative; min-height: 400px; padding: 36px 44px; }
.scene-label {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 28px;
}
.scene-label::before { content: "// "; color: var(--muted); letter-spacing: 0; }

.js .scene { display: none; }
.js .scene.active { display: block; animation: sceneIn 0.45s var(--ease); }
@keyframes sceneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js .scene .reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.js .scene .reveal.on { opacity: 1; transform: none; }

/* scena 1: profil */
.qa { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.q { color: var(--muted); font-size: 1.04rem; min-width: 15em; text-align: left; }
.chip {
  background: rgba(242, 242, 242, 0.05);
  border: 1px solid var(--hair-strong);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 17px;
  font-weight: 550;
  font-size: 0.93rem;
}
.done { font-family: var(--mono); font-size: 0.92rem; margin-top: 28px; text-align: left; color: var(--body-c); }
.ok { color: var(--ink); font-family: var(--mono); font-weight: 700; }

/* scena 2: dopasowanie */
.match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.m-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--hair);
  border-radius: var(--r-s);
  padding: 16px 18px;
  text-align: left;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.js .scene-match .m-pick.picked {
  border-color: rgba(242, 242, 242, 0.55);
  background: rgba(242, 242, 242, 0.04);
  transform: translateY(-3px);
}
.no-js .m-pick { border-color: rgba(242, 242, 242, 0.55); }
.tc-tag { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.m-pick .tc-tag { color: var(--ink); }
.tc-title { font-weight: 600; font-size: 0.99rem; line-height: 1.3; letter-spacing: -0.012em; }

.proof {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-s);
  padding: 20px 26px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 26px;
  align-items: center;
  text-align: left;
}
.proof ul { list-style: none; }
.proof li { font-size: 0.95rem; padding: 2px 0; color: var(--muted); }
.proof li strong { color: var(--ink); font-weight: 600; }
.proof a { color: var(--faint); text-decoration: underline; }
.proof a:hover, .proof a:focus-visible { color: var(--ink); }
.spark { width: 100%; height: 38px; }
.spark polyline { fill: none; stroke: #d6d6da; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sim-start.pressed { transform: scale(0.94); }

/* scena 3: terminal */
.term { font-family: var(--mono); font-size: 0.98rem; line-height: 2.2; text-align: left; color: var(--body-c); }
.tline { display: flex; justify-content: space-between; gap: 18px; min-height: 2.2em; }
.js .tline.typing .tt::after { content: "▌"; color: var(--ink); animation: blink 0.7s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .tline .ok { opacity: 0; transition: opacity 0.2s ease; }
.js .tline .ok.on { opacity: 1; }
.no-js .tline .tt::before { content: attr(data-text); }
.tline-final .tt { color: var(--ink); font-weight: 700; }

/* scena 4: efekt */
.scene-result { text-align: center; padding-top: 30px; }
.result-line { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 20px 0 14px; }
.result-sub { font-size: 0.92rem; color: var(--muted); margin: 0 0 30px; }
.no-js .scene-result { display: block; }

.sim-note { margin-top: 16px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--faint); text-align: center; }

/* ---------- statbar ---------- */
.statbar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 92px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.stat { padding: 30px 12px; text-align: center; border-left: 1px solid var(--hair); }
.stat:first-child { border-left: none; }
.stat strong { display: block; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.stat span { font-size: 0.88rem; color: var(--faint); }

/* ---------- sekcje ---------- */
section { position: relative; }
.ladder, .stack { padding: 140px 0; border-bottom: 1px solid var(--hair); }
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow span { color: var(--faint); margin-right: 12px; }
.eyebrow-center { text-align: center; }
.sec-head { margin-bottom: 56px; max-width: 44em; }
.sec-sub { color: var(--body-c); font-size: 1.1rem; margin-top: 14px; }

/* ---------- drabinka ---------- */
.ladder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-m); overflow: hidden; }
.l-card { background: var(--bg); padding: 30px 26px; transition: background 0.3s var(--ease); }
.l-card:hover { background: rgba(255, 255, 255, 0.02); }
.l-time { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 6px; }
.l-card .bar { width: 2.4rem; margin: 0 0 14px; height: 2px; }
.l-card p:last-child { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.reframe { margin-top: 60px; font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.reframe .old { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 2px; }
.reframe .new { color: var(--ink); border-bottom: 2px solid var(--ink); }

/* ---------- stack ---------- */
.stack-grid { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 16px; align-items: stretch; }
.s-panel {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-m);
  padding: 32px 34px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.s-panel:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.03); }
.s-tag {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.s-domain { font-family: var(--mono); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: 16px; }
.s-note { margin-top: 28px; color: var(--body-c); max-width: 62ch; }
.s-snippet { margin-top: 14px; }
.s-snippet code { display: block; font-family: var(--mono); font-size: 0.85rem; color: var(--ink); background: rgba(242, 242, 242, 0.05); border: 1px solid var(--hair); border-radius: var(--r-s); padding: 14px 18px; overflow-x: auto; white-space: pre; user-select: all; }
.foot-team { color: var(--faint); font-size: 0.78rem; margin-top: 10px; }
.s-panel p:last-child { color: var(--muted); font-size: 0.97rem; line-height: 1.65; }
.s-connector { display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--faint); }
.s-connector span { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); opacity: 0.5; } 50% { transform: translateX(6px); opacity: 1; } }
.stack-line { margin-top: 48px; text-align: center; font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- final ---------- */
.final { text-align: center; padding: 170px 0; }
.final-inner { position: relative; }
.final h2 { font-size: clamp(2.7rem, 5.6vw, 4.2rem); letter-spacing: -0.03em; }
.final .bar { margin: 1.8rem auto; }
.final-sub { color: var(--body-c); font-size: 1.2rem; margin: 18px 0 38px; }
.final .microline { margin-top: 22px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--hair); padding: 32px 0; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-note { font-size: 0.85rem; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 72px; }
  .hero-product { margin-top: 56px; }
  .ladder, .stack { padding: 84px 0; }
  .final { padding: 110px 0; }
  .match-grid { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; gap: 14px; }
  .ladder-grid { grid-template-columns: 1fr 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .s-connector { transform: rotate(90deg); height: 40px; }
  .stage { padding: 26px 22px; min-height: 440px; }
  .q { min-width: 0; }
  .statbar { margin-top: 64px; }
}
@media (max-width: 540px) {
  .ladder-grid { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--hair); }
  .stat:first-child { border-top: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .s-connector span { animation: none; }
  .js .lift { animation: none; opacity: 1; transform: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}
.no-js .scene { display: none; }
.no-js .scene-result { display: block; }

/* ---------- agent badge w H1 (wzorzec: rotujace logo agenta) ---------- */
.agent-badge {
  display: inline-flex; align-items: center;
  font-size: 0.68em; line-height: 1; vertical-align: 0.1em;
  padding: 0.2em 0.55em 0.2em 0.42em;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  letter-spacing: -0.01em;
}
.ab-swap { display: inline-flex; align-items: center; gap: 0.34em; transition: opacity 0.25s ease, transform 0.25s ease; }
.ab-swap.fade { opacity: 0; transform: translateY(4px); }
.ab-logo { width: 1em; height: 1em; color: var(--ink); flex: none; }
.ab-name { font-weight: 700; }

/* ---------- rzad agentow pod CTA ---------- */
.agents-row { margin-top: 40px; }
.agents-label {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.agents-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.a-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--body-c);
  font-size: 0.9rem;
  font-weight: 550;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.a-chip svg { width: 16px; height: 16px; color: currentColor; flex: none; }
.a-chip .chip-img { width: 16px; height: 16px; flex: none; border-radius: 3px; }
.sources-row { margin-top: 44px; text-align: center; }
.a-chip:hover { border-color: var(--hair-strong); color: var(--ink); }

/* --- Pelny przebieg: pasek krokow + tryb powiekszony --- */
.steprail {
  display: flex;
  gap: 20px;
  padding: 12px 18px 0;
  flex-wrap: wrap;
}
.sr-step {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s var(--ease);
}
.sr-step i {
  font-style: normal;
  width: 18px; height: 18px;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.sr-step.active { color: var(--ink); }
.sr-step.active i { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.sr-step.done i { border-color: var(--muted); color: var(--muted); }
.no-js .steprail { display: none; }

.sim-close {
  display: none;
  margin-left: 4px;
  width: 26px; height: 26px;
  border: 1px solid var(--hair-strong);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sim-close:hover, .sim-close:focus-visible { color: var(--ink); border-color: var(--ink); }
.sim-actions { display: flex; justify-content: center; margin-top: 18px; }
.no-js .sim-actions { display: none; }

body.demo-max { overflow: hidden; }
body.demo-max::before {
  content: "";
  position: fixed; inset: 0;
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 80;
}
body.demo-max #sim {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  z-index: 90;
}
body.demo-max .sim-close { display: inline-flex; }
body.demo-max #sim .stage { min-height: 480px; padding: 44px 56px; }
body.demo-max #sim .steprail { gap: 26px; }
body.demo-max #sim .sr-step { font-size: 0.78rem; }
body.demo-max #sim .scene-label { font-size: 0.74rem; }
body.demo-max #sim .term { font-size: 1.15rem; }
body.demo-max #sim .q { font-size: 1.2rem; }
body.demo-max #sim .chip { font-size: 1.05rem; }
body.demo-max #sim .tc-title { font-size: 1.12rem; }
body.demo-max #sim .proof li { font-size: 1.05rem; }
body.demo-max #sim .result-line { font-size: clamp(2.2rem, 4vw, 3.2rem); }
@media (max-width: 700px) {
  body.demo-max #sim .stage { padding: 28px 22px; min-height: 380px; }
  body.demo-max #sim .term { font-size: 0.95rem; }
}
