/* =============================================================
   Veyro - strona produktu (Centrala, adres główny, niezalogowani).
   Motyw: kokpit auta nocą - jezdnia w perspektywie, obrotomierz,
   taksometr, telemetria, kontrolki modułów. Animacje wyłączone
   przy prefers-reduced-motion.
   ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&family=Inter:wght@600;800;900&display=swap');

:root {
    --ink: #070b16;
    --ink-2: #0a1020;
    --surface: #0e1526;
    --surface-2: #142038;
    --line: #1e2a44;
    --accent: #1ec8ff;
    --accent-deep: #0a5ce6;
    --accent-soft: #82ebff;
    --text: #eaf2ff;
    --text-soft: #a6b4cc;
    --text-faint: #5f6f8a;
    --ok: #3ef0a1;
    --amber: #ffb547;
    --radius: 18px;
    --wrap: 1180px;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body.vl {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.vl a { color: inherit; }
.vl img { display: inline-block; vertical-align: middle; }

.vl-grad {
    background: linear-gradient(100deg, var(--accent-deep) 0%, var(--accent) 45%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vl-mono { font-family: var(--mono); }
.vl-nowrap { white-space: nowrap; }

.vl-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(62, 240, 161, .6);
    animation: vl-pulse 2s infinite;
    flex: none;
}

@keyframes vl-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(62, 240, 161, .55); }
    70%  { box-shadow: 0 0 0 9px rgba(62, 240, 161, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 240, 161, 0); }
}

/* ---------- Przyciski ---------- */
.vl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .01em;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.vl-btn:hover { transform: translateY(-2px); }
.vl-btn:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.vl-btn--primary {
    background: linear-gradient(100deg, var(--accent-deep), var(--accent));
    color: #fff;
    box-shadow: 0 10px 30px -8px rgba(30, 200, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.vl-btn--primary:hover { box-shadow: 0 14px 40px -8px rgba(30, 200, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.vl-btn--ghost {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(130, 235, 255, .25);
    color: var(--text);
    backdrop-filter: blur(6px);
}
.vl-btn--ghost:hover { border-color: var(--accent); background: rgba(30, 200, 255, .08); }
.vl-btn--sm { padding: 9px 18px; font-size: 14px; }
.vl-btn--lg { padding: 18px 34px; font-size: 17px; }

/* ---------- Nawigacja ---------- */
.vl-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 14px max(16px, calc((100% - var(--wrap)) / 2));
    background: rgba(7, 11, 22, .72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(30, 42, 68, .7);
}
.vl-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.vl-brand__word { font-weight: 800; font-size: 20px; letter-spacing: .32em; }
.vl-nav__links { display: flex; gap: 26px; margin-left: auto; }
.vl-nav__links a {
    position: relative;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s;
}
.vl-nav__links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .25s ease;
    box-shadow: 0 0 10px var(--accent);
}
.vl-nav__links a:hover { color: var(--text); }
.vl-nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Hero: zapłon auta Veyro ----------
   Zdjęcie auta zgaszonego + warstwy samego światła (tools/veyro-hero.py)
   dodawane trybem plus-lighter: off + warstwy = auto z włączonymi
   światłami. Oś czasu (s): 0 kadr z ciemności, 0.95 LED-y od zewnątrz
   do znaczka (skokowo jak segmenty), 2.05 znaczek V + rozbłysk soczewek,
   2.15 odblaski na karoserii, 2.2 światło biegnie po mokrej jezdni,
   2.4 deszcz w świetle, 2.9 kogut TAXI, 3.2+ treść. Stan końcowy =
   style bazowe (bez animacji wszystko jest od razu zapalone). */
.vl-hero {
    position: relative;
    overflow: hidden;
    height: calc(100vh - 64px);
    height: calc(100svh - 64px);
    min-height: 560px;
    max-height: 1100px;
    container-type: size;
    background: #03050b;
}
.vl-shot {
    position: absolute;
    left: 50%;
    top: 54%;
    width: max(100cqw, 150cqh);
    aspect-ratio: 3 / 2;
    isolation: isolate;
    transform: translate(-50%, -50%) translate(var(--px, 0px), var(--py, 0px)) scale(1.03);
    transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.vl-shot__base,
.vl-shot__lights,
.vl-rain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.vl-shot__base { display: block; object-fit: cover; animation: vc-scene 1.8s ease-out both; }
@keyframes vc-scene { from { opacity: 0; filter: brightness(.25) saturate(.6); } to { opacity: 1; filter: none; } }

.vl-light-layer {
    position: absolute;
    display: block;
    max-width: none;
    mix-blend-mode: plus-lighter;
    pointer-events: none;
}
@supports not (mix-blend-mode: plus-lighter) {
    .vl-light-layer, .vl-flare, .vl-bloom, .vl-rain { mix-blend-mode: screen; }
}

/* LED-y: odsłanianie skokowe od zewnątrz do znaczka, potem impuls jasności. */
.vl-light-layer--left,
.vl-light-layer--right {
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.vl-light-layer--left {
    -webkit-mask-image: linear-gradient(to right, #000 49%, transparent 51%);
    mask-image: linear-gradient(to right, #000 49%, transparent 51%);
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    animation: vc-led-l 1.1s .95s steps(16, end) both, vc-surge .7s 2.05s ease-out both;
}
.vl-light-layer--right {
    -webkit-mask-image: linear-gradient(to left, #000 49%, transparent 51%);
    mask-image: linear-gradient(to left, #000 49%, transparent 51%);
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
    animation: vc-led-r 1.1s .95s steps(16, end) both, vc-surge .7s 2.05s ease-out both;
}
@keyframes vc-led-l { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes vc-led-r { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
@keyframes vc-surge { 30% { filter: brightness(1.9); } }

.vl-light-layer--emblem { animation: vc-emblem 1.3s 2.05s both; }
@keyframes vc-emblem {
    0%   { opacity: 0; }
    18%  { opacity: 1; filter: brightness(3.2); }
    100% { opacity: 1; filter: none; }
}
.vl-light-layer--body { animation: vc-fade 1.1s 2.15s ease-out both; }
.vl-light-layer--road {
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 60%);
    mask-image: linear-gradient(to bottom, #000 40%, transparent 60%);
    -webkit-mask-size: 100% 250%;
    mask-size: 100% 250%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    animation: vc-road 1.5s 2.2s cubic-bezier(.3, .6, .2, 1) both;
}
@keyframes vc-road {
    from { opacity: .2; -webkit-mask-position: 0 100%; mask-position: 0 100%; }
    to   { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; }
}
.vl-light-layer--taxi { animation: vc-neon 1.2s 2.9s linear both; }
@keyframes vc-neon {
    0% { opacity: 0; } 8% { opacity: .9; } 12% { opacity: .1; } 20% { opacity: 1; }
    24% { opacity: .25; } 38% { opacity: 1; } 42% { opacity: .55; } 56% { opacity: 1; } 100% { opacity: 1; }
}
@keyframes vc-fade { from { opacity: 0; } }

/* Rozbłysk soczewek (anamorficzna smuga) i znaczka */
.vl-flare {
    position: absolute;
    top: 51.4%;
    width: 64%;
    height: .5%;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, rgba(30, 200, 255, .35) 30%, rgba(160, 235, 255, .9) 47%, #fff 50%, rgba(160, 235, 255, .9) 53%, rgba(30, 200, 255, .35) 70%, transparent);
    mix-blend-mode: plus-lighter;
    opacity: .28;
    transform: translate(-50%, -50%);
    animation: vc-flare 2s 2.05s cubic-bezier(.2, .8, .2, 1) both;
}
.vl-flare::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(120, 220, 255, .35) 30%, transparent 70%);
    transform: translate(-50%, -50%);
}
.vl-flare--l { left: 28.3%; }
.vl-flare--r { left: 71.6%; }
@keyframes vc-flare {
    0%   { opacity: 0; transform: translate(-50%, -50%) scaleX(.1); }
    14%  { opacity: 1; transform: translate(-50%, -50%) scaleX(1.25); }
    100% { opacity: .28; transform: translate(-50%, -50%) scaleX(1); }
}
.vl-bloom {
    position: absolute;
    left: 49.8%;
    top: 54.9%;
    width: 16%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(30, 200, 255, .45) 25%, transparent 65%);
    mix-blend-mode: plus-lighter;
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: vc-bloom 1.5s 2.02s ease-out both;
}
@keyframes vc-bloom {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
    16%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}
.vl-rain { mix-blend-mode: plus-lighter; opacity: .9; animation: vc-fade 2s 2.4s both; pointer-events: none; }

/* Przyciemnienie pod tekst */
.vl-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(3, 5, 11, .88) 0%, rgba(3, 5, 11, .35) 17%, transparent 30%, transparent 60%, rgba(3, 5, 11, .5) 76%, rgba(3, 5, 11, .92) 94%, #03050b 100%),
        radial-gradient(ellipse 80% 90% at 50% 50%, transparent 60%, rgba(3, 5, 11, .55) 100%);
}

.vl-hero__top,
.vl-hero__bottom {
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 2;
    text-align: center;
}
.vl-hero__top { top: 22px; }
.vl-hero__bottom { bottom: 24px; }
.vl-hero .vl-chip { margin-bottom: 14px; animation: vc-up .8s 3.2s both; }
.vl-hero .vl-h1 {
    font-size: clamp(30px, 3.7vw, 54px);
    text-shadow: 0 4px 40px rgba(0, 0, 0, .7);
    animation: vc-up .9s 3.3s cubic-bezier(.2, .8, .2, 1) both;
}
.vl-hero__sub {
    margin: 8px auto 0;
    max-width: 640px;
    font-size: clamp(14px, 1.2vw, 16px);
    color: #c5d2e8;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .95);
    animation: vc-up .9s 3.42s both;
}
.vl-hero .vl-cta { justify-content: center; animation: vc-up .9s 3.55s both; }
@keyframes vc-up { from { opacity: 0; transform: translateY(18px); } }

.vl-boot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.vl-boot li { display: inline-flex; align-items: center; gap: 8px; animation: vc-fade .4s both; }
.vl-boot li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.vl-boot li:nth-child(1) { animation-delay: .5s; }
.vl-boot li:nth-child(2) { animation-delay: 1.3s; }
.vl-boot li:nth-child(3) { animation-delay: 2.3s; }
.vl-boot li:nth-child(4) { animation-delay: 3.1s; color: #b9f7da; }
.vl-boot li:nth-child(4)::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* Telefon: tekst nad i pod zdjęciem, kadr przycięty do auta */
@media (max-width: 760px) {
    .vl-hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        max-height: none;
        container-type: normal;
        padding: 20px 16px 34px;
    }
    .vl-hero__shade { display: none; }
    .vl-hero__top, .vl-hero__bottom { position: static; order: 1; }
    .vl-shot {
        position: relative;
        left: auto;
        top: auto;
        order: 2;
        align-self: center;
        flex: none;
        width: 168vw;
        margin: 4px 0 -6px;
        transform: none;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
    }
    .vl-hero__bottom { order: 3; }
}

/* ---------- Kokpit kursu: widok z fotela kierowcy ----------
   Kadr 3:2 (tools/veyro-cockpit.py): pod wnętrzem z wyciętą szybą
   przewija się droga (dwie kopie powiększane od punktu zbiegu, tempo
   zależne od prędkości), deszcz i wycieraczki (canvas), HUD na szybie.
   Na wnętrzu: prędkość na zegarach i telefon z aplikacją Veyro.
   Położenia w % kadru; --u = 1 piksel kadru 1536 px. */
.vl-cockpit {
    position: relative;
    padding: 110px 0 90px;
    background: radial-gradient(ellipse 70% 40% at 50% 55%, rgba(10, 92, 230, .14), transparent 70%), var(--ink);
}
.vl-cockpit__head { max-width: 760px; margin: 0 auto 40px; padding: 0 16px; text-align: center; }
.vl-cockpit__head .vl-sub { margin: 0 auto; }
.vl-cockpit .vl-hud { margin: 34px auto 0; }

.vk-view {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    max-height: 88vh;
    container-type: size;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-composite: intersect;
}
.vk-scene {
    --u: calc(100cqw / 1536);
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100cqw, 150cqh);
    aspect-ratio: 3 / 2;
    container-type: inline-size;
    overflow: hidden;
    transform: translate(calc(-1 * var(--fx, 50%)), -50%) translate(var(--shx, 0px), var(--shy, 0px));
    background: #04070e;
}

/* Droga za szybą */
.vk-road { position: absolute; inset: 0; overflow: hidden; }
.vk-road__img {
    position: absolute;
    left: -1.57%;
    top: -23.05%;
    width: 106%;
    height: 106%;
    max-width: none;
    display: block;
}
.vk-road__fly {
    transform-origin: 50% 58.6%;
    opacity: 0;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 58.6%, transparent 10%, #000 42%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 58.6%, transparent 10%, #000 42%);
    animation: vk-fly 1.8s linear infinite;
    will-change: transform, opacity;
}
.vk-road__fly--b { animation-delay: -.9s; }
@keyframes vk-fly {
    0%   { transform: scale(1); opacity: 0; }
    25%  { opacity: .9; }
    75%  { opacity: .9; }
    100% { transform: scale(1.32); opacity: 0; }
}
.vk-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* HUD na szybie */
.vk-hud {
    position: absolute;
    left: 21.5%;
    top: 30%;
    width: 22%;
    display: grid;
    justify-items: center;
    gap: calc(var(--u) * 6);
    color: #8eeaff;
    font-family: var(--mono);
    text-shadow: 0 0 calc(var(--u) * 8) rgba(30, 200, 255, .9);
    opacity: .82;
    mix-blend-mode: screen;
    transform: perspective(calc(var(--u) * 900)) rotateX(14deg);
}
.vk-hud__speed { display: flex; align-items: baseline; gap: calc(var(--u) * 5); line-height: 1; }
.vk-hud__speed b { font-size: calc(var(--u) * 60); font-weight: 600; font-variant-numeric: tabular-nums; }
.vk-hud__speed span { font-size: calc(var(--u) * 15); letter-spacing: .1em; opacity: .8; }
.vk-hud__nav { display: flex; align-items: center; gap: calc(var(--u) * 7); }
.vk-hud__nav svg { width: calc(var(--u) * 30); height: calc(var(--u) * 30); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 calc(var(--u) * 4) rgba(30, 200, 255, .9)); }
.vk-hud__nav span { display: grid; line-height: 1.15; }
.vk-hud__nav b { font-size: calc(var(--u) * 20); font-weight: 600; }
.vk-hud__nav small { font-size: calc(var(--u) * 12); opacity: .75; }
.vk-hud__trip { font-size: calc(var(--u) * 11); letter-spacing: .18em; opacity: .7; }

.vk-interior { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }

/* Prędkość na wyświetlaczu za kierownicą */
.vk-cluster {
    position: absolute;
    left: 32.75%;
    top: 65.7%;
    width: calc(var(--u) * 64);
    height: calc(var(--u) * 50);
    display: grid;
    place-content: center;
    justify-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, #050a17 55%, rgba(5, 10, 23, 0) 72%);
    color: #e9f8ff;
    font-family: var(--mono);
    line-height: 1;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 calc(var(--u) * 6) rgba(30, 200, 255, .95);
}
.vk-cluster b { font-size: calc(var(--u) * 21); font-weight: 600; font-variant-numeric: tabular-nums; }
.vk-cluster small { margin-top: calc(var(--u) * 2); font-size: calc(var(--u) * 6); letter-spacing: .14em; color: #7fe3ff; }

/* Światło mijanych latarni */
.vk-sweep {
    position: absolute;
    left: 20%;
    top: -40%;
    width: 60%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 176, 92, .32), rgba(255, 150, 60, .1) 55%, transparent);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
}

/* ---------- Telefon z aplikacją Veyro ---------- */
.vk-phone {
    --a: calc(var(--u) / 3);
    position: absolute;
    left: 65.495%;
    top: 49.8%;
    width: 7.8125%;
    height: 25.3%;
    overflow: hidden;
    border-radius: calc(var(--u) * 13);
    background: #070b16;
    box-shadow: 0 0 calc(var(--u) * 26) rgba(30, 200, 255, .22);
}
.vk-phone::after {
    /* odblask szkła */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .02) 32%, transparent 33%, transparent 70%, rgba(255, 255, 255, .04) 100%);
    pointer-events: none;
}
.vk-status {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--a) * 25);
    padding: 0 calc(var(--a) * 16);
    background: #070b16;
    font-family: 'Inter', var(--sans);
    font-size: calc(var(--a) * 11);
    font-weight: 600;
    color: #cfe0f5;
}
.vk-status__ico { display: inline-flex; align-items: flex-end; gap: calc(var(--a) * 2); }
.vk-status__ico i { display: block; width: calc(var(--a) * 3); background: #cfe0f5; border-radius: 1px; }
.vk-status__ico i:nth-child(1) { height: calc(var(--a) * 4); }
.vk-status__ico i:nth-child(2) { height: calc(var(--a) * 7); }
.vk-status__ico i:nth-child(3) { height: calc(var(--a) * 10); }

/* Zrzuty aplikacji (360 x 752 px aplikacji pod paskiem stanu) */
.vk-app { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--a) * 25); overflow: hidden; background: #070b16; }
.vk-screen {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: translateX(calc(var(--a) * 24));
    transition: opacity .4s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.vk-screen img { display: block; width: 100%; height: 100%; max-width: none; }
.vk-screen.is-active { opacity: 1; transform: none; }
.vk-screen.is-leaving { opacity: 0; transform: translateX(calc(var(--a) * -24)); }
/* Bez JS i przy ograniczeniu ruchu: licznik */
.vk-screen--meter { opacity: 1; transform: none; }
.vk-js .vk-screen--meter:not(.is-active) { opacity: 0; transform: translateX(calc(var(--a) * 24)); }

/* Pola na żywo - w miejscu tekstu aplikacji, tym samym krojem (Inter) */
.vk-live {
    position: absolute;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0e1526;
    color: #eaf2ff;
    font-family: 'Inter', var(--sans);
    font-variant-numeric: tabular-nums;
    line-height: 1.21;
    white-space: nowrap;
}
.vk-live--timer { font-size: calc(var(--a) * 44); font-weight: 900; }
.vk-live--price { font-size: calc(var(--a) * 52); font-weight: 900; }
.vk-live--value { font-size: calc(var(--a) * 22); font-weight: 800; }
.vk-tap {
    position: absolute;
    width: calc(var(--a) * 70);
    height: calc(var(--a) * 70);
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.3);
    pointer-events: none;
}
.vk-screen.is-tap .vk-tap { animation: vk-tap .6s ease-out both; }
@keyframes vk-tap { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.3); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } }

/* Telefon: kadr przesunięty na telefon i szybę */
@media (max-width: 760px) {
    .vl-cockpit { padding: 80px 0 70px; }
    .vk-view { aspect-ratio: 4 / 5; max-height: none; }
    .vk-scene { --fx: 63%; }
}

.vl-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(62, 240, 161, .25);
    background: rgba(62, 240, 161, .06);
    color: #b9f7da;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.vl-h1 {
    margin: 0;
    font-size: clamp(40px, 6.4vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -.03em;
}
.vl-lead {
    max-width: 560px;
    margin: 18px 0 30px;
    color: var(--text-soft);
    font-size: clamp(16px, 1.6vw, 18px);
}
.vl-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.vl-hud {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 44px 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(14, 21, 38, .6);
    backdrop-filter: blur(8px);
    width: fit-content;
    max-width: 100%;
}
.vl-hud > div { padding: 12px 22px; border-left: 1px solid var(--line); }
.vl-hud > div:first-child { border-left: 0; }
.vl-hud dt {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-faint);
    font-weight: 700;
}
.vl-hud dd { margin: 2px 0 0; color: var(--accent-soft); font-size: 15px; font-weight: 600; }

/* ---------- Telemetria (taśma) ---------- */
.vl-ticker {
    position: relative;
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: linear-gradient(90deg, var(--ink-2), var(--surface), var(--ink-2));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.vl-ticker__track {
    display: flex;
    width: max-content;
    animation: vl-marquee 48s linear infinite;
}
.vl-ticker__track span {
    padding: 16px 28px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--text-faint);
    white-space: nowrap;
    border-right: 1px solid var(--line);
}
.vl-ticker__track b { color: var(--accent); font-weight: 600; }
@keyframes vl-marquee { to { transform: translateX(-50%); } }

/* ---------- Sekcje ---------- */
.vl-section {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 110px 16px;
}
.vl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--accent);
}
.vl-eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.vl-h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4.2vw, 48px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.02em;
}
.vl-sub { margin: 0 0 40px; color: var(--text-soft); max-width: 620px; }

/* ---------- Karty platformy ---------- */
.vl-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 44px;
}
.vl-card {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(20, 32, 56, .7), rgba(14, 21, 38, .5));
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.vl-card::before {
    /* skaner przy najechaniu */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.vl-card:hover { transform: translateY(-6px); border-color: rgba(30, 200, 255, .45); box-shadow: 0 24px 50px -24px rgba(30, 200, 255, .45); }
.vl-card:hover::before { opacity: 1; animation: vl-scan 1.6s ease-in-out infinite; }
@keyframes vl-scan { 0% { top: 0; } 100% { top: 100%; } }
.vl-card__ico {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--accent);
    background: rgba(30, 200, 255, .08);
    border: 1px solid rgba(30, 200, 255, .22);
    margin-bottom: 20px;
}
.vl-card__ico svg { width: 26px; height: 26px; }
.vl-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.vl-card p { margin: 0 0 16px; color: var(--text-soft); font-size: 14.5px; }
.vl-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.vl-card li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--text); }
.vl-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transform: rotate(45deg);
}

/* ---------- Na żywo ---------- */
.vl-live {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}
.vl-live__map {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: radial-gradient(circle at 30% 70%, rgba(10, 92, 230, .18), transparent 60%), var(--ink-2);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(30, 200, 255, .06) inset;
}
.vl-live__map svg { display: block; width: 100%; height: auto; }
.vl-streets path { fill: none; stroke: rgba(130, 170, 255, .16); stroke-width: 7; stroke-linecap: round; }
.vl-route {
    fill: none;
    stroke: url(#vlRoute);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 10 8;
    animation: vl-dash 1.2s linear infinite;
    filter: drop-shadow(0 0 6px rgba(30, 200, 255, .9));
}
@keyframes vl-dash { to { stroke-dashoffset: -18; } }
.vl-pin { stroke: var(--ink); stroke-width: 3; }
.vl-pin--a { fill: var(--ok); }
.vl-pin--b { fill: #ff4d5e; }
.vl-car__dot { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.vl-car__halo { fill: rgba(30, 200, 255, .25); animation: vl-halo 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes vl-halo { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.vl-live__badge {
    position: absolute;
    left: 16px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(7, 11, 22, .85);
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--text-soft);
}
.vl-checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.vl-checks li {
    position: relative;
    padding-left: 38px;
    color: var(--text-soft);
}
.vl-checks li b { color: var(--text); font-weight: 700; }
.vl-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ec8ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat,
        rgba(30, 200, 255, .1);
    border: 1px solid rgba(30, 200, 255, .3);
}

/* ---------- Moduły: kontrolki deski rozdzielczej ---------- */
.vl-lights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.vl-light {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(14, 21, 38, .7);
    border: 1px solid var(--line);
    cursor: default;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.vl-light__ico {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text-faint);
    background: #050913;
    border: 1px solid var(--line);
    transition: color .3s, box-shadow .3s, border-color .3s;
}
.vl-light__ico svg { width: 22px; height: 22px; }
.vl-light__txt { display: grid; line-height: 1.35; }
.vl-light__txt b { font-size: 14.5px; font-weight: 700; }
.vl-light__txt small { font-size: 12.5px; color: var(--text-faint); }
/* Kontrolka zapala się po pojawieniu (jak przy zapłonie) albo najechaniu. */
.vl-light.is-on .vl-light__ico,
.vl-light:hover .vl-light__ico {
    color: var(--accent);
    border-color: rgba(30, 200, 255, .5);
    box-shadow: 0 0 18px rgba(30, 200, 255, .55), inset 0 0 10px rgba(30, 200, 255, .25);
}
.vl-light:hover { border-color: rgba(30, 200, 255, .4); background: rgba(20, 32, 56, .8); }

/* ---------- Osiągi ---------- */
.vl-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.vl-stat {
    padding: 36px 24px;
    border-left: 1px solid var(--line);
    text-align: center;
}
.vl-stat:first-child { border-left: 0; }
.vl-stat b {
    display: block;
    font-family: var(--mono);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff, var(--accent-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}
.vl-stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--text-soft); }

/* ---------- Bezpieczeństwo ---------- */
.vl-secure {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 56px;
    align-items: center;
}
.vl-secure__ico {
    position: relative;
    width: 200px;
    height: 200px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: radial-gradient(circle, rgba(30, 200, 255, .14), transparent 65%);
}
.vl-secure__ico::before,
.vl-secure__ico::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(30, 200, 255, .35);
    animation: vl-spin 24s linear infinite;
}
.vl-secure__ico::after { inset: 22px; border-style: solid; border-color: rgba(30, 200, 255, .15) rgba(30, 200, 255, .6) rgba(30, 200, 255, .15) rgba(30, 200, 255, .15); animation-duration: 6s; animation-direction: reverse; }
@keyframes vl-spin { to { transform: rotate(360deg); } }
.vl-secure__ico svg { width: 72px; height: 72px; filter: drop-shadow(0 0 14px rgba(30, 200, 255, .7)); }
.vl-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.vl-pills span {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    background: rgba(30, 200, 255, .06);
    border: 1px solid rgba(30, 200, 255, .22);
}

/* ---------- Wezwanie do działania ---------- */
.vl-final {
    position: relative;
    overflow: hidden;
    margin: 40px 16px 0;
    padding: 90px 24px;
    text-align: center;
    border-radius: 32px;
    border: 1px solid rgba(30, 200, 255, .2);
    background:
        radial-gradient(ellipse 60% 80% at 50% 120%, rgba(30, 200, 255, .3), transparent 70%),
        linear-gradient(180deg, var(--surface), var(--ink-2));
}
@media (min-width: 1212px) {
    .vl-final { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
}
.vl-final::before {
    /* linie prędkości */
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 120px, rgba(130, 235, 255, .07) 120px 121px);
    animation: vl-speed 3s linear infinite;
    pointer-events: none;
}
@keyframes vl-speed { to { background-position: 121px 0; } }
.vl-final h2 {
    position: relative;
    margin: 0 auto 16px;
    max-width: 760px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.02em;
}
.vl-final p { position: relative; margin: 0 auto 32px; max-width: 560px; color: var(--text-soft); }
.vl-final .vl-btn { position: relative; word-break: break-word; }

.vl-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 40px 16px 48px;
    font-size: 13px;
    color: var(--text-faint);
}
.vl-foot span { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vl-foot a { color: var(--text-soft); text-decoration: none; }
.vl-foot a:hover { color: var(--accent); }

/* ---------- Pojawianie się (tylko z JS) ---------- */
.vl-js .vl-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
    transition-delay: var(--d, 0s);
}
.vl-js .vl-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Układ responsywny ---------- */
@media (max-width: 1020px) {
    .vl-cards, .vl-lights { grid-template-columns: repeat(2, 1fr); }
    .vl-live { grid-template-columns: 1fr; gap: 40px; }
    .vl-stats { grid-template-columns: repeat(2, 1fr); }
    .vl-stat:nth-child(3) { border-left: 0; }
    .vl-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
    .vl-nav { gap: 12px; }
    .vl-nav__links { display: none; }
    .vl-nav .vl-btn { margin-left: auto; }
    .vl-hud > div { padding: 10px 14px; }
    .vl-chip__more { display: none; }
    .vl-section { padding: 80px 16px; }
    .vl-cards, .vl-lights { grid-template-columns: 1fr; }
    .vl-secure { grid-template-columns: 1fr; gap: 24px; justify-items: start; }
    .vl-secure__ico { width: 140px; height: 140px; }
    .vl-secure__ico svg { width: 52px; height: 52px; }
    .vl-final { padding: 64px 20px; }
    .vl-btn--lg { padding: 16px 22px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .vl-js .vl-reveal { opacity: 1; transform: none; }
}
