/* ========================================
   RESET & BASE STYLES
   ======================================== */

*, body, html {
    padding: 0;
    margin: 0;
}

* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: Philosopher, Palatino, serif;
}


/* ========================================
   BACKGROUND & VIDEO
   ======================================== */

.background-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* No default background - let JS handle it */
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    background-size: cover;
    object-fit: cover;
}


/* ========================================
   GRADIENT OVERLAYS
   ======================================== */

.gradient-overlay-top,
.gradient-overlay-bottom {
    position: fixed;
    left: 0;
    width: 100%;
    height: 30%;
    pointer-events: none;
    z-index: -1;
}

.gradient-overlay-top {
    top: 0;
    background: linear-gradient(to bottom, #000, transparent);
}

.gradient-overlay-bottom {
    bottom: 0;
    background: linear-gradient(to top, #000, transparent);
}


/* ========================================
   LOGOS (TOP & BOTTOM)
   ======================================== */

.top-logo,
.bottom-logo {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.top-logo {
    top: 0;
    padding: 35px;
}

.top-logo img {
    max-width: 300px;
    height: auto;
}

.bottom-logo {
    bottom: 50px;
    padding: 0;
}

.bottom-logo img {
    max-width: 800px;
    height: auto;
}


/* ========================================
   STEPS CONTAINER (QUIZ BOX)
   ======================================== */

.steps-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 810px;
    max-width: 92vw;
    height: 637px;
    padding: 64px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    color: #dbcfa9;
    background-color: rgba(0, 0, 0, 0);
    text-align: center;
}

.steps-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 3px;

    /* Dark stone background — layered gradients for depth & warmth */
    background:
        /* torchlight glow from above */
        radial-gradient(ellipse at 50% -10%, rgba(180, 90, 20, 0.18) 0%, transparent 55%),
        /* deep shadow at bottom */
        radial-gradient(ellipse at 50% 110%, rgba(0, 0, 0, 0.45) 0%, transparent 55%),
        /* edge vignette */
        radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
        /* fine horizontal stone grain */
        repeating-linear-gradient(
            180deg,
            transparent 0px, transparent 3px,
            rgba(0, 0, 0, 0.03) 3px, rgba(0, 0, 0, 0.03) 4px
        ),
        /* fine diagonal texture */
        repeating-linear-gradient(
            135deg,
            transparent 0px, transparent 10px,
            rgba(255, 255, 255, 0.008) 10px, rgba(255, 255, 255, 0.008) 11px
        ),
        /* base dark stone color — 60% opacity so background video bleeds through */
        linear-gradient(160deg, rgba(31, 16, 9, 0.6) 0%, rgba(17, 9, 7, 0.6) 30%, rgba(28, 17, 9, 0.6) 60%, rgba(11, 6, 4, 0.6) 100%);

    /* Golden border */
    border: 1.5px solid rgba(207, 164, 81, 0.65);

    /* Outer torchlight glow + depth shadow + inner highlights */
    box-shadow:
        0 0 28px rgba(130, 60, 8, 0.55),
        0 0 80px rgba(60, 20, 5, 0.28),
        0 24px 64px rgba(0, 0, 0, 0.85),
        inset 0 0 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(207, 164, 81, 0.22),
        inset 0 -1px 0 rgba(207, 164, 81, 0.1);
}

/* Inner frame — double-border heraldic effect */
.steps-container::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    right: 7px;
    bottom: 7px;
    pointer-events: none;
    z-index: -1;
    border: 1px solid rgba(207, 164, 81, 0.22);
    border-radius: 2px;
}


/* ========================================
   STEPS HEADER
   ======================================== */

.header-steps {
    display: none;
}

.steps-content {
    display: none;
}

.steps-progress {
    position: absolute;
    top: 30px;
    left: 60px;
    right: 60px;
    margin: 0;
    padding: 0;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 14%; /* initial value for 1/7 */
    background: linear-gradient(90deg, #cfa451, #e7d19a);
    transition: width 0.25s ease-in-out;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #d9c89a;
    font-size: 20px;
    text-align: center;
    margin-top: 12px;
}

.setup-step {
    opacity: 0.5;
    letter-spacing: 0.3px;
}

.setup-step::before {
    content: '• ';
    color: #cfa451;
}

.setup-step.done {
    opacity: 1;
    color: #f2e0b0;
}


/* ========================================
   STEPS DETAILS (CONTENT AREA)
   ======================================== */

.steps-details {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    color: #ffff;
    font-size: 40px;
}

.browser-logo {
    margin: 20px 0;
    width: 130px;
    height: auto;
}


/* ========================================
   BUTTONS
   ======================================== */

.steps-buttons-container {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 10px);
    bottom: 80px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.steps-button {
    position: relative;
    width: 360px;
    min-height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #fdf5e3;
    font-size: 30px;
    padding: 12px 18px;
    margin: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    background: linear-gradient(135deg, #3c1a0f 0%, #6c2b1a 45%, #9d5b23 100%);
    border: 1px solid rgba(255, 217, 158, 0.45);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, filter 0.14s ease;
}

.steps-button::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255, 209, 140, 0.18), rgba(255, 255, 255, 0.06));
    pointer-events: none;
}

.steps-button::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 18%;
    width: 64%;
    height: 24%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    filter: blur(2px);
    pointer-events: none;
}

.steps-button:hover {
    transform: translateY(-2px) scale(1.01);
    background: linear-gradient(135deg, #472013 0%, #7f331f 40%, #b56d28 100%);
    box-shadow:
        0 14px 26px rgba(0, 0, 0, 0.5),
        0 0 22px rgba(255, 193, 128, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.steps-button:active {
    transform: translateY(0px) scale(0.995);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.55),
        inset 0 2px 6px rgba(0, 0, 0, 0.4);
}


/* ========================================
   CTA BUTTON (FINAL STEP)
   ======================================== */

#cta {
    display: none;
    width: 480px;
    min-height: 104px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 24px auto 6px;
    cursor: pointer;
    background: linear-gradient(135deg, #0d1c2e 0%, #163a5d 45%, #2c6fb2 100%);
    border: 1px solid rgba(173, 210, 255, 0.45);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.5),
        0 0 26px rgba(80, 150, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    position: relative;
    text-transform: uppercase;
}

#cta::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

#cta::after {
    content: '';
    position: absolute;
    top: 12%;
    left: 16%;
    width: 68%;
    height: 24%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
    filter: blur(2px);
    pointer-events: none;
}

#cta:hover {
    transform: translateY(-2px) scale(1.01);
    background: linear-gradient(135deg, #10243a 0%, #1c4b7a 45%, #3d86d6 100%);
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(90, 170, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

#cta:active {
    transform: translateY(0) scale(0.995);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.6),
        inset 0 2px 6px rgba(0, 0, 0, 0.45);
}


/* ========================================
   LOADING BAR
   ======================================== */

.loading-bar-container {
    display: none;
    text-align: center;
    width: 100%;
}

.loading-bar-title {
    color: #ffff;
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
}

.loading-bar {
    width: 80%;
    max-width: 810px;
    height: 20px;
    background-color: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px auto;
}

.loading-bar-progress {
    width: 0;
    height: 100%;
    background-color: #8c0723;
    border-radius: 10px;
    transition: width 0.15s;
}


/* ========================================
   FOOTER
   ======================================== */

.mini-footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    color: #dbcfa9;
    font-size: 9px;
    display: flex;
    justify-content: center;
    padding: 1px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.mini-footer a {
    color: #d7d7d7;
    margin: 0 10px;
    text-transform: uppercase;
    text-decoration: none;
}

.mini-footer a:hover {
    text-decoration: underline;
}


/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

/* ========================================
   RESPONSIVE TWEAKS (keeps desktop feel)
   ======================================== */
@media (max-width: 960px) {
    body, html {
        overflow-y: auto;
    }

    .steps-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 40px auto;
        height: auto;
        padding: 24px 18px;
    }

    .steps-details {
        font-size: 26px;
    }

    .steps-buttons-container {
        position: static;
        transform: none;
        margin-top: 12px;
    }

    .steps-button {
        width: 100%;
        max-width: 360px;
        height: 82px;
        font-size: 24px;
    }

    #cta {
        width: 100%;
        max-width: 320px;
    }

    .loading-bar {
        width: 100%;
    }
}
