
  #home { position: relative; overflow-x: clip; }
  #home .container { position: relative; }
  /* tło nagłówka: powoli dryfujące, rozmyte kule */
  .hx-orbs { position: absolute; left: 50%; top: -40px; width: 100vw; height: 560px; transform: translateX(-50%); pointer-events: none; z-index: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .hx-orbs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
  .hx-orbs .o1 { width: 340px; height: 340px; left: 6%; top: 20px; background: color-mix(in srgb, var(--accent) 55%, transparent); animation: hx-drift1 16s ease-in-out infinite alternate; }
  .hx-orbs .o2 { width: 300px; height: 300px; right: 8%; top: 60px; background: color-mix(in srgb, #b05cff 42%, transparent); animation: hx-drift2 19s ease-in-out infinite alternate; }
  .hx-orbs .o3 { width: 260px; height: 260px; left: 42%; top: 200px; background: color-mix(in srgb, #2fd1a8 30%, transparent); animation: hx-drift3 22s ease-in-out infinite alternate; }
  body.light-theme .hx-orbs span { opacity: .32; }
  @keyframes hx-drift1 { to { transform: translate(90px, 60px) scale(1.15); } }
  @keyframes hx-drift2 { to { transform: translate(-80px, 40px) scale(.92); } }
  @keyframes hx-drift3 { to { transform: translate(60px, -50px) scale(1.2); } }
  .hx-doc { position: absolute; z-index: 0; color: var(--accent); opacity: .5; pointer-events: none; }
  .hx-doc svg { width: 100%; height: auto; display: block; }
  .hx-doc.d1 { width: 54px; left: 4%; top: 80px; transform: rotate(-12deg); animation: hx-float 7s ease-in-out infinite; }
  .hx-doc.d2 { width: 40px; right: 5%; top: 40px; transform: rotate(10deg); animation: hx-float 8s ease-in-out -2s infinite; }
  .hx-doc.d3 { width: 46px; right: 11%; top: 230px; transform: rotate(-6deg); animation: hx-float 9s ease-in-out -4s infinite; color: #b05cff; }
  @keyframes hx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
  .home-hero, .home-tiles { position: relative; z-index: 1; }
  .home-hero h1, .home-hero .xh1 { background: linear-gradient(100deg, var(--text) 30%, var(--accent) 52%, var(--text) 74%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hx-shine 7s ease-in-out infinite; padding-bottom: .16em; margin-bottom: calc(12px - .16em) !important; }   /* gradient tnie się do ramki – miejsce na ogonki „j”, „p” */
  @keyframes hx-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
  .hx-chips { list-style: none; margin: 22px auto 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .hx-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--text);
    background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(6px); }
  .hx-chips svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

  /* pojawianie się przy przewijaniu */
  html.js .hx-rev { opacity: 0; transform: translateY(24px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
  html.js .hx-rev.in { opacity: 1; transform: none; }
  html.js .tile.hx-rev { transition: opacity .6s ease var(--d, 0s), transform .6s cubic-bezier(.2,.7,.2,1) var(--d, 0s), border-color .15s ease, box-shadow .25s ease; }
  .tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .28); }
  body.light-theme .tile:hover { box-shadow: 0 16px 36px rgba(20, 30, 60, .14); }
  .tile .art svg { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .tile:hover .art svg { transform: scale(1.06); }

  .hx-extra { margin-top: 84px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 92px; width: 100%; min-width: 0; }
  .hx-extra > * { min-width: 0; max-width: 100%; }
  .hx-formats, .hx-marquee { min-width: 0; max-width: 100%; }
  .hx-extra h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 10px; }
  .hx-sub { text-align: center; max-width: 720px; margin: 0 auto 34px; color: var(--muted); line-height: 1.65; font-size: 1.04rem; }
  .hx-extra h3 { margin: 0 0 8px; font-size: 1.08rem; letter-spacing: -.01em; }
  .hx-extra p { margin: 0; }
  .hx-extra .hx-sub { margin: 0 auto 34px; }

  .hx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .hx-stat { text-align: center; padding: 26px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
  .hx-stat strong { display: block; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
  .hx-stat .hx-suf { margin-left: 2px; }
  @property --hxn { syntax: "<integer>"; inherits: false; initial-value: 0; }
  .hx-num.hx-anim { position: relative; display: inline-block; -webkit-text-fill-color: transparent; }
  .hx-num.hx-anim::after { content: counter(hxn); counter-reset: hxn var(--hxn); position: absolute; inset: 0; text-align: right; -webkit-text-fill-color: currentColor; animation: hx-count 1.4s cubic-bezier(.22, .61, .36, 1) forwards; }
  @keyframes hx-count { from { --hxn: 0; } to { --hxn: var(--hx-to); } }
  .hx-stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: .92rem; line-height: 1.4; }

  .hx-marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .hx-track { display: flex; gap: 14px; width: max-content; animation: hx-marquee 46s linear infinite; }
  .hx-marquee:hover .hx-track { animation-play-state: paused; }
  @keyframes hx-marquee { to { transform: translateX(calc(-50% - 7px)); } }
  .hx-fmt { flex: none; padding: 9px 20px; border-radius: 10px; font-weight: 800; font-size: .88rem; letter-spacing: .04em; border: 1px solid; }
  .hx-fmt.pdf { color: #e5483d; background: color-mix(in srgb, #e5483d 11%, transparent); border-color: color-mix(in srgb, #e5483d 40%, transparent); }
  .hx-fmt.doc { color: #4c7dff; background: color-mix(in srgb, #4c7dff 11%, transparent); border-color: color-mix(in srgb, #4c7dff 40%, transparent); }
  .hx-fmt.xls { color: #2fa866; background: color-mix(in srgb, #2fa866 11%, transparent); border-color: color-mix(in srgb, #2fa866 40%, transparent); }
  .hx-fmt.ppt { color: #ee6a3c; background: color-mix(in srgb, #ee6a3c 11%, transparent); border-color: color-mix(in srgb, #ee6a3c 40%, transparent); }
  .hx-fmt.img { color: #d9a21b; background: color-mix(in srgb, #d9a21b 11%, transparent); border-color: color-mix(in srgb, #d9a21b 40%, transparent); }
  .hx-fmt.txt { color: var(--muted); background: color-mix(in srgb, var(--muted) 10%, transparent); border-color: color-mix(in srgb, var(--muted) 35%, transparent); }

  .hx-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hx-steps::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 36px; height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px); z-index: 0; }
  .hx-step { position: relative; z-index: 1; text-align: center; padding: 6px 10px; }
  .hx-step-ico { position: relative; display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 16px; color: var(--accent);
    background: var(--card); border: 2px solid color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 0 0 7px var(--bg); }
  .hx-step-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; animation: hx-bob 3.2s ease-in-out infinite; }
  .hx-step:nth-child(2) .hx-step-ico svg { animation-delay: -1s; } .hx-step:nth-child(3) .hx-step-ico svg { animation-delay: -2s; }
  @keyframes hx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  .hx-step-ico b { position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: var(--accent); color: var(--accent-text); }
  .hx-step p { color: var(--muted); line-height: 1.6; font-size: .95rem; max-width: 290px; margin: 0 auto; }

  .hx-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
  .hx-why-card { padding: 24px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); transition: border-color .2s ease, transform .25s ease; }
  html.js .hx-why-card.in:hover { border-color: var(--accent); transform: translateY(-3px); }
  .hx-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
  .hx-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .hx-why-card p { color: var(--muted); line-height: 1.6; font-size: .94rem; }

  .hx-seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hx-seo-card { display: flex; flex-direction: column; padding: 24px 24px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
  .hx-seo-card p { color: var(--muted); line-height: 1.65; font-size: .95rem; flex: 1; }
  .hx-seo-card a { margin-top: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
  .hx-seo-card a::after { content: " →"; transition: margin .2s ease; }
  .hx-seo-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .hx-seo-card a:hover::after { margin-left: 4px; }

  .hx-faq-list { max-width: 780px; margin: 28px auto 0; }
  .hx-faq-list details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
  .hx-faq-list summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
  .hx-faq-list summary::-webkit-details-marker { display: none; }
  .hx-faq-list summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); flex: none; transition: transform .25s ease; }
  .hx-faq-list details[open] summary::after { transform: rotate(45deg); }
  .hx-faq-list details p { padding: 0 20px 18px; color: var(--muted); line-height: 1.65; }

  .hx-cta { position: relative; overflow: hidden; text-align: center; padding: 64px 24px; border-radius: 24px; color: #fff;
    background: linear-gradient(120deg, #2445c7, #6a3fd8, #1f8fd1, #2445c7); background-size: 300% 300%; animation: hx-grad 14s ease infinite; }
  @keyframes hx-grad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
  .hx-cta h2 { color: #fff; margin: 0 0 12px; position: relative; }
  .hx-cta p { color: rgba(255, 255, 255, .86); max-width: 560px; margin: 0 auto; line-height: 1.6; position: relative; }
  .hx-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; position: relative; }
  .hx-btn { display: inline-flex; align-items: center; padding: 13px 26px; border-radius: 12px; font-weight: 700; text-decoration: none; background: #fff; color: #1b2a6b; transition: transform .15s ease, box-shadow .2s ease; }
  .hx-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
  .hx-btn.alt { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
  .hx-cta-docs span { position: absolute; width: 56px; color: rgba(255, 255, 255, .5); animation: hx-float 7s ease-in-out infinite; }
  .hx-cta-docs span:nth-child(1) { left: 7%; top: 22%; transform: rotate(-14deg); }
  .hx-cta-docs span:nth-child(2) { right: 8%; top: 14%; transform: rotate(12deg); animation-delay: -2.5s; width: 46px; }
  .hx-cta-docs span:nth-child(3) { right: 20%; bottom: 10%; transform: rotate(-8deg); animation-delay: -4.5s; width: 38px; }
  .hx-cta-docs svg { width: 100%; height: auto; display: block; }

  @media (max-width: 980px) { .hx-why-grid { grid-template-columns: repeat(2, 1fr); } .hx-seo-grid { grid-template-columns: repeat(2, 1fr); } .hx-doc { display: none; } }
  @media (max-width: 720px) {
    .hx-extra { margin-top: 60px; gap: 68px; }
    .hx-stats { grid-template-columns: repeat(2, 1fr); }
    .hx-steps { grid-template-columns: 1fr; gap: 26px; } .hx-steps::before { display: none; }
    .hx-why-grid, .hx-seo-grid { grid-template-columns: 1fr; }
    .hx-cta { padding: 44px 18px; } .hx-cta-docs { display: none; }
    .hx-orbs { height: 420px; } .hx-orbs span { filter: blur(54px); }
    .hx-btn { width: 100%; justify-content: center; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hx-orbs span, .hx-doc, .home-hero h1, .home-hero .xh1, .hx-track, .hx-step-ico svg, .hx-cta, .hx-cta-docs span { animation: none !important; }
    html.js .hx-rev { opacity: 1; transform: none; transition: none; }
    .home-hero h1, .home-hero .xh1 { -webkit-text-fill-color: currentColor; background: none; }
  }
