.okio-hero {
    box-sizing: border-box;
    min-height: 540px;
    /* Reset: style.css has an older, unrelated bare ".okio-hero { padding }"
       rule (for a legacy page-header context) that would otherwise leak in
       here depending on stylesheet load order. */
    padding: 0;
    background: var(--okio-dark);
    color: var(--okio-dark-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* Breakout: this section renders inside <main class="okio-container">
       (max-width + padding), so a plain width:100% only fills that boxed
       area, not the viewport. Pull out to true edges via margin, without an
       explicit 100vw width (which would overflow by the scrollbar's width). */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.okio-hero * {
    box-sizing: border-box;
}

.okio-hero__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 20px 0;
}

.okio-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    gap: 24px;
    align-items: center;
}

.okio-hero__copy {
    min-width: 0;
    padding: 10px 0 0;
}

.okio-hero__badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 4px 12px;
    border: 1px solid var(--okio-gold-bright);
    border-radius: 999px;
    background: transparent;
    color: var(--okio-gold-bright);
    font-size: 13px;
    line-height: 1.4;
}

.okio-hero__title {
    max-width: 560px;
    margin: 0 0 18px;
    color: #f5f1e8;
    font-family: Outfit, Inter, system-ui, sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.okio-hero__title span {
    display: block;
}

.okio-hero__title-accent {
    color: var(--okio-gold-bright);
}

.okio-hero__subline {
    max-width: 480px;
    margin: 0 0 18px;
    color: var(--okio-dark-muted);
    font-size: 16px;
    line-height: 1.6;
}

.okio-hero__intent {
    margin-bottom: 24px;
}

.okio-hero__intent-label {
    color: #f5f1e8;
    font-size: 15px;
    font-weight: 600;
}

.okio-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.okio-hero__pill {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid var(--okio-accent);
    border-radius: 999px;
    background: #ffffff;
    color: var(--okio-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.okio-hero__pill:hover,
.okio-hero__pill.active {
    border-color: var(--okio-accent);
    background: var(--okio-accent);
    color: var(--okio-accent-ink);
}

.okio-hero__pill.active {
    font-weight: 600;
}

.okio-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.okio-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 28px;
    border: 0;
    border-radius: 8px;
    background: var(--okio-accent);
    color: var(--okio-accent-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.okio-hero__button:hover {
    background: var(--okio-accent-2);
    color: #ffffff;
}

.okio-hero__secondary {
    align-self: center;
    color: var(--okio-gold-bright);
    font-size: 15px;
    line-height: 1.4;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
}

.okio-hero__secondary:hover {
    color: #f5f1e8;
    text-decoration-style: solid;
}

.okio-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 22px;
}

/* Ciche sygnaly zaufania (ghost) - odrozniamy je od interaktywnych bialych pigulek
   intencji powyzej: brak tla/obwodki, wyciszony jasny tekst na ciemnym hero. */
.okio-hero__trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--okio-dark-muted);
    font-size: 13px;
    line-height: 1.3;
}


.okio-hero__trust-badge svg {
    width: 14px;
    height: 14px;
    color: var(--okio-gold-bright);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.okio-hero__visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    padding: 0;
}

.okio-hero__image {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform;
    animation: okioHeroImageIn 600ms cubic-bezier(0.22, 1, 0.36, 1) 200ms forwards;
}

.okio-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 38px;
    padding-top: 28px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.okio-hero__stat {
    padding: 18px 24px;
    border: 1px solid #e8dfc8;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
}

.okio-hero__stat-value {
    color: var(--okio-accent-hover);
    font-family: Outfit, Inter, system-ui, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

.okio-hero__stat-label {
    margin-top: 4px;
    color: var(--okio-muted);
    font-size: 13px;
    line-height: 1.4;
}

.okio-hero__stat--text .okio-hero__stat-value {
    opacity: 0;
    transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.okio-hero__stats.is-visible .okio-hero__stat--text .okio-hero__stat-value {
    opacity: 1;
}

.okio-hero__reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: okioHeroFadeIn 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.okio-hero__reveal:nth-child(1) {
    animation-delay: 0ms;
}

.okio-hero__reveal:nth-child(2) {
    animation-delay: 100ms;
}

.okio-hero__reveal:nth-child(3) {
    animation-delay: 200ms;
}

.okio-hero__reveal:nth-child(4) {
    animation-delay: 300ms;
}

.okio-hero__reveal:nth-child(5) {
    animation-delay: 400ms;
}

.okio-hero__reveal:nth-child(6) {
    animation-delay: 500ms;
}

.okio-hero__button:focus-visible,
.okio-hero__secondary:focus-visible,
.okio-hero__pill:focus-visible {
    outline: 2px solid var(--okio-gold-bright);
    outline-offset: 2px;
}

@keyframes okioHeroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes okioHeroImageIn {
    to {
        opacity: 1;
        transform: translateY(var(--okio-hero-parallax, 0px));
    }
}

@media (max-width: 1023px) {
    .okio-hero__inner {
        padding-right: 20px;
        padding-left: 20px;
    }

    .okio-hero__grid {
        grid-template-columns: 60% 40%;
        gap: 20px;
    }

    .okio-hero__title {
        font-size: 36px;
    }

    .okio-hero__trust {
        display: none;
    }
}

@media (max-width: 767px) {
    .okio-hero {
        min-height: auto;
        overflow-x: clip;
    }

    .okio-hero__inner {
        width: 100%;
        max-width: 100%;
        padding: 42px 20px 0;
    }

    .okio-hero__grid {
        display: block;
    }

    .okio-hero__copy {
        max-width: 100%;
        padding-right: 0;
    }

    .okio-hero__visual {
        display: none;
    }

    .okio-hero__reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .okio-hero__title {
        max-width: 320px;
        font-size: 23px !important;
        line-height: 1.08 !important;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    .okio-hero__title span {
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .okio-hero__subline {
        max-width: 320px !important;
        overflow-wrap: anywhere;
    }

    .okio-hero__pill {
        min-height: 33px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .okio-hero__stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .okio-hero__reveal,
    .okio-hero__image {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .okio-hero__pill,
    .okio-hero__button,
    .okio-hero__stat--text .okio-hero__stat-value {
        transition: none;
    }
}
