/* ==========================================================================
   OWU — strona informacyjna
   Layout wzorowany na multidealercrm.pl: ciemny topbar + hero, jasne sekcje
   z kartami, film na środku strony, ciemny baner CTA i stopka.
   ========================================================================== */

:root {
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    --accent-dark: #0369a1;
    --navy: #080c14;
    --navy-soft: #0d1420;
    --ink: #0f172a;
    --ink-soft: #475569;
    --bg: #f8fafc;
    --bg-alt: #eef2f7;
    --line: #e2e8f0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------- topbar -- */

.topbar {
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-logo {
    color: #f1f5f9;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.dot { color: var(--accent-light); }

/* ------------------------------------------------------------- przyciski -- */

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
}

.cta-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.cta-btn.large {
    font-size: 16px;
    padding: 16px 32px;
}

/* ----------------------------------------------------------------- hero -- */

.hero {
    position: relative;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
}

/* Zdjęcie salonu jako tło hero — przyciemnione, żeby nie walczyło z tekstem.
   Tekst zawsze jasny na ciemnym (nakładka w .hero::after). */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('img/hero-bg.webp') center 40% / cover no-repeat;
    filter: saturate(1.05) brightness(1);
    opacity: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 520px at 70% -10%, rgba(14, 165, 233, .25) 0%, rgba(8, 12, 20, 0) 70%),
        linear-gradient(180deg, rgba(8, 12, 20, .35) 0%, rgba(8, 12, 20, .5) 60%, var(--navy) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px 0;
}

/* Tablet ze zrzutem aplikacji pod tekstem hero: lekka perspektywa, poświata pod spodem,
   pływające plakietki z etapami. Ruch wyłączany przy prefers-reduced-motion. */
.device-stage {
    position: relative;
    max-width: 980px;
    margin: 56px auto 0;
    padding-bottom: 72px;
    perspective: 1800px;
}

.device-stage::after {          /* poświata „pod” tabletem */
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 24px;
    height: 90px;
    background: radial-gradient(closest-side, rgba(14, 165, 233, .55), rgba(14, 165, 233, 0));
    filter: blur(18px);
    z-index: 0;
}

.device {
    position: relative;
    z-index: 1;
    padding: 18px;
    border-radius: 34px;
    background: linear-gradient(145deg, #1f2937 0%, #0b0f17 45%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        0 0 0 6px rgba(255, 255, 255, .03),
        0 40px 90px rgba(0, 0, 0, .6),
        0 0 80px rgba(14, 165, 233, .18);
    transform: rotateX(9deg);
    transform-origin: 50% 100%;
    animation: device-in 1.1s cubic-bezier(.2, .8, .2, 1) both;
}

.device-screen {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

.device-screen img {
    display: block;
    width: 100%;
    height: auto;
}

.device-screen::after {         /* odbłysk szkła przesuwający się po ekranie */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .28) 48%, rgba(255, 255, 255, 0) 60%);
    transform: translateX(-100%);
    animation: device-shine 6s ease-in-out 1.2s infinite;
    pointer-events: none;
}

.device-cam {
    position: absolute;
    top: 50%;
    left: 7px;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: #334155;
    box-shadow: 0 0 0 2px #0b0f17;
}

.float-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border-radius: 16px;
    background: rgba(13, 20, 32, .86);
    border: 1px solid rgba(56, 189, 248, .35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    backdrop-filter: blur(8px);
    color: #fff;
    text-align: left;
    line-height: 1.25;
    animation: chip-float 5s ease-in-out infinite;
}

.float-chip strong { display: block; font-size: 15px; font-weight: 700; }
.float-chip small { display: block; font-size: 13px; color: #cbd5e1; }

.chip-ico {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
}

.chip-ico svg { width: 20px; height: 20px; }

.chip-a { left: -56px; top: 60%;  animation-delay: 0s; }
.chip-b { right: -48px; top: 14%; animation-delay: -1.7s; }
.chip-c { right: -24px; bottom: 120px; animation-delay: -3.3s; }

@keyframes device-in {
    from { opacity: 0; transform: translateY(40px) rotateX(22deg); }
    to   { opacity: 1; transform: rotateX(9deg); }
}

@keyframes device-shine {
    0%, 70% { transform: translateX(-100%); }
    100%    { transform: translateX(100%); }
}

@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@media (max-width: 1100px) {
    .chip-a { left: -8px; }
    .chip-b { right: -8px; }
    .chip-c { right: 8px; }
}

@media (max-width: 760px) {
    .device-stage { padding-bottom: 56px; }
    .device { padding: 10px; border-radius: 20px; transform: none; animation: none; }
    .device-screen { border-radius: 10px; }
    .device-cam { display: none; }
    .float-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .device, .float-chip, .device-screen::after { animation: none; }
    .device { opacity: 1; }
}

.hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0 0 24px;
    max-width: 780px;
}

.hero h1 .accent { color: var(--accent-light); }

.hero p.lead {
    font-size: 18px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 620px;
    margin: 0 0 36px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 40px;
}

.pill-row span {
    background: rgba(8, 12, 20, .72);
    border: 1px solid rgba(56, 189, 248, .55);
    color: #f1f5f9;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(8, 12, 20, .35);
}

/* ---------------------------------------------------- nagłówki sekcji --- */

.section-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 auto 12px;
    max-width: 800px;
}

.section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ------------------------------------------------- film — środek strony -- */

.video-section {
    background: var(--bg-alt);
    border-top: 1px solid rgba(15, 23, 42, .06);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    padding: 64px 0 72px;
}

.video-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 848 px = natywna szerokość nagrania — szerzej robi się miękkie */
.video-frame {
    max-width: 848px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #0d1117;
    border: 2px solid var(--accent);
    box-shadow: 0 24px 60px rgba(8, 12, 20, .28);
    line-height: 0;
}

.video-frame video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    background: #0d1117;
    color: #e2e8f0;
}

/* ------------------------------------------------------------ korzyści -- */

.benefits { padding: 72px 0 8px; }

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    flex: 0 1 330px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent-dark);
}

/* Ikony: Lucide (ISC), wklejone inline — zero dodatkowych zapytań */
.card-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.card h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: var(--ink);
    line-height: 1.3;
}

.card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 12px;
}

.card ul {
    margin: 0;
    padding-left: 18px;
}

.card li {
    font-size: 14px;
    line-height: 1.5;
    margin: 6px 0;
    color: var(--ink-soft);
}

/* -------------------------------------------------------------- kroki --- */

.steps { padding: 72px 0 80px; }

/* Animacja kroków nad kartami — szerokość jak film demo wyżej, bez ramki
   z akcentem, żeby nie konkurowała z głównym nagraniem. */
.steps-video {
    max-width: 848px;
    margin: 28px auto 0;
    border-radius: 16px;
    overflow: hidden;
    background: #0d1117;
    box-shadow: 0 18px 44px rgba(8, 12, 20, .22);
    line-height: 0;
}

.steps-video video {
    display: block;
    width: 100%;
    height: auto;
}

.step-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.step {
    flex: 0 1 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 20px;
}

.step-no {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 16px;
    margin: 0 0 8px;
}

.step p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
}

/* ---------------------------------------------------------------- CTA --- */

.cta-section {
    background:
        radial-gradient(900px 400px at 50% 0%, rgba(14, 165, 233, .25) 0%, rgba(8, 12, 20, 0) 70%),
        linear-gradient(rgba(8, 12, 20, .5), rgba(8, 12, 20, .5)),
        url('img/cta-bg.webp') center / cover no-repeat,
        var(--navy);
    padding: 72px 24px;
    text-align: center;
}

.cta-section-inner {
    max-width: 680px;
    margin: 0 auto;
}

.cta-section-inner h2 {
    color: #fff;
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.cta-section-inner p {
    color: #cbd5e1;
    font-size: 16px;
    margin: 0 0 28px;
}

/* ------------------------------------------------------------- stopka --- */

.footer {
    padding: 3.5rem 2rem 2.5rem;
    border-top: 1px solid rgba(148, 163, 184, .16);
    background: var(--navy-soft);
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr .7fr;
    gap: 2.25rem;
    align-items: start;
}

.footer-contacts {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-contacts strong,
.footer-links > li:first-child {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-contacts a,
.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.footer-contacts a:hover,
.footer-links a:hover { color: #f1f5f9; }

.footer-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-bottom {
    max-width: 1320px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, .08);
    text-align: center;
}

.footer-logo {
    height: 32px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem;
}

.footer-copy {
    font-size: .9rem;
    color: #94a3b8;
}

@media (max-width: 820px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- RWD --- */

@media (max-width: 820px) {
    .hero-inner { padding: 56px 24px 0; }
    .device-stage { margin-top: 40px; }
    .hero h1 { font-size: 38px; }
    .hero p.lead { font-size: 16px; }
    .section-title { font-size: 24px; }
    .cta-section-inner h2 { font-size: 24px; }
    .topbar-inner { padding: 14px 20px; }
    .benefits, .steps { padding: 56px 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 30px; }
    .cta-btn.large { font-size: 15px; padding: 14px 26px; }
}

/* ------------------------------------------- AutomotivePRO / MultiDealer -- */

.topbar-by {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    margin-left: 6px;
}

.eyebrow {
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 12px;
}

.eyebrow a { text-decoration: underline; text-underline-offset: 3px; }

.card p a { color: var(--accent-dark); font-weight: 600; }

a:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }

@media (max-width: 480px) {
    .topbar-by { display: none; }
}

/* Jaśniejsze tła zdjęć — cień pod tekstem trzyma kontrast tam, gdzie zdjęcie jest jasne. */
.hero h1, .hero .lead, .hero .eyebrow, .cta-section-inner h2, .cta-section-inner p {
    text-shadow: 0 2px 12px rgba(8, 12, 20, .75), 0 1px 3px rgba(8, 12, 20, .6);
}

/* Nagłówki w rzędzie boxów rezerwują 2 linie — opisy zaczynają się na tej samej
   wysokości, nawet gdy jeden nagłówek łamie się na dwie linie, a sąsiedni nie.
   Na jednej kolumnie (telefon) rezerwa zbędna. */
.step h3 { line-height: 1.3; }

@media (min-width: 700px) {
    .card h3,
    .step h3 { min-height: 2.6em; }
}
