/* ----- Fonts ----- */
/* Outfit (variable, weights 300-900), self-hosted from Google Fonts; license in fonts/OFL.txt */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----- CSS Variables ----- */
/* Colours follow the logo: orange fairy wings, blue fairy, plum lettering */
:root {
    --bg-dark: #0b0710;
    --bg-card: rgba(28, 18, 34, 0.6);
    --primary-neon: #FF7A3D;
    --primary-neon-glow: rgba(255, 122, 61, 0.45);
    --secondary-neon: #6EC6FF;
    --secondary-neon-glow: rgba(110, 198, 255, 0.4);
    --plum-glow: rgba(150, 40, 140, 0.5);
    --text-main: #ece6ef;
    --text-muted: #a79bab;
    --font-family: 'Outfit', sans-serif;
    --border-glass: rgba(255, 255, 255, 0.06);
}

/* ----- Reset & Global ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ----- Typography ----- */
h1, h2, h3 {
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 1px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-neon) 0%, var(--secondary-neon) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

p {
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.mt-2 { margin-top: 2rem; }

/* ----- Background Effects ----- */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    opacity: 0.5;
}

.spot-1 {
    top: 120vh;
    left: -200px;
    background: var(--plum-glow);
}

.spot-2 {
    top: 200vh;
    right: -200px;
    background: var(--secondary-neon-glow);
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* ----- Layout ----- */
.section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Keeps anchored headings clear of the fixed navbar */
section[id] {
    scroll-margin-top: 70px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 640px;
    margin: 0 auto;
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-neon), #d9405f);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(255, 122, 61, 0.45);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 122, 61, 0.75);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-neon);
    border: 1px solid var(--secondary-neon);
    padding: 0.5rem 1.5rem;
}

.btn-outline:hover {
    background: rgba(110, 198, 255, 0.1);
    box-shadow: 0 0 15px rgba(110, 198, 255, 0.3);
}

.massive-btn {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    margin-top: 2rem;
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ----- Navigation ----- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(11, 7, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px var(--primary-neon);
}

.logo img {
    height: 44px;
    width: auto;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-neon);
}

/* ----- Hero Section: full-bleed art, content on the dark side ----- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 4rem;
    overflow: hidden;
    isolation: isolate;
}

.hero-art-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% 30%;
    z-index: -2;
}

/* Darkens the left side for the text and fades the art into the page below */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 7, 16, 0.95) 0%, rgba(11, 7, 16, 0.75) 35%, rgba(11, 7, 16, 0) 65%),
        linear-gradient(0deg, var(--bg-dark) 0%, rgba(11, 7, 16, 0) 30%);
}

.hero-content {
    width: 100%;
    max-width: 520px;
    margin-left: max(0px, calc((100vw - 1400px) / 2));
    text-align: center;
}

.hero-logo {
    margin-bottom: 1.5rem;
}

.hero-logo img {
    display: block;
    width: 300px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px var(--plum-glow));
}

.hero-tagline {
    display: block;
    margin-top: 1rem;
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--primary-neon);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.cta-note {
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* ----- Partner creatives: shown at their native aspect ratio, never cropped ----- */
.creative {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ----- Cards ----- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 122, 61, 0.15);
    border-color: rgba(255, 122, 61, 0.35);
}

.card-image-placeholder {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.card-image-placeholder .creative {
    border-radius: 0;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* Screenshot cards that open the game */
.card-link {
    color: inherit;
    text-decoration: none;
}

.card-link .creative {
    transition: transform 0.4s ease;
}

.card-link:hover .creative {
    transform: scale(1.04);
}

.card-cta {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-neon);
}

.card-link:hover .card-cta {
    color: var(--secondary-neon);
}

/* ----- About / Features Section ----- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.dark-panel {
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0));
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.feature-list {
    list-style: none;
}

.feature-columns {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 3rem;
}

.feature-list li {
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: baseline;
}

.feature-list li::before {
    content: '►';
    color: var(--primary-neon);
    margin-right: 1rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ----- How to Play Section ----- */
.steps {
    list-style: none;
    counter-reset: step;
    max-width: 800px;
    margin: 0 auto;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 300;
    font-size: 1.05rem;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.5rem;
    top: 1.15rem;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-neon);
}

.steps strong {
    color: #fff;
    font-weight: 700;
}

/* ----- FAQ Section ----- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #fff;
    transition: color 0.3s;
}

.faq-question:hover h3 {
    color: var(--secondary-neon);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-neon);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* arbitrary height larger than content */
    padding-bottom: 1.5rem;
}

.faq-answer a {
    color: var(--secondary-neon);
}

.bottom-cta {
    text-align: center;
    margin-top: 5rem;
}

.bottom-cta-logo {
    display: block;
    width: 160px;
    height: auto;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 30px var(--plum-glow));
}

.bottom-cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ----- Footer ----- */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 5%;
    text-align: center;
    background: rgba(0,0,0,0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
    max-width: 720px;
    margin: 0 auto;
}

/* ----- Legal pages ----- */
.legal-page {
    max-width: 760px;
}

.legal-logo {
    margin-bottom: 2.5rem;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-page h2 {
    font-size: 1.2rem;
    color: #fff;
    margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.legal-page a {
    color: var(--secondary-neon);
}

.legal-page a.legal-logo {
    color: #fff;
}

.legal-updated {
    font-size: 0.85rem !important;
}

.legal-back {
    margin-top: 3rem;
}

/* ----- 404 page ----- */
.center-page {
    min-height: 100vh;
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 16px 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.center-page h1 {
    font-size: 2.5rem;
    margin: 2rem 0 1rem;
}

.center-page p {
    color: var(--text-main);
}

/* ----- Animations & Responsiveness ----- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    /* Art on top, text below it on the page background */
    .hero {
        flex-direction: column;
        justify-content: flex-end;
        min-height: 0;
        padding: 0 16px 3rem;
    }

    .hero-art-image {
        position: relative;
        inset: auto;
        width: calc(100% + 32px);
        height: 62vh;
        min-height: 340px;
        max-height: 560px;
        margin: 0 -16px;
        object-position: 72% 20%;
        z-index: auto;
        -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
    }

    .hero::after {
        display: none;
    }

    .hero-content {
        position: relative;
        margin: -150px auto 0;
    }

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

    .hero-tagline {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .section {
        padding: 4rem 16px;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .nav-links a {
        display: none; /* simple mobile fallback, only show CTA */
    }
    .nav-links .btn-outline {
        display: inline-block;
    }

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

    .bottom-cta h2 {
        font-size: 2rem;
    }

    .massive-btn {
        font-size: 1.25rem;
        padding: 1.25rem 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        justify-content: center;
    }

    .footer-links a {
        margin: 0 1rem;
    }
}
