#homepage-hero {
    padding: 5dvh 0 7dvh;
    position: relative;
    background: linear-gradient(160deg, #3d2a63 0%, #5f498e 40%, #7b5fbf 100%);
}

/* Background photo — same approach as subpages */
.homepage-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url('/marketing/images/homepage-hero/dokobero-homepage-background-1080p.webp') center bottom / cover no-repeat;
    opacity: .25;
}

/* Dark bottom fade */
.homepage-hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom,
    transparent 0%,
    rgba(61,42,99,.08) 20%,
    rgba(61,42,99,.30) 40%,
    rgba(61,42,99,.60) 60%,
    rgba(61,42,99,.85) 80%,
    rgb(61,42,99) 100%);
}

/* Content layers above bg */
#homepage-hero > .container { position: relative; z-index: 2; }
.homepage-hero-bg { z-index: 0; }
.homepage-hero-bottom-fade { z-index: 1; }

/* Nav container musi być wyżej od hero-desc/screen w głównej kaskadzie,
   żeby mega-menu dropdown (wewnątrz stacking contextu nav) mógł przykryć H1.
   Inaczej hero-desc jako sibling z tym samym z-index:2 i późniejszym DOM-order wygrywa. */
#homepage-hero > .container:has(> #homepage-hero-nav) {
    z-index: 100;
}

#homepage-hero-nav {
    padding: 12px;
    border-radius: 24px;
    position: relative;
    z-index: 100;
}

#homepage-hero-desc {
    padding: 8dvh 0 3dvh 0;
}

/* Pasek zaufania pod CTA */
.hp-hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 30px;
}
.hp-hero-trust > span:not(.hp-hero-trust-sep) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .82);
    font-size: .92rem;
    font-weight: 500;
}
.hp-hero-trust i {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, .7);
}
.hp-hero-trust-sep {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
}
@media (max-width: 575.98px) {
    .hp-hero-trust-sep { display: none; }
    .hp-hero-trust { gap: 12px; flex-direction: column; }
}

/* Hero CTA buttons */
.hero-cta-primary {
    background: #fff !important;
    color: #5f498e !important;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 1rem;
    transition: transform .12s, box-shadow .15s;
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    color: #5f498e !important;
}

.hero-cta-ghost {
    background: transparent !important;
    color: #fff !important;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,.35) !important;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 1rem;
    transition: background .12s, border-color .15s;
}

.hero-cta-ghost:hover {
    background: rgba(255,255,255,.1) !important;
    border-color: rgba(255,255,255,.6) !important;
    color: #fff !important;
}
