/* ==========================================================
   BREAK PROTOCOL WEBSITE
   Flat / clean / modern sci-fi
========================================================== */


/* ==========================================================
   COLORS
========================================================== */

:root {

    --bg-main: #2e222f;
    --bg-secondary: #3e3546;
    --bg-dark: #28202c;

    --surface: #45293f;
    --surface-light: #625565;

    --text: #ffffff;
    --text-soft: #c7dcd0;
    --text-muted: #9babb2;

    --red-dark: #6e2727;
    --red: #b33831;
    --red-light: #ea4f36;
    --red-bright: #e83b3b;

    --orange: #f57d4a;

    --green: #239063;
    --green-light: #30e1b9;

    --cyan: #0eaf9b;
    --cyan-light: #8ff8e2;

    --purple: #6b3e75;

    --border: rgba(199, 220, 208, 0.13);
    --border-light: rgba(199, 220, 208, 0.25);
}


/* ==========================================================
   RESET
========================================================== */

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


html {
    scroll-behavior: smooth;
}


body {
    background: var(--bg-main);
    color: var(--text);

    font-family:
        "Space Grotesk",
        sans-serif;

    overflow-x: hidden;

    -webkit-font-smoothing:
        antialiased;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
}


/* ==========================================================
   GLOBAL
========================================================== */

.container {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}


.centered {
    text-align: center;
}


.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;

    color: var(--red-light);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.18em;
}


.section-label::before {
    content: "";

    display: block;

    width: 26px;
    height: 1px;

    background: var(--red-light);
}


.centered .section-label::before {
    display: none;
}


.section-title {
    color: var(--text);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: clamp(42px, 6vw, 72px);
    font-weight: 600;

    line-height: 0.95;

    letter-spacing: -0.02em;
}


.section-intro {
    max-width: 650px;

    margin: 28px auto 0;

    color: var(--text-muted);

    font-size: 17px;

    line-height: 1.75;
}


.section-header {
    margin-bottom: 60px;
}


/* ==========================================================
   NAVIGATION
========================================================== */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;
    height: 64px;

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

    padding: 0 32px;

    background: rgba(46, 34, 47, 0.92);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(14px);
}


.studio {
    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 17px;
    font-weight: 700;

    letter-spacing: 0.1em;
}


.navbar nav {
    display: flex;
    align-items: center;

    height: 100%;
}


.navbar nav a {
    position: relative;

    display: flex;
    align-items: center;

    height: 100%;

    padding: 0 16px;

    color: var(--text-muted);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.08em;

    transition:
        color 0.2s ease;
}


.navbar nav a:hover {
    color: var(--text);
}


.navbar nav a::after {
    content: "";

    position: absolute;

    left: 16px;
    right: 16px;
    bottom: 0;

    height: 2px;

    background: var(--red-light);

    transform: scaleX(0);

    transition:
        transform 0.2s ease;
}


.navbar nav a:hover::after {
    transform: scaleX(1);
}


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

.hero {
    position: relative;

    width: 100%;
    height: 100vh;

    min-height: 720px;

    overflow: hidden;

    /*
        Le ciel reste fixe et centré.
    */

    background-image:
        url("assets/sky.png");

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

    background-attachment: fixed;
}


/* légère teinte générale */

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        rgba(46, 34, 47, 0.05);

    pointer-events: none;
}


/* transition vers la section suivante */

.hero::after {
    content: "";

    position: absolute;

    z-index: 7;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 180px;

    background:
        linear-gradient(
            transparent,
            var(--bg-main)
        );

    pointer-events: none;
}


/* ==========================================================
   PARALLAX
========================================================== */

.layer {
    position: absolute;

    left: 0;
    bottom: -2%;

    width: 100%;
    height: 104%;

    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;

    will-change: transform;
}


.mountain-back {
    z-index: 2;

    background-image:
        url("assets/mountain-back.png");
}


.mountain-middle {
    z-index: 3;

    background-image:
        url("assets/mountain-middle.png");
}


.forest {
    z-index: 4;

    background-image:
        url("assets/forest.png");
}


.foreground {
    z-index: 5;

    background-image:
        url("assets/foreground.png");
}


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

.hero-content {
    position: absolute;

    z-index: 20;

    left: 50%;
    top: 39%;

    width: min(900px, 90%);

    transform:
        translate(-50%, -50%);

    text-align: center;
}


.hero-eyebrow {
    margin-bottom: 24px;

    color: var(--text-soft);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.3em;
}


.game-logo {
    width: min(580px, 75vw);

    margin: 0 auto;
}


.hero-tagline {
    margin-top: 26px;

    color: var(--text-soft);

    font-size: 17px;

    letter-spacing: 0.04em;
}


.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 36px;
}


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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 26px;

    border-radius: 3px;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.1em;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.button-primary {
    background: var(--red);
    border: 1px solid var(--red);

    color: var(--text);
}


.button-primary:hover {
    background: var(--red-light);
    border-color: var(--red-light);
}


.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.video-frame {
    width: min(100%, 860px);

    aspect-ratio: 16 / 9;

    border: 1px solid var(--border-light);
    border-radius: 6px;

    overflow: hidden;

    background: var(--bg-dark);
}


.video-thumb {
    position: relative;
    display: block;
}


.video-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.video-play-badge {
    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 120px;
    min-height: 52px;
    padding: 0 20px;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;

    background: rgba(0, 0, 0, 0.45);
    color: var(--text);

    font-family:
        "Rajdhani",
        sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
}


.video-thumb:hover .video-play-badge {
    background: rgba(227, 59, 59, 0.85);
    border-color: var(--red-light);
}


.video-frame iframe {
    width: 100%;
    height: 100%;

    border: 0;
    display: block;
}


.button-outline {
    background: transparent;

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

    color: var(--text);
}


.button-outline:hover {
    background:
        rgba(255, 255, 255, 0.07);

    border-color:
        rgba(255, 255, 255, 0.65);
}


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

.scroll-indicator {
    position: absolute;

    z-index: 30;

    left: 50%;
    bottom: 28px;

    transform:
        translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    color: var(--text-muted);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 10px;

    letter-spacing: 0.22em;
}


.scroll-line {
    width: 1px;
    height: 28px;

    background:
        var(--red-light);
}


/* ==========================================================
   GAME INFO
========================================================== */

.game-info {
    position: relative;

    z-index: 20;

    padding: 120px 0;

    background:
        var(--bg-main);
}


/* ==========================================================
   PLATFORMS
========================================================== */

.platforms {
    width: min(760px, 100%);

    margin: 52px auto 0;

    display: grid;

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

    gap: 12px;
}


.platforms a {
    display: flex;

    flex-direction: column;

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

    min-height: 92px;

    padding: 20px;

    background:
        var(--bg-secondary);

    border:
        1px solid var(--border);

    border-radius:
        3px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.platforms a:hover {
    background:
        var(--surface);

    border-color:
        var(--red-light);
}


.platforms span {
    color: var(--text-muted);

    font-size: 10px;

    letter-spacing: 0.15em;
}


.platforms strong {
    margin-top: 7px;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 23px;
    font-weight: 600;

    letter-spacing: 0.05em;
}


/* ==========================================================
ABOUT
========================================================== */

.about {
    padding: 140px 0;

    background:
        var(--bg-secondary);

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}

.about-grid {
    display: grid;

    grid-template-columns:
        1.3fr 0.7fr;

    gap: 100px;

    align-items: start;
}


/* ==========================================================
ABOUT CONTENT — STICKY
========================================================== */

.about-content {
    max-width: 680px;

    /*
        Le bloc THE GAME reste visible
        pendant le scroll de la section.
    */

    position: sticky;

    top: 110px;

    align-self: start;
}

.about-lead {
    margin-top: 36px;

    color: var(--text);

    font-size: 20px;

    line-height: 1.7;
}

.about-content > p:not(.about-lead) {
    margin-top: 20px;

    color: var(--text-muted);

    font-size: 16px;

    line-height: 1.75;
}

.simple-link {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-top: 34px;

    color: var(--red-light);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.simple-link span {
    transition:
        transform 0.2s ease;
}

.simple-link:hover span {
    transform:
        translateX(4px);
}


/* ==========================================================
ABOUT SIDE
========================================================== */

.about-side {
    border-left:
        1px solid var(--border-light);

    padding-left:
        46px;
}

.about-info {
    max-width: 320px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.about-head {
    display: flex;
    flex-direction: row;

    align-items: center;
    gap: 10px;
}

.about-line {
    height: 1px;
    width: 20px;

    background:
        var(--border-light);
}

.about-number {
    display: block;

    color: var(--red-light);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 13px;
    font-weight: 600;
}

.about-label {
    color: var(--cyan-light);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.16em;
}

.about-info h3 {
    margin-top: 10px;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 31px;
    font-weight: 600;
}

.about-info p {
    margin-top: 16px;

    color: var(--text-muted);

    font-size: 15px;

    line-height: 1.7;
}


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

@media (max-width: 900px) {

    .about-grid {
        grid-template-columns: 1fr;

        gap: 70px;
    }

    /*
        Sur mobile, on désactive le sticky :
        le contenu suit le scroll normalement.
    */

    .about-content {
        position: static;

        max-width: 680px;
    }

    .about-side {
        padding-left: 0;

        padding-top: 35px;

        border-left: none;

        border-top:
            1px solid var(--border-light);
    }

    .about-info {
        min-height: auto;

        padding: 70px 0;
    }
}


/* ==========================================================
   FEATURES
========================================================== */

.features {
    padding: 140px 0;

    background:
        var(--bg-main);
}


.feature-grid {
    display: grid;

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

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}


.feature {
    min-height: 300px;

    padding: 38px;

    border-right:
        1px solid var(--border);

    transition:
        background-color 0.2s ease;
}


.feature:last-child {
    border-right: none;
}


.feature:hover {
    background:
        rgba(255, 255, 255, 0.025);
}


.feature-number {
    display: block;

    margin-bottom: 72px;

    color: var(--red-light);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 13px;
    font-weight: 600;
}


.feature h3 {
    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 27px;
    font-weight: 600;
}


.feature p {
    margin-top: 14px;

    color: var(--text-muted);

    font-size: 15px;

    line-height: 1.7;
}


/* ==========================================================
   SCREENSHOTS
========================================================== */

.screenshots {
    padding: 140px 0;

    background:
        var(--bg-dark);

    border-top:
        1px solid var(--border);
}


.gallery {
    display: grid;

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

    gap: 12px;
}


.gallery figure {
    position: relative;

    overflow: hidden;

    background:
        var(--bg-secondary);

    border:
        1px solid var(--border);

    border-radius:
        3px;
}


.gallery-large {
    grid-column:
        span 2;
}


.gallery img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        opacity 0.25s ease;
}


.gallery figure:hover img {
    opacity: 0.9;
}


/* ==========================================================
   FINAL CTA
========================================================== */

.final-cta {
    padding: 150px 0;

    background:
        var(--bg-main);

    border-top:
        1px solid var(--border);
}


.final-cta h2 {
    margin: 10px 0 18px;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size:
        clamp(52px, 8vw, 100px);

    font-weight: 600;

    line-height: 1;

    letter-spacing:
        -0.03em;
}


.final-cta p {
    margin-bottom: 32px;

    color:
        var(--text-muted);

    font-size:
        17px;
}


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

.footer {
    padding: 48px 0;

    background:
        #261d28;

    border-top:
        1px solid var(--border);
}


.footer-inner {
    display: flex;

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


.footer-brand {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.footer-brand strong {
    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 16px;

    letter-spacing:
        0.08em;
}


.footer-brand span {
    color: var(--text-muted);

    font-size: 12px;
}


.footer-links {
    display: flex;

    gap: 28px;
}


.footer-links a {
    color: var(--text-muted);

    font-size: 13px;

    transition:
        color 0.2s ease;
}


.footer-links a:hover {
    color: var(--text);
}


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

@media (max-width: 900px) {

    .about-grid {
        grid-template-columns: 1fr;

        gap: 70px;
    }


    .about-side {
        padding-left: 0;

        padding-top: 35px;

        border-left: none;

        border-top:
            1px solid var(--border-light);
    }


    .feature-grid {
        grid-template-columns: 1fr;
    }


    .feature {
        min-height: auto;

        border-right: none;

        border-bottom:
            1px solid var(--border);
    }


    .feature:last-child {
        border-bottom: none;
    }


    .feature-number {
        margin-bottom: 35px;
    }

}



@media (max-width: 700px) {

    .container {
        width:
            calc(100% - 36px);
    }


    .navbar {
        height: 58px;

        padding:
            0 18px;
    }


    .studio {
        font-size: 14px;
    }


    .navbar nav a {
        display: none;
    }


    .navbar nav a:first-child {
        display: flex;

        padding-right: 0;
    }


    .hero {
        min-height: 650px;

        /*
            background fixed est mal géré
            sur certains navigateurs mobiles.
        */

        background-attachment:
            scroll;
    }


    .hero-content {
        top: 42%;
    }


    .hero-eyebrow {
        font-size: 10px;
    }


    .hero-tagline {
        font-size: 15px;
    }


    .hero-actions {
        flex-direction: column;
    }


    .button {
        width: min(300px, 100%);
    }


    .game-info,
    .about,
    .features,
    .screenshots,
    .final-cta {
        padding:
            90px 0;
    }


    .section-title {
        font-size:
            44px;
    }


    .platforms {
        grid-template-columns:
            1fr;
    }


    .gallery {
        grid-template-columns:
            1fr;
    }


    .gallery-large {
        grid-column:
            auto;
    }


    .footer-inner {
        flex-direction:
            column;

        align-items:
            flex-start;

        gap:
            30px;
    }


    .footer-links {
        flex-wrap:
            wrap;
    }

    .btnwishlist {
        margin-top: 10px;
    }

}