/* ==========================================================================
   PLIK: assets/css/landing-wow.css
   Strona główna platformy — wygląd „wow” z 08.10.2026.
   Wczytywany tylko na index.php, PO landing.css (nawigacja, stopka, reset
   zostają stamtąd). Klasy .pw-* — kolory i ciemne hero jak w Akademii
   (akademia.manawaflow.pl, css/academy-home.css).
   Ruch: landing-wow.js (wstęgi na canvasie, przechył 3D, wejścia).
   ========================================================================== */

.pw {
    --pw-dark:   #0F1219;
    --pw-night:  #0a0c12;
    --pw-plum:   #1a0a2e;
    --pw-navy:   #0d1f3c;
    --pw-violet: #b56bff;
    --pw-sky:    #4f8dff;
    --pw-lilac:  #c9a6ff;
    --pw-ease:   cubic-bezier(0.22, 1, 0.36, 1);
    background: #fff;
}
.pw main { display: block; }

/* --- nawigacja: logo Akademii + znacznik „Platforma” --- */
.pw-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    line-height: 0;
}
.pw-logo img {
    display: block;
    height: 46px;
    width: auto;
    max-width: min(200px, 46vw);
    object-fit: contain;
}
.pw-logo-tag {
    padding: 6px 10px;
    font-family: var(--font-head);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--purple);
    background: var(--purple-l);
    border-left: 2px solid var(--gold);
}
.pw-nav .btn-nav { background: var(--purple); }

/* ==========================================================================
   1. HERO — ciemne jak w Akademii, wstęgi „flow” na canvasie
   ========================================================================== */
.pw-hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 130px 5% 70px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--pw-night) 0%, var(--pw-plum) 42%, var(--pw-navy) 100%);
    color: #fff;
}
.pw-flow {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1.6s ease 0.2s;
}
.pw-flow.is-ready { opacity: 1; }

.pw-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}
.pw-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
    animation: pwOrb 16s ease-in-out infinite alternate;
}
.pw-orb-1 { width: min(620px, 80vw); height: min(620px, 80vw); background: rgba(106, 13, 173, 0.55); top: -18%; right: -10%; }
.pw-orb-2 { width: min(460px, 60vw); height: min(460px, 60vw); background: rgba(0, 71, 171, 0.45); bottom: -12%; left: -12%; animation-delay: -5s; }
.pw-orb-3 { width: min(300px, 44vw); height: min(300px, 44vw); background: rgba(253, 197, 0, 0.16); top: 38%; left: 40%; animation-delay: -9s; }
@keyframes pwOrb {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -24px) scale(1.08); }
}
.pw-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 55% 75% at 75% 45%, #000 10%, transparent 72%);
    mask-image: radial-gradient(ellipse 55% 75% at 75% 45%, #000 10%, transparent 72%);
}

.pw-hero-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 56px;
    align-items: center;
}

/* wejście elementów tekstu */
.pw-in {
    opacity: 0;
    transform: translateY(24px);
    animation: pwRise 0.9s var(--pw-ease) var(--d, 0s) forwards;
}
@keyframes pwRise { to { opacity: 1; transform: none; } }

.pw-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    font-family: var(--font-head);
}
.pw-brand-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.pw-brand-flow {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #fff;
}
.pw-brand-flow b { color: var(--gold); }

.pw-title {
    margin: 0 0 24px;
    font-family: var(--font-head);
    font-size: clamp(3rem, 6.4vw, 5.6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -1.5px;
    color: #fff;
}
.pw-line {
    display: block;
    overflow: hidden;
    padding: 0.04em 0 0.1em;
    margin-bottom: -0.1em;
}
.pw-line > span {
    display: inline-block;
    transform: translateY(110%) rotate(4deg);
    transform-origin: left bottom;
    animation: pwLine 1.1s var(--pw-ease) var(--d, 0s) forwards;
}
@keyframes pwLine { to { transform: none; } }
.pw-gold {
    background: linear-gradient(100deg, #fff 0%, var(--gold) 28%, #ffe566 46%, #fff6c9 52%, var(--gold) 62%, #ffb800 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
    animation:
        pwLine 1.1s var(--pw-ease) var(--d, 0s) forwards,
        pwShimmer 6s ease-in-out 1.6s infinite;
}
@keyframes pwShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.pw-lead {
    max-width: 520px;
    margin: 0 0 34px;
    font-size: 1.14rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

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

.pw-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    overflow: hidden;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.25s var(--pw-ease);
    will-change: transform;
}
.pw-btn i { font-style: normal; }
.pw-btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--pw-dark);
    box-shadow: 0 14px 40px -12px rgba(253, 197, 0, 0.6);
}
.pw-btn-gold::after {               /* przebłysk światła */
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: skewX(-20deg);
    animation: pwSheen 4.5s ease-in-out 2s infinite;
}
@keyframes pwSheen {
    0%, 70% { left: -60%; }
    100%    { left: 130%; }
}
.pw-btn-gold:hover {
    background: #ffd633;
    box-shadow: 0 20px 50px -10px rgba(253, 197, 0, 0.75);
}
.pw-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.pw-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.pw-note {
    margin: 24px 0 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}
.pw-note a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 700;
    border-bottom: 1px solid rgba(253, 197, 0, 0.35);
}
.pw-note a i { font-size: 0.7rem; transition: transform 0.25s ease; }
.pw-note a:hover { border-color: var(--gold); }
.pw-note a:hover i { transform: translateX(4px); }

.pw-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 34px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pw-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--pw-ease);
}
.pw-chips li i { color: var(--gold); }
.pw-chips li:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(253, 197, 0, 0.5); transform: translateY(-3px); }

/* --- scena 3D z podglądem panelu --- */
.pw-stage {
    position: relative;
    height: 540px;
    perspective: 1400px;
    perspective-origin: 50% 40%;
}
.pw-stage-3d {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -16deg));
    transition: transform 0.9s var(--pw-ease);
}
.pw-halo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(181, 107, 255, 0.45) 0%, rgba(79, 141, 255, 0.18) 38%, transparent 66%);
    filter: blur(20px);
    transform: translateZ(-160px);
    animation: pwBreath 6s ease-in-out infinite;
}
@keyframes pwBreath {
    0%, 100% { opacity: 0.75; transform: translateZ(-160px) scale(1); }
    50%      { opacity: 1;    transform: translateZ(-160px) scale(1.08); }
}

.pw-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transform-style: preserve-3d;
}
.pw-orbit-1 {
    width: 600px;
    height: 600px;
    margin: -300px 0 0 -300px;
    transform: rotateX(72deg) rotateZ(0deg);
    animation: pwSpin1 22s linear infinite;
    border-color: rgba(253, 197, 0, 0.28);
}
.pw-orbit-2 {
    width: 470px;
    height: 470px;
    margin: -235px 0 0 -235px;
    transform: rotateX(64deg) rotateY(-24deg);
    animation: pwSpin2 16s linear infinite;
    border-color: rgba(181, 107, 255, 0.35);
    border-style: dashed;
}
.pw-orbit i {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px 4px rgba(253, 197, 0, 0.75), 0 0 40px 10px rgba(253, 197, 0, 0.3);
}
.pw-orbit-2 i { background: #e0c6ff; box-shadow: 0 0 14px 4px rgba(181, 107, 255, 0.85), 0 0 40px 10px rgba(181, 107, 255, 0.35); }
@keyframes pwSpin1 { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes pwSpin2 { to { transform: rotateX(64deg) rotateY(-24deg) rotateZ(-360deg); } }

.pw-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 400px;
    margin: -200px 0 0 -200px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(246, 240, 255, 0.96));
    color: var(--pw-dark);
    box-shadow:
        0 60px 120px -40px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        0 0 80px -20px rgba(181, 107, 255, 0.55);
    transform: translateZ(0);
    opacity: 0;
    animation: pwPanelIn 1.4s var(--pw-ease) 0.35s forwards;
}
@keyframes pwPanelIn {
    from { opacity: 0; transform: translateZ(-420px) translateY(60px) rotateX(18deg); }
    to   { opacity: 1; transform: translateZ(0); }
}
.pw-panel::before {                    /* odblask szkła */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 45%, transparent 60%);
    background-size: 250% 100%;
    background-position: 120% 0;
    animation: pwGlass 7s ease-in-out 2.2s infinite;
    z-index: 3;
}
@keyframes pwGlass {
    0%, 60% { background-position: 120% 0; }
    100%    { background-position: -120% 0; }
}
.pw-panel-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    background: var(--pw-dark);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
}
.pw-panel-dots { display: inline-flex; gap: 5px; }
.pw-panel-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.pw-panel-dots i:first-child { background: var(--gold); }
.pw-panel-url {
    flex: 1;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--font-head);
    letter-spacing: 0.3px;
}
.pw-panel-url i { color: #6fe0a0; margin-right: 4px; font-size: 0.6rem; }
.pw-panel-body { padding: 20px 22px 22px; }
.pw-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pw-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple), var(--cobalt));
    color: #fff;
    font-size: 0.9rem;
}
.pw-panel-hello { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.pw-panel-hello small { font-size: 0.7rem; color: var(--muted); }
.pw-panel-hello strong { font-family: var(--font-head); font-size: 1rem; }
.pw-bell { position: relative; color: var(--purple); font-size: 1rem; }
.pw-bell b {
    position: absolute;
    top: -3px;
    right: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 2px #fff;
    animation: pwPing 2.4s ease-out 2.4s infinite;
}
@keyframes pwPing {
    0%   { box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(253, 197, 0, 0.7); }
    80%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 10px rgba(253, 197, 0, 0); }
}

.pw-panel-main { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 18px; align-items: center; }
.pw-ring { position: relative; width: 118px; height: 118px; }
.pw-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pw-ring circle { fill: none; stroke-width: 10; }
.pw-ring-track { stroke: rgba(106, 13, 173, 0.1); }
.pw-ring-fill {
    stroke: url(#pwRingGrad);
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 2s var(--pw-ease) 1.1s;
}
.pw-stage.is-on .pw-ring-fill { stroke-dashoffset: 104.55; }   /* 68% */
.pw-ring-val {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--purple);
}
.pw-ring-val > span { display: flex; align-items: baseline; gap: 1px; }
.pw-ring-val b { font-size: 1.9rem; line-height: 1; color: var(--pw-dark); font-variant-numeric: tabular-nums; }
.pw-ring-val small { margin-top: 2px; font-size: 0.58rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

.pw-mods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pw-mods li { position: relative; display: flex; flex-direction: column; gap: 5px; }
.pw-mods li > span { font-family: var(--font-head); font-size: 0.74rem; font-weight: 600; }
.pw-mods li > span em { display: block; font-style: normal; font-size: 0.58rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.pw-mods li > i {
    position: relative;
    display: block;
    height: 6px;
    background: rgba(106, 13, 173, 0.1);
    overflow: hidden;
}
.pw-mods li > i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, var(--purple), var(--cobalt), var(--gold));
    background-size: 300px 100%;
    transition: width 1.6s var(--pw-ease);
}
.pw-stage.is-on .pw-mods li > i::after { width: var(--w); }
.pw-stage.is-on .pw-mods li:nth-child(1) > i::after { transition-delay: 1.3s; }
.pw-stage.is-on .pw-mods li:nth-child(2) > i::after { transition-delay: 1.5s; }
.pw-stage.is-on .pw-mods li:nth-child(3) > i::after { transition-delay: 1.7s; }
.pw-mod-ok {
    position: absolute;
    top: 2px;
    right: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1fbf75;
    color: #fff;
    font-size: 0.55rem;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) 2.8s;
}
.pw-stage.is-on .pw-mod-ok { transform: scale(1); }

.pw-panel-live {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 14px;
    background: var(--pw-dark);
    color: #fff;
}
.pw-live-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4d6d;
    animation: pwLive 1.6s ease-out infinite;
}
@keyframes pwLive {
    0%   { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.75); }
    100% { box-shadow: 0 0 0 12px rgba(255, 77, 109, 0); }
}
.pw-live-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.pw-live-txt strong { font-family: var(--font-head); font-size: 0.8rem; }
.pw-live-txt small { font-size: 0.66rem; color: rgba(255, 255, 255, 0.6); }
.pw-live-btn {
    padding: 7px 12px;
    background: var(--gold);
    color: var(--pw-dark);
    font-family: var(--font-head);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* pływające karty — głębia przez translateZ */
.pw-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px 13px 13px;
    background: rgba(15, 18, 25, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.9);
    color: #fff;
    opacity: 0;
    white-space: nowrap;
}
.pw-float > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.pw-float strong { font-family: var(--font-head); font-size: 0.8rem; }
.pw-float small { font-size: 0.68rem; color: rgba(255, 255, 255, 0.6); }
.pw-float-ico {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.pw-ico-gold   { background: radial-gradient(circle, #ffd84d, #b8860b); color: #fff; box-shadow: 0 0 22px -2px rgba(253, 197, 0, 0.7); }
.pw-ico-blue   { background: rgba(79, 141, 255, 0.2); color: #8db6ff; }
.pw-ico-purple { background: rgba(181, 107, 255, 0.22); color: #d9b8ff; }

.pw-float-cert { top: 6%;    right: -2%; --z: 120px; animation: pwPop 0.9s var(--pw-ease) 1.6s forwards, pwBob 7s ease-in-out 2.5s infinite; }
.pw-float-book { bottom: 9%; left: -4%;  --z: 160px; animation: pwPop 0.9s var(--pw-ease) 1.9s forwards, pwBob 8s ease-in-out 2.8s infinite; }
.pw-float-done { top: 20%;   left: -8%;  --z: 70px;  animation: pwPop 0.9s var(--pw-ease) 2.2s forwards, pwBob 9s ease-in-out 3.1s infinite; }
@keyframes pwPop {
    from { opacity: 0; transform: translateZ(var(--z)) translateY(24px) scale(0.85); }
    to   { opacity: 1; transform: translateZ(var(--z)) translateY(0) scale(1); }
}
@keyframes pwBob {
    0%, 100% { transform: translateZ(var(--z)) translateY(0); }
    50%      { transform: translateZ(var(--z)) translateY(-12px); }
}

.pw-scroll {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: max-content;
    margin: 46px auto 0;
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    opacity: 0;
    animation: pwRise 0.9s var(--pw-ease) 1.4s forwards;
}
.pw-scroll i { color: var(--gold); animation: pwNudge 1.8s ease-in-out infinite; }
.pw-scroll:hover { color: #fff; }
@keyframes pwNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ==========================================================================
   2. PASEK — przesuwające się hasła
   ========================================================================== */
.pw-marquee {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    background: linear-gradient(90deg, var(--purple) 0%, #3a0f7a 45%, var(--cobalt) 100%);
    border-top: 1px solid rgba(253, 197, 0, 0.45);
    border-bottom: 1px solid rgba(253, 197, 0, 0.45);
}
.pw-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: pwMarquee 38s linear infinite;
}
.pw-marquee:hover .pw-marquee-track { animation-play-state: paused; }
.pw-marquee span {
    padding: 0 26px;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
}
.pw-marquee span:nth-of-type(even) {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
}
.pw-marquee i { font-style: normal; color: var(--gold); font-size: 1rem; }
@keyframes pwMarquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   3. SEKCJE — wspólne
   ========================================================================== */
.pw-section { position: relative; padding: 110px 5%; }
.pw-section-inner { position: relative; max-width: 1200px; margin: 0 auto; }

.pw-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.pw-head h2 {
    margin: 0 0 14px;
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--pw-dark);
}
.pw-head p { margin: 0; font-size: 1.05rem; color: var(--muted); }
.pw-head--light h2 { color: #fff; }
.pw-head--light p { color: rgba(255, 255, 255, 0.75); }

.pw-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--purple);
}
.pw-kicker::before,
.pw-kicker::after {
    content: "";
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--cobalt));
}
.pw-kicker--light { color: var(--gold); }
.pw-kicker--light::before,
.pw-kicker--light::after { background: linear-gradient(90deg, var(--gold), rgba(253, 197, 0, 0.25)); }

.pw-grad {
    background: linear-gradient(90deg, var(--purple), var(--cobalt));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* wejście przy przewijaniu (klasę .pw-anim dodaje skrypt) */
.pw-anim:not(.is-in) { opacity: 0; transform: translateY(34px); }
.pw-anim.is-in {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.8s ease calc(var(--i, 0) * 0.12s),
        transform 0.9s var(--pw-ease) calc(var(--i, 0) * 0.12s);
}

/* ==========================================================================
   4. CO W ŚRODKU — karty ze światłem za kursorem
   ========================================================================== */
.pw-inside {
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(106, 13, 173, 0.06), transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(0, 71, 171, 0.06), transparent 60%),
        #f8faff;
}
.pw-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.pw-card {
    --p: var(--purple);
    --p-soft: rgba(106, 13, 173, 0.08);
    --mx: 50%;
    --my: 0%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 28px 28px;
    background: #fff;
    border: 1px solid rgba(15, 18, 25, 0.08);
    box-shadow: 0 24px 50px -36px rgba(15, 18, 25, 0.45);
    overflow: hidden;
    isolation: isolate;
}
.pw-card--blue   { --p: var(--cobalt); --p-soft: rgba(0, 71, 171, 0.08); }
.pw-card--gold   { --p: #b8860b;       --p-soft: rgba(253, 197, 0, 0.16); }
.pw-card--violet { --p: #7b2fd0;       --p-soft: rgba(123, 47, 208, 0.08); }
.pw-card::before {                      /* górny pasek */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--p);
    transform: scaleX(0.25);
    transform-origin: left;
    transition: transform 0.6s var(--pw-ease);
}
.pw-card::after {                       /* światło za kursorem */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(360px circle at var(--mx) var(--my), var(--p-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.pw-card { transition: transform 0.5s var(--pw-ease), box-shadow 0.5s ease, border-color 0.4s ease; }
.pw-card:hover {
    transform: translateY(-10px);
    border-color: rgba(15, 18, 25, 0.12);
    box-shadow: 0 40px 70px -36px rgba(15, 18, 25, 0.5);
}
.pw-card:hover::before { transform: scaleX(1); }
.pw-card:hover::after { opacity: 1; }
.pw-card-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--p);
    opacity: 0.1;
    transition: opacity 0.4s ease, transform 0.5s var(--pw-ease);
}
.pw-card:hover .pw-card-num { opacity: 0.28; transform: translateY(-4px); }
.pw-card-ico {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: var(--p-soft);
    color: var(--p);
    font-size: 1.35rem;
    transition: background 0.4s ease, color 0.4s ease, transform 0.5s var(--pw-ease);
}
.pw-card:hover .pw-card-ico { background: var(--p); color: #fff; transform: rotate(-6deg) scale(1.06); }
.pw-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pw-dark);
}
.pw-card p { margin: 0 0 22px; font-size: 0.93rem; line-height: 1.65; color: #4a5162; }

/* mini-ilustracje na dole kart */
.pw-card-viz {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px dashed rgba(15, 18, 25, 0.12);
    min-height: 58px;
}
.pw-viz-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}
.pw-viz-label b { color: var(--p); }
.pw-viz-bar { display: block; height: 7px; background: var(--p-soft); overflow: hidden; }
.pw-viz-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--purple), var(--cobalt));
    transition: width 1.6s var(--pw-ease) 0.5s;
}
.pw-card.is-in .pw-viz-bar i { width: 72%; }

.pw-viz-live { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pw-viz-onair {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 77, 109, 0.1);
    color: #d6334f;
    font-family: var(--font-head);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.pw-viz-onair i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; animation: pwLive 1.6s ease-out infinite; }
.pw-viz-date { font-size: 0.76rem; color: var(--muted); }
.pw-viz-date i { color: var(--p); margin-right: 4px; }

.pw-viz-cert { display: flex; align-items: center; gap: 12px; }
.pw-viz-seal {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd84d, #b8860b);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 18px -8px rgba(184, 134, 11, 0.8);
}
.pw-viz-seal::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: pwSeal 3.5s ease-in-out infinite;
}
@keyframes pwSeal { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.pw-viz-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pw-viz-lines i { display: block; height: 5px; background: rgba(15, 18, 25, 0.08); }
.pw-viz-lines i:last-child { width: 60%; }
.pw-viz-pdf {
    padding: 5px 8px;
    border: 1px solid rgba(184, 134, 11, 0.45);
    color: #8a6400;
    font-family: var(--font-head);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pw-viz-files { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-viz-files span {
    padding: 7px 11px;
    background: var(--p-soft);
    color: var(--p);
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.4s var(--pw-ease);
}
.pw-card:hover .pw-viz-files span:nth-child(1) { transform: translateY(-4px) rotate(-3deg); }
.pw-card:hover .pw-viz-files span:nth-child(2) { transform: translateY(-6px); transition-delay: 0.05s; }
.pw-card:hover .pw-viz-files span:nth-child(3) { transform: translateY(-4px) rotate(3deg); transition-delay: 0.1s; }

/* ==========================================================================
   5. JAK TO DZIAŁA — ciemna sekcja, ścieżka rysowana przy przewijaniu
   ========================================================================== */
.pw-path {
    overflow: hidden;
    isolation: isolate;
    background: var(--pw-dark);
    color: #fff;
}
.pw-path-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 15%, rgba(106, 13, 173, 0.55), transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(0, 71, 171, 0.5), transparent 45%);
}
.pw-path-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 10%, transparent 75%);
}

.pw-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding-top: 10px;
}
.pw-steps-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 120px;
    overflow: visible;
    pointer-events: none;
}
.pw-steps-line path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.pw-steps-track { stroke: rgba(255, 255, 255, 0.12); stroke-dasharray: 4 8; }
.pw-steps-draw {
    stroke: url(#pwStepGrad);
    stroke-width: 3;
    filter: drop-shadow(0 0 6px rgba(181, 107, 255, 0.8));
}

.pw-step {
    position: relative;
    z-index: 1;
    padding: 0 26px 32px;
    text-align: center;
}
.pw-step-num {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 22px auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pw-dark);
    border: 2px solid rgba(255, 255, 255, 0.18);
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.6, 0.64, 1);
}
.pw-step.is-lit .pw-step-num {
    color: var(--gold);
    border-color: var(--gold);
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(253, 197, 0, 0.1), 0 0 40px 4px rgba(253, 197, 0, 0.35);
}
.pw-step-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--pw-lilac);
    font-size: 1.05rem;
    transition: background 0.4s ease, color 0.4s ease;
}
.pw-step.is-lit .pw-step-ico { background: rgba(253, 197, 0, 0.12); color: var(--gold); border-color: rgba(253, 197, 0, 0.4); }
.pw-step h3 {
    margin: 0 0 10px;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}
.pw-step p { max-width: 280px; margin: 0 auto; font-size: 0.95rem; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   6. CTA — karta z wirującą obwódką
   ========================================================================== */
.pw-cta {
    padding: 110px 5%;
    background: #f8faff;
}
.pw-cta-card {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 2px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 50px 90px -50px rgba(106, 13, 173, 0.55);
}
.pw-cta-card::before {                  /* wirująca obwódka */
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 160%;
    aspect-ratio: 1;
    z-index: -2;
    background: conic-gradient(from 0deg, var(--purple), var(--cobalt), var(--gold), var(--purple));
    transform: translate(-50%, -50%) rotate(0deg);
    animation: pwConic 6s linear infinite;
}
@keyframes pwConic { to { transform: translate(-50%, -50%) rotate(360deg); } }
.pw-cta-inner {
    position: relative;
    padding: 64px 48px;
    text-align: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 71, 171, 0.45), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(106, 13, 173, 0.5), transparent 55%),
        var(--pw-dark);
    color: #fff;
}
.pw-cta-glow {
    position: absolute;
    left: 50%;
    top: -40%;
    z-index: 1;
    width: 420px;
    height: 420px;
    margin-left: -210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 197, 0, 0.22), transparent 65%);
    pointer-events: none;
    animation: pwBreath2 6s ease-in-out infinite;
}
@keyframes pwBreath2 { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
.pw-cta-inner .pw-kicker { color: var(--gold); }
.pw-cta-inner .pw-kicker::before,
.pw-cta-inner .pw-kicker::after { background: linear-gradient(90deg, var(--gold), rgba(253, 197, 0, 0.25)); }
.pw-cta-inner h2 {
    margin: 0 0 12px;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}
.pw-cta-inner p { margin: 0 0 32px; font-size: 1.05rem; color: rgba(255, 255, 255, 0.75); }
.pw-cta-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pw-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.pw-cta-link i { font-size: 0.72rem; color: var(--gold); transition: transform 0.25s ease; }
.pw-cta-link:hover { color: #fff; border-color: var(--gold); }
.pw-cta-link:hover i { transform: translateX(4px); }

/* ==========================================================================
   RWD
   ========================================================================== */
@media (max-height: 1080px) and (min-width: 993px) {
    .pw-hero { min-height: auto; padding-top: 120px; padding-bottom: 50px; }
    .pw-title { font-size: clamp(3rem, 5.6vw, 5rem); }
    .pw-stage { height: 500px; }
}
@media (max-width: 1200px) {
    .pw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pw-float-done { left: -2%; }
    .pw-float-book { left: 0; }
}
@media (max-width: 1024px) {
    .pw-hero { min-height: auto; padding-top: 120px; }
    .pw-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .pw-hero-text { text-align: center; }
    .pw-brand, .pw-actions, .pw-chips { justify-content: center; }
    .pw-lead { margin-left: auto; margin-right: auto; }
    .pw-stage { height: 520px; max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 768px) {
    .pw-logo-tag { display: none; }
    .pw-section, .pw-cta { padding: 80px 20px; }
    .pw-hero { padding: 110px 20px 50px; }
    .pw-title { letter-spacing: -1px; }
    .pw-actions > * { flex: 1 1 100%; }
    .pw-stage { height: 470px; }
    .pw-stage-3d { transform: rotateX(6deg) rotateY(-8deg) scale(0.86); }
    .pw-orbit-1 { width: 440px; height: 440px; margin: -220px 0 0 -220px; }
    .pw-orbit-2 { width: 360px; height: 360px; margin: -180px 0 0 -180px; }
    .pw-float-cert { top: 0; right: 0; }
    .pw-float-done { display: none; }
    .pw-float-book { bottom: 6%; left: 0; }
    .pw-marquee span { font-size: 0.9rem; padding: 0 18px; }
    .pw-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .pw-steps-line { display: none; }
    .pw-step { padding-bottom: 20px; }
    .pw-step.is-lit .pw-step-num { transform: none; }
    .pw-cta-inner { padding: 48px 22px; }
    .pw-cta-actions .pw-btn { width: 100%; }
}
@media (max-width: 600px) {
    .pw-cards { grid-template-columns: minmax(0, 1fr); }
    .pw-stage { height: 360px; }
    .pw-stage-3d { transform: rotateX(4deg) rotateY(-6deg) scale(0.74); }
    .pw-float { padding: 10px 12px 10px 10px; }
}
@media (max-width: 400px) {
    .pw-stage { height: 320px; }
    .pw-stage-3d { transform: scale(0.66); }
}

@media (prefers-reduced-motion: reduce) {
    .pw-in, .pw-line > span, .pw-gold, .pw-panel, .pw-float, .pw-scroll { animation: none !important; opacity: 1; transform: none; }
    .pw-float { transform: translateZ(var(--z)); }
    .pw-orb, .pw-orbit, .pw-halo, .pw-btn-gold::after, .pw-panel::before, .pw-marquee-track,
    .pw-cta-card::before, .pw-cta-glow, .pw-viz-seal::after, .pw-scroll i { animation: none !important; }
    .pw-anim:not(.is-in) { opacity: 1; transform: none; }
    .pw-flow { transition: none; }
}
