@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,800;1,800&family=Roboto:wght@700;800&display=swap');


/* ========================================
   1. GLOBAL COLORS AND FONTS
   ======================================== */

:root {
    --royal: #002498;
    --electric: #007DFB;
    --heading: #092895;
    --purple: #5606E4;
    --yellow: #FDE81C;
    --cyan: #4CD3FD;
    --wave: #5D56FC;
    --navy: #000068;
    --bg-top: #F0F2FD;
    --bg: #F7F9FD;
    --badge: #E9EEFD;
    --white: #fff;
    --text: #111;

    --primary: 'Montserrat', Arial, sans-serif;
    --secondary: 'Roboto', Arial, sans-serif;
}


/* ========================================
   2. GLOBAL PAGE SETTINGS
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--primary);
}

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

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

a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}


/* ========================================
   3. ANIMATED TOP BANNER
   ======================================== */

.banner {
    position: relative;
    width: 100%;

    /* Controls banner height */
    aspect-ratio: 1090/238;

    overflow: hidden;
    background: var(--royal);
}

.banner video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

#status:not(:empty) {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
    background: #fff;
    padding: 8px;
}


/* ========================================
   4. NAVIGATION BAR
   ======================================== */

.navigation {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2.4vw, 36px);
    padding: 4px 5.6% 4px 8.4%;
    background: linear-gradient(100deg, #06218c, var(--royal));
    color: white;
    font: 700 clamp(16px, 1.43vw, 22px) var(--secondary);
}

.nav-logo {
    width: clamp(120px, 13vw, 195px);
    flex-shrink: 0;
}

.nav-logo img {
    width: 100%;
    max-height: 66px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex: 1;
    gap: 8px;
}

.nav-links a {
    white-space: nowrap;
    padding: 10px clamp(10px, 1.9vw, 30px);
    border-radius: 999px;
}

.nav-links a.active,
.nav-links a:hover {
    background: var(--electric);
}


/* ========================================
   5. GET IN TOUCH BUTTON
   ======================================== */

.contact {
    width: clamp(145px, 16vw, 250px);
    flex-shrink: 0;
    border-left: 1px solid #fff;
    padding-left: clamp(12px, 2vw, 30px);
}


/* ========================================
   6. GRAPHICAL BUTTON HOVER EFFECTS
   ======================================== */

.image-link img {
    width: 100%;
    transition: filter .18s, transform .18s;
}

.image-link:hover img {
    filter: brightness(1.07);
    transform: scale(1.025);
}


/* ========================================
   7. MAIN HOMEPAGE LAYOUT
   ======================================== */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background: linear-gradient(
        180deg,
        var(--bg-top),
        #fff 72%,
        var(--bg)
    );

    padding: 24px 2.1% 38px 6.1%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;

    /* Left content / Showcase / Benefits */
    grid-template-columns:
        minmax(0, 610fr)
        minmax(0, 484fr)
        minmax(0, 280fr);

    gap: clamp(12px, 1.3vw, 20px);
    align-items: center;
    max-width: 1500px;
    margin: auto;
}


/* ========================================
   8. INTRODUCTION SECTION
   ======================================== */

.intro {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px clamp(10px, 1.5vw, 24px);
    border-radius: 22px;
    background: linear-gradient(
        180deg,
        #ffffff70,
        #ffffff00
    );
}


/* Large Moon Claw Games logo */

.main-logo {
    width: 96%;
    height: auto;
    max-height: 185px;
    object-fit: contain;
    margin: 0 auto 20px;
}


/* Main headline */

.intro h1 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.52vw, 40px);
    font-weight: 800;
    font-style: italic;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--heading);
}


/* Purple headline text and yellow highlight */

.intro h1 span {
    color: var(--purple);

    background: linear-gradient(
        transparent 70%,
        var(--yellow) 70%,
        var(--yellow) 94%,
        transparent 94%
    );

    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}


/* Introduction paragraph */

.intro p {
    margin: 0;
    font-size: clamp(15px, 1.3vw, 20px);
    font-weight: 500;
    line-height: 1.2;
}


/* ========================================
   9. PARTNER WITH US BUTTON
   ======================================== */

.partner {
    width: 100%;
    max-width: 550px;
    margin: 10px auto 0;
}


/* ========================================
   10. MACHINE SHOWCASE PHOTOGRAPH
   ======================================== */

/* Outer photograph frame */

.showcase {
    aspect-ratio: 484/570;
    border-radius: clamp(22px, 2.86vw, 44px);
    padding: 5px;

    background: linear-gradient(
        150deg,
        #7998ff,
        #826dff 45%,
        var(--cyan)
    );

    box-shadow: 0 3px 7px #00a9d95c;
    overflow: hidden;
}


/* Photograph inside the frame */

.showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Controls vertical photograph positioning */
    object-position: center top;

    border-radius: inherit;
}


/* ========================================
   11. BUSINESS BENEFIT BADGES
   ======================================== */

.benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: clamp(10px, 1vw, 15px);
}


/* Individual benefit badge */

.benefits li {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 15px);
    min-height: clamp(54px, 4.45vw, 68px);
    padding: 7px 12px;
    border-radius: 999px;

    background: linear-gradient(
        120deg,
        var(--badge),
        #e8e7fc
    );

    box-shadow: 0 1px 1px #b9c9ff;
    color: var(--navy);
    font: 800 clamp(13px, 1.3vw, 20px)/1.1 var(--secondary);
}


/* Benefit badge icons */

.benefits img {
    width: clamp(36px, 4vw, 62px);
    height: clamp(36px, 4vw, 62px);
    object-fit: contain;
    flex-shrink: 0;
}


/* ========================================
   12. DECORATIVE BOTTOM BANNER
   ======================================== */

.bottom-wave {
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}


/* ========================================
   13. TABLET RESPONSIVE LAYOUT
   ======================================== */

@media (max-width: 1050px) {

    .navigation {
        padding: 8px 3%;
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav-links a {
        padding: 8px;
    }

    .hero {
        padding: 20px 4% 45px;
    }

    .hero-grid {
        grid-template-columns: 1fr 0.85fr;
    }

    .benefits {
        grid-column: 1/-1;
        grid-template-columns: repeat(3, 1fr);
    }

    .intro h1 {
        font-size: clamp(25px, 3.5vw, 38px);
    }

    .intro p {
        font-size: clamp(16px, 2vw, 20px);
    }

}


/* ========================================
   14. MOBILE RESPONSIVE LAYOUT
   ======================================== */

@media (max-width: 650px) {

    .navigation {
        justify-content: space-between;
    }

    .nav-links {
        order: 3;
        flex-basis: 100%;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 14px;
    }

    .contact {
        border: 0;
        padding: 0;
        width: 150px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .intro {
        padding: 8px;
    }

    .main-logo {
        max-height: 150px;
    }

    .intro h1 {
        font-size: 30px;
    }

    .showcase {
        width: min(100%, 430px);
        margin: auto;
    }

    .benefits {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .benefits li {
        border-radius: 20px;
        font-size: 14px;
    }

    .hero {
        padding-bottom: 55px;
    }

}


/* ========================================
   15. ACCESSIBILITY SETTINGS
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .image-link img {
        transition: none;
    }

}

/* =========================================
   16. FULL HEIGHT PAGE LAYOUT
   ========================================= */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.banner,
.navigation {
    flex-shrink: 0;
}

.hero {
    flex: 1;
}


/* =========================================
   17. TABLET REFINEMENTS
   651px - 1050px
   ========================================= */

@media (min-width: 651px) and (max-width: 1050px) {

    /* Create six underlying grid columns */
    .benefits {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    /* First three benefit bubbles */
    .benefits li {
        grid-column: span 2;
    }

    /* Extend and center the final two bubbles */
    .benefits li:nth-last-child(-n+2) {
        grid-column: span 3;
        justify-content: center;
        text-align: center;
    }

}


/* =========================================
   18. SMARTPHONE REFINEMENTS
   650px and below
   ========================================= */

@media (max-width: 650px) {

    /* Hide small navigation logo and contact button */
    .nav-logo,
    .contact {
        display: none;
    }

    /* Compact navigation bar */
    .navigation {
        min-height: 50px;
        padding: 6px 8px;
        justify-content: center;
    }

    /* Keep navigation links on one row */
    .nav-links {
        order: 0;
        flex-basis: 100%;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        gap: 2px;
        font-size: clamp(11px, 3.5vw, 14px);
    }

    .nav-links a {
        padding: 8px 6px;
    }

    /* Center the homepage headline */
    .intro h1 {
        text-align: center;
    }

    /* Maintain two columns of benefit bubbles */
    .benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Extend and center the electricity bubble */
    .benefits li:last-child {
        grid-column: 1 / -1;
        justify-content: center;
        text-align: center;
    }

}

/* =========================================
   19. SMALL SCREEN VIDEO BANNER
   ========================================= */

@media (max-width: 1050px) {

    /* Increase banner height by approximately 30% */
    .banner {
        aspect-ratio: 1090 / 309;
    }

}


/* =========================================
   20. TALLER SMARTPHONE VIDEO BANNER
   ========================================= */

@media (max-width: 650px) {

    /* Set video height to approximately 37% of screen width */
    .banner {
        aspect-ratio: 1090 / 406;
    }

    /* Fit the full video width and hide the dark bottom strip.
       The extra height moves the bottom 16 source pixels outside
       the banner frame, without changing the menu position. */
    .banner video {
        object-fit: fill;
        height: 106.015%;
    }

}

/* =========================================
   21. TABLET VERTICAL BALANCE
   ========================================= */

@media (min-width: 651px) and (max-width: 1050px) {

    /* Reserve room for the decorative waves. */
    .hero {
        display: flex;
        flex-direction: column;
        padding-bottom: clamp(85px, 12vw, 130px);
    }

    /* Let the benefit section occupy the remaining vertical space. */
    .hero-grid {
        width: 100%;
        flex: 1 0 auto;
        margin: 0 auto;
        grid-template-rows: auto minmax(min-content, 1fr);
        row-gap: clamp(18px, 2.5vh, 36px);
    }

    .benefits {
        align-self: center;
        width: 100%;
        gap: clamp(10px, 1.4vh, 20px);
    }

    /* Scale and center all five benefit bubbles. */
    .benefits li {
        min-height: clamp(62px, 6.5vh, 100px);
        padding: 10px 12px;
        justify-content: center;
        text-align: center;
        font-size: clamp(14px, min(1.8vw, 1.6vh), 20px);
    }

    .benefits img {
        width: clamp(38px, 4.5vw, 58px);
        height: clamp(38px, 4.5vw, 58px);
    }

}

/* =========================================
   22. SMARTPHONE LANDSCAPE NAVIGATION
   ========================================= */

@media (orientation: landscape)
       and (max-height: 500px)
       and (max-width: 1100px) {

    /* Hide small logo and yellow contact button */
    .nav-logo,
    .contact {
        display: none;
    }

    .navigation {
        min-height: 50px;
        padding: 6px 8px;
        justify-content: center;
    }

    .nav-links {
        order: 0;
        flex-basis: 100%;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        font-size: 16px;
    }

    .nav-links a {
        padding: 8px 12px;
    }

}
/* 23. Shared navigation: five links, including 3D Fitting Mode */
.navigation {
    gap: clamp(8px, 1.2vw, 20px);
    padding-inline: clamp(12px, 3vw, 46px);
}
.navigation .nav-links {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}
.navigation .nav-links a {
    padding: 10px clamp(8px, 1vw, 16px);
    text-align: center;
}
@media (min-width: 651px) and (max-width: 1200px) {
    .navigation { font-size: clamp(14px, 1.5vw, 18px); }
    .navigation .nav-links { flex: 1 1 100%; order: 3; }
    .navigation { flex-wrap: wrap; justify-content: space-between; }
}
@media (max-width: 650px) {
    body .navigation, body.fitter .navigation {
        min-height: 0;
        padding: 6px 8px;
        justify-content: center;
    }
    body .navigation .nav-links, body.fitter .navigation .nav-links {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        flex: 1 1 100%;
        width: 100%;
        gap: 2px;
        font-size: clamp(12px, 3.3vw, 15px);
    }
    body .navigation .nav-links a, body.fitter .navigation .nav-links a {
        grid-column: span 2;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        min-width: 0;
        padding: 6px 3px;
        white-space: normal;
        line-height: 1.15;
        font-size: inherit;
    }
    body .navigation .nav-links a:nth-child(4) { grid-column: 2 / span 2; }
    body .navigation .nav-links a:nth-child(5) { grid-column: 4 / span 2; }
}
@media (orientation: landscape) and (max-height: 500px) and (min-width: 651px) and (max-width: 1100px) {
    .navigation .nav-links { flex: 1 1 100%; order: 0; gap: 4px; }
    .navigation .nav-links a { padding: 8px 10px; }
}
