@import url("https://fonts.googleapis.com/css2?family=Bevan&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Cormorant+Garamond:ital@1&display=swap");

:root {
    --navy: #1b2536;
    --navy-deep: #141c29;
    --leather: #3b2a1d;
    --leather-light: #4a3220;
    --gold: #e8b84d;
    --gold-2: #d9a73d;
    --burgundy: #9c2b3a;
    --sapphire: #3a7ca5;
    --emerald: #4f8a5b;
    --cream: #f2e8d5;

    --font-head: "Bevan", serif;
    --font-body: "Lora", serif;
    --font-quote: "Cormorant Garamond", serif;

    --header-h: 84px;
}

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

html {
    scroll-behavior: smooth;
}
html.hide #preloader {
    display: none;
}

body {
    background: var(--navy);
    color: var(--cream);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}
section {
    position: relative;
    padding: 110px 0;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    color: var(--cream);
    line-height: 1.25;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 24px;
    color: var(--gold);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--sapphire);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

p {
    color: var(--cream);
    opacity: 0.9;
    margin-bottom: 16px;
    font-size: 1.02rem;
}

/* -------- Preloader -------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}
#preloader img {
    width: 64px;
    height: 64px;
}

/* -------- Buttons -------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: 0;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 55%, #b8791f 100%);
    color: var(--navy-deep);
    box-shadow: 0 10px 30px rgba(232, 184, 77, 0.35);
}
.btn-primary:hover {
    box-shadow: 0 14px 36px rgba(232, 184, 77, 0.5);
}

.hero-cta.btn-primary {
    animation: levitate 3s ease-in-out infinite;
}
.hero-cta.btn-primary:hover {
    animation-play-state: paused;
}

@keyframes levitate {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

/* -------- Decorative frame (scroll-corner) -------- */
.case-frame {
    position: relative;
    background: var(--leather);
    border: 1px solid rgba(232, 184, 77, 0.35);
    border-radius: 4px;
    padding: 28px;
}
.case-frame::before,
.case-frame::after,
.case-frame > .corner-tl,
.case-frame > .corner-br {
    content: "";
}
.case-frame::before,
.case-frame::after {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--gold);
}
.case-frame::before {
    top: 8px;
    left: 8px;
    border-right: 0;
    border-bottom: 0;
}
.case-frame::after {
    bottom: 8px;
    right: 8px;
    border-left: 0;
    border-top: 0;
}

/* -------- Header -------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}
header.scrolled {
    background: rgba(20, 28, 41, 0.92);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.logo img {
    height: 50px;
    width: auto;
}

nav.main-nav {
    display: flex;
}
nav.main-nav ul {
    display: flex;
    gap: 36px;
}
.nav-link {
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: var(--cream);
    position: relative;
    padding: 6px 0;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}
.nav-link:hover::after {
    width: 100%;
}

.burger-btn {
    display: none;
    width: 40px;
    height: 34px;
    position: relative;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.burger-btn span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}
.burger-btn span:nth-child(1) {
    top: 4px;
}
.burger-btn span:nth-child(2) {
    top: 16px;
}
.burger-btn span:nth-child(3) {
    top: 28px;
}
.burger-btn.act span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}
.burger-btn.act span:nth-child(2) {
    opacity: 0;
}
.burger-btn.act span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

#mobile-menu {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-deep);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: opacity 0.3s ease;
}
#mobile-menu.opened {
    opacity: 1;
    pointer-events: auto;
}
#mobile-menu .nav-link {
    font-size: 1.1rem;
}
body.fixed {
    overflow: hidden;
}

/* -------- Hero -------- */
.hero {
    padding-top: calc(var(--header-h) + 60px);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(58, 124, 165, 0.18), transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(156, 43, 58, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(20, 28, 41, 0.55) 0%, var(--navy-deep) 85%), url("../img/hero-bg.webp");
    background-size: cover;
    background-position: center;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 2.9rem;
    margin-bottom: 18px;
}
.hero .subtitle {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--cream);
    opacity: 0.85;
    margin-bottom: 34px;
}
.hero-visual {
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.55));
    max-height: 78vh;
    margin: 0 auto;
}

/* -------- Two column content sections -------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.split img {
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.split.reverse .visual {
    order: 2;
}

.section-alt {
    background: var(--navy-deep);
}

/* -------- Gameplay bullet list -------- */
.feature-list {
    margin: 26px 0;
}
.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    color: var(--cream);
    opacity: 0.92;
}
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--emerald);
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(79, 138, 91, 0.7);
}
.feature-list li:nth-child(3n + 1)::before {
    background: var(--burgundy);
    box-shadow: 0 0 8px rgba(156, 43, 58, 0.7);
}
.feature-list li:nth-child(3n + 2)::before {
    background: var(--sapphire);
    box-shadow: 0 0 8px rgba(58, 124, 165, 0.7);
}

/* -------- Features grid -------- */
.features-wrap {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.feature-card {
    background: var(--leather);
    border: 1px solid rgba(232, 184, 77, 0.25);
    border-radius: 8px;
    padding: 18px 20px;
    font-size: 0.95rem;
    color: var(--cream);
}
.feature-card::before {
    content: "◆";
    color: var(--gold);
    margin-right: 8px;
}

/* -------- Final CTA -------- */
.final-cta {
    text-align: center;
    background:
        radial-gradient(
            ellipse 620px 520px at 50% 45%,
            rgba(10, 14, 20, 0.82) 0%,
            rgba(10, 14, 20, 0.55) 45%,
            rgba(10, 14, 20, 0.15) 75%,
            transparent 100%
        ),
        linear-gradient(180deg, rgba(20, 28, 41, 0.4) 0%, rgba(20, 28, 41, 0.7) 100%), url("../img/final-cta-bg.webp");
    background-size: auto, cover, cover;
    background-position: center, center, center;
}
.final-cta .container {
    max-width: 820px;
}
.final-cta h2 {
    font-size: 2.3rem;
    margin-bottom: 22px;
}
.final-cta p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 36px 0 40px;
}
.pill {
    background: var(--leather);
    border: 1px solid rgba(232, 184, 77, 0.3);
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 0.85rem;
    color: var(--gold);
}
.pill span {
    color: var(--cream);
    opacity: 0.85;
    margin-left: 6px;
}

/* -------- Footer -------- */
footer {
    background: var(--navy-deep);
    padding: 40px 0;
}
footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copy {
    font-size: 0.85rem;
    opacity: 0.7;
}
.footer-links {
    display: flex;
    gap: 22px;
}
.footer-links a {
    font-size: 0.85rem;
    opacity: 0.85;
}
.footer-links a:hover {
    color: var(--gold);
}

/* -------- Cookies (n/a for this project, kept absent) -------- */

/* -------- Legal pages -------- */
.legal-page {
    padding-top: calc(var(--header-h) + 70px);
    padding-bottom: 100px;
}
.legal-content {
    max-width: 820px;
    margin: 0 auto;
}
.legal-content h1 {
    font-size: 2.1rem;
    color: var(--gold);
    margin-bottom: 24px;
}
.legal-content h3 {
    font-size: 1.2rem;
    color: var(--gold);
    margin: 30px 0 12px;
}
.legal-content ul {
    margin: 0 0 16px 20px;
    list-style: disc;
}
.legal-content a {
    color: var(--sapphire);
}

/* -------- Responsive -------- */
@media (max-width: 1024px) {
    .hero .container,
    .split,
    .features-wrap {
        grid-template-columns: 1fr;
    }
    .split .visual,
    .split.reverse .visual,
    .features-wrap .visual {
        order: 1;
    }
    section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    nav.main-nav {
        display: none;
    }
    .burger-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.9rem;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 18px;
    }
    .hero .subtitle {
        font-size: 1.15rem;
    }
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
}
