/* =================================================================
   JAKUB 2002 — premium edition
   Arkusz stylów: zmienne, tło, komponenty, animacje, responsywność
   ================================================================= */

/* ---------- 1. ZMIENNE / MOTYW ---------- */
:root {
  --bg:        #0a0a12;
  --bg-2:      #11101e;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border:    rgba(255, 255, 255, 0.10);
  --text:      #f3f1ff;
  --muted:     #a6a3c2;

  --violet:    #7c5cff;
  --fuchsia:   #ff4dc4;
  --cyan:      #2de2e6;
  --lime:      #b6ff5c;

  --grad:      linear-gradient(120deg, var(--violet), var(--fuchsia) 55%, var(--cyan));
  --grad-soft: linear-gradient(120deg, rgba(124,92,255,.18), rgba(255,77,196,.18));

  --shadow:    0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow:      0 0 40px -8px rgba(124, 92, 255, 0.55);

  --radius:    20px;
  --radius-sm: 12px;
  --maxw:      1140px;

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
}

/* ---------- 2. RESET / BAZA ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

::selection { background: var(--fuchsia); color: #fff; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

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

/* ---------- 3. TŁO: AURORA + CZĄSTECZKI ---------- */
.bg-aurora {
  position: fixed; inset: 0; z-index: -3;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% -10%, #1a1736 0%, var(--bg) 55%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .55;
  animation: drift 22s ease-in-out infinite;
}
.blob--1 { width: 46vw; height: 46vw; background: var(--violet);  top: -8vw;  left: -6vw; }
.blob--2 { width: 40vw; height: 40vw; background: var(--fuchsia); top: 30vh;  right: -10vw; animation-delay: -7s; }
.blob--3 { width: 36vw; height: 36vw; background: var(--cyan);    bottom: -12vw; left: 30vw; animation-delay: -14s; }

@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(6vw, -4vh) scale(1.12); }
  66%     { transform: translate(-5vw, 5vh) scale(.92); }
}

.bg-particles { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

/* ---------- 4. PASEK POSTĘPU + KURSOR ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 100;
  box-shadow: var(--glow);
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 380px; height: 380px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(124,92,255,.20), transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity .3s; opacity: 0;
}

/* ---------- 5. NAWIGACJA ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(10, 10, 18, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, padding .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10,10,18,.8); padding-block: .65rem; }

.nav__logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; }
.nav__logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--grad); color: #0a0a12;
  font-weight: 800; box-shadow: var(--glow);
}
.nav__logo-text { font-size: 1.05rem; letter-spacing: .5px; }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; font-weight: 500; }
.nav__links a { position: relative; color: var(--muted); transition: color .25s; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 0; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav__burger span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. PRZYCISKI ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 100px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s;
  will-change: transform; white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #0a0a12; box-shadow: var(--glow); }
.btn--primary:hover { box-shadow: 0 0 50px -6px rgba(255,77,196,.6); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--big { padding: 1.1rem 2.4rem; font-size: 1.1rem; }
.btn:active { transform: scale(.96); }

/* ---------- 7. HERO ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 8rem 1.25rem 4rem; position: relative;
}
.hero__inner { max-width: 880px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: .85rem; margin-bottom: 1.75rem;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.4); } }

.hero__title { font-family: var(--font-head); line-height: 1; margin-bottom: 1.25rem; }
.hero__name {
  display: block; font-size: clamp(2.6rem, 9vw, 6rem); font-weight: 800;
  letter-spacing: -2px; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(124,92,255,.35));
}
.hero__model { display: block; font-size: clamp(1.1rem, 3.5vw, 1.8rem); font-weight: 400; color: var(--muted); margin-top: .4rem; letter-spacing: 4px; text-transform: lowercase; }

.hero__type { font-family: var(--font-head); font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 600; margin: 1.5rem 0; min-height: 3.5em; }
.hero__type-static { color: var(--text); }
.hero__type-dynamic { color: var(--cyan); }
.caret { animation: blink 1s steps(2) infinite; color: var(--fuchsia); }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

.hero__lead { max-width: 640px; margin: 0 auto 2.25rem; color: var(--muted); font-size: 1.05rem; }
.hero__lead strong { color: var(--text); font-weight: 600; }

.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__badges { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.float-badge {
  padding: .5rem 1rem; border-radius: 100px; font-size: .85rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(6px);
  animation: floaty 4s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__scroll {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted); font-size: .75rem; letter-spacing: 2px; text-transform: uppercase;
}
.mouse { width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 4px; height: 8px; background: var(--cyan); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- 8. MARQUEE ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--grad-soft); padding: .9rem 0; }
.marquee__track { display: flex; width: max-content; animation: scroll-x 26s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: 1px; white-space: nowrap; color: var(--text); padding-right: 1rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- 9. STATYSTYKI ---------- */
.stats { padding: 4rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; text-align: center; }
.stat { padding: 1.5rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { display: block; margin-top: .5rem; color: var(--muted); font-size: .85rem; }

/* ---------- 10. SEKCJE OGÓLNE ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(124,92,255,.04), transparent); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section__kicker { display: inline-block; font-family: var(--font-head); font-size: .8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.section__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -1px; }
.section__sub { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- 11. KARTY ZALET ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  position: relative; padding: 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  transform-style: preserve-3d; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(124,92,255,.18), transparent 45%);
}
.card:hover { border-color: rgba(124,92,255,.5); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon { font-size: 2.25rem; margin-bottom: 1rem; transform: translateZ(40px); }
.card__title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; transform: translateZ(25px); }
.card__text { color: var(--muted); font-size: .95rem; transform: translateZ(15px); }
.card__tag { display: inline-block; margin-top: 1rem; padding: .3rem .8rem; border-radius: 100px; font-size: .75rem; font-weight: 600; background: var(--grad-soft); border: 1px solid var(--border); color: var(--cyan); }
.card--hero-feature { background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(255,77,196,.12)); border-color: rgba(255,77,196,.4); }

/* ---------- 12. SPECYFIKACJA / CV ---------- */
.spec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.spec__col-title { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 1.25rem; color: var(--text); }

.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--grad); }
.timeline__item { position: relative; padding-bottom: 1.75rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -1.75rem; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.timeline__date { font-size: .8rem; color: var(--cyan); font-weight: 600; }
.timeline__item h4 { font-family: var(--font-head); font-size: 1.05rem; margin: .15rem 0 .25rem; }
.timeline__item p { color: var(--muted); font-size: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { padding: .5rem 1rem; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; transition: transform .2s, border-color .2s; }
.chip:hover { transform: translateY(-3px); border-color: rgba(124,92,255,.5); }

.bars { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.bar__head { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .4rem; font-weight: 500; }
.bar__track { height: 9px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: 100px; background: var(--grad); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }

.spec-sheet { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.spec-sheet__row { display: flex; justify-content: space-between; padding: .85rem 1.1rem; font-size: .92rem; }
.spec-sheet__row:nth-child(odd) { background: var(--surface); }
.spec-sheet__row span:first-child { color: var(--muted); }
.spec-sheet__row span:last-child { font-weight: 600; }

/* ---------- 13. PORÓWNANIE ---------- */
.compare { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.compare__row { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; }
.compare__row:not(:last-child) { border-bottom: 1px solid var(--border); }
.compare__row--head { background: var(--grad-soft); font-family: var(--font-head); font-weight: 700; }
.compare__cell { padding: 1rem 1.25rem; font-size: .95rem; display: flex; align-items: center; }
.compare__cell:not(:last-child) { border-right: 1px solid var(--border); }
.compare__cell--bad { color: var(--muted); }
.compare__cell--good { color: var(--text); font-weight: 600; background: rgba(182,255,92,.05); }
.compare__row:not(.compare__row--head):hover { background: rgba(124,92,255,.06); }

/* ---------- 14. TEST KOMPATYBILNOŚCI ---------- */
.test__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.test__form { display: flex; flex-direction: column; gap: .85rem; }
.test__opt {
  display: flex; align-items: center; gap: .9rem; cursor: pointer;
  padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, background .2s, transform .2s; user-select: none;
}
.test__opt:hover { border-color: rgba(124,92,255,.5); transform: translateX(4px); }
.test__opt input { position: absolute; opacity: 0; pointer-events: none; }
.test__box { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--muted); display: grid; place-items: center; transition: .25s; }
.test__box::after { content: '✓'; color: #0a0a12; font-weight: 800; font-size: .85rem; opacity: 0; transform: scale(.4); transition: .25s; }
.test__opt input:checked + .test__box { background: var(--grad); border-color: transparent; }
.test__opt input:checked + .test__box::after { opacity: 1; transform: scale(1); }
.test__opt input:checked ~ span:last-child { color: var(--text); }

.test__result { text-align: center; }
.gauge { position: relative; width: 200px; height: 200px; margin: 0 auto 1.25rem; }
.gauge__svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.gauge__bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.gauge__fg { fill: none; stroke: url(#gaugeGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); }
.gauge__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge__num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gauge__cap { color: var(--muted); font-size: .85rem; }
.test__verdict { color: var(--muted); min-height: 3em; font-size: 1rem; }
.test__verdict strong { color: var(--text); }
#testCta { margin-top: 1rem; }

/* ---------- 15. CTA KOŃCOWE ---------- */
.cta-final { text-align: center; }
.cta-final__inner { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem,6vw,4rem); border-radius: calc(var(--radius) * 1.4); background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(255,77,196,.10)); border: 1px solid var(--border); box-shadow: var(--shadow); }
.cta-final__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem,6vw,3.4rem); line-height: 1.05; }
.cta-final__sub { color: var(--muted); max-width: 520px; margin: 1.25rem auto 2rem; }

.contact-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.25rem; }
.contact-card__item { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.25rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: transform .25s, border-color .25s; }
a.contact-card__item:hover { transform: translateY(-4px); border-color: rgba(124,92,255,.5); }
.contact-card__ico { font-size: 1.6rem; }
.contact-card__lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.contact-card__val { font-weight: 600; font-size: .95rem; word-break: break-word; }
.cta-final__fineprint { margin-top: 1.25rem; font-size: .8rem; color: var(--muted); }

/* ---------- 16. STOPKA ---------- */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); text-align: center; }
.footer__brand { font-family: var(--font-head); font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: 1rem; }
.footer__note { color: var(--muted); max-width: 560px; margin: 0 auto 1rem; font-size: .92rem; }
.footer__note strong { color: var(--text); }
.footer__copy { color: var(--muted); font-size: .8rem; }

/* ---------- 17. KONFETTI ---------- */
.confetti-canvas { position: fixed; inset: 0; z-index: 200; pointer-events: none; }

/* ---------- 18. REVEAL (scroll) ----------
   Stan ukryty tylko, gdy JS aktywny (html.js). Bez JS treść jest w pełni widoczna. */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 19. RESPONSYWNOŚĆ ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.menu-open .nav__links {
    display: flex; flex-direction: column; gap: 1.25rem;
    position: absolute; top: 100%; left: 0; right: 0; padding: 1.5rem 2rem 2rem;
    background: rgba(10,10,18,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
  }
  .nav.menu-open .nav__cta { display: inline-flex; position: absolute; top: 100%; left: 2rem; right: 2rem; transform: translateY(190px); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .spec__grid { grid-template-columns: 1fr; }
  .test__grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__type { min-height: 4.5em; }

  /* Tabela porównawcza -> układ kart na telefonie */
  .compare__row--head { display: none; }
  .compare__row { grid-template-columns: 1fr; }
  .compare__cell { border-right: 0 !important; padding: .6rem 1.1rem; }
  .compare__cell::before { content: attr(data-label) ': '; color: var(--cyan); font-weight: 700; font-size: .75rem; text-transform: uppercase; margin-right: .4rem; }
  .compare__cell:first-child { background: var(--grad-soft); font-family: var(--font-head); font-weight: 700; }
  .compare__cell:first-child::before { display: none; }
}

/* ---------- 20. DOSTĘPNOŚĆ: redukcja ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
}
