/* --- PLIK: landing.css (Wersja CZYSTA - BEZ EFEKTÓW WIDEO) --- */

/* 1. KONFIGURACJA I ZMIENNE */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Tomorrow:wght@400;600;700&display=swap');

:root {
    /*--bg-color: #050a14;       /* Deep Void Blue */
    --bg-color: #050a14;
    /*--bg-color: #ffffff;*/
    --text-main: #f1f1f5;
    /* Jasna zlamana biel */
    --text-muted: #bfc3d9;
    --accent-color: #ff3de8;
    /* Neonowa magenta (primary) */
    --accent-secondary: #4de4ff;
    /* Jasny cyjan (secondary) */
    --glass-bg: rgba(255, 255, 255, 0.085);
    --glass-border: rgba(255, 255, 255, 0.17);
    /* CLS guard: rezerwacja miejsca na media (łatwo usunąć, jeśli niepotrzebne) */
    --hero-video-ratio: 16 / 9;
    --section-media-ratio: 4 / 3;
    --cube-video-ratio: 1;

    --font-brand: 'Tomorrow', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: url('images/background.jpg');
    background-image: image-set(
        url('images/background.webp') type('image/webp'),
        url('images/background.jpg') type('image/jpeg')
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
        background-size: 100% auto;
        background-position: center top;
        background-repeat: repeat-y;
    }
}

/* Animated background layer (separate from body to avoid breaking position: fixed) */
body::before {
    content: none;
}

@keyframes bg-breath {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* 2. TYPOGRAFIA */
h1,
h2,
h3,
.btn-text,
.nav-link {
    font-family: var(--font-brand);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 3. NAWIGACJA (LOGO) */


.logo {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: max(20px, env(safe-area-inset-top) + 10px);
    padding-bottom: 10px;
}

.logo img {
    display: inline-block;
    height: 120px;
    width: auto;
    margin: 0;
}

/* 4. SEKCJA HERO - z XML */
.section-type-hero {
    padding: 20px 0 10px;
}

.hero-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
}

.hero-media video {
    aspect-ratio: var(--hero-video-ratio);
}

.hero-media {
    background: transparent;
}

.hero-inline.hero-centered {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.hero-inline.hero-centered .hero-media video {
    max-width: 832px;
    /* +30% */
}

.hero-inline.hero-split-left {
    grid-template-columns: 1fr 1fr;
}

.hero-inline.hero-split-left .hero-media {
    order: 2;
}

.hero-inline.hero-split-left .hero-inline-text {
    order: 1;
}

.hero-media video {
    width: 100%;
    max-width: 676px;
    /* +30% */
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    background: transparent;
}

.hero-inline-text h1 {
    font-size: var(--header-size, 2.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    background-image: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-inline-text p {
    font-size: var(--text-size, 1.2rem);
    color: var(--text-muted);
}

/* 5. PRZYCISKI SKLEPÓW */
.store-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-color);
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.store-btn:hover {
    background: rgba(255, 61, 232, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 61, 232, 0.4);
}

.store-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.store-btn:hover::after {
    left: 100%;
}

.store-btn svg {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    fill: currentColor;
    flex-shrink: 0;
}

.btn-text {
    text-align: left;
}

.btn-text span {
    display: block;
    font-size: 0.7rem;
    font-family: var(--font-body);
    opacity: 0.8;
    color: var(--text-main);
}

.btn-text strong {
    font-size: 1.1rem;
    font-family: var(--font-brand);
    white-space: nowrap;
}

/* 6. POZOSTAŁE SEKCJE */
section {
    padding: 80px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-sections .section-block {
    margin-top: var(--section-space, 0);
    padding: 40px 0;
}

.content-sections .section-block.section-divider {
    padding: 5px 0;
}

.content-sections .section-block.section-before-divider {
    padding-bottom: 20px;
}

.content-sections .section-block.section-after-divider {
    padding-top: 20px;
}

.content-sections {
    --content-top: 0px;
    padding: calc(var(--content-top) + 80px) 5% 60px;
}

.section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.section-inner.no-image {
    grid-template-columns: 1fr;
}

.section-inner.no-image .section-text {
    text-align: center;
}

.section-text h2 {
    margin-bottom: 14px;
    font-size: var(--header-size, 2rem);
}

.section-text p {
    color: var(--text-muted);
    font-size: var(--text-size, 1.05rem);
}

.section-type-scramble-tiles .section-text {
    text-align: center;
}

.scramble-tiles-grid {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.scramble-tile {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    text-align: center;
    flex: 0 1 200px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.scramble-tile-title {
    font-family: var(--font-brand);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.scramble-tile-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.scramble-tiles-grid .scramble-tile:nth-child(1) .scramble-tile-title {
    color: #4de4ff;
}

.scramble-tiles-grid .scramble-tile:nth-child(2) .scramble-tile-title {
    color: #6bc8fb;
}

.scramble-tiles-grid .scramble-tile:nth-child(3) .scramble-tile-title {
    color: #88acf7;
}

.scramble-tiles-grid .scramble-tile:nth-child(4) .scramble-tile-title {
    color: #a691f4;
}

.scramble-tiles-grid .scramble-tile:nth-child(5) .scramble-tile-title {
    color: #c475f0;
}

.scramble-tiles-grid .scramble-tile:nth-child(6) .scramble-tile-title {
    color: #e159ec;
}

.scramble-tiles-grid .scramble-tile:nth-child(7) .scramble-tile-title {
    color: #ff3de8;
}

.section-media img {
    width: 100%;
    max-width: 450px;
    aspect-ratio: var(--section-media-ratio);
    min-height: 320px;
    /* CLS guard */
    border-radius: 24px;
    box-shadow: none;
    display: block;
    margin: 0 auto;
    background: transparent;
}

.section-media-only {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.section-media-only img,
.section-media-only video {
    width: 100%;
    max-width: 450px;
    aspect-ratio: var(--section-media-ratio);
    min-height: 320px;
    /* CLS guard */
    border-radius: 24px;
    box-shadow: none;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    background: transparent;
}

.section-media video {
    width: 100%;
    max-width: 450px;
    aspect-ratio: var(--section-media-ratio);
    min-height: 320px;
    /* CLS guard */
    border-radius: 24px;
    box-shadow: none;
    display: block;
    margin: 0 auto;
    background: transparent;
    object-fit: contain;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.section-media-only video {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.section-type-divider {
    padding: 10px 0;
    min-height: 140px;
    /* CLS guard */
}

.divider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 40px 0;
    opacity: 0.9;
}

.divider-svg {
    width: 100%;
    max-width: 620px;
    height: 40px;
}

/* Odwrócone przejście kolorów: lewa strona z niebieskiego w magentę, prawa odwrotnie */
.divider-svg .stop-left {
    animation: divider-left 2s ease-in-out infinite alternate;
}

.divider-svg .stop-right {
    animation: divider-right 2s ease-in-out infinite alternate;
}

.divider-svg .stop-center {
    animation: divider-center 2s ease-in-out infinite alternate;
}

@keyframes divider-left {
    0% {
        stop-color: var(--accent-secondary);
    }

    50% {
        stop-color: #7ff0ff;
    }

    100% {
        stop-color: var(--accent-color);
    }
}

@keyframes divider-right {
    0% {
        stop-color: var(--accent-color);
    }

    50% {
        stop-color: #ff6ef0;
    }

    100% {
        stop-color: var(--accent-secondary);
    }
}

@keyframes divider-center {
    0% {
        stop-color: var(--accent-color);
    }

    50% {
        stop-color: #ff6ef0;
    }

    100% {
        stop-color: var(--accent-color);
    }
}

@keyframes pulse-line {
    0% {
        filter: drop-shadow(0 0 2px rgba(255, 61, 232, 0.25));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(77, 228, 255, 0.55));
    }

    100% {
        filter: drop-shadow(0 0 2px rgba(255, 61, 232, 0.25));
    }
}

.divider-svg path {
    animation: pulse-line 3s infinite ease-in-out;
}

/* --- New Bouncing Divider (SVG version) --- */
.section-type-divider-bounce {
    padding: 10px 0;
    min-height: 80px;
    overflow: hidden;
}

.divider-bounce-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 15px auto;
    padding: 0;
    opacity: 0.9;
}

.divider-bounce-container .divider-img {
    width: 100%;
    max-width: 960px;
    height: auto;
    min-height: 60px;
    display: block;
    object-fit: contain;
}

.divider-bounce-container .divider-svg {
    width: 100%;
    max-width: 960px;
    height: auto;
    min-height: 60px;
    display: block;
}



.section-media img[src$=".svg"] {
    background: transparent;
    mix-blend-mode: normal;
    /* bez mieszania, zachowuje oryginalne kolory */
    filter: none;
}

.section-type-big {
    --header-size: 2.3rem;
    --text-size: 1.05rem;
}

.section-type-normal {
    --header-size: 1.8rem;
    --text-size: 1.05rem;
}

.section-type-framed {
    --header-size: 1.8rem;
    --text-size: 1.05rem;
}

.section-type-framed .section-inner {
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
}

.section-type-framed .section-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045));
    z-index: 0;
}

.section-type-framed .section-inner > * {
    position: relative;
    z-index: 1;
}

.section-type-framed h2 {
    color: var(--accent-color);
}

.section-type-youtube-embed {
    --header-size: 1.8rem;
    --text-size: 1.05rem;
}

.section-type-youtube-embed .section-text {
    text-align: center;
    margin-bottom: 18px;
}

.section-type-youtube-embed .section-text p {
    max-width: 760px;
    margin: 0 auto;
}

.youtube-embed-frame {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.youtube-embed-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045));
    z-index: 0;
    pointer-events: none;
}

.youtube-embed-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    position: relative;
    z-index: 1;
}

.youtube-fallback-link {
    text-align: center;
}

.youtube-fallback-link a {
    color: var(--accent-color);
    font-family: var(--font-brand);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
}

.youtube-fallback-link a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.section-type-page-links {
    --header-size: 1.8rem;
    --text-size: 1.05rem;
}

.section-type-page-links .section-text {
    text-align: center;
    margin-bottom: 18px;
}

.section-type-page-links .section-text p {
    max-width: 760px;
    margin: 0 auto;
}

.page-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.page-link-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    background: var(--glass-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045));
    z-index: 0;
    pointer-events: none;
}

.page-link-card > * {
    position: relative;
    z-index: 1;
}

.page-link-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: var(--accent-color);
}

.page-link-card p {
    margin: 0 0 16px;
    color: var(--text-muted);
    line-height: 1.45;
}

.page-link-card-btn {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--accent-color);
    border-radius: 999px;
    color: var(--accent-color);
    font-family: var(--font-brand);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.page-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 61, 232, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.section-type-contact-form {
    min-height: 700px;
    /* CLS guard */
}

.contact-section {
    background: transparent;
}

.contact-form-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-brand);
    color: var(--accent-color);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 5px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 61, 232, 0.25);
}

button[type="submit"] {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 15px 30px;
    font-family: var(--font-brand);
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: white;
}

button[type="submit"]:disabled {
    background: rgba(255, 255, 255, 0.35);
    color: rgba(0, 0, 0, 0.7);
    cursor: not-allowed;
    box-shadow: none;
}

.recaptcha-reserve {
    min-height: 100px;
    /* CLS guard */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-blocked-panel {
    margin: 0 auto 20px;
    max-width: 640px;
    padding: 14px 16px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(4, 8, 18, 0.6);
    color: var(--text-muted);
}

.cookie-blocked-panel p {
    margin: 0;
    color: var(--text-muted);
}

.cookie-blocked-panel .cookie-open-settings {
    margin-top: 10px;
}

.cookie-blocked-panel .youtube-fallback-link {
    margin-top: 12px;
}

.cookie-open-settings {
    appearance: none;
    border: 1px solid rgba(255, 61, 232, 0.55);
    background: rgba(255, 61, 232, 0.14);
    color: var(--text-main);
    border-radius: 999px;
    padding: 8px 14px;
    font-family: var(--font-brand);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.cookie-open-settings:hover {
    background: rgba(255, 61, 232, 0.24);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid green;
    color: #4ade80;
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid red;
    color: #f87171;
}

.download-section {
    padding-bottom: 40px;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.download-media {
    text-align: center;
}

.download-media .app-icon {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 32px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
}

.download-actions h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.download-actions p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.section-type-cube-render {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
}

.section-type-cube-render .cube-render {
    padding: 40px 5% 20px;
}

.cube-render {
    padding: 40px 5% 20px;
}

.cube-render .video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.cube-render video {
    height: 50vh;
    max-width: 90vw;
    width: auto;
    aspect-ratio: var(--cube-video-ratio);
    object-fit: contain;
    background-color: transparent;
    opacity: 1;
    display: block;
}

footer {
    min-height: 140px;
    /* CLS guard */
}

.footer-policy-row {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-policy-row a,
.footer-policy-row .cookie-manage-btn {
    color: var(--text-muted);
    font: inherit;
    letter-spacing: inherit;
    text-decoration: none;
    opacity: 0.9;
}

.footer-policy-row a:hover,
.footer-policy-row .cookie-manage-btn:hover {
    text-decoration: underline;
    opacity: 1;
}

/* 9. STICKY NAVIGATION */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 10, 20, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    height: 60px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease-in-out, background 0.3s ease, backdrop-filter 0.3s ease;
    /* Animacja wysuwania/chowania oraz tła */
}

/* Background applied only when scrolled */
.sticky-nav.nav-scrolled {
    background: rgba(5, 10, 20, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

/* 10. COOKIE CONSENT */
.cookie-manage-btn {
    appearance: none;
    border: none;
    padding: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    opacity: inherit;
    cursor: pointer;
    text-decoration: none;
}

.cookie-manage-btn:hover {
    text-decoration: inherit;
    opacity: inherit;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 62px;
    z-index: 2100;
    display: none;
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(5, 10, 20, 0.88);
    color: var(--text-main);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner p {
    margin: 0 0 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    appearance: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-family: var(--font-brand);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.cookie-btn-accept {
    border: 1px solid rgba(77, 228, 255, 0.65);
    background: rgba(77, 228, 255, 0.14);
    color: var(--text-main);
}

.cookie-btn-accept:hover {
    background: rgba(77, 228, 255, 0.24);
}

.cookie-btn-reject {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.16);
}

.cookie-policy-link {
    color: var(--accent-secondary);
    font-family: var(--font-brand);
    font-size: 0.82rem;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

.sticky-nav.nav-hidden {
    transform: translateY(-100%);
    /* Ukrycie menu nad ekranem */
}

/* Force visible state when nav-hidden is removed */
.sticky-nav:not(.nav-hidden) {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link img {
    height: 48px;
    /* Slightly larger for the icon */
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    /* Changed to Montserrat */
    font-size: 0.85rem;
    transition: color 0.3s;
    letter-spacing: 0.5px;
    /* Reduced letter spacing slightly */
    font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--accent-color);
}

.nav-cta {
    border: 1px solid var(--accent-color);
    padding: 6px 16px;
    border-radius: 6px;
    color: var(--accent-color) !important;
}

.nav-cta:hover {
    background: rgba(255, 61, 232, 0.1);
    box-shadow: 0 0 10px rgba(255, 61, 232, 0.3);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    text-align: center;
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-brand);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a.nav-cta {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 999px;
    margin: 10px auto 6px;
    padding: 10px 18px;
    width: fit-content;
}

/* 8. RESPONSYWNOŚĆ (MOBILE) */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .logo {
        padding-top: max(20px, env(safe-area-inset-top) + 10px);
        padding-bottom: 10px;
        text-align: center;
    }

    /* ... rest of existing mobile styles ... */
    .logo img {
        max-width: 80vw;
        max-height: 110px;
        width: auto;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* [Reszta styli bez zmian...] */
    .hero-inline {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .hero-media {
        display: flex;
        justify-content: center;
        overflow: hidden;
    }

    .hero-media video {
        width: calc(100vw - 16px);
        /* unik h-scroll, nadal szeroko */
        max-width: calc(100vw - 16px);
        min-height: 260px;
        /* +20% vs poprzednie 216px */
        height: auto;
        margin: 0 auto;
    }

    .hero-inline-text h1 {
        font-size: 2rem;
    }

    .hero-inline-text p {
        font-size: 1.05rem;
    }

    .section-type-cube-render {
        width: 100%;
        margin-left: 0;
    }

    .section-type-cube-render .cube-render {
        padding: 20px 0 10px;
    }

    .store-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 300px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .section-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-media {
        order: 1;
    }

    .section-text {
        order: 2;
    }

    .section-media img {
        max-width: 100%;
    }

    .download-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .youtube-embed-frame {
        border-radius: 14px;
    }

    .cookie-banner {
        bottom: 72px;
        padding: 14px;
    }

    .cookie-banner p {
        font-size: 0.88rem;
    }

    .cookie-banner-actions {
        gap: 8px;
    }

    .cookie-btn,
    .cookie-policy-link {
        font-size: 0.78rem;
    }

    .page-links-grid {
        grid-template-columns: 1fr;
    }

    .download-actions {
        text-align: center;
    }

    .download-actions .store-buttons {
        justify-content: center;
    }

    .cube-render {
        padding: 20px 5% 10px;
    }

    .cube-render video {
        height: 45vh;
    }
}

/* 10. ANIMACJE WEJŚCIOWE (Additions) */

/* Scroll Reveal */
/* Scroll Reveal */
/* Scroll Reveal */
.fade-in-section {
    opacity: 0;
    transform: translateY(60px) scale(0.85);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Hero Text Entrance */
.hero-animate-in {
    opacity: 0;
    transform: translateY(60px);
    animation: hero-fade-up 1.0s ease-out forwards;
}

.hero-delay-1 {
    animation-delay: 0.4s;
}

/* H1 */
.hero-delay-2 {
    animation-delay: 0.8s;
}

/* P */
.hero-delay-3 {
    animation-delay: 1.2s;
}

/* Buttons/Other */

@keyframes hero-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
