.uz-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.uz-container {
    width: min(calc(100vw - 2rem), var(--uz-container));
    margin: 0 auto;
}

.uz-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(7, 9, 8, 0.86);
    border-bottom: 1px solid var(--uz-border);
}

.uz-header__inner,
.uz-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.uz-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--uz-font);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.uz-logo__mark {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--uz-primary-ink);
    background: var(--uz-primary);
    box-shadow: none;
}

.uz-logo__mark-icon {
    width: 1.35rem;
    height: 1.45rem;
    display: block;
}

.uz-brand-wordmark {
    /* Letter-body height vs surrounding caps (arrow/roof sit above). */
    --uz-wm-cap: 0.76em;
    /* Horizontal trim only — keeps glyph height; avoids CSS box squash. */
    --uz-wm-slim: 0.96;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

.uz-brand-wordmark__gap {
    display: inline-block;
    width: 0.28em;
}

.uz-brand-wordmark__house {
    white-space: nowrap;
}

.uz-brand-wordmark__u,
.uz-brand-wordmark__h {
    position: relative;
    display: inline-block;
    margin: 0 0.01em;
    color: inherit;
    -webkit-text-stroke: 0;
}

.uz-brand-wordmark__u {
    /*
     * viewBox 48×55 (y 1–56). Stems/bowl ≈ cap height; arrow sits above.
     */
    height: calc(var(--uz-wm-cap) * 55 / 40.5);
    width: calc(var(--uz-wm-cap) * 48 / 40.5 * var(--uz-wm-slim));
    margin-right: 0.02em;
    vertical-align: -0.04em;
    overflow: hidden;
}

.uz-brand-wordmark__h {
    /*
     * Same rule as U: walls/H body ≈ cap height; roof sits above.
     */
    height: calc(var(--uz-wm-cap) * 48 / 33);
    width: calc(var(--uz-wm-cap) * 48 / 33 * var(--uz-wm-slim));
    vertical-align: -0.04em;
    overflow: hidden;
}

.uz-brand-wordmark__u-text,
.uz-brand-wordmark__h-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.uz-brand-wordmark__u-icon,
.uz-brand-wordmark__h-icon {
    /* Draw at full aspect, then scaleX so height is unchanged. */
    display: block;
    height: 100%;
    width: calc(100% / var(--uz-wm-slim));
    transform: scaleX(var(--uz-wm-slim));
    transform-origin: center bottom;
}

.uz-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.uz-nav__link {
    padding: 0.55rem 0.8rem;
    border-radius: 4px;
    color: var(--uz-text-muted);
    font-size: 0.95rem;
}

.uz-nav__link:hover,
.uz-nav__link.is-active {
    color: var(--uz-text);
    background: rgba(240, 255, 106, 0.08);
}

.uz-nav__account {
    display: none;
}

.uz-nav__logout {
    display: none;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.uz-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: flex-end;
}

.uz-nav-toggle {
    display: none;
    border: 1px solid var(--uz-border);
    background: transparent;
    color: var(--uz-text);
    border-radius: 4px;
    padding: 0.55rem 0.85rem;
    font-family: var(--uz-mono);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: none;
}

.uz-main {
    padding: 0 0 3rem;
}

.uz-main > .uz-container {
    padding-top: 2rem;
}

.uz-page-home .uz-main > .uz-container {
    width: 100%;
    max-width: none;
    padding-top: 0;
}

.uz-footer {
    border-top: 1px solid var(--uz-border);
    background: rgba(8, 12, 10, 0.92);
}

.uz-footer__inner {
    flex-wrap: wrap;
}

.uz-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--uz-text-muted);
}

.uz-footer__trust {
    width: 100%;
    margin: 0;
    font-family: var(--uz-mono);
    font-size: 0.82rem;
    color: var(--uz-text-muted);
    letter-spacing: 0.02em;
}

.uz-page-shell {
    display: grid;
    gap: 1.5rem;
}

.uz-page-shell--narrow {
    max-width: 720px;
}

.uz-hero {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--uz-card);
    border: 1px solid var(--uz-border);
    border-radius: var(--uz-radius-lg);
    box-shadow: var(--uz-shadow);
}

.uz-hero__eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    background: rgba(240, 255, 106, 0.1);
    color: var(--uz-primary);
    font-family: var(--uz-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.uz-hero__columns {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    align-items: center;
}

.uz-section {
    display: grid;
    gap: 1rem;
}

.uz-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Full-bleed landing hero */
.uz-landing-hero {
    position: relative;
    display: grid;
    align-items: start;
    overflow: hidden;
    border-bottom: 1px solid var(--uz-border);
    /* Avoid solid #070908 / keyword transparent — Firefox can paint a hard black band. */
    background-color: #0a100c;
    background-image:
        linear-gradient(180deg, rgba(10, 16, 12, 0.2) 0%, rgba(10, 16, 12, 0.55) 100%),
        repeating-linear-gradient(
            -18deg,
            rgba(240, 255, 106, 0) 0,
            rgba(240, 255, 106, 0) 46px,
            rgba(240, 255, 106, 0.04) 46px,
            rgba(240, 255, 106, 0.04) 47px
        );
}

/* Home is hero-only — fill the old below-fold band so it doesn't read as an empty section. */
.uz-page-home .uz-main {
    display: grid;
}

.uz-page-home .uz-landing-hero {
    min-height: 100%;
    align-items: center;
    border-bottom: 0;
}

.uz-landing-hero__inner {
    /* Horizontally centered column; content left-aligned inside it. */
    width: min(calc(100vw - 2rem), 720px);
    margin: 0 auto;
    padding: 2.5rem 0 3.5rem;
    display: grid;
    gap: 1.1rem;
    justify-items: start;
    text-align: left;
}

.uz-landing-hero__brand {
    font-family: var(--uz-font);
    font-size: clamp(2.4rem, 7.5vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--uz-primary);
    text-transform: uppercase;
    margin: 0;
    text-shadow: none;
    -webkit-text-stroke: 0.018em currentColor;
    paint-order: stroke fill;
    max-width: 100%;
}


.uz-landing-hero__product {
    margin: 0;
    font-family: var(--uz-font);
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--uz-text);
    justify-self: stretch;
    width: 100%;
    text-align: center;
}

.uz-landing-hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    margin-bottom: 0.25rem;
    justify-self: stretch;
    width: 100%;
    text-align: center;
}

.uz-landing-hero .uz-form__actions {
    justify-content: center;
    justify-self: stretch;
    width: 100%;
    margin-top: 0.75rem;
    margin-bottom: 2.75rem;
}

.uz-landing-hero__tagline {
    font-family: var(--uz-mono);
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--uz-primary-strong);
    letter-spacing: 0.04em;
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .uz-landing-hero__brand,
    .uz-landing-hero h1,
    .uz-landing-hero__tagline,
    .uz-landing-hero .uz-form__actions {
        animation: uz-rise 0.55s ease-out;
    }
}

.uz-landing-body {
    width: min(calc(100vw - 2rem), var(--uz-container));
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .uz-landing-body {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1.5rem;
    }

    .uz-landing-section--wide {
        grid-column: 1 / -1;
    }
}

.uz-landing-section {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    padding: 1.5rem 1.35rem;
    border: 1px solid rgba(240, 255, 106, 0.12);
    border-radius: var(--uz-radius-md);
    background: rgba(12, 18, 14, 0.72);
}

.uz-landing-section h1,
.uz-landing-section h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    max-width: none;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.uz-how-page .uz-landing-section h1 {
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.uz-landing-section > p {
    max-width: none;
    font-size: 1rem;
    margin-bottom: 0;
}

.uz-landing-steps {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.55rem;
    color: var(--uz-text-muted);
}

.uz-landing-steps li::marker {
    color: var(--uz-primary);
}

.uz-trust-strip {
    display: grid;
    gap: 0.75rem;
    font-family: var(--uz-mono);
    font-size: 0.9rem;
    color: var(--uz-text-muted);
}

.uz-trust-strip strong {
    color: var(--uz-text);
    font-weight: 600;
}

@keyframes uz-brand-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes uz-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    .uz-header__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.75rem;
    }

    .uz-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .uz-nav {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.35rem 0 0.5rem;
    }

    .uz-header.is-nav-open .uz-nav {
        display: flex;
    }

    .uz-nav__link {
        padding: 0.75rem 0.9rem;
    }

    .uz-nav__account {
        display: block;
    }

    .uz-nav__logout {
        display: block;
        margin-top: 0.35rem;
        border-top: 1px solid var(--uz-border);
        border-radius: 0 0 4px 4px;
        padding-top: 0.85rem;
        color: var(--uz-text);
    }

    .uz-header__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .uz-header__actions .uz-button {
        flex: 1 1 auto;
        text-align: center;
    }

    body[data-authenticated="1"] .uz-header__actions {
        display: none;
    }

    .uz-header__upload {
        display: none;
    }

    .uz-footer__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .uz-hero__columns {
        grid-template-columns: 1fr;
    }

    .uz-landing-hero__inner {
        padding: 1.75rem 0 2.75rem;
    }

    .uz-landing-hero__brand {
        font-size: clamp(2.15rem, 12vw, 3.4rem);
        letter-spacing: 0.03em;
    }

    .uz-landing-hero__product {
        letter-spacing: 0.2em;
    }

}
