/* Custom properties */
:root {
    --bg-color: #050505;
    --font-sans: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    background-color: var(--bg-color);
    font-family: var(--font-sans);
    overflow: hidden;
}

/* App container mapping full screen */
#app-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Pasek nawigacyjny */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: transparent; /* Przezroczyste tło głównego kontenera headera */
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.navbar__nav {
    display: flex;
    width: 100%;
    height: 55px; /* Wysokość paska z menu na samej górze */
    background-color: rgba(5, 5, 5, 0.85); /* Tło menu z blurem */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar__logo-container {
    height: 95px; /* Wysokość strefy logo poniżej menu */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Całkowicie przezroczyste tło pod logo */
}

.navbar__logo {
    max-width: 200px; /* Bardziej subtelne, luksusowe logo */
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); /* Wyraźny cień ułatwiający czytelność na wideo */
}

.navbar__link {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-sans);
    font-variation-settings: "wght" 550, "wdth" 105;
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    color: #dfba6b; /* Luksusowe złoto */
    border-right: 1px solid rgba(255, 255, 255, 0.08); /* Pionowe linie rozdzielające */
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding-left: 0.25em; /* Kompensacja letter-spacing dla idealnego wycentrowania */
}

/* Usunięcie pionowej linii dla ostatniego linku */
.navbar__link:last-child {
    border-right: none;
}

/* Hover na linki nawigacyjne */
.navbar__link:hover {
    background-color: rgba(255, 255, 255, 0.03); /* Subtelne rozjaśnienie tła komórki */
    color: #ffffff; /* Tekst staje się biały */
}

/* Hero Section style */
.hero {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Fullscreen Background Video */
.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.05); /* Delikatne powiększenie zapobiegające powstawaniu jasnych krawędzi przy blurze */
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    filter: blur(3px); /* Subtelne rozmycie wideo w tle podnoszące estetykę kinową */
}

/* Lekka ciemniejsza blenda na wideo poprawiająca kontrast i czytelność tekstów */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.45); /* Elegancka, ciemna blenda */
    z-index: 2; /* Nad wideo (1), pod świetlikami i siatką (3) */
    pointer-events: none;
}

/* Wzór siatki kropek nałożony na wideo */
.hero__pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1.2px, transparent 1.2px); /* Wyraźne kropki bazowe */
    background-size: 10px 10px; /* Rozmiar siatki kropek */
    z-index: 3; /* Nad wideo i poświatami, pod treścią */
    pointer-events: none;
    
    /* Jedna gigantyczna, wielofalowa maska radialna o szerokich dolinach cienia i wąskich, jasnych grzbietach */
    -webkit-mask-image: radial-gradient(circle, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 5%, 
        rgba(0,0,0,0.05) 22%, 
        rgba(0,0,0,0.05) 42%, 
        rgba(0,0,0,0.9) 50%, 
        rgba(0,0,0,0.05) 58%, 
        rgba(0,0,0,0.05) 78%,
        rgba(0,0,0,0.85) 90%,
        rgba(0,0,0,0.05) 100%
    );
    mask-image: radial-gradient(circle, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 5%, 
        rgba(0,0,0,0.05) 22%, 
        rgba(0,0,0,0.05) 42%, 
        rgba(0,0,0,0.9) 50%, 
        rgba(0,0,0,0.05) 58%, 
        rgba(0,0,0,0.05) 78%,
        rgba(0,0,0,0.85) 90%,
        rgba(0,0,0,0.05) 100%
    );
    
    -webkit-mask-size: 260% 260%;
    mask-size: 260% 260%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    
    animation: wave-3d-motion 24s infinite ease-in-out;
}

/* Płynny, zakrzywiony ruch gigantycznej maski tworzący zróżnicowane i nieregularne fale na całym ekranie */
@keyframes wave-3d-motion {
    0% {
        -webkit-mask-position: 5% 5%;
        mask-position: 5% 5%;
    }
    25% {
        -webkit-mask-position: 75% 15%;
        mask-position: 75% 15%;
    }
    50% {
        -webkit-mask-position: 25% 75%;
        mask-position: 25% 75%;
    }
    75% {
        -webkit-mask-position: 85% 65%;
        mask-position: 85% 65%;
    }
    100% {
        -webkit-mask-position: 5% 5%;
        mask-position: 5% 5%;
    }
}

/* Płynnie dryfujące, złote poświaty w tle */
.hero__glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223, 186, 107, 0.12) 0%, rgba(223, 186, 107, 0.04) 40%, transparent 75%);
    filter: blur(60px);
    z-index: 2; /* Nad wideo (1), pod siatką wzoru (3) */
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.85;
}

.hero__glow--1 {
    top: -20%;
    left: -20%;
    animation: glow-drift-1 30s infinite alternate ease-in-out;
}

.hero__glow--2 {
    bottom: -25%;
    right: -20%;
    animation: glow-drift-2 35s infinite alternate ease-in-out;
}

/* Animacje przemieszczania poświat */
@keyframes glow-drift-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30vw, 20vh) scale(1.15);
    }
    100% {
        transform: translate(15vw, -5vh) scale(0.9);
    }
}

@keyframes glow-drift-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-25vw, -25vh) scale(0.85);
    }
    100% {
        transform: translate(-10vw, -10vh) scale(1.1);
    }
}

/* Hero Content Wrapper */
.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}



/* Typografia nagłówków */
.hero__header {
    margin-bottom: 28px;
}

.hero__tagline {
    font-family: var(--font-sans);
    font-variation-settings: "wght" 550, "wdth" 105;
    font-size: clamp(0.55rem, 1.8vw, 0.8rem);
    letter-spacing: 0.4em;
    color: #dfba6b; /* Luksusowe, piaskowe złoto */
    text-transform: uppercase;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: block;
    white-space: nowrap;
}

.hero__title {
    font-family: var(--font-sans);
    font-variation-settings: "wght" 100, "wdth" 102; /* Ekstremalnie cienki, czysty krój Awwwards */
    font-size: clamp(1.8rem, 7.8vw, 5rem);
    letter-spacing: 0.03em;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
    white-space: nowrap;
}

/* Opis - Główny tekst w stylu minimal */
.hero__description {
    font-family: var(--font-sans);
    font-variation-settings: "wght" 300, "wdth" 100; /* Przywrócona standardowa szerokość znaków */
    font-size: 0.88rem; /* Nieco mniejsza czcionka dla elegancji */
    line-height: 1.8;
    letter-spacing: 0.02em; /* Delikatny, przestronny rozstaw liter */
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 850px; /* Szeroki box tekstowy pozwalający układać się w 2-3 linijki */
    margin: 0 auto 48px auto;
}

/* Przyciski i akcje w duchu Awwwards */
.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn {
    font-family: var(--font-sans);
    font-variation-settings: "wght" 500, "wdth" 105;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 0px; /* Całkowicie ostre krawędzie, minimal */
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn--primary {
    background-color: #dfba6b; /* Luksusowy złoty kolor */
    color: #050505;
    border: 1px solid #dfba6b;
}

.btn--primary:hover {
    background-color: transparent;
    color: #dfba6b;
    border-color: #dfba6b;
    box-shadow: 0 10px 25px rgba(223, 186, 107, 0.1);
}

.btn--secondary {
    background-color: transparent;
    color: #dfba6b; /* Złoty tekst */
    border: 1px solid rgba(223, 186, 107, 0.45); /* Złota obwódka */
}

.btn--secondary:hover {
    background-color: #dfba6b; /* Wypełnienie złotem */
    color: #050505;
    border-color: #dfba6b;
    box-shadow: 0 10px 25px rgba(223, 186, 107, 0.2);
}

/* RWD - Responsywność */
@media (max-width: 768px) {
    .navbar {
        height: auto;
    }

    .navbar__nav {
        height: 50px; /* Nieco niższe menu na mobile */
    }

    .navbar__logo-container {
        height: 75px; /* Mniejsza strefa logo na mobile */
        border-bottom: none;
    }

    .navbar__logo {
        max-width: 140px; /* Dopasowane, mniejsze logo na mobile */
    }

    .navbar__link {
        font-size: 0.65rem;
        letter-spacing: 0.16em;
        padding-left: 0.16em;
    }

    .hero__tagline {
        letter-spacing: 0.25em; /* Nieco mniejszy odstęp na wąskich ekranach dla bezpieczeństwa */
        margin-bottom: 10px;
    }

    .hero__title {
        letter-spacing: 0.02em;
        line-height: 1.2;
    }
    
    .hero__description {
        font-size: 0.76rem;
        line-height: 1.7;
        font-variation-settings: "wght" 300, "wdth" 100;
        margin-bottom: 36px;
        padding: 0 15px;
    }
    
    .hero__actions {
        flex-direction: column;
        gap: 10px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }
}


/* Accessible hidden styles for SEO elements */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
