/* ============================================================
   LUGAT GAME STUDIO — style.css
   Dark, premium, typographic game-studio aesthetic.
   ============================================================ */

/* ── Reset & base ────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0906;
    --bg-2: #0f0e0b;
    --surface: #141310;
    --border: rgba(255, 255, 255, 0.07);
    --text: #ede8df;
    --text-muted: #7a7060;
    --accent-1: #d97706;
    /* amber */
    --accent-2: #c2a46a;
    /* warm gold */
    --accent-gold: #d97706;
    --font-body: 'Space Grotesk', system-ui, sans-serif;
    --font-head: 'Syne', system-ui, sans-serif;
    --max-w: 1200px;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

em {
    font-style: italic;
    color: var(--accent-2);
}

/* ── Background canvas ───────────────────────────────────── */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

/* ── Utilities ───────────────────────────────────────────── */
.container {
    width: min(var(--max-w), 100% - 3rem);
    margin-inline: auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-1);
    margin-bottom: 1rem;
}

.section-heading {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 52ch;
    margin-bottom: 3rem;
}

.section {
    position: relative;
    z-index: 1;
    padding-block: clamp(5rem, 10vw, 9rem);
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(to bottom, rgba(8, 8, 16, 0.95), transparent);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s, background 0.3s;
}

.nav.scrolled {
    background: rgba(8, 8, 16, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--accent-1);
    border-radius: 6px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    color: #0a0906;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-1);
    color: #0a0906;
    box-shadow: 0 0 28px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(217, 119, 6, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
}

.hero-inner {
    max-width: 800px;
}

.hero-headline {
    font-family: var(--font-head);
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 800;
    line-height: 1.0;
    color: #fff;
    margin-bottom: 1.75rem;
    opacity: 0;
    animation: fade-up 0.9s 0.2s forwards;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 48ch;
    margin-inline: auto;
    margin-bottom: 2.75rem;
    opacity: 0;
    animation: fade-up 0.9s 0.35s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-up 0.9s 0.5s forwards;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fade-in 1s 1.2s forwards;
}

.hero-scroll-hint span {
    display: block;
    width: 1.5px;
    height: 52px;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
    margin-inline: auto;
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.8);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ── About ───────────────────────────────────────────────── */
.about {
    border-top: 1px solid var(--border);
}

.about-body {
    max-width: 680px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-text p:first-child {
    font-size: 1.15rem;
    color: var(--text);
}

/* ── Games ───────────────────────────────────────────────── */
.games {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Featured game card */
.game-featured {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.3s;
}

.game-featured:hover {
    border-color: rgba(217, 119, 6, 0.35);
}

.game-featured-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 90% 50%,
            hsl(var(--hue), 70%, 22%) 0%,
            hsl(var(--hue), 50%, 10%) 50%,
            transparent 75%);
    opacity: 0.6;
}

.game-featured-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.game-featured-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.game-featured-title {
    font-family: var(--font-head);
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.game-featured-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 70ch;
}

.game-featured-meta {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.meta-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.game-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-1);
    border: 1px solid rgba(217, 119, 6, 0.4);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-inner {
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
}

.contact-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--accent-1);
    position: relative;
    transition: opacity 0.2s;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.contact-email:hover::after {
    transform: scaleX(1);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding-block: 2.5rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-tagline {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(112, 112, 160, 0.6);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Intersection observer reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .game-featured-inner {
        padding: 1.75rem;
    }

    .game-featured-meta {
        gap: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .nav {
        padding: 1rem 1.25rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-headline {
        font-size: clamp(2.8rem, 12vw, 5rem);
    }
}