* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
}

body::before {
    content: 'NGIX\2022 XCTD';
    position: fixed;
    top: 12px;
    left: 14px;
    z-index: 2;
    font: 600 11px/1 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
    letter-spacing: .24em;
    text-transform: uppercase;
    /* light watermark — readable on dark animated background */
    color: rgba(255, 255, 255, .10);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    right: 14px;
    bottom: 12px;
    width: 28px;
    height: 28px;
    z-index: 2;
    pointer-events: none;
    background: url("/assets/favicon.svg") center / contain no-repeat;
    opacity: .22;
}

body {
    /* dark base prevents white flash before animated bg loads */
    background-color: #1a1d20;
    color: #f8f9fa;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Arial,
        sans-serif;
    font-size: 22px;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.btn {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Arial,
        sans-serif;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 80px;
    min-width: 194px;
    max-width: 100%;
    padding: 5px 30px;
    border: none;
    border-radius: 40px;
    color: #f8f9fa;
    font-weight: 700;
    font-size: 24px;
    line-height: normal;
    text-transform: uppercase;
    transition: filter 0.2s ease-in-out;
}

.btn-sec {
    background: rgba(128, 0, 0, .82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
}

.btn:hover {
    filter: brightness(0.9);
}

.step-title {
    color: #fafafa;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 5px;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

.step-subtitle {
    color: rgba(255, 255, 255, .88);
    font-size: 20px;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .40);
}

.step-subtitle + .step-subtitle {
    margin-top: 8px;
}

.btns-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 30px auto 0;
    max-width: 336px;
}

.layout {
    display: flex;
    align-items: stretch;
    min-height: 100%;
    position: relative;
}

.picture-block {
    border-radius: 8px;
    flex: 1 1 100%;
    height: 50vh;
    max-height: 45%;
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 20px 0;
    display: none;
}

.bg {
    display: block;
    position: fixed;
    inset: 0;
    overflow: hidden;
    /* z-index 1: above body pseudo-elements (z-index 2 uses page stacking context) */
    z-index: 1;
}

.bg::after {
    background: linear-gradient(
        to bottom,
        rgba(52, 58, 64, 0.55),
        rgba(33, 37, 41, 0.85) 62%
    );
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.bg-stage {
    width: 100%;
    animation: bg 60s linear infinite;
}

.bg-stage img {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.main-block {
    max-width: 470px;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    /* must be above .bg (z-index 1) */
    z-index: 5;
}

.steps-wrap {
    flex: 1 0 auto;
    padding: 5vh 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100vh;
}

.steps {
    text-align: center;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    max-height: 800px;
}

.steps-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 auto;
    width: 100%;
    min-height: 100%;
}

.step-item {
    position: relative;
    z-index: 9;
    display: none;
    width: 100%;
}

.step-item.is-active {
    display: block;
}

@media (max-width: 1023px), (max-width: 1599px) and (max-height: 800px) {
    body {
        font-size: 17px;
    }

    .btn {
        font-size: 18px;
        height: 56px;
        min-width: 130px;
    }

    .step-title {
        font-size: 40px;
    }
}

@keyframes bg {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-33.333%);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
