/* Navy Studio - style.css (v3: v1 w stylu Apple)
   Ciemne tlo, duzo gradientow i swiatla, centrowane naglowki, telefon jako
   bohater, przyklejona sekcja z ekranem zmieniajacym sie na scrollu.
   Zasady: tylko krotki myslnik, ruch tylko transform/opacity,
   prefers-reduced-motion wylacza ruch, tekst zawsze nad dekoracja. */

:root {
  --bg: #070a14;
  --bg-2: #0b1020;
  --surface: #0f1630;
  --surface-2: #131c3c;
  --text: #eef1fb;
  --muted: #9aa3c0;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #3d7bff;
  --violet: #8a5cff;
  --pink: #d65cff;
  --grad: linear-gradient(135deg, #3d7bff 0%, #8a5cff 52%, #d65cff 100%);
  --grad-text: linear-gradient(90deg, #5b8cff 0%, #9b6bff 45%, #e26dff 100%);
  --radius: 28px;
  --radius-sm: 18px;
  --pad: clamp(3.5rem, 7vw, 6.5rem);
  --gutter: clamp(16px, 4vw, 32px);
  --font-head: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --mx: 0;
  --my: 0;
  --sy: 0;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.6em; }
h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(138, 92, 255, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s, background-color 0.3s;
}
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 12px 34px rgba(138, 92, 255, 0.35); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 48px rgba(138, 92, 255, 0.55); }
.btn-ghost { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); }
.btn-sm { padding: 11px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: #8ea6ff; text-decoration: none; font-weight: 600; transition: gap 0.3s var(--ease); }
.link-arrow:hover { gap: 10px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 20, 0.6); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 14px; height: 14px; border-radius: 4px; background: var(--grad); box-shadow: 0 0 18px rgba(138, 92, 255, 0.7); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--muted); font-weight: 500; margin-left: 5px; }
.nav { display: flex; gap: 28px; justify-content: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.topbar .btn { justify-self: end; }

/* ---------- Swiatla ---------- */

.glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform; }
.glow-a { width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; left: -22vw; top: -26vw; background: radial-gradient(circle, rgba(61, 123, 255, 0.5) 0%, rgba(61, 123, 255, 0) 60%); }
.glow-b { width: 64vw; height: 64vw; max-width: 900px; max-height: 900px; right: -22vw; top: -8vw; background: radial-gradient(circle, rgba(138, 92, 255, 0.5) 0%, rgba(138, 92, 255, 0) 60%); }
.glow-c { width: 56vw; height: 56vw; max-width: 800px; max-height: 800px; left: 30%; bottom: -24vw; background: radial-gradient(circle, rgba(214, 92, 255, 0.4) 0%, rgba(214, 92, 255, 0) 60%); }
html.js .glow-a { animation: drift 18s ease-in-out infinite; }
html.js .glow-b { animation: drift 22s ease-in-out infinite reverse; }
html.js .glow-c { animation: drift 26s ease-in-out infinite 3s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4vw, 3vw); } }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.hero-inner { position: relative; z-index: 3; max-width: 1000px; }
.hero-eyebrow { margin-bottom: 1.1rem; }
.hero h1 { margin: 0 0 1.4rem; }
.h-line { display: block; overflow: hidden; padding: 0.06em 0 0.14em; margin-bottom: -0.1em; }
.h-line > span { display: inline-block; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.38rem); color: var(--muted); max-width: 56ch; margin: 0 auto 1.7rem; line-height: 1.5; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }

html.js .h-line > span { transform: translateY(115%); transition: transform 1s var(--ease); }
html.js .h-line:nth-child(2) > span { transition-delay: 0.1s; }
html.js .hero-eyebrow, html.js .lead, html.js .hero-cta { opacity: 0; transform: translateY(12px); transition: opacity 0.9s ease 0.35s, transform 0.9s var(--ease) 0.35s; }
html.js .hero-device { opacity: 0; transform: translateY(60px) scale(0.96); transition: opacity 1.1s ease 0.5s, transform 1.3s var(--ease) 0.5s; }
html.js.ready .h-line > span { transform: none; }
html.js.ready .hero-eyebrow, html.js.ready .lead, html.js.ready .hero-cta { opacity: 1; transform: none; }
html.js.ready .hero-device { opacity: 1; transform: none; }

.hero-device { position: relative; z-index: 2; margin: clamp(2rem, 3.5vw, 3rem) auto 0; display: flex; flex-direction: column; align-items: center; padding-bottom: 2.5rem; }
.ring {
  position: absolute; left: 50%; top: 44%; width: 980px; height: 980px; transform: translate(-50%, -50%);
  border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(138, 92, 255, 0.5), rgba(61, 123, 255, 0.26) 42%, rgba(214, 92, 255, 0.1) 60%, transparent 72%);
}
.ring-sm { width: 760px; height: 760px; top: 50%; }

.phone-stage { position: relative; z-index: 1; width: 340px; height: 700px; }
.phone {
  position: relative; width: 100%; height: 100%; border-radius: 52px; background: #0c1122;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 6px #121a33, 0 0 0 7px rgba(255, 255, 255, 0.08), 0 60px 140px rgba(61, 123, 255, 0.3), 0 30px 80px rgba(214, 92, 255, 0.22);
}
.phone-stage .phone { transform: perspective(1600px) rotateY(calc(var(--mx) * 5deg)) rotateX(calc(var(--my) * -4deg)) translateY(calc(var(--sy) * -40px)); will-change: transform; }
.phone-island { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 999px; background: #000; z-index: 2; }
.screen {
  position: absolute; inset: 9px; border-radius: 44px; overflow: hidden;
  background: linear-gradient(180deg, #121a3a 0%, #0a0e1f 100%);
  padding: 66px 22px 22px; display: flex; flex-direction: column; gap: 16px;
}
.screen-head { display: flex; justify-content: space-between; align-items: baseline; }
.screen-title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.screen-range { font-size: 0.74rem; color: var(--muted); }
.screen-kpi { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 10px; }
.kpi-label { grid-column: 1 / -1; font-size: 0.76rem; color: var(--muted); }
.kpi-value { font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-badge { font-size: 0.74rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(138, 92, 255, 0.4); }
.chart { position: relative; height: 120px; border-radius: 12px; overflow: hidden; }
.chart svg { width: 100%; height: 100%; }
.chart-cover { display: none; position: absolute; inset: -2px; background: #0e1530; transform: translateX(0); transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
html.js .chart-cover { display: block; }
.is-live .chart-cover { transform: translateX(102%); }
.chart .dot { opacity: 0; transform: scale(0.4); transform-origin: 260px 10px; transition: opacity 0.3s ease 1.7s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s; }
html:not(.js) .chart .dot, .is-live .chart .dot { opacity: 1; transform: scale(1); }
.screen-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 10px 10px; display: grid; gap: 4px; }
.tile-label { font-size: 0.64rem; color: var(--muted); }
.tile-value { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.screen-list { display: grid; gap: 10px; }
.row { display: grid; gap: 6px; }
.row-head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.7rem; color: var(--muted); }
.row-head strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.bar { position: relative; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { position: absolute; inset: 0; width: var(--w); border-radius: 999px; background: var(--grad); transform-origin: left center; transform: scaleX(1); transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.6s; }
html.js .phone-stage:not(.is-live) .bar i { transform: scaleX(0); }
.screen-nav { margin-top: auto; display: flex; justify-content: center; gap: 18px; padding-top: 6px; }
.screen-nav span { width: 20px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.screen-nav .is-on { background: var(--grad); }

.float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px; white-space: nowrap;
  background: rgba(14, 19, 38, 0.8); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: translate(calc(var(--mx) * 12px), calc(var(--my) * 10px));
}
.float-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.float-text { display: grid; line-height: 1.25; }
.float-text strong { font-size: 0.86rem; font-weight: 600; }
.float-text small { font-size: 0.72rem; color: var(--muted); }
.float-a { left: -250px; top: 110px; }
.float-b { right: -220px; top: 270px; }
.float-c { left: -220px; bottom: 170px; }
html.js .float { opacity: 0; transition: opacity 0.6s ease, transform 0.6s var(--ease); }
html.js .is-live .float { opacity: 1; }
html.js .is-live .float-a { transition-delay: 1.1s; animation: bob 6s ease-in-out infinite 1.7s; }
html.js .is-live .float-b { transition-delay: 1.5s; animation: bob 7s ease-in-out infinite 2.1s; }
html.js .is-live .float-c { transition-delay: 1.9s; animation: bob 6.5s ease-in-out infinite 2.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.phone-caption { position: relative; z-index: 1; margin: 1.6rem 0 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Statement ---------- */

.statement { padding: var(--pad) 0 calc(var(--pad) * 0.6); text-align: center; }
.statement-text { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 5.8vw, 5.2rem); letter-spacing: -0.035em; line-height: 1.04; margin: 0 auto; max-width: 18ch; }

/* ---------- Story (przyklejony telefon) ---------- */

.story { position: relative; }
html.js .story { height: 340vh; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
html:not(.js) .story-sticky { position: static; height: auto; padding: var(--pad) 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); width: min(1200px, 100% - 2 * var(--gutter)); }
.story-copy { position: relative; min-height: 380px; padding-bottom: 3.5rem; }
.story-panel { position: absolute; inset: 0 0 3.5rem; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s var(--ease); pointer-events: none; }
.story-panel h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
.story-panel p:last-child { color: var(--muted); font-size: 1.12rem; max-width: 40ch; margin: 0; }
.story[data-step="0"] .story-panel[data-panel="0"], .story[data-step="1"] .story-panel[data-panel="1"], .story[data-step="2"] .story-panel[data-panel="2"] { opacity: 1; transform: none; pointer-events: auto; }
html:not(.js) .story-panel { position: static; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 2.5rem; }
.story-dots { position: absolute; left: 0; bottom: 0; display: flex; gap: 8px; }
.story-dots li { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); transition: transform 0.4s var(--ease), background-color 0.4s; transform-origin: left center; }
.story[data-step="0"] .story-dots li:nth-child(1), .story[data-step="1"] .story-dots li:nth-child(2), .story[data-step="2"] .story-dots li:nth-child(3) { background: var(--violet); transform: scaleX(3); }
html:not(.js) .story-dots { display: none; }

.story-device { position: relative; display: flex; justify-content: center; }
.phone-story { width: 320px; height: 660px; position: relative; z-index: 1; }
.s-screen { opacity: 0; transform: scale(0.96); transition: opacity 0.7s ease, transform 0.8s var(--ease); }
.story[data-step="0"] .s-screen[data-screen="0"], .story[data-step="1"] .s-screen[data-screen="1"], .story[data-step="2"] .s-screen[data-screen="2"] { opacity: 1; transform: none; }
html:not(.js) .s-screen[data-screen="0"] { opacity: 1; transform: none; }

/* ekran 0: profil */
.ig-head { display: flex; align-items: center; gap: 10px; }
.ig-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px #0c1122, 0 0 0 5px rgba(138, 92, 255, 0.6); }
.ig-name { font-family: var(--font-head); font-weight: 600; }
.ig-pill { margin-left: auto; font-size: 0.72rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--grad); }
.ig-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ig-stats div { display: grid; gap: 2px; text-align: center; }
.ig-stats strong { font-family: var(--font-head); font-size: 1rem; font-variant-numeric: tabular-nums; }
.ig-stats span { font-size: 0.64rem; color: var(--muted); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ig-grid i { aspect-ratio: 1; border-radius: 8px; display: block; }
.ig-grid .g1 { background: linear-gradient(135deg, #3d7bff, #8a5cff); }
.ig-grid .g2 { background: linear-gradient(135deg, #1a2c6a, #3d7bff); }
.ig-grid .g3 { background: linear-gradient(135deg, #8a5cff, #d65cff); }
.ig-grid .g4 { background: linear-gradient(135deg, #2a1b5e, #8a5cff); }
.ig-grid .g5 { background: linear-gradient(135deg, #d65cff, #ff8ad4); }
.ig-grid .g6 { background: linear-gradient(135deg, #10204f, #1f3f9f); }
.ig-grid .g7 { background: linear-gradient(135deg, #6a35c4, #d65cff); }
.ig-grid .g8 { background: linear-gradient(135deg, #3d7bff, #1a2c6a); }
.ig-grid .g9 { background: linear-gradient(135deg, #8a5cff, #3d7bff); }

/* ekran 1: kampanie */
.ads-bars { display: grid; gap: 10px; }
.ads-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 0.72rem; color: var(--muted); align-items: center; }
.ads-row strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; grid-column: 2; grid-row: 1; }
.ads-row i { grid-column: 1 / -1; grid-row: 2; display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.ads-row i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 999px; background: var(--grad); }

/* ekran 2: strona www */
.web { position: absolute; inset: 0; background: #f4f5fb; color: #0b1020; padding: 54px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.web-bar { display: flex; gap: 5px; }
.web-bar span { width: 8px; height: 8px; border-radius: 50%; background: #c9cde0; }
.web-nav { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; }
.web-nav i { width: 54px; height: 16px; border-radius: 999px; background: var(--grad); }
.web-hero { padding: 16px 14px; border-radius: 14px; background: linear-gradient(160deg, #0f1630, #1d2c6c); color: #fff; display: grid; gap: 10px; }
.web-h { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.1; }
.web-btn { justify-self: start; font-size: 0.68rem; font-weight: 600; padding: 7px 10px; border-radius: 999px; background: var(--grad); }
.web-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.web-cards i { aspect-ratio: 1; border-radius: 10px; background: #e3e6f3; display: block; }
.web-lines { display: grid; gap: 6px; }
.web-lines i { height: 7px; border-radius: 999px; background: #dde0ee; display: block; }
.web-lines .short { width: 60%; }

/* ---------- Sekcje ---------- */

.section { padding: var(--pad) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; max-width: 820px; }
.section-lead { color: var(--muted); font-size: 1.12rem; max-width: 56ch; }
.center .section-lead { margin-inline: auto; }

/* Bento */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px; border-radius: var(--radius); background: var(--surface);
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: clamp(1.35rem, 1.9vw, 1.8rem); margin-bottom: 0.4em; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card-l { grid-column: span 2; grid-row: span 2; }
.card-w { grid-column: span 2; }
.card-visual { position: absolute; left: 28px; right: 28px; top: 28px; height: 46%; }
.card-visual svg { width: 100%; height: 100%; }
.card-grad { background: linear-gradient(160deg, #3d7bff 0%, #8a5cff 58%, #d65cff 100%); }
.card-grad p { color: rgba(255, 255, 255, 0.85); }
.card-grad-2 { background: radial-gradient(130% 110% at 100% 0%, #d65cff 0%, #6a35c4 48%, #1a1f4a 100%); }
.card-grad-2 p { color: rgba(255, 255, 255, 0.82); }

/* Pasek dla kogo */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0 24px; background: var(--bg-2); }
.band-label { text-align: center; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.marquee { 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); }
.marquee-track { display: flex; width: max-content; }
.marquee-track span { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: rgba(238, 241, 251, 0.78); padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
html.js .marquee-track { animation: marquee 38s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Proces */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 32px; border-radius: var(--radius); background: var(--surface); }
.step-num { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.03em; margin-bottom: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Realizacje */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card { display: block; text-decoration: none; }
.work-cover { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; display: grid; place-items: end start; padding: 22px; transition: transform 0.5s var(--ease); }
.work-card:hover .work-cover { transform: scale(1.02); }
.work-cover span { font-family: var(--font-head); font-weight: 700; font-size: clamp(4rem, 8vw, 7rem); line-height: 1; letter-spacing: -0.05em; color: rgba(255, 255, 255, 0.16); }
.work-cover::after { content: "Koncept pokazowy"; position: absolute; top: 18px; left: 18px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); }
.cover-1 { background: radial-gradient(120% 90% at 20% 10%, #3d7bff 0%, #1d2d7a 45%, #0b1020 100%); }
.cover-2 { background: radial-gradient(120% 90% at 80% 20%, #d65cff 0%, #6a35c4 45%, #0b1020 100%); }
.cover-3 { background: radial-gradient(120% 90% at 50% 100%, #8a5cff 0%, #2b2f8a 50%, #0b1020 100%); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 6px 0; }
.work-meta strong { font-family: var(--font-head); font-weight: 600; }
.work-meta span { color: var(--muted); font-size: 0.88rem; }

/* Pakiety */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 30px; border-radius: var(--radius); background: var(--surface); }
.plan-featured { border: 1px solid transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; box-shadow: 0 30px 90px rgba(138, 92, 255, 0.25); }
.plan-badge { position: absolute; top: -13px; left: 30px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; }
.plan h3 { font-size: 1.6rem; }
.plan-for { color: var(--muted); font-size: 0.98rem; min-height: 3.2em; }
.checks { display: grid; gap: 10px; margin: 0.6rem 0 1.6rem; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 0.96rem; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(138, 92, 255, 0.7); }
.plan-price { margin-top: auto; font-family: var(--font-head); font-weight: 600; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.plans-note { margin-top: 1.6rem; color: var(--muted); font-size: 0.92rem; text-align: center; }

/* O mnie */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.portrait-card { aspect-ratio: 4 / 5; border-radius: var(--radius); display: grid; place-items: center; background: radial-gradient(110% 80% at 30% 0%, #3d7bff 0%, #4b2fb0 40%, #0b1020 100%); box-shadow: 0 40px 100px rgba(61, 123, 255, 0.22); }
.portrait-card span { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 10vw, 8rem); letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.16); }
.about-copy p { color: var(--muted); max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem; }
.facts li { display: grid; gap: 4px; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 14px; }
.facts strong { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 0.86rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); }
.faq-list details { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.faq-list details:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--muted); transition: transform 0.3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding-bottom: 20px; max-width: 60ch; }

/* Kontakt */
.contact { overflow: hidden; isolation: isolate; }
.glow-d { width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; left: 50%; top: 50%; transform: translate(-50%, -40%); background: radial-gradient(circle, rgba(138, 92, 255, 0.3) 0%, rgba(138, 92, 255, 0) 60%); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-list { display: grid; gap: 8px; margin-top: 1.6rem; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.form { display: grid; gap: 16px; padding: 30px; border-radius: var(--radius); background: var(--surface); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(138, 92, 255, 0.2); }
.form-note { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* Stopka z gigantycznym napisem - sygnatura */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: var(--pad) 0 2rem; background: var(--bg-2); }
.footer-ghost { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); display: flex; flex-direction: column; align-items: center; line-height: 0.85; font-family: var(--font-head); font-weight: 700; letter-spacing: -0.06em; font-size: clamp(5rem, 19vw, 17rem); pointer-events: none; user-select: none; white-space: nowrap; }
.footer-ghost .g1 { color: rgba(255, 255, 255, 0.045); }
.footer-ghost .g2 { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); }
.footer-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; min-height: 30vh; align-content: end; }
.footer-brand { font-family: var(--font-head); font-weight: 700; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* ---------- Reveal na scrollu (tylko pod html.js) ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 0.9s ease, transform 1s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .card.reveal:nth-child(2), html.js .step.reveal:nth-child(2), html.js .work-card.reveal:nth-child(2), html.js .plan.reveal:nth-child(2) { transition-delay: 0.1s; }
html.js .card.reveal:nth-child(3), html.js .step.reveal:nth-child(3), html.js .work-card.reveal:nth-child(3), html.js .plan.reveal:nth-child(3) { transition-delay: 0.2s; }
html.js .card.reveal:nth-child(4) { transition-delay: 0.3s; }
html.js .card.reveal:nth-child(5) { transition-delay: 0.4s; }
html.js .card.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Responsywnosc ---------- */

@media (max-width: 1100px) {
  .float-a { left: -140px; }
  .float-b { right: -120px; }
  .float-c { left: -110px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .card-l { grid-column: span 2; grid-row: span 1; min-height: 360px; }
}

@media (max-width: 899.98px) {
  .nav { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; }
  .hero { padding-top: 4rem; }
  .hero-cta { gap: 18px; }
  .ring { width: 640px; height: 640px; }
  .phone-stage { width: 290px; height: 600px; }
  .phone { border-radius: 46px; }
  .screen { padding: 58px 18px 18px; border-radius: 38px; }
  .float-a { left: -40px; top: 70px; }
  .float-b { right: -30px; top: 250px; }
  .float-c { display: none; }
  .statement { padding-top: calc(var(--pad) * 0.8); }
  html.js .story { height: auto; }
  .story-sticky { position: static; height: auto; display: block; overflow: visible; padding: 0 0 var(--pad); }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-device { position: sticky; top: 60px; z-index: 5; order: -1; height: 400px; align-items: flex-start; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 82%, rgba(7, 10, 20, 0) 100%); overflow: hidden; }
  .ring-sm { width: 520px; height: 520px; top: 46%; }
  .phone-story { transform: scale(0.56); transform-origin: top center; margin-top: 14px; }
  .story-device .ring-sm { top: 32%; }
  .story-copy { min-height: 0; padding: 0; }
  .story-panel { position: static; opacity: 1; transform: none; pointer-events: auto; min-height: 54vh; padding: 2rem 0; justify-content: center; }
  .story-panel h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .story-dots { display: none; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card, .card-l, .card-w { grid-column: span 1; grid-row: span 1; min-height: 0; padding: 28px; }
  .card-l { padding-top: 150px; }
  .card-visual { height: 110px; }
  .steps { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-for { min-height: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .faq-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { min-height: 22vh; }
}

@media (max-width: 559.98px) {
  .hero-cta .btn { width: 100%; }
  .phone-stage { width: 270px; height: 560px; }
  .float-a { left: -20px; top: 56px; }
  .float-b { right: -16px; top: 230px; }
  .facts { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .work-cover { aspect-ratio: 4 / 3; }
}

/* ---------- Mniej ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .h-line > span, html.js .hero-eyebrow, html.js .lead, html.js .hero-cta, html.js .hero-device, html.js .float, html.js .reveal { opacity: 1; transform: none; }
  .chart-cover { display: none !important; }
  .chart .dot { opacity: 1; transform: none; }
  html.js .phone-stage:not(.is-live) .bar i { transform: none; }
  .phone-stage .phone { transform: none; }
}

/* ---------- Podstrony ---------- */

.nav a[aria-current="page"] { color: var(--text); }
.nav-contact { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.06); cursor: pointer; place-items: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle span + span { margin-top: 4px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.page-hero { padding-top: clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.page-hero-text { padding-bottom: clamp(1rem, 3vw, 2rem); }
.page-hero .hero-device { padding-bottom: 3rem; }
.phone-mini { width: 300px; height: 620px; }
.phone-mini .phone { border-radius: 48px; }
.phone-mini .screen { padding: 60px 20px 20px; border-radius: 40px; }
.phone-mini .float-a { left: -230px; top: 90px; }
.phone-mini .float-b { right: -210px; top: 250px; }

.bento-6 { grid-auto-rows: minmax(190px, auto); }
.bento-6 .card-w { grid-column: span 2; }

.cta-band { overflow: hidden; isolation: isolate; text-align: center; }
.cta-inner { position: relative; z-index: 1; max-width: 760px; }
.cta-inner .section-lead { margin-inline: auto; margin-bottom: 2rem; }

.need-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.checks-lg li { font-size: 1.08rem; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.checks-lg li::before { margin-top: 0.55em; }
.checks-lg li:last-child { border-bottom: 1px solid var(--line); }

.post-cover { place-items: end start; }
.post-text { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.9rem) !important; letter-spacing: -0.03em !important; line-height: 1.05; color: #fff !important; max-width: 12ch; }

.browsers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.browser { border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); transition: transform 0.5s var(--ease); }
.browser:hover { transform: translateY(-4px); }
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; background: #0b1020; }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.browser-body { aspect-ratio: 4 / 3; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.browser-h { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.05; }
.browser-p { font-size: 0.86rem; color: rgba(255, 255, 255, 0.78); max-width: 28ch; }
.browser-btn { align-self: flex-start; margin-top: 6px; font-size: 0.78rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--grad); color: #fff; }
.body-1 { background: radial-gradient(120% 90% at 20% 10%, #3d7bff 0%, #1d2d7a 45%, #0b1020 100%); }
.body-2 { background: radial-gradient(120% 90% at 80% 20%, #d65cff 0%, #6a35c4 45%, #0b1020 100%); }
.body-3 { background: radial-gradient(120% 90% at 50% 100%, #8a5cff 0%, #2b2f8a 50%, #0b1020 100%); }
.browser-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px 16px; }
.browser-meta strong { font-family: var(--font-head); font-weight: 600; }
.browser-meta span { color: var(--muted); font-size: 0.86rem; }

.compare-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-top: 1px solid var(--line); font-size: 0.96rem; }
.compare thead th { border-top: 0; font-family: var(--font-head); font-size: 1.05rem; padding: 22px 20px; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--muted); }
.compare thead th:first-child { text-align: left; }
.compare .is-featured { background: rgba(138, 92, 255, 0.1); }
.compare thead .is-featured { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.compare i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.compare i.yes { background: var(--grad); box-shadow: 0 0 10px rgba(138, 92, 255, 0.7); }
.compare i.no { background: rgba(255, 255, 255, 0.12); }

.project-card { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--surface); }
.project-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.project-visual .browser { box-shadow: 0 40px 100px rgba(61, 123, 255, 0.2); }

.mini-steps { display: grid; gap: 12px; margin-top: 2rem; counter-reset: ms; }
.mini-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; align-items: baseline; counter-increment: ms; }
.mini-steps li::before { content: counter(ms, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--font-head); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-steps strong { font-weight: 600; }
.mini-steps span { color: var(--muted); font-size: 0.92rem; }

.field select { width: 100%; padding: 14px 16px; border-radius: 14px; font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); outline: none; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aa3c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(138, 92, 255, 0.2); }
.field select option { background: #0f1630; color: var(--text); }

@media (max-width: 1100px) {
  .phone-mini .float-a { left: -120px; }
  .phone-mini .float-b { right: -100px; }
  .bento-6 .card-w { grid-column: span 2; }
}

@media (max-width: 899.98px) {
  .nav-toggle { display: grid; }
  .nav-contact { display: block; }
  .topbar-inner { grid-template-columns: 1fr auto auto; gap: 12px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; gap: 0; padding: 6px var(--gutter) 14px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.05rem; border-top: 1px solid var(--line); color: var(--text); }
  .nav a:first-child { border-top: 0; }
  .phone-mini { width: 270px; height: 560px; }
  .phone-mini .float-a { left: -24px; top: 56px; }
  .phone-mini .float-b { right: -18px; top: 230px; }
  .bento-6 .card-w { grid-column: span 1; }
  .need-grid { grid-template-columns: 1fr; gap: 1rem; }
  .browsers { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
}
.story-more { margin-top: 1rem !important; }
