/* =========================================================
   Skanai Link — landing page
   Voxel noir: charcoal, cream type, one hot orange.
   ========================================================= */

:root {
  --bg: #08080a;
  --bg-2: #0e0f12;
  --charcoal: #1b1d23;
  --charcoal-2: #23262e;
  --ash: #d7d6d2;
  --line: rgba(236, 220, 196, 0.11);
  --line-2: rgba(236, 220, 196, 0.2);
  --cream: #ecdcc4;
  --cream-2: #f4eee5;
  --text: #e8e3da;
  --muted: #8f8b84;
  --dim: #5d5a55;
  --orange: #ff5a1f;
  --orange-2: #ff7a45;
  --steel: #7d9cc0;

  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --gutter: clamp(16px, 4.2vw, 72px);
  --nav-h: 84px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  overflow-x: clip;
  font-size: 16px;
  line-height: 1.55;
}

::selection { background: var(--orange); color: #0b0b0b; }

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dim { color: var(--muted); }

.wrap { width: 100%; padding-inline: var(--gutter); margin-inline: auto; max-width: 1680px; }
.section { position: relative; padding-block: clamp(96px, 14vw, 200px); }

/* ---------- reveal states (only when JS will animate them) ---------- */
.js [data-split] { visibility: hidden; }
.js [data-reveal] { opacity: 0; }
.js [data-hero-fade] { opacity: 0; }
.no-anim [data-split], .no-anim [data-reveal], .no-anim [data-hero-fade] { visibility: visible !important; opacity: 1 !important; }
.no-anim .loader { display: none; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.06em 0.14em 0; margin: -0.04em -0.06em -0.14em 0; }
.wi { display: inline-block; will-change: transform; }

/* ---------- headings ---------- */
.h2 {
  font-size: clamp(42px, 5.8vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.042em;
  font-weight: 350;
  color: var(--cream-2);
}
.h2 em { font-size: 1.07em; color: var(--cream); letter-spacing: -0.02em; }
.h2--xl { font-size: clamp(48px, 7vw, 128px); }

.sec-head {
  display: flex; align-items: center; gap: 16px;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 56px);
}
.sec-head .mono:first-child { color: var(--orange); }
.sec-head__line { flex: 1; height: 1px; background: var(--line); transform-origin: left; }

/* ---------- buttons ---------- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h);
  padding: 0 28px;
  border-radius: 12px;
  font-size: 16px; font-weight: 400; letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: -1px;
  background: var(--orange);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #0b0b0b; }
.btn svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn__label { position: relative; display: inline-block; overflow: hidden; line-height: 1.3; }
.btn__label > span { display: block; transition: transform 0.6s var(--ease); }
.btn__label > span + span { position: absolute; left: 0; top: 100%; }
.btn:hover .btn__label > span { transform: translateY(-100%); }

.btn--glow {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(115deg, var(--orange), rgba(236, 220, 196, 0.45) 45%, rgba(236, 220, 196, 0.15) 60%, var(--orange)) border-box;
  box-shadow: 0 0 0 0 rgba(255, 90, 31, 0), inset 0 0 22px rgba(255, 90, 31, 0.12);
}
.btn--glow:hover { box-shadow: 0 10px 50px -10px rgba(255, 90, 31, 0.65); }
.btn--ghost { background: #1c1d22; border: 1px solid var(--line); color: var(--cream-2); }
.btn--orange { background: var(--orange); color: #0b0b0b; font-weight: 500; }
.btn--orange::before { background: var(--cream-2); }
.btn--pill {
  --h: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 14px;
  border: 1px solid var(--line-2);
  color: var(--cream-2);
}

/* ---------- live dot ---------- */
.live {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6);
  animation: live 1.8s infinite;
  flex: none;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

/* =========================================================
   LOADER
   ========================================================= */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 28px var(--gutter) 40px;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
}
.loader__top, .loader__bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.loader__top { align-items: center; }
.loader__center { position: relative; display: grid; place-items: center; }
.loader__orbit {
  position: relative;
  width: min(42vmin, 340px); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(236, 220, 196, 0.22);
  animation: spin 2.4s linear infinite;
}
.loader__src {
  position: absolute; top: -5px; left: calc(50% - 5px);
  width: 10px; height: 10px; background: var(--orange);
  box-shadow: 0 0 24px var(--orange);
}
.loader__det {
  position: absolute; bottom: -2px; left: 30%; width: 40%; height: 3px;
  background: var(--cream);
}
.loader__beam {
  position: absolute; inset: 0; margin: auto;
  width: min(42vmin, 340px); aspect-ratio: 1;
  background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(255, 90, 31, 0.25) 20deg, transparent 40deg);
  animation: spin 2.4s linear infinite;
  border-radius: 50%;
  opacity: 0.8;
  mask: radial-gradient(circle, #000 68%, transparent 70%);
}
.loader__label { position: absolute; bottom: calc(50% - min(21vmin, 170px) - 48px); color: var(--muted); }
.loader__count {
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.8;
  font-weight: 250;
  letter-spacing: -0.05em;
  color: var(--cream-2);
  font-variant-numeric: tabular-nums;
}
.loader__count small { font-size: 0.3em; color: var(--orange); margin-left: 6px; letter-spacing: 0; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(236, 220, 196, 0.08); }
.loader__bar span { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   CURSOR + GRAIN
   ========================================================= */
.cursor { display: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; will-change: transform; }
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--orange);
}
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(236, 220, 196, 0.45);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.cursor.is-hover .cursor__ring {
  width: 66px; height: 66px; margin: -33px 0 0 -33px;
  border-color: rgba(255, 90, 31, 0.8);
  background: rgba(255, 90, 31, 0.08);
}
.cursor__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #0b0b0b; opacity: 0; transition: opacity 0.3s; text-align: center; line-height: 1.2; padding: 0 10px;
}
.cursor.is-label .cursor__ring {
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  background: var(--orange); border-color: var(--orange);
}
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor__ring, .cursor__dot { transition-property: width, height, margin, background, border-color, opacity; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  z-index: 250; pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -4%); }
  80% { transform: translate(4%, 2%); }
  100% { transform: translate(0, 0); }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  height: var(--nav-h);
  transition: transform 0.6s var(--ease), background 0.4s, backdrop-filter 0.4s;
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); opacity: 0; transition: opacity 0.4s;
}
.nav.is-scrolled { background: rgba(8, 8, 10, 0.62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.nav.is-scrolled::after { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--cream-2); }

/* logo: pomarańczowy znak Skanai + napis „skanai link.” jak w dużym napisie w stopce; „ai” odrobinę lżejsze, kropka pomarańczowa */
.logo__mark { height: 40px; width: auto; display: block; flex: none; }
.logo__word { font-family: var(--font-sans); font-size: 33px; font-weight: 500; line-height: 1; letter-spacing: -0.055em; white-space: nowrap; color: var(--cream-2); transform: translateY(-1px); }
/* „ai” cieńsze od reszty napisu — w logo u góry i w dużym napisie w stopce */
.logo__ai { font-weight: 330; }
.logo__word i { font-style: normal; color: var(--orange); }
@media (max-width: 959px) { .logo__mark { height: 33px; } .logo__word { font-size: 27px; } }

.nav__links { display: flex; gap: clamp(18px, 2.6vw, 44px); font-size: 15px; color: rgba(244, 238, 229, 0.82); }
.nav__links a, .nav__login { position: relative; transition: color 0.3s; }
.nav__links a::after, .nav__login::after, .footer a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover, .nav__login:hover { color: var(--cream-2); }
.nav__links a:hover::after, .nav__login:hover::after, .footer a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav__login { color: rgba(244, 238, 229, 0.82); }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--cream-2);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 26px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 140;
  background: var(--bg);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(36px, 10vw, 64px); line-height: 1.15; letter-spacing: -0.04em; font-weight: 350;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  transform: translateY(30px); opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.menu__links a .mono { color: var(--orange); }
.menu-open .menu__links a { transform: none; opacity: 1; }
.menu-open .menu__links a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: 0.15s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: 0.2s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: 0.25s; }
.menu__foot { display: flex; justify-content: space-between; color: var(--muted); }

/* ---------- side rail ---------- */
.rail {
  position: fixed; right: calc(var(--gutter) * 0.42); top: 50%; z-index: 120;
  transform: translateY(-50%);
  display: none; flex-direction: column; align-items: center; gap: 18px;
  color: var(--cream-2);
  mix-blend-mode: difference;
}
.rail__index { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; }
.rail__index span:last-child { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.1em; }
.rail__dash { width: 1px; height: 18px; background: currentColor; }
.rail__ticks { display: flex; flex-direction: column; gap: 9px; }
.rail__ticks li { width: 10px; height: 1px; background: rgba(244, 238, 229, 0.35); transition: width 0.5s var(--ease), background 0.5s; margin-left: auto; }
.rail__ticks li.is-active { width: 22px; background: var(--orange); }
.rail__label { writing-mode: vertical-rl; transform: rotate(180deg); color: rgba(244, 238, 229, 0.55); font-size: 10px; }
.rail { transition: opacity 0.5s; }
.rail.is-dim { opacity: 0; }
@media (min-width: 1180px) { .rail { display: flex; } }

.to-top {
  position: fixed; right: 0; bottom: 0; z-index: 130;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--orange); color: #0b0b0b;
  border-top-left-radius: 14px;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease);
}
.to-top svg { width: 22px; height: 22px; transition: transform 0.5s var(--ease); }
.to-top:hover svg { transform: translateY(-4px); }
.to-top.is-visible { transform: none; }
.nav.is-hidden ~ .to-top.is-visible { transform: translateY(110%); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100svh; min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 68% 46%, rgba(255, 90, 31, 0.07), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(125, 156, 192, 0.05), transparent 70%),
    var(--bg);
}
.hero__canvas { position: absolute; inset: 0; z-index: 1; opacity: 0.26; }   /* tło nastroju, nie produkt */
.hero__canvas canvas { width: 100% !important; height: 100% !important; }

.hero__hud { display: none; position: absolute; z-index: 2; left: 46%; right: calc(var(--gutter) + 26px); top: 15%; bottom: 25%; pointer-events: none; color: rgba(244, 238, 229, 0.62); }
.crop { position: absolute; width: 18px; height: 18px; border-color: rgba(236, 220, 196, 0.45); border-style: solid; border-width: 0; }
.crop--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.crop--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.crop--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.crop--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud { position: absolute; display: flex; flex-direction: column; gap: 4px; font-size: 10px; }
.hud--tl { top: 28px; left: 28px; }
.hud--tr { top: 28px; right: 28px; text-align: right; }
.hud--bl { bottom: 28px; left: 28px; }
.hud--br { bottom: 28px; right: 28px; flex-direction: row; align-items: center; gap: 10px; }
.hud__k { color: var(--orange); }

.hero__inner {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(28px, 8vh, 110px));
  padding-bottom: clamp(28px, 6vh, 64px);
  pointer-events: none;
}
.hero__inner a, .hero__inner button { pointer-events: auto; }
.eyebrow { color: var(--muted); margin-bottom: clamp(18px, 3vh, 34px); }
.hero__title {
  font-size: clamp(54px, 8.3vw, 156px);
  line-height: 0.9;
  letter-spacing: -0.052em;
  font-weight: 350;
  color: var(--cream-2);
  max-width: 9.5em;
}
.hero__title em { color: var(--cream); font-size: 1.06em; letter-spacing: -0.025em; }
.hero__bottom { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; max-width: min(44%, 560px); }
.hero__lead { max-width: 30em; font-size: clamp(16px, 1.25vw, 19px); color: rgba(232, 227, 218, 0.66); line-height: 1.55; }
.hero__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero__statement {
  font-size: clamp(30px, 3.2vw, 56px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 400;
  color: var(--cream-2);
}
.hero__statement em { color: var(--cream); }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 10px;
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--cream), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--orange);
  animation: scrollcue 2.2s var(--ease-in-out) infinite;
}
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.hero__device { position: absolute; z-index: 2; right: clamp(16px, 7vw, 150px); top: calc(var(--nav-h) + 3vh); height: min(76vh, 700px); aspect-ratio: 1206 / 2622; pointer-events: none; }
.hero__device--czastki { height: auto; aspect-ratio: 1; width: min(47vw, 700px); top: 50%; margin-top: calc(min(47vw, 700px) * -0.44); right: clamp(0px, 1.5vw, 40px); }

/* Pierwszy ekran: cząsteczki układają się w przekrój szczęki, potem w zatoki od przodu (assets/js/czastki.js + start.js) */
.czastki__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.czastki__caption { position: absolute; left: 50%; bottom: -1%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity 0.6s; white-space: nowrap; }
.czastki__caption.is-on { opacity: 1; }
@keyframes scrollcue { 0% { top: -40%; } 100% { top: 100%; } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative; z-index: 2;
  padding: clamp(20px, 3vw, 40px) 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}
.marquee__row { display: flex; white-space: nowrap; }
.marquee__track { display: flex; flex: none; will-change: transform; }

/* =========================================================
   PROBLEM
   ========================================================= */

.stat {
  padding: 22px 22px 0 22px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}

/* =========================================================
   STEPS — horizontal scroll
   ========================================================= */
.steps { position: relative; background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.steps__pin { position: relative; height: 100vh; min-height: 640px; display: flex; flex-direction: column; justify-content: center; }
.steps__track {
  display: flex; align-items: stretch; gap: clamp(20px, 2.4vw, 40px);
  padding-left: var(--gutter); padding-right: 12vw;
  width: max-content;
  will-change: transform;
}
.steps__intro {
  width: min(44vw, 720px); flex: none;
  display: flex; flex-direction: column; justify-content: center; padding-right: 4vw;
}
.steps__lead { margin-top: 30px; color: var(--muted); max-width: 26em; font-size: 18px; }
.steps__hint { margin-top: 44px; display: flex; align-items: center; gap: 14px; color: var(--cream); }
.steps__hint svg { width: 40px; height: 12px; animation: nudge 1.8s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }

.step {
  position: relative; flex: none;
  width: min(74vw, 1080px);
  min-height: min(72vh, 640px);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: clamp(28px, 3.4vw, 56px);
  border-radius: 28px;
  background: linear-gradient(160deg, var(--charcoal-2), var(--charcoal) 60%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.step__num {
  position: absolute; left: clamp(16px, 2vw, 32px); bottom: -0.22em;
  font-size: clamp(160px, 20vw, 340px); line-height: 1; font-weight: 600; letter-spacing: -0.07em;
  color: rgba(244, 238, 229, 0.035);
  pointer-events: none;
}
.step__copy { position: relative; display: flex; flex-direction: column; gap: 22px; }
.step__tag { color: var(--orange); }
.step__title { font-size: clamp(40px, 4.4vw, 80px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 350; color: var(--cream-2); }
.step__title em { color: var(--cream); }
.step__copy p { color: rgba(232, 227, 218, 0.62); max-width: 28em; font-size: 17px; }
.steps__end { flex: none; width: min(40vw, 520px); display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-left: 4vw; }
.steps__end p { font-size: clamp(44px, 5vw, 90px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 350; color: var(--cream-2); }
.steps__end em { color: var(--orange); }
.steps__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 5vh, 48px); height: 1px; background: var(--line); }
.steps__progress span { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); }

.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 8px; }
.cta__actions .signup__note { margin: 0; }

/* ---------- real app screenshots ---------- */
.shot { position: relative; margin: 0; justify-self: center; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0b0d;
  box-shadow: 0 60px 120px -50px rgba(255, 90, 31, 0.22), 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.shot img { display: block; width: 100%; height: auto; }
.shot--wide { width: 100%; }
.shot--dialog { width: min(100%, 400px); border-radius: 22px; }
.shot--phone { width: min(100%, 290px); border-radius: 40px; border: 8px solid #1d1e22; }

.pv { position: relative; background: #000; }
.pv__bar { display: block; width: 100%; height: auto; }
.pv__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 2880 / 1700; background: #1c1d21; }
.pv__pane { position: relative; overflow: hidden; background: #000; border: 1px solid #2a2b30; user-select: none; -webkit-user-select: none; }
.pv__pane--ax { grid-column: 1 / -1; }
.pv__pane.is-active { border-color: var(--orange); }
.pv__pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pv__line { position: absolute; top: 0; left: 0; pointer-events: none; opacity: 0.85; }
.pv__line--h { right: 0; height: 1px; }
.pv__line--v { bottom: 0; width: 1px; }
.pv__dot { position: absolute; top: 12px; right: 14px; width: 9px; height: 9px; border-radius: 50%; }
.pv__label, .pv__count { position: absolute; font-size: 12px; color: #d9d9d9; font-family: system-ui, sans-serif; pointer-events: none; }
.pv__label { left: 12px; top: 10px; }
.pv__count { right: 12px; bottom: 10px; font-variant-numeric: tabular-nums; }
.pv__pane--ax .pv__dot { background: #e5322d; }
.pv__pane--co .pv__dot { background: #2fbf4a; }
.pv__pane--sa .pv__dot { background: #d9d334; }
.pv__pane--ax .pv__line--h, .pv__pane--sa .pv__line--v { background: #2fbf4a; }
.pv__pane--ax .pv__line--v, .pv__pane--co .pv__line--v { background: #d9d334; }
.pv__pane--co .pv__line--h, .pv__pane--sa .pv__line--h { background: #e5322d; }
.pv__menu { position: absolute; left: 1.4%; bottom: 3%; width: 14.4%; height: auto; border-radius: 10px; pointer-events: none; }
@media (max-width: 760px) {
  .app .pv__grid { aspect-ratio: auto; grid-template-rows: auto auto; }
  .app .pv__pane--ax { aspect-ratio: 1 / 0.82; }
  .app .pv__pane--co, .app .pv__pane--sa { aspect-ratio: 473 / 512; }
  .app .pv__menu { display: none; }
}

/* ---------- UI cards (mock product) ---------- */

.step > * { min-width: 0; }

@keyframes blink { 50% { opacity: 0; } }

.toggle { width: 38px; height: 22px; border-radius: 22px; background: rgba(236, 220, 196, 0.14); position: relative; flex: none; transition: background 0.4s; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream-2); transition: transform 0.5s var(--ease); }
.toggle.is-on { background: var(--orange); }
.toggle.is-on::after { transform: translateX(16px); }

.status { padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; transition: all 0.4s; }
.status.is-open { background: rgba(255, 90, 31, 0.14); border-color: rgba(255, 90, 31, 0.5); color: var(--orange-2); }

/* =========================================================
   VIEWER
   ========================================================= */
.viewer { background: var(--bg); }
.viewer__intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.viewer__lead { color: var(--muted); font-size: 18px; max-width: 30em; }

.app {
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: #0b0b0d;
  overflow: hidden;
  box-shadow: 0 80px 160px -60px rgba(255, 90, 31, 0.18), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.app__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #101114; }
.app__dots { display: flex; gap: 7px; }
.app__dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2c33; }
.app__dots i:first-child { background: var(--orange); }
.app__url { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 8px; background: rgba(236, 220, 196, 0.05); color: var(--cream); text-transform: none; letter-spacing: 0.02em; font-size: 12px; }
.app__url svg { width: 13px; height: 13px; color: var(--orange); }
.app__badge { justify-self: end; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }

.tool { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: background 0.3s, color 0.3s; }
.tool svg { width: 19px; height: 19px; }
.tool:hover { color: var(--cream-2); background: rgba(236, 220, 196, 0.06); }
.tool.is-active { color: #0b0b0b; background: var(--orange); }

.pane { position: relative; background: #000; overflow: hidden; }
.pane canvas { width: 100%; height: 100%; }

.tag { padding: 3px 7px; border-radius: 6px; background: var(--orange); color: #0b0b0b; font-size: 9.5px; }

.range { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 240px; color: var(--muted); }

.range output { color: var(--cream); min-width: 82px; text-align: right; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 26px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--orange) var(--p, 50%), rgba(236, 220, 196, 0.15) var(--p, 50%)); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 2px; background: rgba(236, 220, 196, 0.15); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--orange); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; background: var(--cream-2); border-radius: 3px; border: 3px solid var(--orange); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; background: var(--cream-2); border-radius: 3px; border: 3px solid var(--orange); }

.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: all 0.35s var(--ease); }
.chip.is-on { background: rgba(255, 90, 31, 0.14); border-color: rgba(255, 90, 31, 0.55); color: var(--orange-2); }
.chip:hover { border-color: var(--cream); color: var(--cream-2); }

/* =========================================================
   AUDIENCE — stacking cards
   ========================================================= */
.audience__head { margin-bottom: clamp(40px, 6vw, 90px); }
.acards { position: relative; display: grid; gap: 4vh; }
.acard { position: sticky; top: calc(var(--nav-h) + 3vh); height: min(80vh, 760px); min-height: 560px; }
.acard:nth-child(2) { top: calc(var(--nav-h) + 3vh + 18px); }
.acard:nth-child(3) { top: calc(var(--nav-h) + 3vh + 36px); }
.acard__inner {
  position: relative; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  transform-origin: 50% 0%;
  will-change: transform;
}
.acard__copy { position: relative; z-index: 2; padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; }

.acard__visual { position: relative; display: grid; place-items: center; overflow: hidden; }

.acard--solo { position: relative; top: 0; height: auto; min-height: min(80vh, 760px); }
.acard--solo .acard__copy { justify-content: center; }
.roles { display: grid; }
.roles li { display: grid; gap: 10px; padding: clamp(18px, 2.2vw, 30px) 0; border-top: 1px solid rgba(0, 0, 0, 0.22); }
.roles li:first-child { border-top: 0; padding-top: 0; }
.roles li:last-child { padding-bottom: 0; }
.roles .mono { color: rgba(0, 0, 0, 0.7); }
.roles h3 { font-size: clamp(30px, 3.1vw, 54px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 350; }
.roles p { font-size: clamp(15px, 1.15vw, 18px); }

.acard--orange .acard__inner { background: var(--orange); color: #0b0b0b; }

/* disc */

.disc { position: relative; width: min(78%, 440px); aspect-ratio: 1; }

/* tooth chart */

.sw { width: 12px; height: 12px; border-radius: 3px; }

/* phone */
.phone {
  position: relative;
  width: min(54%, 290px); aspect-ratio: 1206 / 2622;          /* proporcje iPhone 16/17 Pro */
  border-radius: 14.2% / 6.55%;
  padding: 1.6%;
  background: linear-gradient(150deg, #4a4b50, #1c1d20 30%, #2b2c30 70%, #55565b);
  box-shadow: 0 60px 90px -30px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: rotate(-6deg) translateY(6%);
}
.phone__screen { position: relative; height: 100%; container-type: inline-size; border-radius: 12.8% / 5.9%; background: #151618; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px #000; }
.phone__screen > img { flex: none; width: 100%; height: auto; }
.phone__status { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; height: 13.5cqw; padding: 1.5cqw 7cqw 0 9cqw; background: #1f2024; color: #fff; font: 600 4.1cqw/1 -apple-system, "SF Pro Text", system-ui, sans-serif; }
.phone__status svg { width: 17cqw; height: auto; }
.phone__island { position: absolute; top: 2.6cqw; left: 50%; width: 31cqw; height: 9cqw; margin-left: -15.5cqw; border-radius: 99px; background: #000; }
.phone__safari { flex: none; margin-top: auto; padding: 2.4cqw 4cqw 8cqw; background: #151618; }
.phone__safari span { display: flex; align-items: center; justify-content: center; gap: 1.6cqw; height: 10.5cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.85); font: 500 3.7cqw/1 -apple-system, "SF Pro Text", system-ui, sans-serif; }
.phone__safari svg { width: 2.6cqw; height: auto; }
.phone__home { position: absolute; left: 50%; bottom: 2.2cqw; width: 34cqw; height: 1.3cqw; margin-left: -17cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.85); }

.sms {
  position: absolute; z-index: 3; top: 12%; right: 6%;
  max-width: 250px;
  padding: 14px 16px; border-radius: 18px 18px 4px 18px;
  background: #0b0b0d; color: var(--cream-2);
  font-size: 10.5px; line-height: 1.55; text-transform: none; letter-spacing: 0.02em;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6);
}
.sms__from { display: block; color: var(--orange); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 9px; }

/* =========================================================
   FEATURES — bento
   ========================================================= */

.tile {
  --mx: 50%; --my: 50%;
  position: relative;
  border-radius: 22px;
  background: linear-gradient(170deg, #15161a, #0d0e10);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 22px;
  isolation: isolate;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 90, 31, 0.13), transparent 45%);
  opacity: 0; transition: opacity 0.5s;
}
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 122, 69, 0.85), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.5s;
}
.tile:hover::before, .tile:hover::after { opacity: 1; }

.tile h3 { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 400; color: var(--cream-2); }
.tile p { color: var(--muted); font-size: 15px; max-width: 30em; }

@keyframes mprh { 0%, 100% { top: 34%; } 50% { top: 66%; } }
@keyframes mprv { 0%, 100% { left: 38%; } 50% { left: 64%; } }

@keyframes draw { to { stroke-dashoffset: 0; } }

.pin { display: flex; gap: 12px; justify-content: center; padding: 18px 0; }
.pin i { width: 48px; height: 58px; border-radius: 12px; border: 1px solid var(--line-2); position: relative; }
.pin i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); transform: scale(0); animation: pin 3.2s var(--ease) infinite; }
.pin i:nth-child(2)::after { animation-delay: 0.25s; }
.pin i:nth-child(3)::after { animation-delay: 0.5s; }
.pin i:nth-child(4)::after { animation-delay: 0.75s; }
@keyframes pin { 0%, 8% { transform: scale(0); } 18%, 80% { transform: scale(1); } 92%, 100% { transform: scale(0); } }

@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.anon { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: rgba(236, 220, 196, 0.04); border: 1px dashed var(--line-2); }
.anon .dim { font-size: 9.5px; }
.anon b { font-weight: 500; color: var(--cream-2); font-size: 15px; margin-bottom: 8px; text-transform: none; letter-spacing: 0.02em; min-height: 1.4em; }
.anon b.is-anon { color: var(--orange-2); }

.log { display: grid; gap: 6px; font-size: 10px; min-height: 140px; align-content: end; }
.log li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(236, 220, 196, 0.04); color: var(--muted); animation: logIn 0.6s var(--ease); }
.log li b { color: var(--cream); font-weight: 400; }
.log li em { font-family: var(--font-mono); font-style: normal; color: var(--orange-2); }
@keyframes logIn { from { opacity: 0; transform: translateY(10px); } }

/* =========================================================
   SECURITY
   ========================================================= */
.security { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.security__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 140px); align-items: start; }
.security__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.security__lead { margin-top: 30px; color: var(--muted); font-size: 18px; max-width: 28em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.badges span { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--cream); }
.badges span:first-child { background: var(--orange); border-color: var(--orange); color: #0b0b0b; }
.hexstream {
  margin-top: 48px; height: 150px; overflow: hidden; position: relative;
  -webkit-mask: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.hexstream__col { font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: rgba(236, 220, 196, 0.22); white-space: pre; animation: hex 26s linear infinite; }
.hexstream__col b { color: var(--orange); font-weight: 400; }
@keyframes hex { to { transform: translateY(-50%); } }

.security__list { display: grid; }
.security__list li {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.security__list li:last-child { border-bottom: 1px solid var(--line); }
.security__list li > .mono { color: var(--orange); padding-top: 10px; }
.security__list h3 { font-size: clamp(24px, 2.4vw, 40px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 350; color: var(--cream-2); margin-bottom: 10px; }
.security__list p { color: var(--muted); max-width: 30em; }
.security__list li:hover h3 { color: var(--cream); }

/* =========================================================
   FAQ
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 40px); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 28px 0; text-align: left;
  font-size: clamp(19px, 1.7vw, 26px); letter-spacing: -0.02em; font-weight: 350; color: var(--cream-2);
  transition: color 0.3s;
}
.qa__q:hover { color: var(--cream); }
.qa__q i { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: background 0.4s, border-color 0.4s, transform 0.6s var(--ease); }
.qa__q i::before, .qa__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: transform 0.5s var(--ease); }
.qa__q i::after { transform: rotate(90deg); }
.qa.is-open .qa__q i { background: var(--orange); border-color: var(--orange); color: #0b0b0b; transform: rotate(180deg); }
.qa.is-open .qa__q i::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 60px 30px 0; color: var(--muted); font-size: 17px; max-width: 36em; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }

/* =========================================================
   CTA
   ========================================================= */
.cta { overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 80px); align-items: center; }
.cta__lead { margin-top: 30px; font-size: 19px; color: var(--muted); max-width: 28em; }
.signup {
  margin-top: 40px;
  display: flex; gap: 8px; padding: 8px;
  max-width: 560px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(236, 220, 196, 0.035);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.signup:focus-within { border-color: rgba(255, 90, 31, 0.7); box-shadow: 0 0 0 6px rgba(255, 90, 31, 0.08); }
.signup.is-error { border-color: #ff3b3b; animation: shake 0.4s; }
.signup input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0 16px; font-size: 17px; color: var(--cream-2); }
.signup input::placeholder { color: var(--dim); }
.signup .btn { --h: 54px; }
.signup__note { margin-top: 18px; color: var(--muted); }
.signup__note.is-ok { color: var(--orange-2); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.cta__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 760px; justify-self: center; }
.cta__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__orbit { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; pointer-events: none; }
.cta__orbit text { font-family: var(--font-mono); font-size: 5.6px; letter-spacing: 0.35em; fill: rgba(236, 220, 196, 0.5); }
.cta__core { position: absolute; inset: 0; margin: auto; width: 22%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.cta__core i { width: 12px; height: 12px; background: var(--orange); box-shadow: 0 0 30px 6px rgba(255, 90, 31, 0.6); animation: pulse 2.4s var(--ease-in-out) infinite; }
@keyframes pulse { 50% { transform: scale(1.5) rotate(45deg); } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__claim { font-size: clamp(30px, 3vw, 50px); letter-spacing: -0.035em; line-height: 1; font-weight: 350; color: var(--cream-2); max-width: 9em; }
.footer__claim em { color: var(--cream); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(140px, auto)); gap: clamp(30px, 5vw, 90px); }
.footer__cols div { display: grid; gap: 12px; align-content: start; }
.footer__cols .mono { margin-bottom: 6px; }
.footer__cols a { position: relative; width: max-content; color: rgba(232, 227, 218, 0.82); transition: color 0.3s; }
.footer__cols a:hover { color: var(--cream-2); }
.footer__word {
  margin-top: clamp(60px, 8vw, 120px);
  font-size: 19.2vw; line-height: 0.74; letter-spacing: -0.075em; font-weight: 500;
  color: var(--cream-2);
  white-space: nowrap;
  margin-left: -0.04em;
  overflow: hidden;
  padding-bottom: 0.05em;
}
.footer__word .ch { display: inline-block; will-change: transform; }
.footer__word i { font-style: normal; color: var(--orange); display: inline-block; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0 32px; border-top: 1px solid var(--line); color: var(--muted); }
/* przycisk „do góry” (64 px w prawym dolnym rogu) nie zasłania końca ostatniego napisu */
@media (min-width: 960px) { .footer__bottom { padding-right: 76px; } }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { position: relative; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .app__body { grid-template-columns: 50px minmax(0, 1fr); }
  .app__side { display: none; }
  .nav__login { display: none; }
}

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__actions .btn--pill { display: none; }
  
  
  .viewer__intro { grid-template-columns: 1fr; gap: 24px; }
  
  
  .stat { padding-bottom: 30px; }
  .stat:nth-child(2), .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(4), .stat:nth-child(5) { border-top: 1px solid var(--line); padding-top: 30px; }
  .hero__hud { left: 40%; }
}

@media (max-width: 959px) {
  :root { --nav-h: 72px; }
  .steps__pin { height: auto; min-height: 0; padding-block: 96px; }
  .steps__track { flex-direction: column; width: auto; padding-right: var(--gutter); gap: 22px; }
  .steps__intro, .steps__end { width: auto; padding: 0 0 20px; }
  .steps__hint { display: none; }
  .step { width: auto; min-height: 0; grid-template-columns: 1fr; padding: 26px 20px; border-radius: 22px; }
  .step__num { font-size: 42vw; }
  .steps__progress { display: none; }
  .security__grid, .faq__grid, .cta__grid { grid-template-columns: 1fr; }
  .security__intro, .faq__head { position: static; }
  .cta__visual { order: -1; max-width: 520px; }
}

.steps--static .steps__pin { height: auto; min-height: 0; padding-block: 120px; }
.steps--static .steps__track { flex-direction: column; width: auto; padding-right: var(--gutter); }
.steps--static .steps__intro, .steps--static .steps__end { width: auto; }
.steps--static .steps__hint, .steps--static .steps__progress { display: none; }
.steps--static .step { width: auto; }

@media (max-width: 760px) {
  .hero { min-height: 640px; }
  .hero__hud { left: var(--gutter); right: var(--gutter); top: 37%; bottom: 27%; }
  .hero__ctas { flex-wrap: nowrap; }
  .hero__ctas .btn { padding: 0 10px; font-size: 14px; --h: 52px; }
  .hud--tr, .hud--bl { display: none; }
  .hud--tl { top: 14px; left: 14px; }
  .hud--br { bottom: 14px; right: 14px; }
  .hero__inner { padding-top: calc(var(--nav-h) + 20px); }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero { height: auto; min-height: 0; }
  .hero__bottom { max-width: none; margin-top: 34px; }
  .hero__device { position: relative; right: auto; top: auto; height: auto; width: min(66%, 260px); margin: 44px auto 0; }
  .hero__device--czastki { width: calc(100% + 24px); margin: 12px -12px 0; }
  /* na wąskim ekranie telefon jest pod tekstem: bez wygaszania przy przewijaniu, pierścień stoi za telefonem */
  .hero__inner { opacity: 1 !important; transform: none !important; }
  .hero__canvas { opacity: 0.16; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__scroll { display: none; }
  .hero__lead { font-size: 15.5px; }

  
  
  .stat, .stat:nth-child(2), .stat:nth-child(4) { border-left: 0; padding: 26px 0; border-top: 1px solid var(--line); }
  

  
  
  .app__top { grid-template-columns: auto 1fr; gap: 12px; }
  .app__dots { display: none; }
  .app__url { font-size: 10.5px; padding: 5px 10px; justify-self: start; }
  
  
  
  
  
.range { min-width: 100%; }
  
  .chip { flex: 1; }

  .acards { gap: 18px; }
  .acard { position: relative; top: 0 !important; height: auto; min-height: 0; }
  .acard__inner { grid-template-columns: 1fr; border-radius: 24px; }
  
  .acard__visual { min-height: 360px; padding: 20px 0 40px; }
  .phone { width: 58%; }
  .sms { top: 6%; right: 4%; max-width: 200px; }

  
  
  

  
  

  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .footer__bottom { flex-direction: column; }
  .signup { flex-direction: column; padding: 8px; }
  .signup input { height: 52px; }
  .to-top { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .grain { display: none; }
}

/* Notka założyciela (wstępna, 30.10) */
.founder { display: flex; gap: 18px; align-items: flex-start; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); max-width: 34em; }
.founder__photo { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.founder blockquote { margin: 0; color: var(--cream); font-size: 17px; line-height: 1.55; }
.founder figcaption { margin-top: 12px; color: var(--muted); }

/* Sekcja demo: duże zdjęcie założyciela z notką zamiast „oka” (18.11) */
.cta__visual--osoba { aspect-ratio: auto; max-width: 440px; }
.osoba { margin: 0; }
.osoba img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line-2); }
.osoba blockquote { margin: 22px 0 0; color: var(--cream); font-size: 17px; line-height: 1.55; }
.osoba .mono { display: block; margin-top: 12px; color: var(--muted); }
@media (max-width: 959px) { .cta__visual--osoba { order: 0; max-width: 520px; justify-self: start; } }
.cta__visual--osoba canvas { display: none !important; }

/* Krój B (18.11): drobne napisy krojem Outfit, zwykłymi literami, zamiast JetBrains Mono wersalikami.
   Cofnięcie: usunąć ten blok. Kolumny znaków w Bezpieczeństwie zostają w kroju mono. */
.mono, .czastki__caption, .cursor__label { font-family: var(--font-sans); font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.rail__index { font-family: var(--font-sans); }
.rail__index span:last-child { letter-spacing: 0.02em; }
.osoba .mono b { font-weight: 500; color: var(--cream); }
.sms { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 12px; letter-spacing: 0; }
.sms__from { text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 600; }

/* Podpis pod animacją (18.11): po zmianie kroju był większy i nachodził na brodę czaszki — przeniesiony pod pole animacji */
.czastki__caption { bottom: auto; top: calc(100% + 10px); }
@media (max-width: 959px) { .hero__device--czastki { margin-bottom: 40px; } }

/* Telefon w „Dla kogo” (18.11): pusty pasek u góry (sama wyspa, bez godziny) — logo aplikacji nie chowa się pod zaokrągleniem, a ekran wypełnia się do paska adresu.
   Dymek SMS z boku telefonu, nie na nagłówku aplikacji; na telefonie nad telefonem. */
.acard__visual .sms { top: 38%; right: 5%; max-width: 228px; }
@media (min-width: 960px) { .acard__visual .phone { transform: rotate(-6deg) translate(-10%, 6%); } }
@media (max-width: 959px) {
  .acard__visual { padding-top: 112px; }
  .acard__visual .sms { top: 18px; left: 50%; right: auto; transform: translateX(-50%); max-width: 270px; width: max-content; }
}
