/* ============================================================
   Bluerank · Organic & AI Search — wspólny design system
   3 strony: index.html · ai-search-answer-visibility.html · organic-growth-systems.html
   Tryby: dark (domyślny) / light — przełączane atrybutem [data-theme] na <html>
   ============================================================ */

/* ---------- TOKENY: DARK (domyślny) ---------- */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050A18;
  --bg-2: #070F22;
  --bg-3: #0A142E;
  --surface: rgba(255,255,255,0.032);
  --surface-2: rgba(255,255,255,0.06);
  --line: rgba(148,163,199,0.15);
  --line-soft: rgba(148,163,199,0.08);
  --ink: #F2F5FF;
  --body: #A9B4CF;
  --muted: #6D7A99;
  --blue: #1B3FE6;
  --blue-bright: #4D6FFF;
  --blue-soft: rgba(77,111,255,0.14);
  --sky: #5BC9E8;
  --accent: #5BC9E8;            /* akcent tekstowy — w dark = sky */
  --accent-soft: rgba(91,201,232,0.12);
  --accent-line: rgba(91,201,232,0.3);
  --ok: #4ADE9C;
  --warn: #FFC966;
  --error: #FF7A66;
  --grad: linear-gradient(115deg, #5BC9E8 0%, #4D6FFF 60%, #8B6FFF 110%);
  --grid-line: rgba(148,163,199,0.05);
  --nav-bg: rgba(5,10,24,0.72);
  --nav-bg-scrolled: rgba(5,10,24,0.92);
  --nav-shadow: 0 12px 40px rgba(0,0,0,0.45);
  --panel-bg: linear-gradient(180deg, rgba(16,24,48,0.92), rgba(9,14,32,0.94));
  --panel-solid: rgba(8,13,30,0.78);
  --card-shadow: none;
  --panel-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06);
  --selection: rgba(91,201,232,0.35);
  --selection-ink: #fff;
  --glow-a: rgba(27,63,230,0.25);
  --glow-b: rgba(91,201,232,0.14);
  --glow-c: rgba(27,63,230,0.14);
  --hero-glow: rgba(27,63,230,0.35);
  --footer-bg: rgba(4,8,18,0.7);
  --band-bg: rgba(255,255,255,0.012);
  --alt-band: rgba(10,20,46,0.5);
  --callout-bg: linear-gradient(120deg, rgba(27,63,230,0.22), rgba(91,201,232,0.10) 55%, rgba(139,111,255,0.14));
  --font-display: 'Space Grotesk', 'Grotesk Fallback', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- TOKENY: LIGHT ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F7FD;
  --bg-2: #FFFFFF;
  --bg-3: #EAEFFA;
  --surface: rgba(255,255,255,0.78);
  --surface-2: #FFFFFF;
  --line: rgba(20,40,100,0.15);
  --line-soft: rgba(20,40,100,0.085);
  --ink: #0A1230;
  --body: #414D71;
  --muted: #74809F;
  --blue: #1B3FE6;
  --blue-bright: #2C55F5;
  --blue-soft: rgba(27,63,230,0.09);
  --sky: #45C0F0;
  --accent: #0B87BC;
  --accent-soft: rgba(69,192,240,0.16);
  --accent-line: rgba(13,143,196,0.4);
  --ok: #0E9E63;
  --warn: #A8730E;
  --error: #C74A32;
  --grad: linear-gradient(115deg, #1FA7DD 0%, #1B3FE6 60%, #6C4BE0 110%);
  --grid-line: rgba(27,63,230,0.055);
  --nav-bg: rgba(246,248,253,0.8);
  --nav-bg-scrolled: rgba(255,255,255,0.94);
  --nav-shadow: 0 12px 36px rgba(16,32,90,0.12);
  --panel-bg: linear-gradient(180deg, #FFFFFF, #F3F6FF);
  --panel-solid: #FFFFFF;
  --card-shadow: 0 2px 12px rgba(10,20,60,0.06);
  --panel-shadow: 0 30px 70px -30px rgba(16,32,90,0.3), inset 0 1px 0 rgba(255,255,255,0.9);
  --selection: rgba(69,192,240,0.4);
  --selection-ink: #0A1230;
  --glow-a: rgba(27,63,230,0.10);
  --glow-b: rgba(69,192,240,0.14);
  --glow-c: rgba(27,63,230,0.06);
  --hero-glow: rgba(27,63,230,0.14);
  --footer-bg: rgba(255,255,255,0.65);
  --band-bg: rgba(27,63,230,0.02);
  --alt-band: rgba(226,233,250,0.55);
  --callout-bg: linear-gradient(120deg, rgba(27,63,230,0.1), rgba(69,192,240,0.09) 55%, rgba(108,75,224,0.08));
}

/* Płynne przejście między motywami (nadawane klasą z JS, żeby nie animować pierwszego renderu) */
html.theme-anim body,
html.theme-anim .site-nav,
html.theme-anim .g-card,
html.theme-anim footer { transition: background .35s ease, background-color .35s ease, color .35s ease, border-color .35s ease; }

/* Cross-fade między podstronami (nowoczesne przeglądarki; reszta ignoruje) */
@view-transition { navigation: auto; }

/* ---------- FALLBACKI METRYCZNE (anty-CLS przy zamianie web fontów) ---------- */
/* Fallback dopasowany metrykami do Inter — zero przeskoku layoutu, gdy web font się doładuje */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}
/* Fallback dla Space Grotesk (nagłówki) */
@font-face {
  font-family: 'Grotesk Fallback';
  src: local('Arial');
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ---------- BAZA ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
::selection { background: var(--selection); color: var(--selection-ink); }
body {
  font-family: 'Inter', 'Inter Fallback', -apple-system, system-ui, 'Helvetica Neue', sans-serif;
  background: var(--bg); color: var(--body);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
section[id] { scroll-margin-top: 90px; }
h1, h2, h3, .display { font-family: var(--font-display); }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- GLOBALNE TŁO ---------- */
.backdrop { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--bg); }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 78%);
}
.backdrop::after {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(38% 32% at 18% 6%, var(--glow-a), transparent 70%),
    radial-gradient(30% 28% at 85% 12%, var(--glow-b), transparent 70%),
    radial-gradient(40% 34% at 55% 105%, var(--glow-c), transparent 70%);
  animation: breathe 14s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(1.5%, 2%, 0) scale(1.05); } }

/* ---------- NAWIGACJA ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-nav.is-scrolled { background: var(--nav-bg-scrolled); box-shadow: var(--nav-shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; }
.nav-logo-group { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
/* Jawna szerokość: svg <use> bez viewBox na elemencie ma domyślnie 300px (proporcje logo 106:30.5) */
.bluerank-logo { height: 27px; width: 94px; display: block; color: var(--ink); }
.nav-divider { width: 1px; height: 22px; background: var(--line); flex-shrink: 0; }
.nav-tagline { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-tagline strong { color: var(--ink); font-weight: 600; }
/* min-width:0 + overflow: przy braku miejsca linki się przewijają, zamiast nachodzić na logo/CTA */
.nav-links { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { position: relative; font-size: 14px; font-weight: 500; color: var(--body); padding: 8px 14px; border-radius: 9999px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.is-active { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nav-links a.is-active::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); margin-right: 8px; vertical-align: 2px; }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Przełącznik motywu */
.theme-toggle {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--body); background: var(--surface); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent-line); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: opacity .3s, transform .4s; }
.theme-toggle .ic-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
.theme-toggle .ic-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .theme-toggle .ic-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .theme-toggle .ic-moon { opacity: 0; transform: rotate(90deg) scale(.5); }

.btn-primary, .btn-nav-cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(115deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: #fff; border-radius: 9999px; font-weight: 600; letter-spacing: .2px;
  box-shadow: 0 0 0 1px rgba(77,111,255,0.45), 0 8px 28px -6px rgba(27,63,230,0.65);
  transition: transform .18s ease, box-shadow .18s ease; overflow: hidden;
}
.btn-primary { padding: 16px 32px; font-size: 16px; }
.btn-nav-cta { padding: 10px 20px; font-size: 13px; }
.btn-primary:hover, .btn-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(91,201,232,0.6), 0 14px 40px -6px rgba(27,63,230,0.85); }
.btn-primary::after, .btn-nav-cta::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after, .btn-nav-cta:hover::after { left: 130%; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 31px; border-radius: 9999px; font-size: 16px; font-weight: 600;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, background .2s, transform .18s;
}
.btn-secondary:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-2px); }

.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0%; background: var(--grad); transition: width .1s linear; }
.nav-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.nav-burger:hover { background: var(--surface-2); }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { max-height: 0; overflow: hidden; background: var(--nav-bg-scrolled); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line-soft); transition: max-height .3s ease; position: sticky; top: 71px; z-index: 99; }
.nav-mobile.is-open { max-height: 480px; }
.nav-mobile-inner { display: flex; flex-direction: column; padding: 8px 0 20px; }
.nav-mobile-inner a { padding: 13px 4px; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.nav-mobile-inner a:last-child { border-bottom: none; }
.nav-mobile-inner a.is-active { color: var(--accent); }
.nav-mobile-inner .nav-mobile-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); padding: 16px 4px 4px; }
/* Średnie szerokości: ciaśniejsze linki, żeby 5 pozycji nie nachodziło na logo */
@media (max-width: 1420px) {
  .nav-links a { padding: 8px 10px; font-size: 13.5px; }
}
@media (max-width: 1279px) {
  .nav-links, .nav-right .btn-nav-cta, .nav-tagline, .nav-divider { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- HERO ---------- */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 7px 16px; border-radius: 9999px; letter-spacing: .2px; margin-bottom: 28px;
}
.hero-eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulseDot 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 {
  font-size: clamp(38px, 4.6vw, 62px); font-weight: 700; line-height: 1.06;
  letter-spacing: -2px; color: var(--ink); margin-bottom: 26px;
}
.hero-sub { font-size: 18px; max-width: 580px; margin-bottom: 36px; line-height: 1.65; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-envs { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.env-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--body);
  background: var(--surface); border: 1px solid var(--line-soft);
  padding: 6px 13px; border-radius: 9999px; white-space: nowrap;
}
.env-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }

.hero-eyebrow, .hero h1, .hero-sub, .hero-actions, .hero-envs { animation: riseIn .7s cubic-bezier(.2,.7,.3,1) both; }
.hero h1 { animation-delay: .07s; } .hero-sub { animation-delay: .14s; }
.hero-actions { animation-delay: .21s; } .hero-envs { animation-delay: .28s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.hero-visual { position: relative; animation: riseIn .8s cubic-bezier(.2,.7,.3,1) .2s both; }
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -8%;
  background: radial-gradient(60% 60% at 60% 40%, var(--hero-glow), transparent 70%);
  filter: blur(30px); z-index: -1;
}

/* ---------- HERO WIZUAL 1: ORBITY EKOSYSTEMU (strona główna) ---------- */
.orbit-scene { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.orbit-ring { position: absolute; border: 1px dashed var(--line); border-radius: 50%; }
.orbit-ring.r1 { inset: 24%; }
.orbit-ring.r2 { inset: 7%; }
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 138px; height: 138px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: linear-gradient(140deg, var(--blue), var(--blue-bright));
  color: #fff; text-align: center; z-index: 3;
  box-shadow: 0 0 0 10px var(--blue-soft), 0 24px 60px -12px rgba(27,63,230,0.7);
}
.orbit-core .core-kicker { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; opacity: .8; }
.orbit-core .core-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.15; }
.orbit-core::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(91,201,232,0.5); animation: corePulse 3s ease-out infinite; }
@keyframes corePulse { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

.orbit-track { position: absolute; inset: 0; border-radius: 50%; }
.orbit-track.t1 { animation: orbitSpin 36s linear infinite; }
.orbit-track.t2 { animation: orbitSpinRev 58s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitSpinRev { to { transform: rotate(-360deg); } }
/* --angle / --radius nadawane inline w HTML; końcowy rotate(-angle) prostuje chip */
.orbit-sat {
  position: absolute; left: 50%; top: 50%;
  transform: rotate(var(--angle, 0deg)) translate(var(--radius, 30cqi)) rotate(calc(-1 * var(--angle, 0deg)));
}
.orbit-sat .sat-chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transform: translate(-50%,-50%);
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: var(--panel-solid); border: 1px solid var(--line);
  padding: 8px 15px; border-radius: 9999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
}
.orbit-track.t1 .sat-chip { animation: satCounter 36s linear infinite; }
.orbit-track.t2 .sat-chip { animation: satCounterRev 58s linear infinite; }
@keyframes satCounter { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes satCounterRev { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.sat-chip .sat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sat-dot.c1 { background: #4285F4; } .sat-dot.c2 { background: #10a37f; }
.sat-dot.c3 { background: #2AB8CC; } .sat-dot.c4 { background: #9B72F2; }
.sat-dot.c5 { background: #45C0F0; } .sat-dot.c6 { background: #FFB454; }
.sat-dot.c7 { background: #4ADE9C; }

.orbit-badge {
  position: absolute; z-index: 4;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 6px 13px; border-radius: 9999px; backdrop-filter: blur(6px);
  animation: badgeFloat 5s ease-in-out infinite alternate;
}
.orbit-badge.b1 { top: 4%; left: 2%; animation-delay: 0s; }
.orbit-badge.b2 { top: 10%; right: 0%; animation-delay: -1.4s; }
.orbit-badge.b3 { bottom: 9%; left: 0%; animation-delay: -2.6s; }
.orbit-badge.b4 { bottom: 3%; right: 4%; animation-delay: -3.8s; }
@keyframes badgeFloat { from { transform: translateY(-4px); } to { transform: translateY(6px); } }

/* ---------- HERO WIZUAL 2: SYMULACJA ODPOWIEDZI AI (strona AI Search) ---------- */
.chat-window {
  background: var(--panel-bg);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--panel-shadow);
  overflow: hidden; backdrop-filter: blur(10px);
}
.chat-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); gap: 12px; }
.chat-dots { display: flex; gap: 6px; }
.chat-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-soft); }
.chat-dots span:nth-child(1) { background: #FF6B6B; opacity: .75; }
.chat-dots span:nth-child(2) { background: #FFD166; opacity: .75; }
.chat-dots span:nth-child(3) { background: #4ADE9C; opacity: .75; }
.chat-tabs { display: flex; gap: 6px; }
.chat-tab {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border-radius: 9999px; border: 1px solid transparent;
  transition: all .25s ease; cursor: default; white-space: nowrap;
}
.chat-tab .tab-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.chat-tab[data-p="aio"] .tab-dot { background: #4285F4; }
.chat-tab[data-p="gpt"] .tab-dot { background: #10a37f; }
.chat-tab[data-p="perp"] .tab-dot { background: #2AB8CC; }
.chat-tab.is-active { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.chat-body { padding: 22px 22px 18px; min-height: 320px; display: flex; flex-direction: column; gap: 16px; }
.chat-q {
  align-self: flex-end; max-width: 85%;
  background: linear-gradient(115deg, var(--blue), var(--blue-bright));
  color: #fff; font-size: 13.5px; line-height: 1.55;
  padding: 11px 16px; border-radius: 16px 16px 4px 16px;
  box-shadow: 0 8px 24px -8px rgba(27,63,230,0.6);
}
.chat-a {
  align-self: flex-start; max-width: 94%;
  background: var(--surface); border: 1px solid var(--line-soft);
  font-size: 13.5px; line-height: 1.7; color: var(--body);
  padding: 14px 16px; border-radius: 16px 16px 16px 4px; min-height: 130px;
}
.chat-a .hl-brand { color: var(--ink); font-weight: 600; background: var(--accent-soft); border-bottom: 1px solid var(--accent); padding: 0 3px; border-radius: 3px; }
.chat-a .hl-comp { color: var(--ink); font-weight: 500; opacity: .85; }
.chat-a .hl-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.chat-a .hl-cite { color: var(--accent); font-size: 10.5px; vertical-align: super; font-weight: 600; }
.chat-caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: text-bottom; margin-left: 2px; border-radius: 1px; animation: blink 0.9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-sources { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 22px 0; min-height: 30px; }
.chat-src {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--line-soft); background: var(--surface);
  padding: 4px 10px; border-radius: 9999px;
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.chat-src.owned { color: var(--accent); border-color: var(--accent-line); }
.chat-src.is-in { opacity: 1; transform: translateY(0); }
.chat-scan {
  margin: 16px 18px 18px; padding: 12px 16px;
  border: 1px dashed var(--accent-line); border-radius: 12px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--accent-soft);
}
.chat-scan-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-right: 4px; }
.scan-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 9999px;
  opacity: 0; transform: scale(.9); transition: opacity .35s, transform .35s;
}
.scan-chip.is-in { opacity: 1; transform: scale(1); }
.scan-chip.ok::before { content: "✓"; color: var(--ok); font-weight: 700; }
.scan-chip.warn::before { content: "!"; color: var(--error); font-weight: 700; }

/* ---------- HERO WIZUAL 3: SCHEMAT SYSTEMU (strona Growth Systems) ---------- */
.system-scene { position: relative; width: min(560px, 100%); aspect-ratio: 1 / 0.92; margin: 0 auto; }
.system-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.system-lines path { fill: none; stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.system-lines path.flow {
  stroke: url(#sysgrad); stroke-width: 2; stroke-dasharray: 6 10; stroke-linecap: round;
  animation: dashFlow 1.6s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -16; } }
.system-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 168px; padding: 20px 16px; border-radius: 20px; text-align: center; z-index: 3;
  background: linear-gradient(140deg, var(--blue), var(--blue-bright)); color: #fff;
  box-shadow: 0 0 0 10px var(--blue-soft), 0 24px 60px -12px rgba(27,63,230,0.7);
}
.system-hub .hub-kicker { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; opacity: .8; display: block; margin-bottom: 4px; }
.system-hub .hub-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: -0.3px; }
.system-node {
  position: absolute; transform: translate(-50%,-50%); z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 16px; box-shadow: 0 12px 34px -12px rgba(0,0,0,0.45);
  animation: nodeFloat 6s ease-in-out infinite alternate;
}
.system-node .node-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px var(--accent-line); }
.system-node .node-icon svg { width: 16px; height: 16px; }
.system-node .node-label { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.25; white-space: nowrap; }
.system-node .node-sub { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; margin-top: 2px; }
@keyframes nodeFloat { from { transform: translate(-50%,-52%); } to { transform: translate(-50%,-48%); } }
.system-node.n1 { left: 50%; top: 7%; animation-delay: 0s; }
.system-node.n2 { left: 91%; top: 34%; animation-delay: -1.2s; }
.system-node.n3 { left: 79%; top: 88%; animation-delay: -2.4s; }
.system-node.n4 { left: 21%; top: 88%; animation-delay: -3.6s; }
.system-node.n5 { left: 9%; top: 34%; animation-delay: -4.8s; }

/* ---------- MARQUEE ---------- */
.marquee-band { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 20px 0; overflow: hidden; position: relative; background: var(--band-bg); }
.marquee-band::before, .marquee-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee-band::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-band::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 42s linear infinite; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.marquee-item::before { content: "◆"; font-size: 8px; color: var(--accent); opacity: .7; }

/* ---------- SEKCJE ---------- */
section { padding: 64px 0; position: relative; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px;
}
.section-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--grad); }
.eyebrow-index { color: var(--muted); }
.section-title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.12; letter-spacing: -1.4px; color: var(--ink); margin-bottom: 22px; max-width: 840px; }
.section-sub { font-size: 17.5px; max-width: 780px; line-height: 1.65; }
.section-sub strong { color: var(--ink); font-weight: 600; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .section-eyebrow { justify-content: center; }
.section-head.center .section-title, .section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-alt { background: linear-gradient(180deg, transparent, var(--alt-band) 12%, var(--alt-band) 88%, transparent); }

/* ---------- KARTY (spotlight) ---------- */
.g-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, background .3s, box-shadow .3s;
}
.g-card:hover { transform: translateY(-6px); border-color: var(--accent-line); background: var(--surface-2); }
.g-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 45%);
}
.g-card:hover::before { opacity: 1; }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--blue-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- KARTY "DLACZEGO" ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { padding: 34px 30px; }
.why-kicker { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.8px; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-card h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.4; }
.why-card p { font-size: 14px; line-height: 1.65; }

/* ---------- CALLOUT ---------- */
.callout {
  position: relative; border-radius: 24px; padding: 48px 52px; overflow: hidden;
  background: var(--callout-bg);
  border: 1px solid var(--accent-line); margin-top: 28px;
}
.callout::before { content: ""; position: absolute; top: -40%; right: -10%; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); filter: blur(20px); }
.callout-tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.callout h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--ink); margin-bottom: 18px; letter-spacing: -0.8px; line-height: 1.22; max-width: 820px; position: relative; }
.callout p { font-size: 15px; line-height: 1.75; max-width: 940px; position: relative; }
.callout p strong { color: var(--ink); font-weight: 600; }

/* ---------- MANIFEST (numerowane tezy) ---------- */
.manifesto { max-width: 980px; margin: 0 auto; counter-reset: thesis; }
.manifesto-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 28px; align-items: start;
  padding: 34px 8px; border-bottom: 1px solid var(--line-soft); counter-increment: thesis;
  transition: background .25s, padding .25s;
}
.manifesto-item:hover { background: var(--surface); border-radius: 16px; padding-left: 20px; padding-right: 20px; }
.manifesto-item:last-child { border-bottom: none; }
.manifesto-num { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto-num::before { content: "0" counter(thesis); }
.manifesto-body h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.3px; line-height: 1.35; }
.manifesto-body p { font-size: 15px; line-height: 1.7; max-width: 720px; }

/* ---------- ZAKRES / BENTO ---------- */
.dim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dim-card { padding: 30px 28px; display: flex; flex-direction: column; }
.dim-num { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 1.5px; margin-bottom: 16px; text-transform: uppercase; }
.dim-card h3 { font-size: 17.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.35; }
.dim-card p { font-size: 13.5px; line-height: 1.65; margin-bottom: 18px; flex: 1; }
.dim-metrics { display: flex; flex-wrap: wrap; gap: 6px; }
.dim-metric { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--body); background: var(--surface-2); padding: 4px 10px; border-radius: 9999px; border: 1px solid var(--line-soft); }

/* ---------- MODEL / KROKI ---------- */
.method-list { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.method-list.steps-3 { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 0 auto; }
.method-list::before { content: ""; position: absolute; top: 52px; left: 4%; right: 4%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-line), rgba(77,111,255,0.4), transparent); z-index: 0; }
.method-step { padding: 30px 24px; counter-increment: step; z-index: 1; }
.method-step::before {
  content: "0" counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--accent-line);
  color: var(--accent); font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  margin-bottom: 18px; box-shadow: 0 0 24px -6px var(--accent-line);
}
.method-step h3 { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.35; }
.method-step p { font-size: 13px; line-height: 1.6; }

/* ---------- SPLIT (prose + panel boczny) ---------- */
.exp-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.exp-prose { display: flex; flex-direction: column; gap: 20px; }
.exp-prose p { font-size: 16px; line-height: 1.75; }
.exp-prose p.lead { font-size: 19px; color: var(--ink); font-weight: 500; line-height: 1.6; }
.exp-prose p strong { color: var(--ink); font-weight: 600; }
.exp-side {
  position: relative; border-radius: 24px; padding: 42px 38px; overflow: hidden;
  background: var(--callout-bg);
  border: 1px solid var(--accent-line);
}
.exp-side::before { content: ""; position: absolute; top: -30%; right: -20%; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); filter: blur(16px); }
.exp-side-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: var(--ink); margin-bottom: 6px; position: relative; }
.exp-side-sub { font-size: 14px; color: var(--body); margin-bottom: 30px; line-height: 1.55; position: relative; }
.exp-pillars { display: flex; flex-direction: column; gap: 22px; padding-top: 26px; border-top: 1px solid var(--line); position: relative; }
.exp-pillar { display: flex; gap: 14px; align-items: flex-start; }
.exp-pillar-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px var(--accent-line); }
.exp-pillar-icon svg { width: 18px; height: 18px; }
.exp-pillar-text h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; letter-spacing: 1px; text-transform: uppercase; }
.exp-pillar-text p { font-size: 13px; color: var(--body); line-height: 1.55; }

/* ---------- WARTOŚĆ / DWIE KOLUMNY KART ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value-card { padding: 38px 34px; }
.value-card-tag { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 5px 12px; border-radius: 9999px; margin-bottom: 18px; }
.value-card h3 { font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.3px; line-height: 1.3; }
.value-card p { font-size: 14.5px; line-height: 1.65; margin-bottom: 18px; }
.value-list { list-style: none; }
.value-list li { font-size: 14px; color: var(--ink); padding: 11px 0; border-bottom: 1px solid var(--line-soft); display: flex; align-items: flex-start; gap: 12px; }
.value-list li:last-child { border-bottom: none; }
.value-list li::before { content: "→"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.value-list li span { color: var(--body); }
.value-list li span strong { color: var(--ink); font-weight: 600; }

/* ---------- KPI / POMIAR ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi-tile { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.kpi-tile .kpi-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--accent-line); }
.kpi-tile .kpi-icon svg { width: 18px; height: 18px; }
.kpi-tile h3 { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.kpi-tile p { font-size: 12.5px; line-height: 1.55; color: var(--body); }

/* ---------- ŹRÓDŁA PRAWDY (chips board) ---------- */
.truth-board { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.truth-col { padding: 34px 32px; }
.truth-col h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.3px; }
.truth-col > p { font-size: 14px; line-height: 1.65; margin-bottom: 22px; }
.truth-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.truth-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 9999px;
  transition: border-color .2s, transform .2s;
}
.truth-chip:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.truth-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }

/* ---------- ŚCIEŻKI / KARTY STRON (story linking) ---------- */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.path-card { display: flex; flex-direction: column; padding: 42px 40px; min-height: 320px; }
.path-card .path-part { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.path-card h3 { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; color: var(--ink); letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 14px; }
.path-card > p { font-size: 14.5px; line-height: 1.7; flex: 1; margin-bottom: 26px; }
.path-cta { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.path-cta .arrow { transition: transform .25s; }
.path-card:hover .path-cta .arrow { transform: translateX(6px); }
.path-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.path-tags span { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--body); background: var(--surface-2); padding: 4px 10px; border-radius: 9999px; border: 1px solid var(--line-soft); }

/* ---------- "CIĄG DALSZY" (nawigacja między częściami) ---------- */
.story-nav { padding: 56px 0 64px; border-top: 1px solid var(--line-soft); }
.story-kicker { text-align: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 40px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.story-card { display: flex; flex-direction: column; gap: 10px; padding: 32px 34px; }
.story-card .story-part { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.story-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -0.5px; line-height: 1.25; }
.story-card p { font-size: 13.5px; line-height: 1.6; }
.story-card .path-cta { margin-top: 8px; font-size: 13.5px; }

/* ---------- USE CASES / DLA KOGO ---------- */
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.usecase { padding: 34px 32px; }
.usecase-role { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.usecase h3 { font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.3px; line-height: 1.3; }
.usecase p { font-size: 14.5px; line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line-soft); border-radius: 16px; margin-bottom: 12px; background: var(--surface); transition: border-color .25s, background .25s; overflow: hidden; }
.faq-item.open { border-color: var(--accent-line); background: var(--surface-2); }
.faq-q { width: 100%; text-align: left; padding: 22px 26px; font-size: 17px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-display); }
.faq-q:hover { color: var(--accent); }
.faq-q-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px; font-weight: 500; transition: transform .25s, background .25s; color: var(--accent); }
.faq-item.open .faq-q-icon { transform: rotate(45deg); background: var(--blue); border-color: transparent; color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; color: var(--body); font-size: 15px; line-height: 1.7; padding: 0 26px; }
.faq-item.open .faq-a { padding: 0 26px 24px; }

/* ---------- CTA ---------- */
.cta-section { padding: 88px 0; text-align: center; position: relative; overflow: hidden; }
.cta-glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 900px; height: 600px; background: radial-gradient(45% 45% at 50% 50%, var(--glow-a), transparent 70%), radial-gradient(30% 30% at 60% 40%, var(--glow-b), transparent 70%); filter: blur(10px); pointer-events: none; }
.cta-section h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 700; line-height: 1.1; letter-spacing: -1.8px; color: var(--ink); margin: 0 auto 22px; max-width: 800px; position: relative; }
.cta-section p { font-size: 18px; max-width: 640px; margin: 0 auto 38px; line-height: 1.6; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-section p.cta-note { position: relative; margin: 38px auto 0; max-width: 560px; font-size: 13px; color: var(--muted); }
.cta-note strong { color: var(--body); font-weight: 600; }

/* ---------- STOPKA ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 56px 0 36px; position: relative; background: var(--footer-bg); }
footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--sky), var(--blue-bright), transparent); opacity: .6; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand-block { max-width: 380px; }
.footer-brand-block p { color: var(--muted); font-size: 13.5px; margin-top: 16px; line-height: 1.65; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; font-size: 14px; }
.footer-col a { color: var(--body); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-col a.is-active { color: var(--accent); font-weight: 600; }
.legal-band { border-top: 1px solid var(--line-soft); padding-top: 26px; display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; gap: 12px; flex-wrap: wrap; }

/* ---------- SCROLL REVEAL ---------- */
/* Hidden state gated behind html.js — bez JS (lub gdy JS zawiedzie) treść jest w pełni widoczna i zaindeksowana */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }
html.js .reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
html.js .reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .09s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .18s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .27s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .36s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .45s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: .54s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: .63s; }

/* ---------- POWRÓT NA GÓRĘ ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(115deg, var(--blue), var(--blue-bright)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; z-index: 90; opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .25s, transform .25s; box-shadow: 0 12px 30px -8px rgba(27,63,230,0.8);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- RESPONSYWNOŚĆ ---------- */
@media (max-width: 1080px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 60px 0 48px; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .why-grid, .dim-grid { grid-template-columns: repeat(2, 1fr); }
  .method-list { grid-template-columns: repeat(2, 1fr); }
  .method-list.steps-3 { grid-template-columns: repeat(3, 1fr); }
  .method-list::before { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .usecase-grid, .truth-board, .path-grid { grid-template-columns: 1fr; }
  .exp-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .callout { padding: 38px 34px; }
  .story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 68px 0; }
  .hero { padding: 44px 0 36px; }
  .hero h1 { letter-spacing: -1.2px; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
  .why-grid, .dim-grid, .kpi-grid { grid-template-columns: 1fr; }
  .method-list, .method-list.steps-3 { grid-template-columns: 1fr; }
  .manifesto-item { grid-template-columns: 1fr; gap: 10px; padding: 26px 4px; }
  .manifesto-num { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .legal-band { flex-direction: column; }
  .callout { padding: 30px 24px; }
  .cta-actions .btn-primary, .cta-actions .btn-secondary { width: 100%; }
  .chat-body { min-height: 0; }
  .chat-tabs .tab-name { display: none; }
  .faq-q { font-size: 15.5px; padding: 18px 20px; }
  .faq-a { padding: 0 20px; }
  .faq-item.open .faq-a { padding: 0 20px 20px; }
  .path-card { padding: 32px 26px; min-height: 0; }
  .orbit-core { width: 112px; height: 112px; }
  .orbit-core .core-name { font-size: 14px; }
  .system-hub { width: 136px; padding: 15px 12px; }
  .system-hub .hub-name { font-size: 14px; }
  .system-node { padding: 8px 11px; }
  .system-node .node-icon { width: 26px; height: 26px; }
  .system-node .node-label { font-size: 10.5px; }
  .system-node .node-sub { display: none; }
  .sat-chip { font-size: 10.5px; padding: 6px 11px; }
}

/* ============================================================
   KOMPONENTY AKTUALIZACJI: warstwa współpracy · sygnały AI · synergie
   ============================================================ */

/* ---------- WYMIANA DWUKIERUNKOWA (LP1: SEO jako warstwa współpracy) ---------- */
.flow-panel {
  position: relative; border-radius: 24px; overflow: hidden; margin-top: 48px;
  background: var(--callout-bg); border: 1px solid var(--accent-line);
  padding: 44px 0 36px;
}
.flow-panel::before { content: ""; position: absolute; top: -40%; right: -10%; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); filter: blur(20px); pointer-events: none; }
.flow-head { text-align: center; padding: 0 36px; margin-bottom: 34px; position: relative; }
.flow-head .callout-tag { margin-bottom: 14px; }
.flow-head h3 { font-family: var(--font-display); font-size: clamp(21px, 2.3vw, 28px); font-weight: 700; color: var(--ink); letter-spacing: -0.7px; line-height: 1.25; margin-bottom: 14px; }
.flow-head p { font-size: 14.5px; line-height: 1.7; max-width: 760px; margin: 0 auto; color: var(--body); }
.flow-lane { position: relative; overflow: hidden; padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.flow-lane-label { text-align: center; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent); margin: 10px 0 8px; position: relative; }
.flow-track { display: flex; gap: 10px; width: max-content; animation: marquee 38s linear infinite; }
.flow-track.rev { animation-direction: reverse; animation-duration: 44s; }
.flow-panel:hover .flow-track { animation-play-state: paused; }
.flow-chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--panel-solid); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 9999px;
}
.flow-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.flow-core { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0; position: relative; }
.flow-core::before, .flow-core::after { content: ""; height: 1px; width: min(180px, 20%); background: linear-gradient(90deg, transparent, var(--accent-line)); }
.flow-core::after { background: linear-gradient(-90deg, transparent, var(--accent-line)); }
.flow-core-pill {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  background: linear-gradient(115deg, var(--blue), var(--blue-bright)); color: #fff;
  padding: 12px 26px; border-radius: 9999px;
  box-shadow: 0 0 0 6px var(--blue-soft), 0 14px 40px -10px rgba(27,63,230,0.7);
}
.flow-core-pill .fc-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -0.2px; white-space: nowrap; }
.flow-core-pill .fc-sub { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 1.6px; text-transform: uppercase; opacity: .8; }

/* ---------- KONSTELACJA SYGNAŁÓW (LP2: AI widzi więcej niż stronę) ---------- */
.signals-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; margin-top: 64px; }
.signals-copy h3 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--ink); letter-spacing: -0.8px; line-height: 1.22; margin: 14px 0 18px; }
.signals-copy p { font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
.signals-copy p strong { color: var(--ink); font-weight: 600; }
.signal-cloud { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 0.94; margin: 0 auto; }
.signal-ring { position: absolute; border: 1px dashed var(--line); border-radius: 50%; }
.signal-ring.r1 { inset: 27%; }
.signal-ring.r2 { inset: 10%; }
.signal-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 118px; height: 118px; border-radius: 50%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(140deg, var(--blue), var(--blue-bright)); color: #fff; text-align: center;
  box-shadow: 0 0 0 10px var(--blue-soft), 0 24px 60px -12px rgba(27,63,230,0.7);
}
.signal-core .sc-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.signal-core .sc-sub { font-family: var(--font-mono); font-size: 8px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .85; max-width: 90px; line-height: 1.5; }
.signal-core::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--accent-line); animation: corePulse 3s ease-out infinite; }
.signal-chip {
  position: absolute; transform: translate(-50%,-50%); z-index: 1;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--ink);
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 9999px;
  padding: 7px 14px; box-shadow: 0 10px 26px -12px rgba(0,0,0,0.4);
  animation: badgeFloat 5.5s ease-in-out infinite alternate;
}
.signal-chip::before { content: "✓"; color: var(--ok); font-weight: 700; font-size: 11px; }
.signal-chip.warn { border-color: rgba(255,122,102,0.5); }
.signal-chip.warn::before { content: "!"; color: var(--error); }
.signal-legend { display: flex; gap: 22px; justify-content: center; margin-top: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.signal-legend .lg-ok::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.signal-legend .lg-warn::before { content: "! "; color: var(--error); font-weight: 700; }

/* ---------- SYNERGIE (LP3: obszary łączone z Organic Search) ---------- */
.synergy-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: stretch; }
.synergy-menu { display: flex; flex-direction: column; gap: 8px; }
.synergy-btn {
  position: relative; display: flex; align-items: center; gap: 13px; text-align: left;
  padding: 12px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-soft);
  color: var(--body); font-size: 14px; font-weight: 600;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
  overflow: hidden;
}
.synergy-btn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); opacity: 0; transition: opacity .25s; }
.synergy-btn:hover { border-color: var(--accent-line); color: var(--ink); transform: translateX(3px); }
.synergy-btn.is-active { background: var(--surface-2); border-color: var(--accent-line); color: var(--ink); }
.synergy-btn.is-active::before { opacity: 1; }
.synergy-btn .s-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.synergy-btn .s-icon svg { width: 16px; height: 16px; }
.synergy-detail {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--callout-bg); border: 1px solid var(--accent-line);
  padding: 40px 38px; min-height: 320px;
}
.synergy-detail::before { content: ""; position: absolute; top: -40%; right: -12%; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); filter: blur(18px); pointer-events: none; }
.synergy-pane { display: none; position: relative; }
.synergy-pane.is-active { display: block; animation: paneIn .45s cubic-bezier(.2,.7,.3,1) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.synergy-pane .callout-tag { margin-bottom: 14px; }
.synergy-pane h3 { font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 27px); font-weight: 700; color: var(--ink); letter-spacing: -0.7px; line-height: 1.25; margin-bottom: 14px; }
.synergy-pane p { font-size: 15px; line-height: 1.75; margin-bottom: 22px; color: var(--body); }
.synergy-pane .dim-metrics .dim-metric { font-size: 11px; }

/* ---------- RESPONSYWNOŚĆ NOWYCH KOMPONENTÓW ---------- */
@media (max-width: 1080px) {
  .signals-layout { grid-template-columns: 1fr; gap: 40px; }
  .synergy-layout { grid-template-columns: 1fr; }
  .synergy-menu { flex-direction: row; flex-wrap: wrap; }
  .synergy-btn { flex: 1 1 46%; }
}
@media (max-width: 640px) {
  .flow-panel { padding: 32px 0 26px; }
  .flow-chip { font-size: 11.5px; padding: 7px 12px; }
  .signal-chip { font-size: 10px; padding: 5px 10px; }
  .signal-core { width: 92px; height: 92px; }
  .signal-core .sc-name { font-size: 19px; }
  .synergy-btn { flex: 1 1 100%; }
  .synergy-detail { padding: 30px 24px; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .marquee-track, .flow-track { animation: none; }
}
