* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #08080a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    
    background-image: url('background.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, rgba(8, 8, 10, 0.45) 0%, rgba(8, 8, 10, 0.60) 40%, rgba(8, 8, 10, 0.80) 100%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(8, 8, 10, 0.5) 100%);
    z-index: -1;
    pointer-events: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(8, 8, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.logo-nav {
    height: 28px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease;
}

.logo-nav:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #a1a1aa;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.lang-switcher {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.lang-switcher:hover {
    background: rgba(232, 17, 35, 0.2);
    border-color: rgba(232, 17, 35, 0.5);
}

.cta-button {
    background: linear-gradient(135deg, #e81123 0%, #a10a18 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 42px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232, 17, 35, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    text-decoration: none; /* Usuwa podkreślenie tekstu */
    display: inline-block; /* Utrzymuje kształt i marginesy przycisku */
}

.cta-button:hover {
    background: linear-gradient(135deg, #ff1e34 0%, #c40d1e 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(232, 17, 35, 0.65);
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px 20px;
}

.hero-content {
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInDown 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-logo {
    max-width: 360px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
    animation: floatLogo 4s ease-in-out infinite;
}

.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.hero-content p {
    font-size: 1.15rem;
    color: #b0b0b8;
    margin-bottom: 35px;
    max-width: 650px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9);
}

section {
    padding: 100px 50px;
}

section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: #a1a1aa;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-box {
    background: rgba(15, 15, 18, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 40px 30px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-8px);
    border-color: rgba(232, 17, 35, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(232, 17, 35, 0.2);
}

.feature-badge {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #e81123;
    background: rgba(232, 17, 35, 0.1);
    border: 1px solid rgba(232, 17, 35, 0.2);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.feature-box h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.feature-box p {
    color: #b0b0b8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.feature-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s ease;
}

.feature-list li:hover {
    color: #e0e0e0;
}

.feature-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #e81123;
}

.about {
    background: rgba(8, 8, 10, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    color: #b0b0b8;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.highlight-features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.highlight {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 6px;
    border-left: 3px solid #e81123;
    flex: 1;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.highlight:hover {
    transform: translateY(-4px);
    background: rgba(20, 20, 25, 0.6);
}

.highlight h4 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.pricing {
    padding-bottom: 150px;
}

.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.9) 0%, rgba(10, 10, 12, 0.9) 100%);
    border: 1px solid rgba(232, 17, 35, 0.3);
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(232, 17, 35, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(232, 17, 35, 0.3);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #a10a18, #ff1e34, #a10a18);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.price {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 30px;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: #a1a1aa;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features li {
    padding: 10px 0;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-btn {
    width: 100%;
}

.trial-text {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
}

.footer {
    text-align: center;
    padding: 35px;
    background-color: rgba(5, 5, 6, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666666;
    font-size: 0.85rem;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (min-width: 851px) {
    .feature-box:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 15px);
    }
}

@media (max-width: 850px) {
    .navbar {
        padding: 12px 15px;
    }
    .logo-nav {
        height: 22px;
    }
    .nav-links li {
        margin-left: 12px;
    }
    .nav-links a {
        font-size: 12px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .highlight-features {
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    section {
        padding: 60px 20px;
    }
}

/* --- NOWE ELEMENTY: DOKUMENTACJA I STOPKA --- */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.doc-button {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 42px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e81123;
}

/* --- GALERIA COVERFLOW --- */
.gallery-section {
    padding: 80px 20px;
    background-color: transparent; /* Zmienione na przezroczyste */
    overflow: hidden;
}

.gallery-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-container {
    width: 100%;
    max-width: 1000px;
    height: 420px; /* Zapewnia miejsce na obrazki 16:9 w absolutnym ułożeniu */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item {
    position: absolute;
    width: 55%; /* Główne zdjęcie zajmie 55% szerokości kontenera */
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.7) translateX(0);
    z-index: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

/* Środkowe (Aktywne) zdjęcie */
.gallery-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
    z-index: 5;
    cursor: default;
}

/* Zdjęcie po lewej */
.gallery-item.prev {
    opacity: 0.4;
    visibility: visible;
    transform: scale(0.8) translateX(-65%); /* Przesunięcie i pomniejszenie */
    z-index: 3;
}

/* Zdjęcie po prawej */
.gallery-item.next {
    opacity: 0.4;
    visibility: visible;
    transform: scale(0.8) translateX(65%);
    z-index: 3;
}

.gallery-item.prev:hover, 
.gallery-item.next:hover {
    opacity: 0.8; /* Rozjaśnienie pobocznych zdjęć po najechaniu */
}

/* Przyciski nawigacji */
.gallery-btn {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid #27272a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    position: absolute;
}

.gallery-btn:hover {
    background: #e81123;
    border-color: #e81123;
    transform: scale(1.1);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Responsywność dla telefonów */
@media (max-width: 768px) {
    .gallery-container { height: 250px; }
    .gallery-item { width: 70%; }
    .gallery-item.prev { transform: scale(0.85) translateX(-50%); opacity: 0.2; }
    .gallery-item.next { transform: scale(0.85) translateX(50%); opacity: 0.2; }
    .prev-btn { left: -10px; width: 40px; height: 40px; }
    .next-btn { right: -10px; width: 40px; height: 40px; }
}