/* =========================================================
   SEMSTORM Offline – landing page
   ========================================================= */

:root {
  --bg: #070b12;
  --bg-2: #0a1019;
  --surface: #0e151f;
  --surface-2: #121a26;
  --win: #0d131a;
  --line: rgba(148, 182, 225, .10);
  --line-2: rgba(148, 182, 225, .18);
  --text: #eaf0f7;
  --text-2: #c3cedc;
  --muted: #8a99ad;
  --dim: #5c6a7d;
  --blue: #4aa3ff;
  --blue-2: #2f84f5;
  --blue-soft: rgba(74, 163, 255, .14);
  --cyan: #67d3ff;
  --violet: #9b8cff;
  --gold: #f2c46d;
  --gold-2: #d9963c;
  --green: #3ddc97;
  --red: #ff6b6b;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: 24px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* delikatny szum na całej stronie */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--font-mono); font-size: .9em; }
h1, h2, h3 { color: var(--text); margin: 0; font-family: var(--font-display); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 1.1em; height: 1.1em;
  flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue); color: #001; padding: .6rem 1rem; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--muted); font-weight: 500; }
.mono { font-family: var(--font-mono); }

.grad {
  background: linear-gradient(100deg, #9dd4ff 0%, var(--blue) 38%, #7f9bff 72%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.grad-gold {
  background: linear-gradient(100deg, #fff0c9 0%, var(--gold) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--b);
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, filter .25s;
}
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem .95rem; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: .95rem 1.45rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  border-color: rgba(140, 200, 255, .45);
  background: linear-gradient(180deg, #62b4ff 0%, #2f84f5 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px -10px rgba(74, 163, 255, .75);
  text-shadow: 0 1px 0 rgba(0, 40, 90, .25);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 16px 40px -12px rgba(74,163,255,.9); }

.btn-ghost { background: rgba(255, 255, 255, .035); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(148, 182, 225, .3); }

.btn-gold {
  border-color: rgba(255, 220, 150, .6);
  background: linear-gradient(180deg, #ffd889 0%, #e3a74b 100%);
  color: #1d1305;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 40px -12px rgba(242, 196, 109, .8);
}
.btn-gold:hover { filter: brightness(1.06); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.hide { opacity: 0; pointer-events: none; transform: translateY(-100%); }
.nav { transition: background-color .3s, border-color .3s, backdrop-filter .3s, opacity .5s, transform .5s var(--ease); }
.nav.scrolled, .nav.open {
  background: rgba(7, 11, 18, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .6rem; flex: none; }
.brand img { height: 30px; width: auto; }
.brand-tag {
  font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); border: 1px solid rgba(74, 163, 255, .35); background: var(--blue-soft);
  padding: .18rem .5rem; border-radius: 999px;
}
.nav-links { display: flex; gap: .25rem; margin-left: auto; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--muted);
  padding: .5rem .8rem; border-radius: 10px; transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .ic { width: 20px; height: 20px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
section[id] { scroll-margin-top: 40px; }

.sec-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.sec-head-wide { max-width: 860px; }
.sec-head h2, .value-copy h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.05; letter-spacing: -.032em; font-weight: 700;
  text-wrap: balance;
}
.sec-lead { margin-top: 1.25rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); line-height: 1.65; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.1rem;
}
.eyebrow .ic { width: 1rem; height: 1rem; }
.eyebrow-gold { color: var(--gold); }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  isolation: isolate;
}
/* spotlight pod kursorem */
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(74, 163, 255, .12), transparent 45%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }

/* reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 110px));
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: -10%; width: 1400px; height: 1100px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 50% 38%, rgba(74, 163, 255, .22), transparent 70%),
    radial-gradient(closest-side at 28% 55%, rgba(155, 140, 255, .10), transparent 70%),
    radial-gradient(closest-side at 74% 60%, rgba(103, 211, 255, .08), transparent 70%);
}
.hero::after { /* siatka */
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 182, 225, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 182, 225, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, #000, transparent 75%);
}

.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .95rem .45rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(8px);
  font-size: .86rem; font-weight: 500; color: var(--text-2);
}
.pill { padding-left: .4rem; }
.pill-status {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  padding: .2rem .65rem .2rem .55rem; border-radius: 999px;
  background: rgba(242, 196, 109, .14); border: 1px solid rgba(242, 196, 109, .4);
  color: var(--gold); font-weight: 600; font-size: .8rem; white-space: nowrap;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(242, 196, 109, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 196, 109, .55); }
  70% { box-shadow: 0 0 0 9px rgba(242, 196, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 196, 109, 0); }
}

.notice {
  display: flex; gap: .9rem; align-items: flex-start;
  max-width: 940px; margin: 0 auto 24px; padding: 16px 20px;
  border-radius: 16px; border: 1px solid rgba(242, 196, 109, .35);
  background: linear-gradient(180deg, rgba(242, 196, 109, .09), rgba(242, 196, 109, .04));
  color: var(--text-2); font-size: .95rem; line-height: 1.6;
}
.notice .ic { width: 22px; height: 22px; color: var(--gold); margin-top: 1px; }
.notice strong { color: var(--text); }
.tour-note {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 18px; font-size: .86rem; color: var(--dim);
}
.tour-note .ic { width: 15px; height: 15px; color: var(--gold); }
.hero-title {
  margin-top: 1.6rem;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -.038em;
  font-weight: 800;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-title .grad { display: block; padding-bottom: .08em; }
.hero-lead {
  margin-top: 1.6rem; max-width: 720px;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem); line-height: 1.6; color: var(--muted);
  text-wrap: pretty;
}
.hero-actions { margin-top: 2.2rem; display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.hero-meta { margin-top: 1.8rem; display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.hero-meta li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.hero-meta .ic { color: var(--blue); }

.hero-stage { margin-top: clamp(56px, 8vw, 96px); --tilt: 1; }
.stage-3d { position: relative; perspective: 2400px; perspective-origin: 50% 0%; }

/* ---------- Window frame ---------- */
.window {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--win);
  border: 1px solid rgba(160, 190, 230, .14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .6),
    0 40px 100px -30px rgba(0, 0, 0, .9),
    0 0 120px -40px rgba(74, 163, 255, .35);
}
.win-bar {
  height: 32px; display: flex; align-items: center; justify-content: space-between;
  background: #000; padding-left: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.win-title { display: inline-flex; align-items: center; gap: .5rem; font-size: 12px; color: #e9edf2; font-family: "Segoe UI", var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-ico {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: conic-gradient(from 200deg, #1c6fd1, #5cc0ff, #1c6fd1, #8fd6ff, #1c6fd1);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .35);
}
.win-ctrl { display: flex; height: 100%; }
.win-ctrl i { width: 46px; height: 100%; position: relative; display: block; }
.win-ctrl i::before, .win-ctrl i::after { content: ""; position: absolute; left: 50%; top: 50%; }
.win-ctrl i:nth-child(1)::before { width: 10px; height: 1px; background: #cfd6de; transform: translate(-50%, -50%); }
.win-ctrl i:nth-child(2)::before { width: 9px; height: 9px; border: 1px solid #cfd6de; transform: translate(-50%, -50%); }
.win-ctrl i:nth-child(3)::before, .win-ctrl i:nth-child(3)::after { width: 12px; height: 1px; background: #cfd6de; }
.win-ctrl i:nth-child(3)::before { transform: translate(-50%, -50%) rotate(45deg); }
.win-ctrl i:nth-child(3)::after { transform: translate(-50%, -50%) rotate(-45deg); }

.window-hero {
  transform-origin: 50% 0%;
  transform: rotateX(calc(var(--tilt) * 24deg)) scale(calc(1 - var(--tilt) * .06));
  will-change: transform;
}
.window-hero::after { /* połysk */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, calc(var(--tilt) * .08)), transparent 40%);
}

/* pływające karty w hero */
.float {
  position: absolute; z-index: 3;
  width: 250px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(14, 21, 31, .78);
  border: 1px solid rgba(160, 190, 230, .18);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  font-size: 13px; color: var(--text-2);
  animation: bob 7s ease-in-out infinite;
  transition: opacity .6s var(--ease);
}
.float-a { left: -40px; top: 44%; animation-delay: -1s; }
.float-b { right: -36px; top: 10%; width: 236px; animation-delay: -3s; }
.float-c { right: 7%; bottom: -34px; width: 290px; animation-delay: -5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-head { display: flex; align-items: center; gap: .5rem; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.float-kw { color: var(--text); font-weight: 600; font-size: 13.5px; }
.float .spark { width: 100%; height: 54px; margin: 6px 0 4px; display: block; }
.float-row { font-size: 12.5px; color: var(--muted); }
.float-row b { color: var(--text); font-size: 14px; }
.up { color: var(--green); font-weight: 600; margin-left: .3rem; }
.float p { color: var(--text); font-weight: 500; line-height: 1.45; font-size: 13.5px; }
.tool-line { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(148, 182, 225, .12); }
.tool-line .mono { font-size: 12.5px; color: var(--cyan); }
.ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(61, 220, 151, .15); color: var(--green); }
.ok .ic { width: 12px; height: 12px; stroke-width: 3; }
.float-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-blue { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.dot-gold { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.dot-green { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot-grey { background: var(--dim); }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; padding: 28px 0 8px; display: grid; gap: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-row { overflow: hidden; }
.ticker-track { display: flex; gap: 12px; width: max-content; animation: marquee 80s linear infinite; }
.ticker-row-rev .ticker-track { animation-direction: reverse; animation-duration: 95s; }
.ticker-track span {
  padding: .5rem 1rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  font-size: .9rem; color: var(--muted);
}
.ticker-track span:nth-child(5n+1) { color: var(--text-2); border-color: rgba(74, 163, 255, .25); background: rgba(74, 163, 255, .06); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 26px 30px; }
.stat-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(74, 163, 255, .25);
  margin-bottom: 26px;
}
.stat-ico .ic { width: 20px; height: 20px; }
.stat-approx { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 600; }
.stat-num {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1; margin: .2rem 0 .7rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: .42em; letter-spacing: -.01em; color: var(--muted); font-weight: 700; }
.stat h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: .55rem; }
.stat p:last-child { font-size: .93rem; color: var(--muted); line-height: 1.6; }
.stat-mcp .stat-ico { background: rgba(242, 196, 109, .12); color: var(--gold); border-color: rgba(242, 196, 109, .3); }

/* ---------- Value ---------- */
.section-value { overflow: hidden; }
.section-value::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(242, 196, 109, .07), transparent 70%);
}
.vein {
  position: absolute; left: -10%; right: -10%; top: 86%; height: 2px; pointer-events: none;
  transform: rotate(-4deg);
  background: linear-gradient(90deg, transparent 0%, rgba(242, 196, 109, .0) 10%, rgba(242, 196, 109, .35) 35%, rgba(255, 226, 160, .7) 50%, rgba(242, 196, 109, .35) 65%, transparent 90%);
  filter: drop-shadow(0 0 8px rgba(242, 196, 109, .8));
  opacity: .55;
}
.vein::after {
  content: ""; position: absolute; top: -2px; height: 6px; width: 180px; border-radius: 6px;
  background: radial-gradient(closest-side, #fff4d6, rgba(242, 196, 109, 0));
  animation: vein 6s ease-in-out infinite;
}
@keyframes vein { 0% { left: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 90%; opacity: 0; } }

.value-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.value-copy h2 { margin-bottom: 1.6rem; }
.value-copy p { font-size: 1.08rem; line-height: 1.7; color: var(--muted); max-width: 520px; }
.value-copy p + p { margin-top: 1rem; color: var(--text-2); }
.value-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { padding: 26px; background: linear-gradient(180deg, rgba(14, 21, 31, .9), rgba(10, 16, 25, .9)); }
.tile > .ic { width: 26px; height: 26px; color: var(--gold); margin-bottom: 18px; stroke-width: 1.8; }
.tile h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .45rem; }
.tile p { font-size: .93rem; color: var(--muted); line-height: 1.6; }
.tile.spot::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 196, 109, .10), transparent 45%); }

/* ---------- Tour ---------- */
.tour-tabs {
  position: relative; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 40px;
  padding: 5px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  overflow-x: auto; scrollbar-width: none;
}
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.2rem; border-radius: 12px; border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: .95rem; color: var(--muted); white-space: nowrap;
  transition: color .25s;
}
.tour-tabs button[aria-selected="true"] { color: #fff; }
.tour-tabs button:hover { color: var(--text); }
.tour-ink {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #4ea9ff, #2f84f5);
  box-shadow: 0 8px 24px -8px rgba(74, 163, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .45s var(--ease), width .45s var(--ease);
}

.tour-panel { display: grid; gap: 32px; }
.tour-panel[hidden] { display: none; }
.tour-panel.is-active { animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tour-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: start; }
.tour-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -.02em; font-weight: 700; margin-bottom: .8rem; }
.tour-copy p { color: var(--muted); line-height: 1.7; }

.checks { display: grid; gap: .55rem; }
.tour-copy .checks { grid-template-columns: 1fr 1fr; gap: .7rem 1.4rem; padding-top: .4rem; }
.checks li { position: relative; padding-left: 1.7rem; font-size: .95rem; color: var(--text-2); line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa3ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.shot { position: relative; }
.hs {
  position: absolute; left: var(--x); top: var(--y);
  width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(74, 163, 255, .25);
  z-index: 2;
}
.hs::before { /* rdzeń */
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px var(--blue), 0 0 16px 4px rgba(74, 163, 255, .8);
}
.hs::after { /* fala */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue);
  animation: ring 2.2s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.hs-tip {
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-6px, -50%);
  width: max-content; max-width: 260px;
  padding: .7rem .9rem; border-radius: 12px;
  background: rgba(10, 16, 25, .94); border: 1px solid rgba(160, 190, 230, .22);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .9);
  font-size: .86rem; line-height: 1.45; color: var(--text); text-align: left; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.hs[data-side="left"] .hs-tip { left: auto; right: calc(100% + 12px); transform: translate(6px, -50%); }
.hs:hover .hs-tip, .hs:focus-visible .hs-tip { opacity: 1; transform: translate(0, -50%); }
.hs:hover, .hs:focus-visible { z-index: 5; }

/* ---------- MCP ---------- */
.section-mcp { overflow: hidden; }
.mcp-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 25% 30%, rgba(74, 163, 255, .12), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 45%, rgba(155, 140, 255, .09), transparent 70%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(242, 196, 109, .05), transparent 70%);
}
.section-mcp::before { /* linie */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 15%, transparent 85%, var(--bg) 100%),
    repeating-linear-gradient(90deg, rgba(148, 182, 225, .035) 0 1px, transparent 1px 120px);
}

.mcp-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 32px; align-items: start; }

.chat-wrap { position: sticky; top: calc(var(--nav-h) + 20px); }
.chat-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  margin-bottom: 14px;
}
.chat-switch button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: .55rem 1rem; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--muted);
  transition: color .25s;
}
.chat-switch button[aria-pressed="true"] { color: #fff; }
.chat-switch-ink {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px);
  border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2);
  transition: transform .45s var(--ease), background-color .45s;
}
.chat-switch[data-mode="on"] .chat-switch-ink { transform: translateX(calc(100% + 4px)); background: linear-gradient(180deg, #4ea9ff, #2f84f5); border-color: rgba(140, 200, 255, .5); }

.chat {
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 24, 35, .92), rgba(10, 15, 23, .96));
  border: 1px solid rgba(160, 190, 230, .16);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 100px -40px rgba(74, 163, 255, .35);
  display: flex; flex-direction: column;
  height: 600px;
}
.chat-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.chat-title { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 600; }
.chat-title .ic { color: var(--blue); }
.chat-status { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(148, 182, 225, .2) transparent; }
.chat-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px 18px; border-top: 1px solid var(--line); }
.chat-caption { font-size: .78rem; color: var(--dim); }
.chat-replay {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); border-radius: 10px;
  padding: .4rem .75rem; font-size: .8rem; font-weight: 600; color: var(--text-2); cursor: pointer;
}
.chat-replay:hover { background: rgba(255, 255, 255, .08); }

.msg { max-width: 92%; animation: msgIn .45s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg-user {
  align-self: flex-end;
  padding: .8rem 1rem; border-radius: 16px 16px 4px 16px;
  background: linear-gradient(180deg, rgba(74, 163, 255, .22), rgba(47, 132, 245, .16));
  border: 1px solid rgba(74, 163, 255, .3);
  color: var(--text); font-size: .93rem; line-height: 1.5;
}
.msg-ai { align-self: flex-start; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: .93rem; line-height: 1.6; color: var(--text-2); }
.msg-ai .av {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: var(--text-2);
}
.msg-ai .av .ic { width: 16px; height: 16px; }
.msg-ai .txt > * + * { margin-top: .55rem; }
.msg-ai .txt b { color: var(--text); font-weight: 600; }
.msg-ai .txt ul { display: grid; gap: .3rem; }
.msg-ai .txt li { position: relative; padding-left: 2.3rem; }
.msg-ai .txt li .tag { position: absolute; left: 0; top: .25em; }
.msg-ai .txt .tag { display: inline-block; font-family: var(--font-mono); font-size: .72rem; padding: .05rem .4rem; border-radius: 6px; background: rgba(74, 163, 255, .14); color: var(--blue); margin-right: .35rem; vertical-align: 1px; }
.caret { display: inline-block; width: 7px; height: 1em; background: var(--blue); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.call {
  align-self: flex-start; width: min(100%, 520px); margin-left: 40px;
  border-radius: 12px; border: 1px solid rgba(103, 211, 255, .18); background: rgba(103, 211, 255, .04);
  padding: .6rem .8rem; font-size: .82rem;
  animation: msgIn .45s var(--ease) both;
}
.call-head { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.call-head code { color: var(--cyan); font-weight: 500; }
.call-arg { color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }
.call-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 700; }
.call-res { margin-top: .4rem; color: var(--text-2); font-size: .82rem; padding-left: 1.45rem; opacity: 0; transition: opacity .4s; }
.call.done .call-res { opacity: 1; }
.spin {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid rgba(103, 211, 255, .25); border-top-color: var(--cyan);
  animation: spin .8s linear infinite;
}
.call.done .spin { animation: none; border: 0; background: rgba(61, 220, 151, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc97' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }

.mcp-side { display: grid; gap: 18px; }
.mcp-what { font-size: .98rem; color: var(--muted); line-height: 1.65; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--line-2); }
.mcp-what strong { color: var(--text); }
.mcp-tools-title { font-size: 1.05rem; font-weight: 600; margin-top: 6px; }
.tools { display: grid; gap: 10px; }
.tool { padding: 16px 18px; border-radius: 14px; }
.tool code {
  display: inline-block; font-size: .86rem; font-weight: 600; color: var(--gold);
  padding: .12rem .5rem; border-radius: 7px; background: rgba(242, 196, 109, .1); border: 1px solid rgba(242, 196, 109, .22);
  margin-bottom: .5rem;
}
.tool p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

.connect {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.connect-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.025em; font-weight: 700; margin-bottom: .9rem; text-wrap: balance; }
.connect-copy > p { color: var(--muted); line-height: 1.7; }
.connect-facts { margin-top: 1.6rem; display: grid; gap: 1rem; }
.connect-facts li { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; font-size: .94rem; color: var(--text-2); line-height: 1.55; }
.connect-facts .ic { width: 20px; height: 20px; color: var(--green); margin-top: 2px; }

.code-card {
  border-radius: 18px; overflow: hidden;
  background: #080d14; border: 1px solid rgba(160, 190, 230, .16);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.code-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs button {
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: .65rem .95rem; font-size: .85rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.code-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--blue); }
.code-panel { position: relative; padding: 18px 20px 6px; }
.code-panel[hidden] { display: none; }
.code-hint { font-size: .84rem; color: var(--muted); margin-bottom: .8rem; padding-right: 90px; }
.code-hint code { color: var(--text-2); }
.code-panel pre {
  margin: 0; padding: 16px 18px; border-radius: 12px; overflow-x: auto;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .86rem; line-height: 1.65; color: var(--text-2);
}
.code-panel pre code { font-size: inherit; }
.t-k { color: #8fd0ff; }
.t-s { color: #f2c46d; }
.t-p { color: #6f7f94; }
.t-c { color: #3ddc97; }
.t-dim { color: var(--dim); }
.t-g { color: var(--green); }
.copy {
  position: absolute; top: 12px; right: 14px;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05);
  font-size: .78rem; font-weight: 600; color: var(--text-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.copy:hover { background: rgba(255, 255, 255, .1); }
.copy.copied { color: var(--green); border-color: rgba(61, 220, 151, .4); }
.code-foot { padding: 12px 20px 18px; font-size: .8rem; color: var(--dim); }

.mcp-shot { margin: clamp(56px, 8vw, 96px) 0 0; }
.mcp-shot figcaption { margin-top: 1rem; text-align: center; font-size: .88rem; color: var(--dim); }

/* ---------- Bento ---------- */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "plan plan brief"
    "struct ads an"
    "struct ai ai";
}
.bento > :nth-child(1) { grid-area: plan; }
.bento > :nth-child(2) { grid-area: brief; }
.bento > :nth-child(3) { grid-area: struct; }
.bento > :nth-child(4) { grid-area: ads; }
.bento > :nth-child(5) { grid-area: an; }
.bento > :nth-child(6) { grid-area: ai; }
.b { padding: 28px; overflow: hidden; display: flex; flex-direction: column; }
.b-ico { width: 24px; height: 24px; color: var(--blue); margin-bottom: 18px; stroke-width: 1.8; }
.b h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .5rem; }
.b p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.b-wide { flex-direction: row; gap: 32px; align-items: center; }
.b-wide .b-copy { flex: 1 1 52%; }

.season { flex: 1 1 48%; }
.season-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.season-bars i {
  flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(74, 163, 255, .45), rgba(74, 163, 255, .15));
  transform-origin: bottom; transform: scaleY(.05);
  transition: transform 1s var(--ease);
}
.season-bars i:nth-child(n) { transition-delay: calc(var(--i, 0) * 50ms); }
.season-bars .peak { background: linear-gradient(180deg, #8fd0ff, var(--blue)); box-shadow: 0 0 24px -2px rgba(74, 163, 255, .8); }
.b.in .season-bars i, html:not(.js) .season-bars i { transform: scaleY(1); }
.season-labels { display: flex; gap: 6px; margin-top: 8px; }
.season-labels span { flex: 1; text-align: center; font-size: .72rem; color: var(--dim); font-weight: 600; }
.season-labels .on { color: var(--blue); }
.season-note { margin-top: 10px; font-size: .8rem !important; color: var(--blue) !important; font-weight: 600; text-align: right; }

.qchips { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.qchips span {
  font-size: .85rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px;
  border: 1px solid rgba(242, 196, 109, .3); color: var(--gold); background: rgba(242, 196, 109, .07);
}
.b-img { margin: 22px -28px -28px; flex: 1; min-height: 200px; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.b-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.35); transition: transform 1.2s var(--ease); }
.b-tall:hover .b-img img { transform: scale(1.45); }
.b-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 25, .6), transparent 30%, transparent 70%, rgba(10, 16, 25, .6)); }

.term {
  flex: 1 1 50%; align-self: stretch;
  border-radius: 14px; padding: 16px 18px;
  background: #080d14; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .78rem; line-height: 1.7; color: var(--text-2);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.term-line { overflow-wrap: anywhere; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 27px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent);
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step-n {
  position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--text);
  background: radial-gradient(circle at 50% 30%, #18263a, #0b111a);
  border: 1px solid rgba(74, 163, 255, .4);
  box-shadow: 0 0 0 6px var(--bg), 0 0 40px -6px rgba(74, 163, 255, .55);
  margin-bottom: 1.4rem;
}
.step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; line-height: 1.6; max-width: 320px; margin-inline: auto; }

/* ---------- Pricing ---------- */
.section-pricing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 50% 45% at 50% 55%, rgba(74, 163, 255, .10), transparent 70%);
}
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 940px; margin: 0 auto; align-items: stretch; }
.plan { padding: 34px 32px 32px; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(16, 24, 35, .9), rgba(10, 15, 23, .95)); }
.plan-head { margin-bottom: 22px; }
.plan-ico { width: 26px; height: 26px; color: var(--blue); margin-bottom: 16px; stroke-width: 1.8; }
.plan h3 { font-size: 1.5rem; letter-spacing: -.02em; font-weight: 700; }
.plan-head p { margin-top: .35rem; color: var(--muted); font-size: .95rem; }
.price { display: flex; align-items: baseline; gap: .5rem; padding: 18px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.price-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.035em; color: var(--text); line-height: 1; }
.price-note { color: var(--muted); font-size: .92rem; }
.plan .checks { margin-bottom: 30px; flex: 1; align-content: start; }
.price-soon .price-amount { font-size: 1.9rem; color: var(--gold); letter-spacing: -.025em; }
.btn-soon { cursor: default; color: var(--muted); border-style: dashed; background: rgba(255, 255, 255, .02); }
.btn-soon:hover { transform: none; background: rgba(255, 255, 255, .02); border-color: var(--line-2); }
.btn-soon .ic { color: var(--gold); }
.btn-soon:hover .ic { transform: none; }
.f-soon {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(242, 196, 109, .4); background: rgba(242, 196, 109, .08);
  color: var(--gold); font-weight: 600; font-size: .95rem;
}
.plan .checks strong { color: var(--text); }

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan-featured { border-color: transparent; background:
  linear-gradient(180deg, rgba(18, 27, 40, .98), rgba(11, 16, 25, .98)) padding-box,
  conic-gradient(from var(--angle), rgba(74, 163, 255, .15), rgba(242, 196, 109, .85), rgba(74, 163, 255, .9), rgba(155, 140, 255, .5), rgba(74, 163, 255, .15)) border-box;
  animation: rotate 8s linear infinite;
  box-shadow: 0 40px 100px -40px rgba(74, 163, 255, .55);
}
@keyframes rotate { to { --angle: 360deg; } }
.plan-featured .plan-ico { color: var(--gold); }
.plan-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #1d1305; background: linear-gradient(180deg, #ffd889, #e3a74b);
  padding: .3rem .65rem; border-radius: 999px;
}
.plans-note { text-align: center; margin-top: 28px; font-size: .9rem; color: var(--dim); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--text-2), var(--text-2)) center / 11px 1.6px no-repeat,
    linear-gradient(var(--text-2), var(--text-2)) center / 1.6px 11px no-repeat;
  transition: transform .35s var(--ease), background-color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(74, 163, 255, .15); }
.faq summary:hover { color: #fff; }
.faq-a { padding: 0 3rem 1.5rem 0; color: var(--muted); line-height: 1.7; }
.faq details[open] .faq-a { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-a code { color: var(--text-2); background: rgba(255, 255, 255, .05); padding: .1rem .35rem; border-radius: 6px; }

/* ---------- Finale ---------- */
.finale { position: relative; background: #04070c; }
.finale-sticky { position: relative; overflow: hidden; padding: 120px 0; }
.finale-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.finale-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(74, 163, 255, calc(.06 + var(--p, 0) * .14)), transparent 45%),
              radial-gradient(circle at 50% 50%, rgba(242, 196, 109, calc(var(--p, 0) * var(--p, 0) * .12)), transparent 30%);
}
.finale-text { position: relative; z-index: 2; text-align: center; padding-inline: var(--gutter); display: grid; gap: 80px; }
.f-step { max-width: 900px; margin: 0 auto; }
.f-years { display: inline-flex; align-items: center; gap: 1.2rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--text); letter-spacing: -.02em; }
.f-years i { display: block; width: clamp(60px, 14vw, 180px); height: 1px; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.f-line { margin-top: 1.2rem; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--text-2); line-height: 1.5; }
.f-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 6.4vw, 5.4rem); line-height: 1.03; letter-spacing: -.04em; color: var(--text); text-wrap: balance; }
.f-actions { margin-top: 2.4rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.f-thanks { margin-top: 2.4rem; font-size: 1rem; color: var(--muted); }
.f-thanks span { display: block; margin-top: .35rem; font-size: .85rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.finale-progress { display: none; }

/* finał przewijany (tylko z JS i bez ograniczenia animacji) */
.js:not(.reduced) .finale { height: 420vh; }
.js:not(.reduced) .finale-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; display: grid; place-items: center; }
.js:not(.reduced) .finale-text { display: block; width: 100%; height: 100%; }
.js:not(.reduced) .f-step {
  position: absolute; left: 50%; top: 50%; width: min(900px, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, calc(-50% + 30px)); opacity: 0; filter: blur(8px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  pointer-events: none;
}
.js:not(.reduced) .f-step.on { opacity: 1; transform: translate(-50%, -50%); filter: none; pointer-events: auto; }
.js:not(.reduced) .f-step.past { transform: translate(-50%, calc(-50% - 30px)); }
.js:not(.reduced) .finale-progress {
  display: block; position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  width: 120px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; z-index: 3;
}
.finale-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blue), var(--gold)); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; background: #04070c; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 1.2rem; }
.footer-brand img { height: 26px; width: auto; opacity: .85; }
.footer-brand p { font-size: .85rem; color: var(--dim); }
.footer-links { display: flex; gap: .4rem 1.4rem; flex-wrap: wrap; }
.footer-links a { font-size: .88rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* =========================================================
   Responsywność
   ========================================================= */
@media (max-width: 1240px) {
  .float-a { left: -12px; }
  .float-b { right: -12px; }
}

@media (max-width: 1080px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .mcp-grid { grid-template-columns: 1fr; }
  .chat-wrap { position: relative; top: 0; }
  .connect { grid-template-columns: 1fr; }
  .float-c { display: none; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px;
    background: rgba(7, 11, 18, .96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: .85rem .4rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: inline-flex; margin-left: 0; }
  .nav-cta { margin-left: auto; }
  .tour-copy { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "plan plan" "brief struct" "ads struct" "an an" "ai ai"; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { left: 50%; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent); }
  .step { background: var(--bg); padding: 8px 12px 0; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 760px) {
  .float { display: none; }
  .hs { display: none; }
  .hero-meta { gap: .7rem 1.2rem; }
  .b-wide { flex-direction: column; align-items: stretch; }
  .season { width: 100%; }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; --nav-h: 60px; }
  .brand img { height: 26px; }
  .brand-tag { display: none; }
  .nav-cta { padding: .5rem .8rem; font-size: .85rem; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hero-actions .btn { width: 100%; }
  .hero-actions { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .value-tiles { grid-template-columns: 1fr; }
  .tour-copy .checks { grid-template-columns: 1fr; }
  .tour-tabs { width: 100%; }
  .tour-tabs button { padding: .65rem .85rem; font-size: .88rem; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "plan" "brief" "struct" "ads" "an" "ai"; }
  .b { padding: 22px; }
  .b-img { margin: 18px -22px -22px; min-height: 180px; }
  .chat { height: 560px; }
  .chat-switch { display: grid; width: 100%; }
  .chat-switch button { padding: .55rem .5rem; font-size: .85rem; }
  .call { margin-left: 0; }
  .msg-ai { grid-template-columns: 1fr; }
  .msg-ai .av { display: none; }
  .chat-caption { font-size: .72rem; }
  .plan { padding: 28px 22px; }
  .faq-a { padding-right: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .window { border-radius: 10px; }
  .win-bar { height: 24px; }
  .win-title { font-size: 10px; }
  .win-ctrl i { width: 30px; }
}

/* telefon: zrzuty da się przesuwać, hero pokazuje powiększony fragment */
@media (max-width: 620px) {
  .window-hero img { aspect-ratio: 1 / 1.02; object-fit: cover; object-position: 34% 0; width: 100%; }
  .window-tour .shot, .mcp-shot .shot { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .window-tour .shot::-webkit-scrollbar, .mcp-shot .shot::-webkit-scrollbar { display: none; }
  .window-tour .shot img, .mcp-shot .shot img { width: 820px; max-width: none; }
  .window-tour::after, .mcp-shot .window::after {
    content: "przesuń  →"; position: absolute; right: 10px; bottom: 10px; z-index: 3;
    font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--text);
    padding: .3rem .6rem; border-radius: 999px; background: rgba(10, 16, 25, .85); border: 1px solid var(--line-2);
    pointer-events: none;
  }
  .tour-tabs button .ic { display: none; }
  .tour-tabs button { padding: .6rem .7rem; font-size: .84rem; }
  .tour-tabs { justify-content: space-between; }
  .code-tabs button { padding: .6rem .55rem; font-size: .78rem; }
  .code-panel { padding: 16px 14px 6px; }
  .code-panel pre { font-size: .76rem; padding: 14px; }
  .copy { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ---------- Podstrony (licencja, regulamin, polityka) ---------- */
.page-legal { display: flex; flex-direction: column; min-height: 100vh; }
.page-legal main { flex: 1; }
.page-legal .nav-cta { margin-left: auto; }
.legal { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 9vw, 120px); }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: .4rem 0 1.2rem; }
.legal h2 { font-size: 1.25rem; margin: 2.4rem 0 .8rem; }
.legal p { margin: 0 0 1rem; }
.legal ol { list-style: decimal; padding-left: 1.4rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .4rem; }
.legal-meta { font-size: .9rem; color: var(--dim); }
.legal ul { list-style: disc; padding-left: 1.4rem; margin: .5rem 0 0; }
.legal li a, .legal p a { color: var(--blue); overflow-wrap: anywhere; }
.legal li a:hover, .legal p a:hover { text-decoration: underline; }
.legal .legal-sub { padding-left: 1.6rem; margin-bottom: .6rem; }
.legal-table { overflow-x: auto; margin: 1rem 0 .6rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.legal table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); font-weight: 600; background: var(--surface); }
.legal tr:last-child td { border-bottom: 0; }
