/* MyVibi /aplikacja — extra polish layer: spotlight cards, aura, kinetic hero, 3D city section */
.aura { position: fixed; left: 0; top: 0; z-index: 1; width: 560px; height: 560px; margin: -280px 0 0 -280px; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle, color-mix(in srgb, var(--s) 22%, transparent), color-mix(in srgb, var(--p) 10%, transparent) 40%, transparent 68%); mix-blend-mode: screen; will-change: transform; }
.aura.on { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) { .aura { display: none; } }

/* reveal: rise + unblur */
.reveal { filter: blur(10px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { filter: none; }
.reveal.in > * { animation: wowRise .9s var(--ease) both; }
.reveal.in > *:nth-child(2) { animation-delay: .08s; } .reveal.in > *:nth-child(3) { animation-delay: .16s; } .reveal.in > *:nth-child(4) { animation-delay: .24s; } .reveal.in > *:nth-child(5) { animation-delay: .32s; }
@keyframes wowRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* hero headline: shimmering gradient + soft glow */
.hero h1 { text-shadow: 0 0 60px color-mix(in srgb, var(--p) 25%, transparent); }
.hero h1 .grad { background-size: 220% 100%; background-image: linear-gradient(100deg, var(--p), var(--s), var(--t), var(--s), var(--p)); animation: wowShimmer 7s linear infinite; -webkit-background-clip: text; background-clip: text; }
@keyframes wowShimmer { to { background-position: 220% 0; } }
.hero-copy > * { animation: wowRise 1s var(--ease) both; } .hero-copy > *:nth-child(2) { animation-delay: .12s; } .hero-copy > *:nth-child(3) { animation-delay: .24s; } .hero-copy > *:nth-child(4) { animation-delay: .36s; } .hero-copy > *:nth-child(5) { animation-delay: .48s; }

/* spotlight cards: light follows the pointer, border glows */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--s) 22%, transparent), transparent 55%); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), var(--s), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* buttons: magnetic + glowing edge on the primary ones */
.btn { will-change: transform; }
.btn-go, .btn.primary, .nav-actions .btn { position: relative; }
.btn-go { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; border-radius: 999px; font-weight: 700; font-size: 17px; color: #fff; background: var(--grad);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--p) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .25s var(--ease), box-shadow .25s; }
.btn-go::after { content: "→"; transition: transform .25s var(--ease); } .btn-go:hover { transform: translateY(-3px); box-shadow: 0 20px 56px color-mix(in srgb, var(--p) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.4); } .btn-go:hover::after { transform: translateX(5px); }

/* city in 3D */
.city { position: relative; max-width: 1240px; margin: 40px auto 80px; min-height: 560px; border-radius: 40px; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 10px; padding: 56px 56px 56px 64px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); box-shadow: 0 40px 120px rgba(0,0,0,.4); }
.city-bg { position: absolute; inset: -20%; z-index: 0; pointer-events: none; background:
  radial-gradient(40% 50% at 78% 45%, color-mix(in srgb, var(--p) 40%, transparent), transparent 70%),
  radial-gradient(30% 40% at 90% 90%, color-mix(in srgb, var(--s) 30%, transparent), transparent 70%),
  radial-gradient(30% 40% at 10% 0%, color-mix(in srgb, var(--t) 14%, transparent), transparent 70%); animation: cityDrift 14s ease-in-out infinite alternate; }
@keyframes cityDrift { to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
.city-copy { position: relative; z-index: 2; max-width: 520px; }
.city-copy .eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t); margin-bottom: 14px; }
.city-copy h2 { font: 800 clamp(34px, 4.4vw, 58px)/1.04 var(--display); letter-spacing: -.03em; margin-bottom: 18px; }
.city-copy p:not(.eyebrow) { color: var(--mute); font-size: 18px; line-height: 1.6; margin-bottom: 22px; }
.city-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.city-chips span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); font-weight: 600; font-size: 15px; animation: chipFloat 5s ease-in-out infinite; }
.city-chips span:nth-child(2) { animation-delay: -1.2s; } .city-chips span:nth-child(3) { animation-delay: -2.4s; } .city-chips span:nth-child(4) { animation-delay: -3.6s; }
@keyframes chipFloat { 50% { transform: translateY(-6px); } }
.city-rings { position: relative; z-index: 1; height: 460px; min-width: 0; }
.city-rings canvas { filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
@media (max-width: 900px) { .city { grid-template-columns: 1fr; padding: 28px 22px 34px; margin: 20px 14px 60px; border-radius: 30px; } .city-rings { order: -1; height: 280px; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .grad, .city-bg, .city-chips span, .reveal.in > *, .hero-copy > * { animation: none; } .reveal { filter: none; } }

/* interactive 3D radar */
.world { max-width: 1240px; margin: 70px auto 40px; padding: 0 20px; }
.world-head { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.world-head .eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t); margin-bottom: 12px; }
.world-head h2 { font: 800 clamp(34px, 5vw, 64px)/1.04 var(--display); letter-spacing: -.03em; margin-bottom: 14px; }
.world-head p:not(.eyebrow) { color: var(--mute); font-size: 18px; }
.world-stage { position: relative; height: min(76vh, 680px); min-height: 520px; border-radius: 40px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(60% 70% at 50% 55%, color-mix(in srgb, var(--p) 20%, transparent), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); box-shadow: 0 40px 120px rgba(0,0,0,.45); }
#worldCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#worldCanvas:active { cursor: grabbing; }
.world-ui { position: absolute; z-index: 2; }
.world-chips { top: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(10,10,32,.55); backdrop-filter: blur(14px); border: 1px solid var(--line); max-width: calc(100% - 24px); }
.world-chip { width: 46px; height: 46px; border-radius: 50%; font-size: 22px; line-height: 1; background: rgba(255,255,255,.06); border: 1.5px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s; cursor: pointer; }
.world-chip:hover { transform: translateY(-3px) scale(1.06); }
.world-chip.on { background: var(--grad); border-color: rgba(255,255,255,.55); box-shadow: 0 8px 24px color-mix(in srgb, var(--p) 55%, transparent); }
.world-range { left: 22px; bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 22px; background: rgba(10,10,32,.55); backdrop-filter: blur(14px); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--mute); }
.world-range input { width: 150px; accent-color: var(--s); } .world-range output { min-width: 48px; color: var(--ink); font-weight: 700; }
.world-count { left: 22px; top: 22px; margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(10,10,32,.55); backdrop-filter: blur(14px); border: 1px solid var(--line); color: var(--ink); }
.world-hint { left: 50%; bottom: 26px; transform: translateX(-50%); margin: 0; font-size: 12.5px; color: var(--mute); letter-spacing: .02em; white-space: nowrap; pointer-events: none; }
.world-card { right: 22px; bottom: 22px; width: min(320px, calc(100% - 44px)); padding: 18px 18px 16px; border-radius: 26px; background: rgba(12,10,36,.72); backdrop-filter: blur(18px); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.world-card.has { border-color: color-mix(in srgb, var(--s) 60%, transparent); }
.wc-hint { margin: 0; color: var(--mute); font-size: 14.5px; }
.wc-top { display: flex; align-items: center; gap: 12px; } .wc-top > div { flex: 1; } .wc-top b { display: block; font: 700 18px var(--display); } .wc-top small { color: var(--mute); }
.wc-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 20px var(--display); color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.wc-ints { font-size: 18px; letter-spacing: .1em; }
.wc-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); margin: 14px 0 6px; overflow: hidden; } .wc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); animation: wcGrow .9s var(--ease) both; }
@keyframes wcGrow { from { width: 0 !important; } }
.wc-pct { margin: 0 0 12px; font-size: 13.5px; color: var(--mute); } .wc-pct b { color: var(--ink); }
.wc-go { width: 100%; padding: 13px; border-radius: 999px; border: 0; font: 700 15.5px "Inter", sans-serif; color: #fff; background: var(--grad); cursor: pointer; box-shadow: 0 10px 28px color-mix(in srgb, var(--p) 50%, transparent); transition: transform .2s var(--ease); } .wc-go:hover { transform: translateY(-2px); }
.wc-go.ghost { background: rgba(255,255,255,.1); box-shadow: none; margin-top: 10px; }
.wc-say { margin: 4px 0 0; font-size: 14.5px; } .wc-chat { margin: 10px 0 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.09); font-size: 14.5px; animation: wowRise .5s var(--ease) both; }
@media (max-width: 760px) {
  .world { padding: 0 12px; margin-top: 40px; } .world-stage { height: 640px; border-radius: 30px; }
  .world-chips { top: 62px; gap: 5px; padding: 6px; } .world-chip { width: 38px; height: 38px; font-size: 18px; }
  .world-count { top: 14px; left: 14px; font-size: 12px; } .world-hint { display: none; }
  .world-range { left: 12px; right: 12px; bottom: auto; top: 118px; width: auto; justify-content: space-between; padding: 8px 14px; } .world-range input { flex: 1; width: auto; }
  .world-card { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 14px; }
}

/* extras: scroll progress, back-to-top, footer glow */
.sprog { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 60; pointer-events: none; box-shadow: 0 0 12px color-mix(in srgb, var(--p) 70%, transparent); }
.totop { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(14,20,34,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 20px; cursor: pointer; z-index: 55; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s; }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: color-mix(in srgb, var(--p) 40%, rgba(14,20,34,.8)); transform: translateY(-3px); }
.foot { position: relative; }
.foot::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--p) 70%, transparent), color-mix(in srgb, var(--s) 70%, transparent), transparent); }
@media (max-width: 760px) { .totop { right: 12px; bottom: 76px; width: 42px; height: 42px; } }

/* venn: every interest lands in a circle */
.only { position: absolute; top: 33%; width: 20%; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; align-content: flex-start; }
.only-you { left: 15%; justify-content: center; } .only-them { right: 15%; justify-content: center; }
.only span { font-size: clamp(16px, 3vw, 26px); line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); animation: pop .45s var(--ease) both; }
.only span.dim { opacity: .35; filter: grayscale(.6) drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.overlap { top: 40%; width: 20%; }
.overlap span { font-size: clamp(18px, 3.4vw, 28px); }

/* story: phone fits the viewport, first/last step stay in the sticky range */
.story-steps { padding: 10vh 0; }
.story-stage { box-sizing: border-box; padding-top: 70px; }
@media (max-height: 880px) { .story-stage .phone { zoom: .9; } }
@media (max-height: 780px) { .story-stage .phone { zoom: .8; } }
@media (max-height: 680px) { .story-stage .phone { zoom: .68; } }
