/* --- Konfiguracja Globalna --- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0a192f; /* Rozjaśniony granat zamiast czerni */
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Nawigacja --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    height: 80px;
    background: rgba(13, 27, 49, 0.9); /* Rozjaśnione tło menu */
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px; /* Rozmiar dopasowany do przycisku Kup UTT */
    width: auto;
    display: block;
    filter: brightness(0) invert(1); /* Wymuszenie białego koloru */
    transition: 0.3s;
}

.logo-img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 212, 255, 0.8));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 400;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.nav-links a.active-link {
    color: #00d4ff;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 100px 8% 60px 8%;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
    position: relative;
}

.header-text {
    margin-top: -30px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffffff, #00d4ff, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.hero-content p {
    font-size: 1.1rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

/* --- TŁO I ANIMACJA LOGO --- */
.animation-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a192f url('tlo-blue.jpg') no-repeat center center;
    background-size: cover;
    z-index: 1;
    overflow: hidden;
}

.anim-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
    height: 240px; 
    width: auto;
    filter: brightness(0) invert(1); /* Białe logo na środku */
    animation: logo-descend-and-grow 5s ease-out 0.5s forwards;
}

.flash-effect {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: flash-fade 0.7s ease-out forwards;
    z-index: 3;
}

/* --- Przyciski --- */
.btn-cta-main {
    position: relative;
    z-index: 10;
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(90deg, #00d4ff, #43e7ff, #00d4ff);
    background-size: 200% auto;
    color: #05101f;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.5s;
    margin-top: 40px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.btn-cta-main:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.6);
}

.btn-cta-small {
    padding: 8px 20px;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-cta-small:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* --- Sekcja Features --- */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 80px 8%;
    flex-wrap: wrap;
    background: rgba(13, 27, 49, 0.8); /* Rozjaśniona dolna warstwa */
    position: relative;
    z-index: 10;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    padding: 40px;
    width: 300px;
    border-radius: 20px;
    text-align: center;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-12px);
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    border-radius: 50%;
}

.gold { background: radial-gradient(circle, #00d4ff, #0077b6); }
.teal { background: radial-gradient(circle, #20c997, #126e54); }
.purple { background: radial-gradient(circle, #6f42c1, #3f256d); }

/* --- Podstrony --- */
.page-wrapper {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 20%, rgba(0, 212, 255, 0.08), transparent 70%);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5%;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ffffff, #00d4ff, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
}

/* Sekcje z efektem szkła (Glassmorphism) */
.content-card {
    background: rgba(13, 27, 49, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease;
}

.content-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
}

.card-text-primary {
    color: #cbd5e0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.text-white {
    color: #ffffff;
}

.company-box {
    border-left: 4px solid #00d4ff;
    background: rgba(0, 212, 255, 0.03);
    padding: 25px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 30px;
}

.company-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.highlight-text {
    color: #00d4ff;
    font-weight: 600;
}

.section-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, transparent);
    border-radius: 2px;
}

/* Analogia – Przykład z Kartą Podarunkową */
.analogy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.analogy-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    position: relative;
}

.analogy-step .step-num {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00d4ff;
    margin-bottom: 10px;
    font-weight: 700;
}

.analogy-step p {
    color: #cbd5e0;
    font-size: 0.95rem;
}

.mpv-badge-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-description {
    color: #cbd5e0;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.mpv-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0,212,255,0.2) 0%, rgba(67,231,255,0.05) 100%);
    border: 1px solid #00d4ff;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.badge-subtext {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* --- Stylizacja Odtwarzacza Wideo --- */
.video-card {
    padding: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporcja 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Efekt Glitch (Błękitny) --- */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #00d4ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #0077b6, 2px 2px #ffffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

/* --- Animacje --- */
@keyframes logo-descend-and-grow {
    0% { opacity: 0; top: 40%; transform: translate(-50%, -50%) scale(0.1); }
    20% { opacity: 1; }
    100% { opacity: 1; top: 63%; transform: translate(-50%, -50%) scale(1); }
}

@keyframes flash-fade {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(30); opacity: 0; }
}

@keyframes shine {
    to { background-position: 200% center; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    100% { clip: rect(10px, 9999px, 80px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    100% { clip: rect(2px, 9999px, 40px, 0); }
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    .navbar { height: 60px; padding: 0 5%; }
    .logo-img { height: 35px; }
    .hero-content h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .anim-logo { height: 120px; }
    .page-wrapper { padding-top: 100px; }
    .content-card { padding: 25px; }
    .video-card { padding: 10px; }
}

/* Jasny kolor tekstu w banerze/przyciskach MPV */
.mpv-badge, 
.mpv-badge a {
    color: #ffffff !important;
    text-decoration: none;
}

.mpv-badge a:hover {
    color: #00d4ff !important;
}