* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #050505;
    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;
}


/* ========================================= */
/* HERO */
/* ========================================= */

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    background: #000;

    display: flex;
    flex-direction: column;
}

/* Freddy stays on the RIGHT side */
.hero::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 62%;

    background-image:
        url("assets/freddy-hero.jpg");

    background-size: cover;
    background-position: center;

    z-index: 0;

    animation: freddyBreath 18s ease-in-out infinite alternate;
}

/* Fade Freddy naturally into the black background */
.hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            #000 0%,
            #000 25%,
            rgba(0,0,0,0.92) 40%,
            rgba(0,0,0,0.35) 68%,
            rgba(0,0,0,0.15) 100%
        );

    pointer-events: none;
}

/* Very subtle movement */
@keyframes freddyBreath {

    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.025);
    }

}


.topbar {
    position: relative;

    z-index: 2;

    display: flex;

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

    padding: 30px 5vw;

    border-bottom:
        1px solid
        rgba(255,255,255,0.12);
}


.studio-name {
    font-size: 13px;

    font-weight: bold;

    letter-spacing: 4px;
}


.official-label {
    font-size: 9px;

    letter-spacing: 3px;

    opacity: 0.45;
}


/* ========================================= */
/* HERO CONTENT */
/* ========================================= */

.hero-content {
    position: relative;

    z-index: 2;

    width: min(950px, 90%);

    margin:
        auto
        5vw;

    padding: 100px 0;
}


.eyebrow,
.section-label {

    font-size: 10px;

    letter-spacing: 5px;

    font-weight: bold;

    opacity: 0.55;

    margin-bottom: 25px;
}


h1 {

    font-size:
        clamp(
            42px,
            6vw,
            88px
        );

    line-height: 0.94;

    letter-spacing: -4px;

    margin-bottom: 30px;
}


h1 span {
    opacity: 0.45;
}


.release-label {

    font-size: 12px;

    letter-spacing: 4px;

    font-weight: bold;

    margin-bottom: 30px;
}


/* ========================================= */
/* COUNTDOWN */
/* ========================================= */

.countdown-title {

    font-size: 9px;

    letter-spacing: 4px;

    opacity: 0.45;

    margin-bottom: 12px;
}


.countdown {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 40px;
}


.time-box {

    display: flex;

    flex-direction: column;
}


.time-box span {

    font-size:
        clamp(
            32px,
            5vw,
            60px
        );

    font-weight: 300;

    line-height: 1;
}


.time-box small {

    font-size: 8px;

    letter-spacing: 2px;

    opacity: 0.4;

    margin-top: 7px;
}


.separator {

    font-size: 35px;

    opacity: 0.2;

    margin-top: -15px;
}


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

.hero-button,
.platform-button {

    display: inline-block;

    padding:
        15px
        26px;

    border:
        1px solid
        rgba(255,255,255,0.3);

    color: white;

    text-decoration: none;

    font-size: 9px;

    letter-spacing: 3px;

    font-weight: bold;

    transition:
        0.25s ease;
}


.hero-button:hover,
.platform-button:not(.disabled):hover {

    background: white;

    color: black;

    border-color: white;
}


.platform-button.disabled {

    opacity: 0.3;

    pointer-events: none;

    cursor: not-allowed;
}


/* ========================================= */
/* SCROLL */
/* ========================================= */

.scroll-indicator {

    position: absolute;

    z-index: 2;

    bottom: 25px;

    left: 5vw;

    font-size: 8px;

    letter-spacing: 3px;

    opacity: 0.4;
}


.scroll-indicator span {

    margin-left: 10px;
}


/* ========================================= */
/* GENERAL SECTIONS */
/* ========================================= */

.section,
.prequel-section,
.downloads-section,
.guide-section,
.account-section {

    padding:
        130px
        5vw;
}


.section {
    background: #080808;
}


.section-inner,
.prequel-container,
.downloads-container,
.guide-container,
.account-container {

    width:
        min(
            1150px,
            100%
        );

    margin: auto;
}


h2 {

    font-size:
        clamp(
            40px,
            6vw,
            75px
        );

    line-height: 0.95;

    letter-spacing: -3px;

    margin-bottom: 30px;
}


h2 span {
    opacity: 0.3;
}


.description {

    max-width: 650px;

    font-size: 15px;

    line-height: 1.8;

    opacity: 0.5;

    margin-bottom: 10px;
}


/* ========================================= */
/* INTERACTIVE PREQUEL */
/* ========================================= */

.prequel-section {
    background: #030303;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.prequel-container {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: 70px;
}

.prequel-copy .description {
    margin-bottom: 30px;
}

.prequel-button {
    margin-top: 5px;
}

.prequel-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 25px 70px rgba(0,0,0,0.55);
    overflow: hidden;
}

.prequel-video-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 70px rgba(0,0,0,0.35);
}

.prequel-video-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

@media (max-width: 900px) {
    .prequel-container {
        grid-template-columns: 1fr;
        gap: 42px;
    }
}


/* ========================================= */
/* DOWNLOADS */
/* ========================================= */

.downloads-section {

    background: #050505;
}


.download-intro {

    max-width: 600px;

    line-height: 1.7;

    opacity: 0.45;

    margin-bottom: 45px;
}


.platform-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 18px;
}


.platform-card {

    border:
        1px solid
        rgba(255,255,255,0.11);

    background:
        rgba(255,255,255,0.025);

    padding: 32px;

    min-height: 390px;

    display: flex;

    flex-direction: column;
}


.platform-icon {

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,0.2);

    font-size: 9px;

    letter-spacing: 1px;

    margin-bottom: 35px;

    opacity: 0.7;
}


.ios-icon {

    font-size: 12px;
}


.android-icon {

    font-size: 7px;
}


.platform-type {

    font-size: 8px;

    letter-spacing: 3px;

    opacity: 0.35;
}


.platform-info h3 {

    font-size: 19px;

    letter-spacing: 2px;

    margin:
        10px
        0
        15px;
}


.platform-info p {

    font-size: 12px;

    line-height: 1.7;

    opacity: 0.45;
}


.platform-status {

    margin-top: auto;

    margin-bottom: 18px;

    font-size: 9px;

    letter-spacing: 2px;

    opacity: 0.5;
}


.platform-button {

    text-align: center;

    width: 100%;
}


/* ========================================= */
/* DOWNLOAD MESSAGE */
/* ========================================= */

.download-message {

    margin-top: 35px;

    padding: 35px;

    border:
        1px solid
        rgba(255,255,255,0.08);

    text-align: center;

    background:
        rgba(255,255,255,0.015);
}


.lock-symbol {

    font-size: 24px;

    margin-bottom: 15px;

    opacity: 0.5;
}


.download-message h3 {

    font-size: 12px;

    letter-spacing: 3px;

    margin-bottom: 10px;
}


.download-message p {

    font-size: 12px;

    opacity: 0.4;

    margin-bottom: 15px;
}


.download-message strong {

    font-size: 10px;

    letter-spacing: 3px;

    opacity: 0.6;
}


/* ========================================= */
/* GUIDES */
/* ========================================= */

.guide-section {

    background: #090909;
}


.guide-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 18px;

    margin-top: 50px;
}


.guide-card {

    border:
        1px solid
        rgba(255,255,255,0.1);

    padding: 35px;

    min-height: 230px;
}


.guide-number {

    display: block;

    font-size: 10px;

    letter-spacing: 3px;

    opacity: 0.25;

    margin-bottom: 45px;
}


.guide-card h3 {

    font-size: 16px;

    letter-spacing: 3px;

    margin-bottom: 15px;
}


.guide-card p {

    font-size: 12px;

    line-height: 1.7;

    opacity: 0.4;
}


/* ========================================= */
/* ACCOUNT */
/* ========================================= */

.account-section {

    background: #060606;
}


.account-features {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 18px;

    margin-top: 50px;
}


.account-features div {

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

    padding-top: 20px;
}


.account-features strong {

    display: block;

    font-size: 10px;

    letter-spacing: 3px;

    opacity: 0.25;

    margin-bottom: 12px;
}


.account-features span {

    font-size: 12px;

    letter-spacing: 1px;

    opacity: 0.6;
}


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

footer {

    padding:
        50px
        5vw;

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

    text-align: center;

    font-size: 9px;

    letter-spacing: 2px;

    opacity: 0.4;
}


footer p {

    margin-top: 10px;

    letter-spacing: 1px;
}


/* ========================================= */
/* MOBILE */
/* ========================================= */

@media (max-width: 800px) {

    .platform-grid,
    .guide-grid,
    .account-features {

        grid-template-columns: 1fr;
    }


    .platform-card {

        min-height: 330px;
    }

}


@media (max-width: 700px) {

    /* Keep Freddy clearly visible on mobile, still anchored to the right */
    .hero::after {
        width: 92%;
        left: auto;
        right: -8%;
        opacity: 0.88;
        background-size: cover;
        background-position: 62% center;
    }

    /* Preserve a dark text-safe area on the left without burying Freddy */
    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                #000 0%,
                rgba(0,0,0,0.96) 24%,
                rgba(0,0,0,0.72) 48%,
                rgba(0,0,0,0.20) 76%,
                rgba(0,0,0,0.06) 100%
            );
    }

}


@media (max-width: 600px) {

    .topbar {

        padding:
            22px
            5vw;
    }


    .studio-name {

        font-size: 9px;

        letter-spacing: 2px;
    }


    .official-label {

        display: none;
    }


    .hero-content {

        padding:
            70px
            0;
    }


    h1 {

        letter-spacing: -2px;
    }


    .countdown {

        gap: 7px;
    }


    .separator {

        font-size: 20px;
    }


    .section,
    .prequel-section,
    .downloads-section,
    .guide-section,
    .account-section {

        padding:
            90px
            5vw;
    }


    .download-message {

        padding: 25px 15px;
    }

}

/* ========================================= */
/* MOBILE PORTRAIT HERO FIX */
/* Keep Freddy visible on tall/vertical screens */
/* ========================================= */

@media (max-width: 700px) and (orientation: portrait) {

    .hero::after {
        width: 100%;
        left: 0;
        right: 0;

        opacity: 0.95;

        /* Do NOT use cover on a tall screen or Freddy gets cropped away */
        background-size: auto 100%;
        background-repeat: no-repeat;
        background-position: right center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                #000 0%,
                rgba(0,0,0,0.96) 24%,
                rgba(0,0,0,0.76) 48%,
                rgba(0,0,0,0.28) 72%,
                rgba(0,0,0,0.06) 100%
            );
    }
}

/* ========================================= */
/* MOBILE PORTRAIT HERO FIX */
/* Smaller Freddy, fully fitted on vertical screens */
/* ========================================= */

@media (max-width: 700px) and (orientation: portrait) {

    .hero::after {
        top: 10%;
        bottom: 10%;
        left: auto;
        right: -2%;

        width: 62%;
        height: auto;

        opacity: 1;

        background-size: contain;
        background-repeat: no-repeat;
        background-position: right center;

        transform: none;
        animation: none;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                #000 0%,
                rgba(0,0,0,0.98) 28%,
                rgba(0,0,0,0.82) 48%,
                rgba(0,0,0,0.30) 70%,
                rgba(0,0,0,0.02) 100%
            );
    }
}
