:root {
    --header-ratio: 1741 / 1077;
    --footer-ratio: 1963 / 1099;
    --header-max-k: 0.7;
    --main-accent: #315f9d;
    --secondary-accent: #fb4a63;
}

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

body {
    font-family: "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--main-accent);
}

/* Header styles */
header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}


/* --header-ratio * --header-max-k */
@media (min-aspect-ratio: 1.1315) {
    header::before {
        content: "";
        position: absolute;
        inset: 0;
        filter: blur(10px);

        z-index: -1;
        background-image: url('assets/5.png');
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
        transform: scale(1.1);
    }

    header > img {
        height: calc(100vh * var(--header-max-k));
        width: auto !important;
        mask-image: radial-gradient(circle farthest-side, black 80%, rgba(0, 0, 0, 0.3) 90%, rgba(0, 0, 0, 0.0) 100%);
    }
}

header > img {
    width: 100%;
}


header > nav {
    padding: 1%;
    height: 12%;
    width: 100%;
    top: 0;
    z-index: 1;
    position: absolute;
    display: flex;
    justify-content: space-evenly;
}

header > nav > a {
    border: none !important;
    color: white;
    background: none;
}

header > nav > a:hover {
    color: var(--main-accent);
    background-color: white;
}


/* Hero section */
.hero {
    background: linear-gradient(135deg, #e6f0ff 0%, #f0f7ff 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #003366;
}

.hero-text {
    max-width: 800px;
    margin: 1.5rem auto;
    color: #333;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.text-switcher {
    display: inline-grid;
}

.btn > .normal, .btn > .hover {
    grid-area: 1 / 1;
    transition: opacity 0.3s ease;
}

.btn > .normal {
    opacity: 1;
}
.btn > .hover {
    opacity: 0;
}

.btn:hover > .normal {
    opacity: 0;
}
.btn:hover > .hover {
    opacity: 1;
}

.partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 4vw, 4rem);
    margin-bottom: 3em;
}

.partner {
    transition: transform 0.3s ease;
}

.partner:hover {
    transform: scale(1.05);
}

.partner > img {
    height: 4em;
}

.btn.secondary-accent {
    border: 2px solid var(--secondary-accent);
    background: var(--secondary-accent);
    color: white;
}

.btn.secondary-accent:hover {
    transform: scale(1.1);
}

.btn.default-accent {
    border: 2px solid var(--main-accent);
    background: var(--main-accent);
    color: white;
}

.btn.default-hollow {
    border: 2px solid var(--main-accent);
    color: var(--main-accent);
    background: none;
}


.btn.default-accent:hover {
    background: none;
    color: var(--main-accent);
}

.btn.default-hollow:hover {
    background: var(--main-accent);
    color: white;
}

section.highlights {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 3rem);
}

section.highlights > div.game-text {
    margin: clamp(1rem, 4em, 2vw);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: 0.5em;
    text-align: center;
}

h2 {
    font-size: clamp(1.3rem, 2.6vw, 2.1rem);
    line-height: 1.2;
    margin-bottom: 0.5em;
    text-align: center;
}

p {
    font-size: clamp(1.1rem, 1.7vw, 1.4rem);
    line-height: 1.6;
    margin: 0;
}

section.highlights > img {
    max-width: 40%;
    max-height: 50vh;
    height: auto;
}


.game-text {
    flex: 1;
    min-width: 250px;
}


/* Footer styles */
footer > div.footer-hero {
    width: 100%;
    display: flex;
    justify-content: right;
    position: relative;
    overflow: hidden;
}


/* --footer-ratio * --header-max-k 2f5f9d*/
@media (min-aspect-ratio: 1.2503) {
    footer > div.footer-hero::before {
        content: "";
        position: absolute;
        inset: 0;

        z-index: -1;
        background-color: #2f5f9d;
    }

    footer > div.footer-hero > img {
        height: calc(100vh * var(--header-max-k));
        width: auto !important;
        mask-image: linear-gradient(to left, black 80%, rgba(0, 0, 0, 0.0) 100%);
        mask-composite: intersect;
    }
}

footer > div.footer-hero > img {
    width: 100%;
}


footer h2 {
    text-align: left;
}
footer > div.footer-hero > div.join-text {
    position: absolute;
    z-index: 1;
    width: 60%;
    left: 0;
    top: 0;
    margin-top: 10%;
    margin-left: 10%;
    color: white;
}


.join-btn {
    background: #fb4a63;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-content {
    padding: 2%;
    height: 8%;
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: clamp(1rem, 3vw, 3rem);


    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.3rem;
    margin-top: 1rem;
}

.footer-content > a {
    color: #182b5d;
}

.footer-content > a:visited {
    color: #182b5d;
}

.footer-content > img {
    max-height: 5vh;
}