/* ===========================
   ZMIENNE, RESET, BAZA
   =========================== */

:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --accent: #20c997;
    --bg-light: #f7f9fc;
    --text-dark: #212529;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   NAVBAR (wspólny)
   =========================== */

.navbar {
    background: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    max-width: 190px;
    height: auto;
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding-inline: 0.9rem;
    position: relative;
}

/* animowane podkreślenie */
.navbar-dark .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.15rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateX(-50%);
    transition: width 0.2s ease-in-out;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link:focus::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 60%;
}

/* przycisk typu "powrót / home" */
.navbar-dark .navbar-nav .nav-link.nav-back,
.nav-back {
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.4);
    padding-block: 0.4rem;
    padding-inline: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.9));
}

.navbar-dark .navbar-nav .nav-link.nav-back::after,
.nav-back::after {
    display: none;
}

.navbar-dark .navbar-nav .nav-link.nav-back:hover,
.nav-back:hover {
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

/* ===========================
   TYPOGRAFIA SEKCJI
   =========================== */

.section-title {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.3rem;
    text-align: center;
}

.sub-title {
    font-size: 1.05rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 0;
}

.lead {
    font-size: 1rem;
    color: #4b5563;
    font-weight: 400;
}

/* ===========================
   SEKCJE GŁÓWNE (podstawowe)
   =========================== */

#features {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    background: #ffffff;
}

#features2 {
    padding-top: 1rem;
    padding-bottom: 3rem;
    background: #ffffff;
}

#features3 {
    padding-top: 2rem;
    padding-bottom: 4rem;
    background: var(--bg-light);
}

/* ===========================
   KAFELKI / IKONY FEATURE (index + inne)
   =========================== */

.features-icons {
    background-color: var(--bg-light);
}

.features-icons-item {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    height: 100%;
}

.features-icons-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.features-icons-icon {
    margin-bottom: 1.25rem;
}

.features-icons-icon i {
    font-size: 2.4rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 60%),
        linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(32, 201, 151, 0.12));
}

.features-icons-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.features-icons-item p.lead {
    font-size: 0.98rem;
    color: #4b5563;
    font-weight: 400;
}

.features-icons-item a.text-decoration-none {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

/* Ciemny pas z treściami */
.features-icons.bg-dark {
    background: radial-gradient(circle at top left, #1f2937, #020617);
    color: #e5e7eb;
}

.features-icons.bg-dark .features-icons-item {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.features-icons.bg-dark h3,
.features-icons.bg-dark h4 {
    color: #f9fafb;
}

.features-icons.bg-dark p,
.features-icons.bg-dark .lead {
    color: #cbd5f5;
}

.features-icons.bg-dark .features-icons-icon i {
    background: rgba(15, 23, 42, 0.35);
}

.features-icons.bg-dark .btn-outline-light {
    border-radius: 999px;
    border-width: 1px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    padding-inline: 1.7rem;
}

.content-boxes {
    margin-bottom: 2rem;
}

/* ===========================
   OBRAZKI / MEDIA
   =========================== */

img.img-fluid {
    border-radius: 1rem;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

/* dla dużych mediów w niektórych sekcjach */
#features4 .media,
#features4 video {
    max-width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

#features4 video {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

/* ===========================
   SEKCJA ABOUT z tłem (index)
   =========================== */

.bg-image-full {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.bg-image-full .about {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.15);
    color: #e5e7eb;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
}

.bg-image-full .about .section-title {
    color: #ffffff;
    margin-bottom: 1rem;
}

.bg-image-full .about .sub-title {
    color: #e5e7eb;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ===========================
   HERO (index)
   =========================== */

header.hero-section {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1), transparent 45%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(13, 110, 253, 0.35));
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    text-align: left;
    max-width: 700px;
}

.hero-kicker {
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.hero-cta-group .btn {
    border-radius: 999px;
    padding-inline: 1.8rem;
}

.hero-cta-group .btn-outline-light {
    border-width: 1px;
}

/* mała sekcja "Get started" (index) */
.get-started {
    background: #ffffff;
}

.get-started h2 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    text-align: center;
}

/* ===========================
   BLOK WIDEO (lidar, specs)
   =========================== */

.videoplayer {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
        linear-gradient(135deg, #020617, #0f172a);
}

.videoplayer .ratio {
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.16), transparent 55%),
        radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.18), transparent 55%);
}

.videoplayer .video {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===========================
   SPECYFIKACJA (specs – tabela)
   =========================== */

#features3 .table {
    background-color: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    border-collapse: collapse;
}

#features3 .table tr th,
#features3 .table tr td {
    padding: 0.6rem 1rem;
    vertical-align: top;
    border-color: #e5e7eb;
}

#features3 .table tr:nth-child(even) td {
    background-color: #f9fafb;
}

#features3 .table h3.section-title,
#features3 .table h4.sub-title {
    text-align: left;
    margin: 0.4rem 0;
}

.spec-images {
    width: 100%;
}

.spec-image-wrapper {
    padding: 6rem;
    background: transparent;
}

#features3 .img-fluid {
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(194, 196, 202, 0.08);
    background-color: #f7f9fc;
    object-fit: cover;
}

/* ===========================
   PRZYCISKI
   =========================== */

.btn {
    font-weight: 600;
}

/* ===========================
   FOOTER – wspólny
   =========================== */

footer {
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
    background-color: #020617;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 5% 0%, rgba(56, 189, 248, 0.15), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.18), transparent 45%);
    opacity: 0.8;
    pointer-events: none;
}

.footer-inner,
footer .about {
    position: relative;
    z-index: 1;
}

.footer-col {
    margin-bottom: 1.5rem;
}

footer .section-title {
    color: #f9fafb;
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: 0.75rem;
}

footer p,
footer a {
    font-size: 0.9rem;
}

footer a {
    color: #e5e7eb;
}

footer a:hover {
    color: var(--accent) !important;
}

#lame {
    word-break: break-all;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.02em;
    font-size: 0.85rem;
}

/* ===========================
   COOKIE TOAST (index)
   =========================== */

.fixed-bottom {
    pointer-events: none;
}

.fixed-bottom .toast {
    pointer-events: auto;
    border-radius: 1rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 1rem auto;
    padding: 0;
}

.toast-body {
    text-align: center;
    padding: 1.8rem;
}

.toast-body h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.toast-body p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
}

.cookie-buttons button,
#btnDeny,
#btnAccept {
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
}

/* ===========================
   RESPONSYWNOŚĆ
   =========================== */

@media (min-width: 992px) {
    .navbar {
        padding-block: 0.85rem;
    }

    .fixed-bottom .toast {
        margin-right: 1.5rem;
        margin-left: auto;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    #features,
    #features2,
    #features3 {
        padding-top: 2.25rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .sub-title {
        font-size: 0.98rem;
    }

    .navbar-brand img {
        max-width: 160px;
    }

    .videoplayer {
        margin-top: 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    header.hero-section {
        height: 60vh;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .bg-image-full .about {
        padding-inline: 1.25rem;
    }

    .features-icons-item {
        padding: 1.6rem 1.4rem;
    }

    footer .footer-col,
    footer .section-title {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        max-width: 160px;
    }

    .get-started h2 {
        font-size: 1.15rem;
    }

    .fixed-bottom .toast {
        margin-bottom: 1rem;
    }

    .spec-image-wrapper {
        padding: 0.75rem;
    }
}
/* ===========================
   FIX: footer w cloud / training
   =========================== */

footer .about.features-icons,
footer .features-icons {
    background: transparent;     /* bez jasnego tła */
}

footer .features-icons-item {
    background: transparent;     /* bez białej karty */
    box-shadow: none;
    border-radius: 0;
    padding: 0;                  /* korzystamy z Bootstrapowych gutterów */
}
body.legal-page {
    background: var(--bg-light);
}

.legal-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.legal-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    max-width: 980px;
    margin: 0 auto;
}

.legal-card .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.legal-card h5 {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 1.75rem;
    margin-bottom: 0.4rem;
    color: #111827;
    font-weight: 700;
}

.legal-card p {
    font-size: 0.98rem;
    color: #4b5563;
    margin-bottom: 0.9rem;
}

/* link / przycisk powrotu nad kartą */
.legal-back-link {
    margin-bottom: 1.5rem;
}

.legal-back-link .nav-back {
    font-size: 0.85rem;
}

.legal-back-link .nav-back i {
    font-size: 1rem;
}

/* trochę ciaśniejsze odstępy akapitów na małych ekranach */
@media (max-width: 767.98px) {
    .legal-card {
        padding: 1.8rem 1.4rem;
    }

    .legal-card h5 {
        margin-top: 1.5rem;
    }
}