/* ============ BillNext — strona startowa 3D ============ */
:root {
  --bg: #070b18;
  --bg-2: #0a1024;
  --violet: #7c5cff;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --emerald: #34d399;
  --text: #f2f5ff;
  --text-dim: #9aa6c4;
  --card: rgba(255, 255, 255, 0.055);
  --card-brd: rgba(255, 255, 255, 0.10);
  --radius: 22px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Gwiazdy — pełna strona, pod treścią */
#stars-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Nebula + miękkie linie tła (jak mockup landing) */
.hero-nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-nebula__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: .55;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.hero-nebula__blob--a {
  width: min(62vw, 780px);
  height: min(62vw, 780px);
  right: -8%;
  top: 12%;
  background:
    radial-gradient(circle at 40% 40%, rgba(88, 120, 255, .55), transparent 62%),
    radial-gradient(circle at 70% 60%, rgba(124, 92, 255, .42), transparent 58%);
  animation: nebulaDriftA 18s ease-in-out infinite;
}
.hero-nebula__blob--b {
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  right: 18%;
  bottom: 4%;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, .28), transparent 64%),
    radial-gradient(circle at 30% 70%, rgba(99, 102, 241, .32), transparent 60%);
  animation: nebulaDriftB 22s ease-in-out infinite;
}
.hero-nebula__blob--c {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  left: 8%;
  top: 28%;
  background: radial-gradient(circle at 50% 50%, rgba(67, 56, 202, .22), transparent 68%);
  animation: nebulaDriftC 26s ease-in-out infinite;
}
.hero-nebula__line {
  position: absolute;
  display: block;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(148, 180, 255, .55), rgba(167, 139, 250, .45), transparent);
  box-shadow: 0 0 18px rgba(99, 140, 255, .35);
  opacity: .42;
  transform-origin: center;
  animation: nebulaLine 14s linear infinite;
}
.hero-nebula__line--1 {
  width: min(70vw, 920px);
  right: -4%;
  top: 38%;
  transform: rotate(-18deg);
  animation-duration: 16s;
}
.hero-nebula__line--2 {
  width: min(55vw, 720px);
  right: 6%;
  top: 58%;
  transform: rotate(12deg);
  opacity: .28;
  animation-duration: 20s;
  animation-direction: reverse;
}
.hero-nebula__line--3 {
  width: min(40vw, 480px);
  right: 22%;
  top: 22%;
  transform: rotate(-8deg);
  opacity: .22;
  animation-duration: 12s;
}
@keyframes nebulaDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .5; }
  50% { transform: translate3d(-4%, 3%, 0) scale(1.06); opacity: .68; }
}
@keyframes nebulaDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -4%, 0) scale(1.08); }
}
@keyframes nebulaDriftC {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: .28; }
  50% { transform: translate3d(2%, 4%, 0); opacity: .42; }
}
@keyframes nebulaLine {
  0% { filter: brightness(.85); opacity: .18; }
  40% { filter: brightness(1.25); opacity: .48; }
  100% { filter: brightness(.9); opacity: .2; }
}

/* Canvas 3D — telefon na wierzchu gwiazd (ukryty, dopóki sekcja hero nie jest aktywna) */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.phone-section-active #scene {
  opacity: 1;
}

/* Stare dekoracje tła — wyłączone na rzecz gwiazd.
   Loader przywrócony (Model A+); .neon-trails zostaje martwy. */
.hero-tech,
.hero-flow-lines,
.neon-trails {
  display: none !important;
}

/* ============ NAVBAR ============ */
.nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  width: auto;
  min-height: 78px;
  margin: 0;
  padding: 12px clamp(18px, 4vw, 64px);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045)),
    rgba(6, 10, 24, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 18px 50px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px) saturate(132%);
  -webkit-backdrop-filter: blur(18px) saturate(132%);
  isolation: isolate;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(96,165,250,0.08), transparent 32%, rgba(124,92,255,0.10));
  pointer-events: none;
  z-index: -1;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}
.nav__logo { width: 30px; height: 30px; object-fit: contain; }
.nav__feature {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 220px;
  margin-left: auto;
  padding: 10px 13px;
  border-radius: 17px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.nav__feature-kicker {
  color: rgba(174,184,214,0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav__feature-text {
  display: inline-block;
  color: #eef3ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transform: translateY(0);
  opacity: 1;
  transition: transform .28s ease, opacity .28s ease;
}
.nav__feature-text.is-switching {
  transform: translateY(12px);
  opacity: 0;
}
.nav__links {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}
.nav__indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: var(--nav-indicator-w, 88px);
  height: calc(100% - 8px);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,92,255,0.34), rgba(59,130,246,0.28));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 24px rgba(59,130,246,0.20);
  transform: translateX(var(--nav-indicator-x, 0px));
  transition: transform .34s cubic-bezier(.2,.8,.2,1), width .34s cubic-bezier(.2,.8,.2,1);
}
.nav__link {
  position: relative;
  z-index: 1;
  color: rgba(174,184,214,0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 14px;
  border-radius: 14px;
  transition: color .2s;
}
.nav__link:hover,
.nav__link--active { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 14px;
  padding: 13px 22px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s ease,
    background .28s ease,
    border-color .28s ease,
    filter .28s ease;
  white-space: nowrap;
  will-change: transform;
}
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #7c5cff 0%, #6366f1 48%, #3b82f6 100%);
  box-shadow:
    0 12px 34px rgba(99, 102, 241, 0.42),
    0 0 0 0 rgba(124, 92, 255, 0);
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.035);
  box-shadow:
    0 20px 48px rgba(99, 102, 241, 0.58),
    0 0 36px rgba(124, 92, 255, 0.42);
  filter: brightness(1.06);
}
.btn--primary:active { transform: translateY(-1px) scale(1.01); }
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(148, 180, 255, 0.35);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.18), 0 0 24px rgba(124, 92, 255, 0.16);
}
.btn__play {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 104px clamp(30px, 5.8vw, 96px) 42px;
  display: grid;
  grid-template-columns: minmax(800px, 0.78fr) minmax(260px, 0.22fr);
  align-items: center;
  gap: 0;
  min-height: 100vh;
}
/* Lewa kolumna — pusta, tam „świeci" telefon 3D z canvasu */
.hero__stage {
  min-height: calc(100vh - 140px);
  position: relative;
  min-width: 0;
  overflow: visible;
}
/* —— Backglow za telefonem —— */
.phone-backglow {
  position: fixed;
  right: clamp(40px, 10vw, 200px);
  top: 50%;
  width: clamp(420px, 40vw, 680px);
  height: clamp(480px, 62vh, 720px);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, -50%, 0);
  transition: opacity .4s ease;
  mix-blend-mode: screen;
}
.phone-section-active .phone-backglow { opacity: 1; }
.phone-backglow__panel {
  position: absolute;
  border-radius: 28px;
  filter: blur(2px);
}
.phone-backglow__panel--a {
  left: 8%;
  bottom: 12%;
  width: 42%;
  height: 38%;
  background: linear-gradient(145deg, rgba(88, 70, 220, .55), rgba(40, 30, 120, .08));
  box-shadow: 0 0 80px rgba(99, 80, 255, .35);
  transform: rotate(-18deg);
  animation: backglowPulse 7s ease-in-out infinite;
}
.phone-backglow__panel--b {
  right: 6%;
  bottom: 18%;
  width: 36%;
  height: 32%;
  background: linear-gradient(160deg, rgba(60, 100, 255, .42), rgba(30, 20, 90, .05));
  box-shadow: 0 0 70px rgba(70, 120, 255, .28);
  transform: rotate(12deg);
  animation: backglowPulse 8.5s ease-in-out infinite reverse;
}
.phone-backglow__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}
.phone-backglow__orb--l {
  left: 2%;
  top: 58%;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(180, 210, 255, .95) 0%, rgba(100, 150, 255, .35) 40%, transparent 70%);
  animation: orbPulse 4.2s ease-in-out infinite;
}
.phone-backglow__orb--r {
  right: 18%;
  top: 22%;
  width: 54px;
  height: 54px;
  background: radial-gradient(circle, rgba(220, 230, 255, .9) 0%, rgba(140, 120, 255, .3) 45%, transparent 72%);
  animation: orbPulse 5.1s ease-in-out infinite .8s;
}
@keyframes backglowPulse {
  0%, 100% { opacity: .72; transform: rotate(var(--r, -18deg)) scale(1); }
  50% { opacity: 1; transform: rotate(var(--r, -18deg)) scale(1.04); }
}
@keyframes orbPulse {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* —— SVG orbits —— */
.phone-orbits {
  position: fixed;
  right: clamp(20px, 6vw, 140px);
  top: 50%;
  width: clamp(640px, 58vw, 980px);
  max-height: 88vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(4%, -52%, 0) rotate(-6deg);
  mix-blend-mode: screen;
  transition: opacity .4s ease;
  overflow: visible;
  will-change: opacity;
}
.phone-section-active .phone-orbits { opacity: 1; }
.home-neon-test .phone-orbits { opacity: 0; }
.home-neon-test.phone-section-active .phone-orbits {
  opacity: .92 !important;
}
.phone-aurora,
.phone-neon-cards {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transition: opacity .38s ease;
}
.phone-aurora {
  right: clamp(100px, 16vw, 280px);
  top: calc(50% + min(26vh, 220px));
  width: clamp(360px, 34vw, 580px);
  height: clamp(110px, 13vw, 190px);
  z-index: 1;
  transform: translate3d(0, -50%, 0) rotate(-8deg);
  mix-blend-mode: screen;
  overflow: visible;
}
.phone-section-active .phone-aurora { opacity: .8; }
.phone-aurora::before,
.phone-aurora::after,
.phone-aurora span,
.phone-aurora i {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 100%;
  border-radius: 50%;
  transform-origin: 50% 84%;
}
.phone-aurora::before {
  background:
    radial-gradient(ellipse at 50% 74%, rgba(67,148,255,.58), transparent 60%),
    radial-gradient(ellipse at 36% 62%, rgba(39,232,255,.34), transparent 60%),
    radial-gradient(ellipse at 68% 58%, rgba(119,73,255,.40), transparent 64%);
  filter: blur(18px);
  animation: auroraBreath 5.8s ease-in-out infinite;
}
.phone-aurora::after {
  left: 8%;
  right: 8%;
  bottom: 18%;
  height: 32%;
  border-top: 2px solid rgba(126,186,255,.70);
  box-shadow:
    0 -12px 38px rgba(84,155,255,.48),
    0 0 54px rgba(124,92,255,.40);
  filter: blur(.2px);
  animation: auroraRing 7.5s linear infinite;
}
.phone-aurora span {
  left: 10%;
  right: 4%;
  bottom: 24%;
  height: 44%;
  background: linear-gradient(90deg, transparent, rgba(48,218,255,.46), rgba(118,91,255,.38), transparent);
  filter: blur(9px);
  animation: auroraSweep 4.8s ease-in-out infinite;
}
.phone-aurora i {
  left: 18%;
  right: 18%;
  bottom: 30%;
  height: 18%;
  border-top: 1px solid rgba(223,241,255,.62);
  filter: drop-shadow(0 0 12px rgba(110,190,255,.78));
  animation: auroraRing 5.6s linear infinite reverse;
}

/* —— Karty neon —— */
.phone-neon-cards {
  right: clamp(18px, 3.5vw, 72px);
  top: 50%;
  width: clamp(240px, 19vw, 300px);
  z-index: 5;
  display: grid;
  gap: clamp(11px, 1.5vh, 16px);
  transform: translate3d(0, -46%, 0);
}
.phone-section-active .phone-neon-cards {
  opacity: 1;
  pointer-events: auto;
}
.phone-neon-cards:not(.is-revealed) .phone-neon-card { opacity: 0; }
.phone-neon-card {
  --card-accent: #5c8dff;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px 14px 14px 18px;
  border-radius: 18px;
  color: #fff;
  overflow: visible;
  cursor: default;
  background:
    linear-gradient(145deg, rgba(18, 28, 58, .82), rgba(10, 14, 36, .88));
  border: 1.5px solid color-mix(in srgb, var(--card-accent) 55%, rgba(255,255,255,.12));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 0 1px rgba(0,0,0,.2),
    0 0 28px color-mix(in srgb, var(--card-accent) 28%, transparent),
    0 16px 40px rgba(0,0,0,.24);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transform: translate3d(12px, 0, 0);
  transition:
    transform .32s cubic-bezier(.2,.8,.2,1),
    box-shadow .32s ease,
    border-color .32s ease,
    filter .32s ease;
  animation: neonCardFloat 5.6s ease-in-out infinite;
}
.phone-neon-card::after {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: clamp(48px, 5vw, 90px);
  height: 1.5px;
  margin-right: -2px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--card-accent) 55%, #fff) 55%,
    color-mix(in srgb, var(--card-accent) 90%, #fff) 100%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--card-accent) 70%, transparent);
  opacity: .55;
  transform: translateY(-50%) scaleX(1);
  transform-origin: right center;
  animation: neonConnectorPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
.phone-neon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 0 28%, rgba(255,255,255,.18) 48%, transparent 68%);
  opacity: .2;
  transform: translateX(-80%);
  animation: neonCardScan 7s ease-in-out infinite;
  pointer-events: none;
}
.phone-neon-cards.is-revealed .phone-neon-card:hover,
.phone-neon-cards.is-revealed .phone-neon-card:focus-visible {
  animation-play-state: paused;
  transform: translate3d(4px, -8px, 0) scale(1.04);
  border-color: color-mix(in srgb, var(--card-accent) 85%, #fff);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 0 0 1px color-mix(in srgb, var(--card-accent) 35%, transparent),
    0 0 48px color-mix(in srgb, var(--card-accent) 55%, transparent),
    0 22px 48px rgba(0,0,0,.35);
  outline: none;
  z-index: 2;
}
.phone-neon-card:nth-child(2) { animation-delay: -.9s; }
.phone-neon-card:nth-child(3) { animation-delay: -1.8s; }
.phone-neon-card:nth-child(4) { animation-delay: -2.7s; }
.phone-neon-card__body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.phone-neon-card__kicker {
  display: block;
  color: #f0f4ff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.phone-neon-card strong {
  display: block;
  margin-top: 3px;
  color: var(--card-accent);
  font-size: 13px;
  font-weight: 750;
}
.phone-neon-card b {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.phone-neon-card__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0a1020;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.85), transparent 42%),
    var(--card-accent);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--card-accent) 40%, transparent),
    0 0 22px color-mix(in srgb, var(--card-accent) 70%, transparent),
    inset 0 1px 0 rgba(255,255,255,.45);
  animation: neonIconPulse 2.9s ease-in-out infinite;
}
.phone-neon-card__icon svg {
  width: 22px;
  height: 22px;
}
.phone-neon-card--paid { --card-accent: #4ade80; }
.phone-neon-card--paid strong { color: #4ade80; }
.phone-neon-card--soon { --card-accent: #fb923c; }
.phone-neon-card--soon strong { color: #fb923c; }
.phone-neon-card--shield { --card-accent: #a78bfa; }
.phone-neon-card--shield strong { color: #c4b5fd; }
.phone-neon-card--gas { --card-accent: #e879f9; }
.phone-neon-card--gas strong { color: #e879f9; }

.phone-neon-cards.is-bursting .phone-neon-card {
  animation-play-state: paused;
}
@keyframes auroraBreath {
  0%, 100% { transform: scaleX(.92) scaleY(.78); opacity: .58; }
  48% { transform: scaleX(1.08) scaleY(1); opacity: 1; }
}
@keyframes auroraSweep {
  0%, 100% { transform: translateX(-10%) scaleX(.86); opacity: .34; }
  50% { transform: translateX(8%) scaleX(1.08); opacity: .82; }
}
@keyframes auroraRing {
  from { transform: rotate(0deg) scaleX(1); }
  to { transform: rotate(360deg) scaleX(1); }
}
@keyframes neonCardFloat {
  0%, 100% { transform: translate3d(12px, 0, 0); }
  50% { transform: translate3d(6px, -6px, 0); }
}
@keyframes neonCardScan {
  0%, 52%, 100% { transform: translateX(-80%); opacity: 0; }
  62% { opacity: .28; }
  82% { transform: translateX(80%); opacity: 0; }
}
@keyframes neonConnectorPulse {
  0%, 100% { opacity: .28; transform: translateY(-50%) scaleX(.78); }
  50% { opacity: .72; transform: translateY(-50%) scaleX(1); }
}
@keyframes neonIconPulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 2px color-mix(in srgb, var(--card-accent) 40%, transparent),
      0 0 20px color-mix(in srgb, var(--card-accent) 65%, transparent),
      inset 0 1px 0 rgba(255,255,255,.45);
  }
  50% {
    filter: brightness(1.15);
    box-shadow:
      0 0 0 2px color-mix(in srgb, var(--card-accent) 55%, transparent),
      0 0 34px color-mix(in srgb, var(--card-accent) 85%, transparent),
      inset 0 1px 0 rgba(255,255,255,.55);
  }
}
.phone-orbits__mist {
  fill: url(#orbitMist);
  opacity: 1;
  filter: blur(8px);
  transform-origin: center;
  animation: orbitMistBreath 7s ease-in-out infinite;
}
.phone-orbits__mist--core {
  opacity: .55;
  filter: blur(14px);
  animation-duration: 9s;
}
.phone-orbits__track {
  fill: none;
  stroke: url(#orbitStroke);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(180, 210, 255, 0.55));
  opacity: .72;
}
.phone-orbits__track--soft {
  stroke: rgba(200, 220, 255, 0.38);
  stroke-width: 1.1;
  opacity: .55;
}
.phone-orbits__track--wide {
  stroke: rgba(190, 210, 255, 0.42);
  stroke-width: 1.5;
  opacity: .65;
  filter: drop-shadow(0 0 8px rgba(140, 180, 255, 0.45));
}
.phone-orbits__track--halo {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  opacity: .5;
}
.phone-orbits__track--fine {
  stroke: rgba(170, 195, 255, 0.32);
  stroke-width: .9;
  opacity: .45;
}
.phone-orbits__streak {
  fill: none;
  stroke: url(#orbitStreak);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 90 910;
  vector-effect: non-scaling-stroke;
  opacity: .85;
  filter: drop-shadow(0 0 12px rgba(220, 235, 255, 0.75));
  animation: orbitStreakRun 7.2s linear infinite;
}
.phone-orbits__streak--two {
  stroke-width: 1.8;
  stroke-dasharray: 60 940;
  opacity: .55;
  animation-duration: 10s;
  animation-delay: -3.5s;
}
.phone-orbits__streak--three {
  stroke-width: 1.5;
  stroke-dasharray: 48 952;
  opacity: .4;
  animation-duration: 8.4s;
  animation-delay: -1.8s;
  animation-direction: reverse;
}
.phone-orbits__dot {
  fill: rgba(240, 248, 255, 0.96);
  filter: url(#orbitGlow);
  animation: orbitDotPulse 2.6s ease-in-out infinite;
}
.phone-orbits__dot--lg {
  fill: rgba(255, 255, 255, 1);
}
.phone-orbits__dot--soft {
  fill: rgba(160, 185, 255, 0.9);
  animation-duration: 3.2s;
}
.phone-orbits__spark {
  fill: rgba(245, 250, 255, 0.95);
  filter: url(#orbitGlow);
  transform-box: fill-box;
  transform-origin: center;
  animation: orbitSparkPulse 2.2s ease-in-out infinite;
}
.phone-orbits__spark--bright {
  fill: #ffffff;
  animation-duration: 2.5s;
}
@keyframes orbitStreakRun {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -1000; }
}
@keyframes orbitDotPulse {
  0%, 100% { transform: scale(.78); opacity: .55; }
  46% { transform: scale(1.28); opacity: 1; }
}
@keyframes orbitSparkPulse {
  0%, 100% { transform: scale(.6); opacity: .4; }
  50% { transform: scale(1.4); opacity: .95; }
}
@keyframes orbitMistBreath {
  0%, 100% { transform: scale(.97); opacity: .18; }
  50% { transform: scale(1.04); opacity: .28; }
}
.hero-flow-lines {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: visible;
  mix-blend-mode: screen;
}
.flow-line,
.flow-pulse {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.flow-line {
  stroke: rgba(232,242,255,0.34);
  stroke-width: 1.35;
}
.flow-pulse {
  stroke: rgba(238,249,255,0.95);
  stroke-width: 2.1;
  stroke-dasharray: 34 760;
  filter: drop-shadow(0 0 5px rgba(218,242,255,0.85));
  animation: flowPulse 4.8s linear infinite;
}
.flow-pulse--two { animation-delay: .38s; }
.flow-pulse--three { animation-delay: .76s; }
.flow-node {
  fill: rgba(238,249,255,0.94);
  opacity: .86;
  filter: drop-shadow(0 0 5px rgba(238,249,255,0.8));
}
.flow-node--source {
  fill: rgba(197,218,255,0.92);
}
@keyframes flowPulse {
  from { stroke-dashoffset: 820; opacity: 0; }
  12%, 72% { opacity: .9; }
  to { stroke-dashoffset: 0; opacity: 0; }
}
.phone-hotspot {
  position: fixed;
  left: auto;
  right: clamp(120px, 15vw, 250px);
  top: 84px;
  width: clamp(240px, 23vw, 320px);
  height: clamp(430px, 68vh, 540px);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 7;
  display: none;
}
.phone-section-active .phone-hotspot { display: block; }
.phone-hotspot:focus { outline: none; }

.hero__panel {
  max-width: 860px;
  order: -1;
  align-self: center;
  position: relative;
  z-index: 3;
}

.hero::before {
  content: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: #c9c2ff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero__title {
  font-size: clamp(42px, 4.1vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero__title .line {
  position: relative;
  display: block;
  width: fit-content;
  min-height: 1.06em;
  white-space: nowrap;
  will-change: transform, opacity, filter;
}
/* FOUC: linie schowane do GSAP slide-from-left */
.js-ready .hero__title .line {
  opacity: 0;
  transform: translateX(-42px);
}
.js-ready .hero__title .line.is-in {
  opacity: 1;
  transform: none;
}

/* Animowane wejście — ukrywane dopiero po starcie JS (.js-ready w <html>) */
.reveal { opacity: 1; transform: none; will-change: transform, opacity; }
.js-ready .reveal { opacity: 0; transform: translateY(20px); }

/* "Twoje finanse." — gradient + glow */
.grad {
  background: linear-gradient(100deg, #6b8cff 0%, #8b5cf6 42%, #a78bfa 72%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(124, 92, 255, 0.28));
}
.grad.is-glowing {
  filter:
    drop-shadow(0 0 14px rgba(124, 92, 255, 0.45))
    drop-shadow(0 0 36px rgba(59, 130, 246, 0.28));
}

.hero__social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.hero__avatars {
  display: flex;
  align-items: center;
}
.hero__avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(7, 11, 24, 0.9);
  margin-left: -10px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.35), transparent 42%),
    linear-gradient(145deg, #7c5cff, #3b82f6);
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}
.hero__avatars span:first-child { margin-left: 0; }
.hero__avatars span:nth-child(2) { background: linear-gradient(145deg, #38bdf8, #6366f1); }
.hero__avatars span:nth-child(3) { background: linear-gradient(145deg, #a78bfa, #ec4899); }
.hero__avatars span:nth-child(4) { background: linear-gradient(145deg, #34d399, #3b82f6); }
.hero__social p { margin: 0; max-width: 280px; line-height: 1.35; }
.hero__sub {
  margin: 18px 0 24px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
}
.hero__sub--typed {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease;
}
.hero__sub--typed.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.home-neon-test .hero__sub {
  margin-bottom: 30px;
}
.home-neon-test .cards {
  display: none;
}
.home-neon-test .hero__cta {
  margin-top: 8px;
}

.hero-tech {
  position: absolute;
  inset: -4% -10vw -12% -10vw;
  opacity: .62;
  pointer-events: none;
  perspective: 900px;
  transform: translateZ(0);
  z-index: 1;
}
.hero-tech .tech-panel,
.hero-tech .tech-chart,
.hero-tech .tech-arrow,
.hero-tech .tech-phone-pad,
.hero-tech .tech-cards-preview {
  opacity: .32;
}
.hero-tech .tech-panel--main,
.hero-tech .tech-panel--side {
  opacity: .18;
}
.hero-tech .tech-chart {
  opacity: .22;
}
.hero-tech .tech-phone-pad {
  opacity: .24;
}
.hero-tech::before,
.hero-tech::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero-tech::before {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background:
    radial-gradient(560px 390px at 55% 46%, rgba(34,211,238,0.40), transparent 70%),
    radial-gradient(820px 540px at 76% 38%, rgba(34,211,238,0.24), transparent 72%),
    radial-gradient(560px 420px at 88% 24%, rgba(124,92,255,0.25), transparent 72%);
  filter: none;
}
.hero-tech::after {
  right: 0;
  top: 10%;
  width: 86%;
  height: 68%;
  border-radius: 50%;
  border: 1px solid rgba(96,165,250,0.16);
  transform: rotate(-16deg) skewX(-18deg);
  box-shadow:
    0 0 70px rgba(34,211,238,0.10),
    inset 0 0 60px rgba(124,92,255,0.08);
  opacity: .75;
}
.tech-orbit {
  position: absolute;
  border: 1px solid rgba(96,165,250,0.18);
  border-radius: 50%;
  transform: rotate(-18deg) skewX(-22deg);
  animation: none;
}
.tech-orbit--one {
  right: -1%;
  top: 13%;
  width: 91%;
  height: 63%;
}
.tech-orbit--two {
  right: 17%;
  top: 29%;
  width: 61%;
  height: 40%;
  animation-delay: -3s;
}
.tech-beam {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.78), rgba(124,92,255,0.55), transparent);
  filter: none;
  transform: rotate(-13deg);
  opacity: .74;
  animation: none;
}
.tech-beam--one {
  left: 8%;
  right: 8%;
  top: 41%;
}
.tech-beam--two {
  left: 18%;
  right: 2%;
  top: 71%;
  animation-delay: -2.4s;
  opacity: .48;
}
.tech-panel,
.tech-chart,
.tech-chip,
.tech-widget {
  position: absolute;
  border: 1px solid rgba(96,165,250,0.34);
  background:
    linear-gradient(145deg, rgba(34,211,238,0.15), rgba(124,92,255,0.07)),
    rgba(9, 18, 38, 0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.tech-panel--main {
  right: 25%;
  top: 1%;
  width: 35%;
  height: 42%;
  transform: skewY(-8deg) rotate(-4deg);
  animation: none;
}
.tech-panel--main b {
  position: absolute;
  left: 12%;
  top: 10%;
  width: 46px;
  height: 9px;
  border-radius: 999px;
  background: rgba(34,211,238,0.50);
  box-shadow: none;
}
.tech-panel--main span {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 7px;
  border-radius: 999px;
  background: rgba(139,220,255,0.33);
}
.tech-panel--main span:nth-child(1) { top: 22%; width: 48%; }
.tech-panel--main span:nth-child(2) { top: 40%; width: 68%; }
.tech-panel--main span:nth-child(3) { top: 58%; width: 36%; }
.tech-panel--side {
  right: 4%;
  top: 10%;
  width: 28%;
  height: 29%;
  transform: skewY(-8deg) rotate(-4deg);
  animation: none;
}
.tech-panel--card {
  right: 9%;
  top: 49%;
  width: 31%;
  height: 22%;
  transform: skewY(-8deg) rotate(-4deg);
  animation: none;
}
.tech-widget {
  width: 110px;
  height: 78px;
  border-radius: 18px;
  transform: skewY(-8deg) rotate(-4deg);
  animation: none;
}
.tech-widget i {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(34,211,238,0.80), rgba(124,92,255,0.55));
  box-shadow: none;
}
.tech-widget span {
  position: absolute;
  left: 16px;
  right: 14px;
  bottom: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(218,232,255,0.26);
}
.tech-widget--wallet {
  left: 16%;
  top: 27%;
}
.tech-widget--cloud {
  right: 5%;
  top: 39%;
  animation-delay: -2.8s;
}
.tech-platform {
  position: absolute;
  right: 9%;
  bottom: 11%;
  width: 78%;
  height: 30%;
  border: 1px solid rgba(34,211,238,0.32);
  background:
    linear-gradient(145deg, rgba(34,211,238,0.20), rgba(124,92,255,0.07)),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(139,220,255,0.14) 21px 22px);
  transform: perspective(520px) rotateX(58deg) rotateZ(-10deg);
  box-shadow: 0 18px 42px rgba(34,211,238,0.12);
}
.tech-chart {
  right: 28%;
  bottom: 26%;
  width: 36%;
  height: 32%;
  transform: skewY(-8deg) rotate(-4deg);
  display: flex;
  align-items: end;
  gap: 8%;
  padding: 7%;
  animation: none;
}
.tech-chart i {
  display: block;
  flex: 1;
  background: linear-gradient(180deg, rgba(34,211,238,0.95), rgba(124,92,255,0.42));
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}
.tech-chart i:nth-child(1) { height: 42%; }
.tech-chart i:nth-child(2) { height: 68%; }
.tech-chart i:nth-child(3) { height: 54%; }
.tech-chart i:nth-child(4) { height: 82%; }
.tech-chip {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  animation: none;
}
.tech-chip--one { left: 7%; top: 57%; }
.tech-chip--two { right: 13%; bottom: 3%; animation-delay: -2s; }
.tech-grid {
  position: absolute;
  right: 4%;
  bottom: 5%;
  width: 84%;
  height: 42%;
  background:
    linear-gradient(rgba(34,211,238,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.10) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(620px) rotateX(65deg) rotateZ(-10deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(180deg, transparent, #000 32%, transparent 88%);
  opacity: .64;
}
.tech-phone-pad {
  position: absolute;
  right: 11%;
  bottom: 17%;
  width: 58%;
  height: 26%;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(20,44,78,0.94), rgba(5,10,24,0.92)),
    radial-gradient(320px 130px at 70% 18%, rgba(34,211,238,0.34), transparent 72%);
  border: 1px solid rgba(139,220,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 20px 44px rgba(0,0,0,0.28);
  transform: perspective(680px) rotateX(60deg) rotateZ(-10deg);
}
.tech-cards-preview {
  position: absolute;
  left: 2%;
  right: -7%;
  bottom: -4%;
  height: 27%;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 24px;
  opacity: .72;
  transform: translateY(12px);
}
.tech-cards-preview em {
  display: block;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.045)),
    radial-gradient(220px 120px at 78% 24%, rgba(34,211,238,0.24), transparent 70%);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 14px 34px rgba(0,0,0,0.22);
}
.tech-arrow {
  position: absolute;
  right: 31%;
  top: 35%;
  width: 145px;
  height: 38px;
  transform: rotate(-28deg);
  filter: none;
  opacity: .88;
}
.tech-arrow::before,
.tech-arrow::after {
  content: "";
  position: absolute;
  display: block;
}
.tech-arrow::before {
  left: 0;
  top: 16px;
  width: 118px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34,211,238,0.24), rgba(34,211,238,0.84));
}
.tech-arrow::after {
  right: 0;
  top: 3px;
  width: 34px;
  height: 34px;
  border-top: 9px solid rgba(34,211,238,0.84);
  border-right: 9px solid rgba(34,211,238,0.84);
  transform: rotate(45deg);
  border-radius: 4px;
}
@keyframes techFloat {
  50% { transform: translateY(-14px) skewY(-8deg) rotate(-4deg); }
}
@keyframes chipDrift {
  50% { transform: translate3d(10px, -16px, 0) rotate(9deg); }
}
@keyframes orbitPulse {
  50% { opacity: .36; transform: rotate(-16deg) skewX(-22deg) scale(1.03); }
}
@keyframes beamSlide {
  0%, 100% { opacity: .12; transform: translateX(-5%) rotate(-13deg); }
  42% { opacity: .86; }
  58% { opacity: .40; transform: translateX(8%) rotate(-13deg); }
}

/* ============ KARTY (glass) ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 10px;
  width: min(960px, 100%);
  max-width: 960px;
  margin: 10px 0 18px;
  position: relative;
  z-index: 4;
}
/* Karta kategorii — układ 1:1 z aplikacji (dash-cat-card), wersja szklana. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 13px 14px 12px;
  border-radius: 22px;
  text-align: left;
  color: #fff;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cat, #8b7cff) 24%, rgba(255,255,255,.30));
  background:
    radial-gradient(ellipse 90% 80% at 92% 42%, color-mix(in srgb, var(--cat, #8b7cff) 13%, transparent), transparent 55%),
    linear-gradient(158deg,
      rgba(255,255,255,.20) 0%,
      rgba(255,255,255,.09) 26%,
      rgba(255,255,255,.045) 55%,
      rgba(255,255,255,.06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(255,255,255,.10),
    inset 1px 0 0 rgba(255,255,255,.10),
    0 14px 36px rgba(0,0,0,.24);
  backdrop-filter: blur(26px) saturate(170%) brightness(1.22);
  -webkit-backdrop-filter: blur(26px) saturate(170%) brightness(1.22);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 50% at 10% -10%, color-mix(in srgb, var(--cat, #8b7cff) 26%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  z-index: 0;
}
.cards--visible .card {
  pointer-events: auto;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
.cards--visible .card:hover::before { opacity: 1; }
.cards--visible .card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 44px color-mix(in srgb, var(--cat, #8b7cff) 22%, transparent);
  border-color: color-mix(in srgb, var(--cat, #8b7cff) 45%, rgba(255,255,255,.1));
}
.card__top,
.card__mid,
.card__chart,
.card__footer {
  position: relative;
  z-index: 1;
}
.card__top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  min-width: 0;
}
.card__iconwrap {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cat, #8b7cff) 18%, rgba(255,255,255,.06));
  border: 1px solid color-mix(in srgb, var(--cat, #8b7cff) 30%, rgba(255,255,255,.06));
  color: var(--cat, #8b7cff);
  box-shadow: 0 0 14px color-mix(in srgb, var(--cat, #8b7cff) 25%, transparent);
  flex-shrink: 0;
}
.card__iconwrap svg { width: 16px; height: 16px; }
.card__name {
  flex: 1 1 auto;
  min-width: 0;
}
.card__name strong {
  display: block;
  font-size: 13.5px;
  font-weight: 740;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__name small {
  display: block;
  font-size: 10.5px;
  color: rgba(180, 200, 255, 0.55);
  font-weight: 450;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__active {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 650;
  background: color-mix(in srgb, var(--cat, #8b7cff) 14%, rgba(255,255,255,.05));
  color: var(--cat, #8b7cff);
  border: 1px solid color-mix(in srgb, var(--cat, #8b7cff) 28%, transparent);
  white-space: nowrap;
}
.card__active::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cat, #8b7cff);
  box-shadow: 0 0 6px var(--cat, #8b7cff);
}
.card__mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 66px;
  margin-bottom: 2px;
}
.card__main {
  min-width: 0;
  padding-right: 2px;
}
.card__amount {
  color: #fff;
  font-size: clamp(18px, 1.3vw, 24px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: nowrap;
  margin-bottom: 6px;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.card__pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  font-style: normal;
  background: color-mix(in srgb, var(--cat, #8b7cff) 16%, rgba(255,255,255,.06));
  color: var(--cat, #8b7cff);
  border: 1px solid color-mix(in srgb, var(--cat, #8b7cff) 22%, transparent);
  white-space: nowrap;
}
.card__meta > span {
  font-size: 10.5px;
  color: rgba(180, 200, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__art {
  position: relative;
  z-index: 2;
  display: block;
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  pointer-events: none;
}
.card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 22px color-mix(in srgb, var(--cat, #8b7cff) 40%, transparent));
  transition: transform .2s ease;
}
.cards--visible .card:hover .card__art img {
  transform: scale(1.06) translateY(-2px);
}
.card__chart {
  height: 26px;
  margin: 0 0 8px;
  overflow: hidden;
}
.card__spark {
  width: 100%;
  height: 100%;
  display: block;
}
.card__footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.card__vs {
  flex: 1;
  font-size: 10.5px;
  color: rgba(150, 170, 220, 0.5);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cat, #8b7cff) 18%, rgba(255,255,255,.06));
  border: 1px solid color-mix(in srgb, var(--cat, #8b7cff) 28%, rgba(255,255,255,.06));
  color: var(--cat, #8b7cff);
  font-size: 13px;
  font-weight: 800;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.neon-trails {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 3;
}
.neon-trails path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 18px currentColor);
}

/* ============ PODSTRONY / SEKCJE ============ */
.page-stack {
  position: relative;
  z-index: 3;
}
.page-section {
  scroll-margin-top: 92px;
}
.content-section {
  width: 100%;
  max-width: none;
  min-height: 92vh;
  margin: 0;
  padding: 118px clamp(32px, 6vw, 96px) 92px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: 54px;
}
.section-copy,
.section-stage {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s ease, transform .55s ease;
}
.section--active .section-copy,
.section--active .section-stage {
  opacity: 1;
  transform: translateY(0);
}
.section-stage { transition-delay: .08s; }
.section-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.content-section h2 {
  max-width: 560px;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.02;
  font-weight: 850;
}
.content-section p {
  max-width: 540px;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.65;
}
.section-stage {
  min-height: 360px;
  display: grid;
  place-items: center;
}
.sketch-card {
  width: min(100%, 680px);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sketch-card span {
  color: rgba(238,243,255,0.72);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ============ STOPKA / INFORMACJE ============ */
.site-footer {
  position: relative;
  z-index: 4;
  padding: 0;
}
.footer-glass {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 24px;
  align-items: center;
  padding: 18px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.13);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04)),
    rgba(8,12,28,0.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 18px 50px rgba(0,0,0,0.22);
  backdrop-filter: blur(18px) saturate(128%);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-brand strong { font-size: 18px; }
.footer-brand span,
.footer-legal {
  color: rgba(174,184,214,0.78);
  font-size: 13px;
}
.footer-buttons,
.footer-legal {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-buttons a,
.footer-legal a {
  color: #dce7ff;
  text-decoration: none;
}
.footer-buttons a {
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
  font-size: 13px;
  font-weight: 800;
}
.footer-legal {
  grid-column: 1 / -1;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}

/* ============ LOADER (subtelny, tylko w miejscu telefonu) ============ */
.loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity .6s ease;
}
.loader--hidden { opacity: 0; }
.loader__ring {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.10);
  border-top-color: var(--violet);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(660px, 0.74fr) minmax(240px, 0.26fr);
    padding-left: 32px;
    padding-right: 32px;
  }
  .cards {
    width: min(760px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 9px;
  }
  .card {
    min-height: 182px;
    padding: 11px 12px 11px;
  }
  .card__art { width: 62px; height: 62px; }
  .card__iconwrap { width: 28px; height: 28px; min-width: 28px; }
  .card__iconwrap svg { width: 14px; height: 14px; }
  .card__name strong { font-size: 12.5px; }
  .card__amount { font-size: 18px; }
  .card__mid { min-height: 58px; }
  .card__active { font-size: 9px; padding: 2px 6px; }
  .phone-orbits {
    right: clamp(16px, 4vw, 80px);
    width: clamp(420px, 48vw, 600px);
  }
  .phone-backglow {
    right: clamp(40px, 8vw, 140px);
    width: clamp(300px, 34vw, 460px);
  }
  .phone-neon-cards {
    right: clamp(12px, 2.5vw, 40px);
    width: clamp(200px, 20vw, 250px);
    gap: 10px;
  }
  .phone-neon-card {
    min-height: 78px;
    padding: 12px;
  }
  .phone-neon-card__kicker { font-size: 12.5px; }
  .phone-neon-card strong { font-size: 12px; }
  .phone-neon-card b { font-size: 16.5px; }
  .phone-neon-card__icon { width: 36px; height: 36px; }
  .phone-neon-card__icon svg { width: 17px; height: 17px; }
  .phone-aurora {
    right: clamp(80px, 12vw, 160px);
    width: clamp(260px, 30vw, 400px);
  }
}
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 112px;
  }
  .hero__stage { order: -1; min-height: 46vh; }
  .phone-hotspot {
    left: 50%;
    top: 86px;
    width: min(320px, 72vw);
    height: min(460px, 58vh);
    transform: translateX(-50%);
  }
  .hero__panel { margin: 0 auto; }
  .hero__title .line { white-space: normal; margin-left: auto; margin-right: auto; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .nav {
    min-height: 64px;
    top: 0;
  }
  .nav__feature { min-width: 0; flex: 1 1 auto; }
  .nav__links { display: none; }
  .content-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 98px 24px 72px;
    text-align: center;
  }
  .section-stage { min-height: 260px; }
  .footer-glass { grid-template-columns: 1fr; }
  .footer-buttons,
  .footer-legal { justify-content: flex-start; }
  #scene { height: 100vh; }
  .phone-orbits {
    left: 50%;
    right: auto;
    top: 34vh;
    width: min(680px, 96vw);
    transform: translate3d(-50%, -50%, 0) rotate(-6deg);
    opacity: 0;
  }
  .phone-section-active .phone-orbits { opacity: .75; }
  .home-neon-test.phone-section-active .phone-orbits { opacity: .75 !important; }
  .phone-backglow {
    left: 50%;
    right: auto;
    top: 36vh;
    width: min(520px, 90vw);
    height: min(420px, 55vh);
    transform: translate3d(-50%, -50%, 0);
  }
  .phone-neon-cards {
    left: 50%;
    right: auto;
    top: min(76vh, 660px);
    width: min(560px, 88vw);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: translate3d(-50%, -50%, 0);
  }
  .phone-neon-card {
    min-height: 82px;
  }
  .phone-neon-card::after { display: none; } /* na mobile brak linii do telefonu */
  .phone-aurora {
    left: 50%;
    right: auto;
    top: min(62vh, 540px);
    width: min(560px, 94vw);
    transform: translate3d(-50%, -50%, 0) rotate(-8deg);
  }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__social { margin-top: 22px; }
  .hero__social p { font-size: 13px; max-width: 200px; }
  .hero__avatars span { width: 28px; height: 28px; }
  .phone-neon-cards {
    display: none;
  }
  .phone-aurora {
    width: 92vw;
    opacity: 0;
  }
  .phone-section-active .phone-aurora {
    opacity: .7;
  }
  .nav { padding: 10px 12px; }
  .nav__feature { display: none; }
  .nav__brand span { display: none; }
  .btn--sm { padding: 10px 12px; font-size: 13px; }
  .content-section h2 { font-size: 34px; }
  .site-footer { padding: 16px 16px 28px; }
}

/* prefers-reduced-motion: kill infinite CSS motion (class + media) */
@media (prefers-reduced-motion: reduce) {
  .phone-aurora::before,
  .phone-aurora::after,
  .phone-aurora span,
  .phone-aurora i,
  .phone-neon-card,
  .phone-neon-card::before,
  .phone-neon-card::after,
  .phone-neon-card i,
  .badge__dot,
  .loader__ring,
  .phone-orbits__mist,
  .phone-orbits__mist--core,
  .phone-orbits__streak,
  .phone-orbits__dot,
  .phone-orbits__spark,
  .hero-nebula__blob,
  .hero-nebula__line {
    animation: none !important;
  }
  .js-ready .hero__title .line {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn--primary:hover,
  .btn--ghost:hover,
  .phone-neon-cards.is-revealed .phone-neon-card:hover {
    transform: none;
  }
  .hero__sub--typed,
  #scene,
  .phone-aurora,
  .phone-neon-cards,
  .phone-orbits {
    transition: none !important;
  }
}
html.rm-reduce .phone-aurora::before,
html.rm-reduce .phone-aurora::after,
html.rm-reduce .phone-aurora span,
html.rm-reduce .phone-aurora i,
html.rm-reduce .phone-neon-card,
html.rm-reduce .phone-neon-card::before,
html.rm-reduce .phone-neon-card::after,
html.rm-reduce .phone-neon-card__icon,
html.rm-reduce .badge__dot,
html.rm-reduce .loader__ring,
html.rm-reduce .hero-nebula__blob,
html.rm-reduce .hero-nebula__line,
html.rm-reduce .phone-backglow__panel,
html.rm-reduce .phone-backglow__orb {
  animation: none !important;
}
html.rm-reduce .js-ready .hero__title .line {
  opacity: 1 !important;
  transform: none !important;
}
html.rm-reduce .hero__sub--typed,
html.rm-reduce #scene,
html.rm-reduce .phone-aurora,
html.rm-reduce .phone-neon-cards,
html.rm-reduce .phone-orbits {
  transition: none !important;
}
