/* ==========================================================
   RVIOTECH PRODUCT LIFECYCLE
========================================================== */

* {
    box-sizing: border-box;
}


html,
body {

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

}


body {

    background: transparent;

    color: #ffffff;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    overflow: hidden;

}


/* ==========================================================
   MAIN
========================================================== */

.lifecycle {

    width: 100%;
    height: 100vh;

    min-height: 520px;

    padding:
        22px 28px 24px;

    display: flex;

    flex-direction: column;

    position: relative;

}


/* ==========================================================
   HEADER
========================================================== */

.lifecycle-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 32px;

    flex-shrink: 0;

    color:
        rgba(235,242,239,.42);

    font-size: 10px;

    font-weight: 600;

    letter-spacing:
        .16em;

    text-transform:
        uppercase;

    border-bottom:
        1px solid rgba(255,255,255,.07);

}


/* ==========================================================
   STATUS
========================================================== */

.system-status {

    display: flex;

    align-items: center;

    gap: 8px;

}


.system-status i {

    display: block;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        #35e3a4;

    box-shadow:
        0 0 10px rgba(53,227,164,.8);

    animation:
        pulse 2s infinite;

}


@keyframes pulse {

    0%,
    100% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }

}


/* ==========================================================
   STAGE
========================================================== */

.stage {

    position: relative;

    flex: 1;

    min-height: 0;

    margin-top: 18px;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.07);

    border-radius: 5px;

    background:
        #06100c;

}


/* ==========================================================
   GRID
========================================================== */

.stage::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: 4;

    pointer-events: none;

    background-image:

        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size:
        42px 42px;

    mask-image:
        radial-gradient(
            ellipse at center,
            black 10%,
            transparent 85%
        );

}


/* ==========================================================
   GREEN ATMOSPHERE
========================================================== */

.stage::after {

    content: "";

    position: absolute;

    z-index: 4;

    pointer-events: none;

    width: 80%;
    height: 80%;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%,-50%);

    background:
        radial-gradient(
            circle,
            rgba(53,227,164,.10),
            transparent 68%
        );

}


/* ==========================================================
   SCENE
========================================================== */

.scene {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        22px 24px 90px;

    opacity: 0;

    visibility: hidden;

    transform:
        scale(1.08);

    transition:

        opacity .9s ease,

        transform 1.4s
        cubic-bezier(.16,.7,.2,1),

        visibility .9s ease;

}


/* ACTIVE */

.scene.active {

    opacity: 1;

    visibility: visible;

    transform:
        scale(1);

}


/* ==========================================================
   IMAGE
========================================================== */

.lifecycle-image {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    border-radius: 4px;

    filter:
        brightness(.68)
        saturate(.75)
        contrast(1.08);

    transform:
        scale(1);

    transition:
        transform 8s
        cubic-bezier(.15,.7,.25,1),

        filter 1s ease;

}


/* ACTIVE IMAGE */

.scene.active .lifecycle-image {

    transform:
        scale(1.055);

    filter:
        brightness(.78)
        saturate(.9)
        contrast(1.08);

}


/* ==========================================================
   IMAGE OVERLAY
========================================================== */

.scene-overlay {

    position: absolute;

    inset: 0;

    z-index: 2;

    background:

        linear-gradient(
            180deg,
            rgba(2,7,5,.05) 0%,
            rgba(2,7,5,.02) 35%,
            rgba(2,7,5,.72) 100%
        ),

        linear-gradient(
            90deg,
            rgba(2,7,5,.55),
            rgba(2,7,5,.08) 55%,
            rgba(2,7,5,.35)
        );

}


/* ==========================================================
   SCENE INFO
========================================================== */

.scene-info {

    position: absolute;

    z-index: 6;

    left: 42px;

    bottom: 38px;

    max-width: 75%;

    transform:
        translateY(18px);

    opacity: 0;

    transition:
        opacity .7s ease .25s,
        transform .7s ease .25s;

}


.scene.active .scene-info {

    opacity: 1;

    transform:
        translateY(0);

}


/* ==========================================================
   INDEX
========================================================== */

.scene-index {

    display: block;

    margin-bottom: 7px;

    color:
        #35e3a4;

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        .2em;

}


/* ==========================================================
   TITLE
========================================================== */

.scene-info h2 {

    margin: 0;

    color:
        #ffffff;

    font-size:
        clamp(25px, 2.6vw, 40px);

    line-height:
        1;

    font-weight:
        700;

    letter-spacing:
        -.035em;

    text-shadow:
        0 3px 20px rgba(0,0,0,.65);

}


/* ==========================================================
   DESCRIPTION
========================================================== */

.scene-info p {

    margin:
        10px 0 0;

    color:
        rgba(255,255,255,.67);

    font-size:
        12px;

    line-height:
        1.5;

}


/* ==========================================================
   TEST PASSED
========================================================== */

.test-pass {

    position: absolute;

    z-index: 7;

    right: 34px;

    top: 28px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        8px 12px;

    border:
        1px solid rgba(53,227,164,.28);

    background:
        rgba(3,16,11,.75);

    color:
        #35e3a4;

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        .13em;

    opacity: 0;

    transform:
        translateY(-8px);

    transition:
        opacity .6s ease .4s,
        transform .6s ease .4s;

}


.scene.active .test-pass {

    opacity: 1;

    transform:
        translateY(0);

}


.test-pass span {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        #35e3a4;

    box-shadow:
        0 0 8px rgba(53,227,164,.9);

}


/* ==========================================================
   PROGRESS
========================================================== */

.progress {

    position: relative;

    flex-shrink: 0;

    margin-top: 20px;

}


/* ==========================================================
   TRACK
========================================================== */

.progress-track {

    position: relative;

    width: 100%;

    height: 2px;

    background:
        rgba(255,255,255,.10);

}


.progress-fill {

    position: absolute;

    left: 0;
    top: 0;

    width: 0%;

    height: 100%;

    background:
        #35e3a4;

    box-shadow:
        0 0 10px rgba(53,227,164,.55);

    transition:
        width .8s ease;

}


/* ==========================================================
   LABELS
========================================================== */

.progress-labels {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    margin-top: 13px;

}


.progress-labels button {

    appearance: none;

    border: 0;

    padding: 0;

    background: transparent;

    color:
        rgba(255,255,255,.30);

    font-family:
        inherit;

    font-size:
        clamp(9px, .75vw, 12px);

    font-weight:
        700;

    letter-spacing:
        .08em;

    text-transform:
        uppercase;

    cursor: pointer;

    transition:
        color .3s ease,
        transform .3s ease;

}


.progress-labels button:hover {

    color:
        rgba(255,255,255,.75);

}


.progress-labels button.active {

    color:
        #35e3a4;

    transform:
        scale(1.08);

}


/* ==========================================================
   STATUS
========================================================== */

.lifecycle-status {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;

    margin-top: 13px;

    flex-shrink: 0;

    color:
        rgba(255,255,255,.25);

    font-size:
        8px;

    font-weight:
        600;

    letter-spacing:
        .15em;

    text-transform:
        uppercase;

}


.lifecycle-status span {

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        #35e3a4;

    box-shadow:
        0 0 7px rgba(53,227,164,.8);

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {

    .lifecycle {

        padding:
            18px;

    }

    .scene-info {

        left: 28px;

        bottom: 30px;

    }

    .scene-info h2 {

        font-size:
            26px;

    }

}


@media (max-width: 600px) {

    .lifecycle {

        min-height:
            430px;

        padding:
            14px;

    }

    .lifecycle-header {

        font-size:
            8px;

    }

    .system-status {

        display:
            none;

    }

    .stage {

        margin-top:
            12px;

    }

    .scene {

        padding-bottom:
            75px;

    }

    .scene-info {

        left:
            20px;

        bottom:
            25px;

        max-width:
            90%;

    }

    .scene-info h2 {

        font-size:
            23px;

    }

    .scene-info p {

        font-size:
            10px;

    }

    .progress-labels button {

        font-size:
            7px;

        letter-spacing:
            .03em;

    }

    .lifecycle-status {

        font-size:
            6px;

    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .scene,
    .lifecycle-image,
    .scene-info,
    .progress-fill {

        transition:
            none !important;

    }

}