/* =========================================================
   WPC DESIGN
   CINEMATIC HERO
========================================================= */


/* =========================================================
   ROOT
========================================================= */

.hero-cinematic {
    position: relative;

    width: 100%;
    min-height: 520px;

    padding: 0;

    overflow: hidden;

    isolation: isolate;

    background: #101827;
}


/* =========================================================
   DEVELOPMENT SCREEN
========================================================= */

.hero-development {
    position: absolute;

    z-index: 10;

    inset: 0;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    visibility: hidden;

    opacity: 0;

    transform:
        scale(.985);

    background: #ffffff;

    transition:
        opacity 500ms ease,
        transform 500ms ease,
        visibility 500ms;
}


.hero-development.is-visible {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}


.hero-development.is-ending {
    opacity: 0;

    transform:
        scale(1.015);
}


/* =========================================================
   CODE EDITOR
========================================================= */

.hero-development__editor {
    min-width: 0;

    display: flex;
    flex-direction: column;

    background:
        #101827;
}


.hero-development__editor-header {
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        0 20px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .06);

    background:
        #0b1220;
}


.hero-development__file {
    color: #c4d2e8;

    font-family:
        Consolas,
        monospace;

    font-size: 10px;
}


.hero-development__language {
    color: #6085c6;

    font-size: 8px;
}


.hero-development__editor-body {
    flex: 1;
    min-height: 0;
    position: relative;

    overflow-y: auto;
    overflow-x: hidden;

    scroll-behavior: smooth;
    scrollbar-width: none;
}


.hero-development__code {
    width: 100%;
    min-height: 100%;

    padding:
        clamp(22px, 3vw, 42px);

    overflow: visible;

    white-space: pre-wrap;

    color:
        #d6e4f7;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size:
        clamp(8px, .78vw, 12px);

    line-height: 1.7;
}


.hero-development__code::-webkit-scrollbar {
    display: none;
}


.hero-development__code::after {
    content: "";

    display: inline-block;

    width: 2px;
    height: 1em;

    margin-left: 3px;

    vertical-align: middle;

    background:
        #6190ff;

    animation:
        heroCursorBlink
        .7s
        steps(1)
        infinite;
}


.hero-development__editor-footer {
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 18px;

    padding:
        0 20px;

    border-top:
        1px solid
        rgba(255,255,255,.05);

    color:
        rgba(255,255,255,.32);

    font-size: 7px;
}


@keyframes heroCursorBlink {

    50% {
        opacity: 0;
    }

}


/* =========================================================
   PREVIEW
========================================================= */

.hero-development__preview {
    position: relative;

    min-width: 0;

    overflow: hidden;

    background:
        #edf3fa;
}


.hero-build {
    width: 100%;
    height: 100%;

    color:
        #111b2f;

    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(36, 99, 255, .14),
            transparent 35%
        ),
        #ffffff;
}


/* =========================================================
   PROJECT NAV
========================================================= */

.hero-build__nav {
    min-height: 60px;

    display: flex;
    align-items: center;

    gap: 18px;

    padding:
        0 22px;

    border-bottom:
        1px solid #e5eaf2;

    opacity: 0;

    transform:
        translateY(-15px);

    transition:
        opacity 500ms ease,
        transform 500ms ease;
}


.hero-build__nav strong {
    margin-right: auto;

    font-size: 11px;
}


.hero-build__nav nav {
    display: flex;

    gap: 15px;

    color:
        #6a778b;

    font-size: 7px;
}


.hero-build__contact {
    padding:
        7px
        11px;

    border-radius: 8px;

    color: #ffffff;

    background:
        var(--color-primary);

    font-size: 7px;
}



/* =========================================================
   LIVE PREVIEW VIEWPORT FIX
========================================================= */

.hero-build__copy {
    overflow: visible;
}

.hero-build__content {
    overflow: hidden;
}

/* =========================================================
   PROJECT CONTENT
========================================================= */

.hero-build__content {
    height:
        calc(100% - 60px);

    display: grid;

    grid-template-columns:
        1.05fr .95fr;
}


.hero-build__copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    padding:
        clamp(72px, 7vw, 110px)
        clamp(28px, 4vw, 60px)
        clamp(28px, 4vw, 60px);

    transform: translate3d(0, 0, 0) !important;

    transition:
        transform 900ms
        cubic-bezier(.16, 1, .3, 1) !important;

    will-change: transform;
}


.hero-build__label,
.hero-build__copy h3,
.hero-build__copy p,
.hero-build__buttons,
.hero-build__visual {
    opacity: 0;

    transform: none !important;

    transition:
        opacity 520ms ease !important;
}


.hero-build__label {
    color:
        var(--color-primary);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .11em;
}


.hero-build__copy h3 {
    max-width: 420px;

    margin-top: 13px;

    color:
        #111b2e;

    font-size:
        clamp(28px, 3vw, 48px);

    line-height: 1.02;

    letter-spacing: -.045em;
}


.hero-build__copy h3 em {
    color:
        var(--color-primary);

    font-style: normal;
}


.hero-build__copy p {
    max-width: 360px;

    margin-top: 15px;

    color:
        #6b788b;

    font-size:
        clamp(9px, .9vw, 13px);

    line-height: 1.65;
}


.hero-build__buttons {
    display: flex;

    gap: 9px;

    margin-top: 20px;
}


.hero-build__buttons span {
    padding:
        8px 11px;

    border:
        1px solid #dae2ed;

    border-radius: 8px;

    background:
        #ffffff;

    color:
        #29374c;

    font-size: 7px;
}


.hero-build__buttons span:first-child {
    color: #ffffff;

    border-color:
        var(--color-primary);

    background:
        var(--color-primary);
}


/* =========================================================
   PREVIEW ART
========================================================= */

.hero-build__visual {
    position: relative;

    overflow: hidden;
}


.hero-build__orb {
    position: absolute;

    width: 80%;

    aspect-ratio: 1;

    top: 13%;
    right: -13%;

    border-radius:
        38%
        62%
        55%
        45%;

    background:
        linear-gradient(
            145deg,
            #8aa9ff,
            #3269ff
        );

    animation:
        heroOrbFloat
        4s
        ease-in-out
        infinite alternate;
}


.hero-build__card {
    position: absolute;

    left: 5%;
    bottom: 19%;

    min-width: 120px;

    padding: 15px;

    border:
        1px solid #e0e7f0;

    border-radius: 15px;

    background:
        rgba(255,255,255,.93);

    box-shadow:
        0 18px 38px
        rgba(25, 45, 80, .14);
}


.hero-build__card small,
.hero-build__card strong {
    display: block;
}


.hero-build__card small {
    color:
        #788597;

    font-size: 7px;
}


.hero-build__card strong {
    margin-top: 2px;

    color:
        var(--color-primary);

    font-size: 21px;
}


/* TECHNOLOGIES */

.hero-build__tech {
    position: absolute;

    padding:
        6px 9px;

    border:
        1px solid #dfe6ef;

    border-radius: 999px;

    background:
        rgba(255,255,255,.94);

    box-shadow:
        0 8px 22px
        rgba(25,45,75,.1);

    color:
        #4170cf;

    font-size: 7px;
    font-weight: 700;
}


.hero-build__tech--html {
    top: 18%;
    left: 6%;
}


.hero-build__tech--css {
    top: 37%;
    right: 7%;
}


.hero-build__tech--js {
    right: 16%;
    bottom: 14%;
}


@keyframes heroOrbFloat {

    from {
        transform:
            translateY(4px)
            rotate(-4deg);
    }

    to {
        transform:
            translateY(-9px)
            rotate(4deg);
    }

}



/* =========================================================
   LIVE PREVIEW - STRICT UPWARD MOTION
   Jediný pohyb dělá celý levý obsah preview směrem nahoru.
   Jednotlivé prvky už nemají vlastní translate animaci.
========================================================= */

.hero-development.build-label
.hero-build__copy {
    transform: translate3d(0, 0, 0) !important;
}

.hero-development.build-title
.hero-build__copy {
    transform: translate3d(0, -24px, 0) !important;
}

.hero-development.build-text
.hero-build__copy {
    transform: translate3d(0, -52px, 0) !important;
}

.hero-development.build-buttons
.hero-build__copy {
    transform: translate3d(0, -82px, 0) !important;
}

.hero-development.build-visual
.hero-build__copy {
    transform: translate3d(0, -110px, 0) !important;
}


/* =========================================================
   BUILD STATES
========================================================= */

.hero-development.build-nav
.hero-build__nav {
    opacity: 1;

    transform:
        translateY(0);
}


.hero-development.build-label
.hero-build__label {
    opacity: 1;
}


.hero-development.build-title
.hero-build__copy h3 {
    opacity: 1;
}


.hero-development.build-text
.hero-build__copy p {
    opacity: 1;
}


.hero-development.build-buttons
.hero-build__buttons {
    opacity: 1;
}


.hero-development.build-visual
.hero-build__visual {
    opacity: 1;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 750px) {

    .hero-cinematic {
        min-height: 460px;
    }


    .hero-development {
        grid-template-columns:
            .9fr
            1.1fr;
    }


    .hero-build__nav nav {
        display: none;
    }


    .hero-build__content {
        grid-template-columns: 1fr;
    }


    .hero-build__visual {
        display: none;
    }


    .hero-development__code {
        padding: 15px;

        font-size: 7px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-cinematic__office,
    .hero-build__orb,
    .hero-development__code::-webkit-scrollbar {
    display: none;
}


.hero-development__code::after {
        animation: none !important;

        transition: none !important;
    }

}

/* =========================================================
   NEW CINEMATIC SEQUENCE OVERRIDES
   VIDEO -> BLACK -> CODE/LIVE -> WHITE -> LOGO
========================================================= */

/* Office video now plays without CSS camera zoom. */
.hero-cinematic__office {
    transform: none !important;
    filter: none !important;
    opacity: 1;
    transition: opacity 450ms ease;
}

.hero-cinematic__office.is-hidden {
    opacity: 0;
}

/* BLACK TRANSITION */
.hero-cinematic__black {
    position: absolute;
    z-index: 30;
    inset: 0;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;
    

    transition:
        opacity 450ms ease,
        visibility 450ms;
}
[data-theme="dark"] .hero-cinematic__final {
    background:
        linear-gradient(
            135deg,
            #161b24,
            #111722
        );
}
.hero-cinematic__black.is-visible {
    visibility: visible;
    opacity: 1;
}

/* FINAL WHITE SCREEN */
.hero-cinematic__final {
    position: absolute;
    z-index: 40;
    inset: 0;

    display: grid;
    place-items: center;

    visibility: hidden;
    opacity: 0;

   background: var(--color-bg);

    transition:
        opacity 700ms ease,
        visibility 700ms;
}

.hero-cinematic__final.is-visible {
    visibility: visible;
    opacity: 1;
}

.hero-cinematic__final-logo {
    width: min(72%, 560px);
    height: auto;

    opacity: 0;

    transform:
        scale(.82)
        translateY(12px);

    transition:
        opacity 900ms ease 120ms,
        transform 1200ms cubic-bezier(.16, 1, .3, 1) 120ms;
}

.hero-cinematic__final.is-visible
.hero-cinematic__final-logo {
    opacity: 1;

    transform:
        scale(1)
        translateY(0);
}

/* Development screen fades away before the white end screen takes over. */
.hero-development.is-ending {
    opacity: 0;
    transform: scale(1.01);
}

/* Mobile: hide the large cinematic animation completely. */
@media (max-width: 650px) {
    .hero__visual.hero-cinematic {
        display: none !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-development,
    .hero-cinematic__final,
    .hero-cinematic__final-logo {
        transition: none !important;
    }
}


.hero-development__editor-body::-webkit-scrollbar {
    display: none;
}

.hero-development__editor-footer {
    justify-content: space-between;
    background: #0b1220;
}

.hero-development__editor-tech {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-development__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: rgba(196, 210, 232, .62);

    font-size: 7px;
    font-weight: 700;
    letter-spacing: .05em;

    transition:
        color 420ms ease,
        transform 520ms cubic-bezier(.16, 1, .3, 1);
}

.hero-development__status::before {
    content: "";

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #6190ff;

    box-shadow:
        0 0 10px rgba(97, 144, 255, .55);

    animation:
        heroStatusPulse 1.1s ease-in-out infinite;
}

.hero-development__status.is-done {
    color: #70d99b;
    transform: translateY(-1px);
}

.hero-development__status.is-done::before {
    background: #39c979;
    box-shadow:
        0 0 10px rgba(57, 201, 121, .5);
    animation: none;
}

@keyframes heroStatusPulse {
    0%, 100% {
        opacity: .35;
        transform: scale(.85);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}
/* =========================================================
   HERO DEVELOPMENT - CODE SCROLL AREA
========================================================= */

.hero-development__editor-body {
    position: relative;

    flex: 1;
    min-height: 0;

    overflow: hidden;
}


.hero-development__code {
    display: block;

    margin: 0;
    padding: 28px 42px;

    font-family: monospace;
    font-size: 14px;
    line-height: 21px;

    white-space: pre;

    transform: translateY(0);

    will-change: transform;
}