/* =========================================================
   WORKPOT MODERN HERO
   Uses the active PrimeFaces theme variables.
   ========================================================= */

:root {
    --wp-hero-primary: var(--primary-color);
    --wp-hero-primary-light: var(--primary-300, var(--primary-color));
    --wp-hero-primary-dark: var(--primary-700, var(--primary-color));

    --wp-hero-navy: #041e2a;
    --wp-hero-navy-soft: #062f3f;
    --wp-hero-teal: #004e5f;

    --wp-hero-text: #f4fbff;
    --wp-hero-text-muted: rgba(226, 244, 250, .72);

    --wp-hero-glass: rgba(8, 39, 52, .64);
    --wp-hero-glass-strong: rgba(7, 31, 43, .86);
    --wp-hero-border: rgba(174, 233, 250, .14);
    --wp-hero-shadow: 0 30px 80px rgba(0, 14, 24, .44);

    --wp-hero-radius-lg: 1.75rem;
    --wp-hero-radius-md: 1.2rem;
    --wp-hero-max-width: 1240px;
}

html {
    scroll-behavior: smooth;
}

.wp-landing-body {
    margin: 0;
    overflow-x: hidden;
    background: var(--wp-hero-navy);
}

.wp-landing-container {
    width: min(calc(100% - 3rem), var(--wp-hero-max-width));
    margin-inline: auto;
}

/* Navigation */

.wp-hero-nav {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    padding: 1rem 0;
    transition: padding .25s ease, background .25s ease, box-shadow .25s ease;
}

.wp-hero-nav.is-scrolled {
    padding: .55rem 0;
    background: color-mix(in srgb, var(--wp-hero-navy) 84%, transparent);
    border-bottom: 1px solid var(--wp-hero-border);
    box-shadow: 0 12px 40px rgba(0, 10, 18, .22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.wp-hero-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.25rem;
    padding: .6rem .75rem .6rem 1rem;
    border: 1px solid var(--wp-hero-border);
    border-radius: 1.4rem;
    background: color-mix(in srgb, var(--wp-hero-glass) 82%, transparent);
    box-shadow: 0 12px 36px rgba(0, 10, 18, .18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.wp-hero-brand {
    display: inline-flex;
    align-items: center;
    min-width: 9rem;
}

.wp-hero-brand__logo {
    display: block;
    width: auto;
    max-width: 10rem;
    height: 2.65rem;
    object-fit: contain;
}

.wp-hero-nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.wp-hero-nav__links a,
.wp-hero-login {
    position: relative;
    color: var(--wp-hero-text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color .18s ease;
}

.wp-hero-nav__links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -.55rem;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--wp-hero-primary-light);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.wp-hero-nav__links a:hover,
.wp-hero-login:hover {
    color: var(--wp-hero-text);
}

.wp-hero-nav__links a:hover::after {
    transform: scaleX(1);
}

.wp-hero-nav__actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.wp-hero-language.ui-button {
    color: var(--wp-hero-text-muted);
}

.wp-hero-language.ui-button:hover {
    color: var(--wp-hero-text);
    background: rgba(255, 255, 255, .06);
}

.wp-language-panel {
    min-width: 12rem;
}

.wp-language-option.ui-button {
    width: 100%;
    justify-content: flex-start;
}

.wp-hero-primary-button.ui-button {
    border: 0;
    border-radius: .9rem;
    color: var(--primary-color-text, #fff);
    background:
        linear-gradient(
            135deg,
            var(--wp-hero-primary-light),
            var(--wp-hero-primary)
        );
    box-shadow:
        0 12px 28px color-mix(in srgb, var(--wp-hero-primary) 28%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.wp-hero-primary-button.ui-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        0 18px 34px color-mix(in srgb, var(--wp-hero-primary) 36%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, .28);
}

.wp-hero-menu-button {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--wp-hero-border);
    border-radius: .85rem;
    color: var(--wp-hero-text);
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.wp-hero-mobile-menu {
    display: none;
}

/* Hero */

.wp-hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    padding: 10rem 0 3rem;
    overflow: hidden;
    color: var(--wp-hero-text);
    background:
        radial-gradient(
            circle at 12% 18%,
            color-mix(in srgb, var(--wp-hero-primary) 22%, transparent),
            transparent 33%
        ),
        radial-gradient(
            circle at 88% 28%,
            color-mix(in srgb, var(--wp-hero-teal) 70%, transparent),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            var(--wp-hero-navy) 0%,
            var(--wp-hero-navy-soft) 52%,
            var(--wp-hero-navy) 100%
        );
}

.wp-hero__ambient {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .42;
    pointer-events: none;
}

.wp-hero__ambient--one {
    top: 14%;
    left: -10rem;
    width: 28rem;
    height: 28rem;
    background: var(--wp-hero-primary);
}

.wp-hero__ambient--two {
    right: -8rem;
    bottom: 4%;
    width: 30rem;
    height: 30rem;
    background: var(--wp-hero-teal);
}

.wp-hero__grid-pattern {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .17;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.wp-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(34rem, 1.12fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
    min-height: calc(100vh - 13rem);
}

.wp-hero__content {
    position: relative;
    z-index: 3;
}

.wp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .85rem;
    border: 1px solid var(--wp-hero-border);
    border-radius: 999px;
    color: var(--wp-hero-text-muted);
    background: rgba(255, 255, 255, .045);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .025em;
    backdrop-filter: blur(12px);
}

.wp-hero__eyebrow-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--wp-hero-primary-light);
    box-shadow: 0 0 0 .3rem color-mix(in srgb, var(--wp-hero-primary) 13%, transparent);
}

.wp-hero__title {
    max-width: 11ch;
    margin: 1.7rem 0 1.4rem;
    font-size: clamp(3.2rem, 5.3vw, 5.85rem);
    font-weight: 780;
    line-height: .98;
    letter-spacing: -.055em;
}

@media (max-width: 720px) {
    .wp-hero__rotator {
        min-height: 2.15em;
    }

    .wp-hero__rotating-word {
        width: 100%;
        white-space: normal;
    }
}

.wp-hero__rotator {
    position: relative;
    display: block;
    min-height: 1.08em;
    margin-top: .12em;
    color: transparent;
    background:
        linear-gradient(
            100deg,
            var(--wp-hero-primary-light),
            var(--wp-hero-primary),
            #b8f1ff
        );
    background-clip: text;
    -webkit-background-clip: text;
}

.wp-hero__rotating-word {
    position: absolute;
    inset: 0 auto auto 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(.35em);
    transition:
            opacity 320ms ease,
            transform 320ms cubic-bezier(.2, .75, .25, 1),
            visibility 0s linear 320ms;
    pointer-events: none;
    white-space: nowrap;
}

.wp-hero__rotating-word.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
            opacity 320ms ease,
            transform 320ms cubic-bezier(.2, .75, .25, 1),
            visibility 0s;
}

.wp-hero__rotating-word.is-leaving {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-.25em);
    transition:
            opacity 260ms ease,
            transform 260ms ease,
            visibility 0s linear 260ms;
}

.wp-hero__description {
    max-width: 38rem;
    margin: 0;
    color: var(--wp-hero-text-muted);
    font-size: clamp(1.04rem, 1.45vw, 1.22rem);
    line-height: 1.72;
}

.wp-hero__buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem;
}

.wp-hero__buttons .ui-button {
    min-height: 3.3rem;
    padding-inline: 1.35rem;
    align-content: center;
}

.wp-hero-secondary-button {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 3.3rem;
    padding: .55rem 1.15rem .55rem .65rem;
    border: 1px solid var(--wp-hero-border);
    border-radius: .9rem;
    color: var(--wp-hero-text);
    background: rgba(255, 255, 255, .055);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.wp-hero-secondary-button:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--wp-hero-primary) 35%, var(--wp-hero-border));
    background: rgba(255, 255, 255, .085);
}

.wp-hero-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: .7rem;
    color: var(--wp-hero-navy);
    background: var(--wp-hero-primary-light);
}

.wp-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
    margin-top: 1.55rem;
    color: rgba(226, 244, 250, .62);
    font-size: .82rem;
    font-weight: 600;
}

.wp-hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.wp-hero__trust i {
    color: var(--wp-hero-primary-light);
}

/* Product visual */

.wp-hero__visual {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.wp-product-stage {
    position: relative;
    perspective: 1500px;
}

.wp-product-browser {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(178, 235, 250, .18);
    border-radius: var(--wp-hero-radius-lg);
    background: var(--wp-hero-glass-strong);
    box-shadow: var(--wp-hero-shadow);
    transform: rotateY(-4deg) rotateX(1.2deg);
    transform-origin: center;
}

.wp-product-browser::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13);
}

.wp-product-browser__bar {
    display: grid;
    grid-template-columns: 6rem 1fr 6rem;
    align-items: center;
    min-height: 3.15rem;
    padding-inline: 1rem;
    border-bottom: 1px solid var(--wp-hero-border);
    background: rgba(4, 24, 34, .72);
}

.wp-product-browser__dots {
    display: flex;
    gap: .42rem;
}

.wp-product-browser__dots span {
    width: .64rem;
    height: .64rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

.wp-product-browser__dots span:first-child {
    background: color-mix(in srgb, var(--wp-hero-primary) 65%, #fff);
}

.wp-product-browser__address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-width: 0;
    padding: .45rem .8rem;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: .65rem;
    color: rgba(226, 244, 250, .56);
    background: rgba(255, 255, 255, .035);
    font-size: .75rem;
}

.wp-product-browser__screen {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--wp-hero-navy);
}

.wp-product-browser__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.wp-product-browser__video {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: var(--wp-hero-navy);
    background: color-mix(in srgb, var(--wp-hero-primary-light) 90%, white);
    box-shadow:
        0 0 0 .7rem rgba(255, 255, 255, .08),
        0 18px 44px rgba(0, 20, 32, .3);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform .18s ease, box-shadow .18s ease;
}

.wp-product-browser__video:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
        0 0 0 .85rem rgba(255, 255, 255, .1),
        0 22px 50px rgba(0, 20, 32, .4);
}

.wp-floating-card {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 13rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(180, 235, 250, .16);
    border-radius: 1rem;
    color: var(--wp-hero-text);
    background: color-mix(in srgb, var(--wp-hero-glass-strong) 88%, transparent);
    box-shadow: 0 18px 44px rgba(0, 10, 18, .3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: wp-float 5.4s ease-in-out infinite;
}

.wp-floating-card__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .8rem;
    color: var(--wp-hero-navy);
    background: var(--wp-hero-primary-light);
}

.wp-floating-card strong,
.wp-floating-card small {
    display: block;
}

.wp-floating-card strong {
    font-size: .8rem;
    line-height: 1.25;
}

.wp-floating-card small {
    margin-top: .18rem;
    color: rgba(226, 244, 250, .58);
    font-size: .67rem;
}

.wp-floating-card--request {
    top: 8%;
    left: -7%;
}

.wp-floating-card--schedule {
    right: -6%;
    bottom: 12%;
    animation-delay: -1.8s;
}

.wp-floating-card--clock {
    bottom: -5%;
    left: 9%;
    animation-delay: -3.2s;
}

.wp-product-stage__orb {
    position: absolute;
    z-index: -1;
    right: -8%;
    bottom: -12%;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            color-mix(in srgb, var(--wp-hero-primary) 35%, transparent),
            transparent 67%
        );
    filter: blur(10px);
}

.wp-hero__capabilities {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .75rem;
    margin-top: 2.5rem;
    padding: .85rem;
    border: 1px solid var(--wp-hero-border);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .035);
    backdrop-filter: blur(14px);
}

.wp-hero__capabilities div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 2.5rem;
    color: var(--wp-hero-text-muted);
    font-size: .82rem;
    font-weight: 700;
}

.wp-hero__capabilities i {
    color: var(--wp-hero-primary-light);
}

/* Video modal */

.wp-video-modal {
    position: fixed;
    z-index: 2200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
}

.wp-video-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.wp-video-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 10, 18, .82);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.wp-video-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 68rem);
    overflow: hidden;
    border: 1px solid var(--wp-hero-border);
    border-radius: 1.35rem;
    background: var(--wp-hero-navy);
    box-shadow: 0 36px 100px rgba(0, 0, 0, .58);
    transform: translateY(1rem) scale(.98);
    transition: transform .22s ease;
}

.wp-video-modal.is-open .wp-video-modal__dialog {
    transform: translateY(0) scale(1);
}

.wp-video-modal__dialog video {
    display: block;
    width: 100%;
    max-height: 82vh;
    background: #000;
}

.wp-video-modal__close {
    position: absolute;
    z-index: 3;
    top: .8rem;
    right: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .85rem;
    color: #fff;
    background: rgba(0, 0, 0, .46);
    cursor: pointer;
}

/* Reveals */

.wp-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.wp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes wp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* Responsive */

@media (max-width: 1100px) {
    .wp-hero-nav__links {
        display: none;
    }

    .wp-hero-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .wp-hero-mobile-menu {
        position: absolute;
        top: calc(100% - .2rem);
        right: 1.5rem;
        left: 1.5rem;
        display: grid;
        gap: .25rem;
        padding: .75rem;
        border: 1px solid var(--wp-hero-border);
        border-radius: 1rem;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-.5rem);
        background: var(--wp-hero-glass-strong);
        box-shadow: var(--wp-hero-shadow);
        backdrop-filter: blur(18px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .wp-hero-mobile-menu.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .wp-hero-mobile-menu a {
        padding: .85rem 1rem;
        border-radius: .75rem;
        color: var(--wp-hero-text);
        font-weight: 650;
        text-decoration: none;
    }

    .wp-hero-mobile-menu a:hover {
        background: rgba(255, 255, 255, .06);
    }

    .wp-mobile-register {
        color: var(--wp-hero-navy) !important;
        background: var(--wp-hero-primary-light);
    }

    .wp-hero__layout {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 2rem;
    }

    .wp-hero__content {
        max-width: 48rem;
    }

    .wp-hero__title {
        max-width: 12ch;
    }

    .wp-hero__visual {
        width: min(100%, 50rem);
        margin-inline: auto;
    }
}

@media (max-width: 720px) {
    .wp-landing-container {
        width: min(calc(100% - 1.5rem), var(--wp-hero-max-width));
    }

    .wp-hero {
        padding-top: 7.7rem;
    }

    .wp-hero-nav {
        padding: .55rem 0;
    }

    .wp-hero-nav__inner {
        min-height: 3.85rem;
        padding: .45rem .55rem .45rem .75rem;
        border-radius: 1rem;
    }

    .wp-hero-brand__logo {
        max-width: 8.2rem;
        height: 2.3rem;
    }

    .wp-hero-login,
    .wp-hero-register,
    .wp-hero-language {
        display: none !important;
    }

    .wp-hero__title {
        font-size: clamp(2.7rem, 13vw, 4.1rem);
    }

    .wp-hero__rotating-word {
        white-space: normal;
    }

    .wp-hero__buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .wp-hero__buttons .ui-button,
    .wp-hero-secondary-button {
        justify-content: center;
        width: 100%;
    }

    .wp-product-browser {
        transform: none;
    }

    .wp-floating-card {
        min-width: 0;
        padding: .65rem .75rem;
    }

    .wp-floating-card--request {
        top: -8%;
        left: 2%;
    }

    .wp-floating-card--schedule {
        right: 1%;
        bottom: -8%;
    }

    .wp-floating-card--clock {
        display: none;
    }

    .wp-hero__capabilities {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 4rem;
    }

    .wp-hero__capabilities div:last-child {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .wp-reveal,
    .wp-floating-card,
    .wp-hero__rotating-word,
    .wp-product-browser {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .wp-reveal {
        opacity: 1;
    }
}
