:root {
    --max-width: 1200px;
    --accent-yellow: #ffbf3d;
    --accent-yellow-2: #ff9f00;
    --muted: rgba(255, 255, 255, 0.75);
    --glass: rgba(0, 0, 0, 0.45);
}

html,
body {
    height: 100%;
}

@font-face {
    font-family: 'Trajan';
    src: url('/assets/fonts/Trajan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Trajan', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Trajan', 'Outfit', system-ui, sans-serif;
    margin: 0 0 .5em 0
}

p {
    color: var(--muted);
    margin: 0 0 1em 0
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px
}

header {
    background: rgba(0, 0, 0, 0.75);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.account-pc {
    display: none;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px
}

.logo {
    font-weight: 900;
    color: #ffb84d;
    letter-spacing: 1px;
    font-size: 32px
}

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

.logo {
    position: relative;
    overflow: visible;
    min-width: 240px;
    padding-right: 12px
}

.logo a {
    display: inline-block;
    position: relative
}

.logo-text,
.logo-hover {
    display: inline-block;
    transition: transform .36s cubic-bezier(.2, .9, .2, 1), opacity .28s ease;
    white-space: nowrap;
    font-size: inherit;
}

.logo-hover {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(6px);
    opacity: 0;
    letter-spacing: 0.6px;
}

@media (max-width:700px) {

    .logo {
        min-width: auto;
        padding-right: 6px
    }

    .logo-hover {
        font-size: 16px
    }
}

.logo a:hover .logo-text {
    transform: translateY(-6px);
    opacity: 0
}

.logo a:hover .logo-hover {
    transform: translateY(0);
    opacity: 1
}

.logo a::after {
    content: "";
    position: absolute;
    left: -40%;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    transform: skewX(-20deg);
    transition: width .6s cubic-bezier(.2, .9, .2, 1);
    pointer-events: none;
}

.logo a:hover::after {
    width: 180%
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
    align-items: center
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 1px;
    opacity: 0.95;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Trajan', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    position: relative;
    padding-bottom: 4px
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--accent-yellow);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}

nav a:hover::after,
nav a:focus::after {
    transform: scaleX(1)
}

@media (prefers-reduced-motion: reduce) {
    nav a::after {
        transition: none
    }
}

.btn-account {
    position: relative;
    background: #f2c27f;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 151px;
    height: 54px;
    padding: 0 16px;
    text-transform: uppercase;
    transition: transform .12s ease, box-shadow .12s ease;
    text-decoration: none;
    border: 2px solid #ffe9c3;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}

.btn-account:hover {
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-logo {
    text-align: center;
    z-index: 4;
    position: relative;
}

.hero-logo img {
    width: 400px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 215, 150, 0.6));
}

.hero-logo img {
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 150, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 24px rgba(255, 215, 150, 0.7));
    }

    100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 150, 0.3));
    }
}

.hero-sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.spark {
    position: absolute;
    width: 330px;
    opacity: 0.9;
    image-rendering: auto;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.8));
    pointer-events: none;
}

.spark-left {
    left: 8%;
    animation: moveSparkLeft 6s linear infinite;
}

.spark-right {
    right: 8%;
    animation: moveSparkRight 6s linear infinite;
}

.spark-1 {
    top: 25%;
    animation-delay: -1s;
}

.spark-2 {
    top: 25%;
    animation-delay: -3s;
}

.spark-3 {
    top: 25%;
    animation-delay: -2s;
}

.spark-4 {
    top: 25%;
    animation-delay: -4s;
}

.spark-5 {
    top: 25%;
    animation-delay: -5s;
}

@keyframes moveSparkLeft {
    0% {
        transform: translateX(0) scale(0.7);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    70% {
        opacity: 1;
        transform: translateX(-180px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-260px) scale(1.1);
    }
}

@keyframes moveSparkRight {
    0% {
        transform: translateX(0) scale(0.7);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    70% {
        opacity: 1;
        transform: translateX(180px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(260px) scale(1.1);
    }
}

.hero-img {
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 0;
    opacity: 0.55;
}

.hero-content {
    position: absolute;
    left: 50%;
    top: calc(50% + 36px);
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 28px 20px;
}

.hero-content p {
    font-size: 1rem;
    margin-top: .75rem;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-content h1 {
    color: #ffffff;
    text-align: center;
    letter-spacing: 3px;
    font-size: 40px;
    line-height: 50px;
    font-weight: 700;
    text-shadow: 0 2px 5px #000000be;
    text-transform: uppercase;
    border: 2px solid #f2c27f;
    padding: 8px 22px;
    margin: 0 auto 30px;
    box-shadow: inset 0 3px 6px #00000029, 0 3px 6px #000000bf;
    box-shadow: inset 0 0 40px rgba(223, 195, 195, 0.45);
}

.hero-content h1 span {
    font-size: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 18px 24px;
    text-decoration: none;
    font-weight: 400;
    font-family: 'Trajan', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #111;
    position: relative;
    z-index: 4;
    background: #FCB755;
    border: 2px solid #f2c27f;
    box-shadow: 0 0 40px rgba(252, 183, 85, 0.85), 0 10px 26px rgba(0, 0, 0, 0.34);
    transition: transform .12s ease, box-shadow .12s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 48px rgba(252, 183, 85, 0.95), 0 12px 28px rgba(0, 0, 0, 0.42);
}

.features {
    padding: 36px 0
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px
}

.feature-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.005));
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65) inset, 0 4px 18px rgba(0, 0, 0, 0.55);
    cursor: default;
}

.feature-box {
    transition: transform .12s ease, box-shadow .12s ease;
    will-change: transform, box-shadow;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6) inset, 0 8px 28px rgba(0, 0, 0, 0.6)
}

.feature-box h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.feature-box p {
    color: var(--muted);
    font-size: .92rem;
}

/* Footer */
footer {
    padding: 18px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

footer .container {
    border-top: 2px solid rgba(255, 255, 255, 0.16);
    padding-top: 34px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0 8px;
}

/* BURGER BUTTON */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.burger span {
    display: block;
    height: 3px;
    background: #f2c27f;
    border-radius: 2px;
    transition: 0.3s;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.is-visible {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

/* MODAL WINDOW */
.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 480px;
    background-color: #050509;
    border: 1px solid #f2c27f;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    text-align: left;
}

#download-modal-title {
    text-align: center;
    font-family: 'Trajan', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.modal-dialog h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-family: 'Trajan', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.modal-dialog p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CLOSE BUTTON */
.modal-close {
    position: absolute;
    top: 0.4rem;
    right: 0.7rem;
    border: 0;
    background: transparent;
    color: #f2c27f;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
}

/* DOWNLOAD MODAL LAYOUT */
.download-columns {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 1.2rem;
}

.centered-text {
    text-align: center;
}

.download-col h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.05rem;
    text-transform: uppercase;
    color: #f2c27f;
    font-family: 'Trajan', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.discord-link {
    text-decoration: none;
    color: rgb(112, 112, 248);
}

/* Download links */
.dl-main,
.dl-mirror {
    display: block;
    padding: 0.55rem 0.8rem;
    margin-bottom: 0.45rem;
    border: 1px solid #f2c27f;
    background: rgba(255, 231, 173, 0.06);
    color: #f2c27f;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s ease, transform 0.15s ease;
}

.dl-main span {
    opacity: 0.8;
    font-size: 0.85rem;
}

.dl-main:hover,
.dl-mirror:hover {
    background: rgba(255, 231, 173, 0.14);
    transform: translateY(-2px);
}

/* NAV MOBILE */
nav {
    transition: 0.3s ease;
}

nav ul {
    flex-direction: row;
}

/* MOBILE MODE */
@media (max-width: 980px) {

    .download-columns {
        flex-direction: row;
        gap: 2rem;
    }

    .download-col {
        flex: 1;
    }

    .modal-dialog {
        padding: 2rem 2.25rem;
        font-size: 1rem;
    }


    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul {
        gap: 14px;
    }

    .burger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-200%);
        opacity: 0;
        pointer-events: none;
        padding: 20px 0;
    }

    nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .btn-account {
        display: none;
    }

    .account-pc {
        display: block;
    }

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

    header .container {
        height: 90px;
    }

    .logo {
        font-size: 1rem;
    }

    .hero-content {
        width: 90%;
    }

    .hero-content h1,
    .hero-content h1 span {
        font-size: 1.5rem;
    }

    .hero-img {
        height: 815px;
    }

    .hero-logo img {
        width: 300px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
        text-align: left;
        align-items: normal;
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.75);
        text-decoration: none;
        font-size: 0.9rem;
    }
}

.burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}