/* Core palette and typography */
:root {
    --brand-primary: #4b5dff;
    --brand-secondary: #21d4fd;
    --brand-accent: #ff6f61;
    --brand-dark: #0f172a;
    --brand-muted: #94a3b8;
    --surface: #0b1120;
    --surface-elevated: #111b3a;
    --surface-card: #14204b;
    --text: #e2e8f0;
    --text-muted: #cbd5f5;
    --max-width: 1200px;
    --radius: 18px;
    --transition: 0.25s ease;
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top, rgba(33, 212, 253, 0.15), transparent 55%), var(--surface);
    color: var(--text);
    font-family: inherit;
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.main-container {
    flex: 1;
    width: min(95%, var(--max-width));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(26px);
    background: rgba(11, 17, 32, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar {
    margin: 0 auto;
    width: min(95%, var(--max-width));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    justify-self: center;
    text-align: center;
}

.brand-logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--brand-muted);
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    list-style: none;
}

.nav-links a {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(120deg, rgba(75, 93, 255, 0.25), rgba(33, 212, 253, 0.25));
    color: var(--text);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--text);
}

/* Hero + Sections */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero p {
    max-width: 640px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.cta-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(75, 93, 255, 0.25);
}

.section {
    margin-top: 3rem;
    background: var(--surface-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 2.5rem;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section p {
    color: var(--text-muted);
}

.grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface-elevated);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    flex: 1;
}

.game-card {
    gap: 0.9rem;
}

.game-logo {
    width: 120px;
    max-width: 100%;
    border-radius: calc(var(--radius) * 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.02);
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: calc(var(--radius) * 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.01);
}

.card .card-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand-secondary);
    font-weight: 600;
}

.highlight {
    color: var(--brand-secondary);
}

.list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.list-item {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(33, 212, 253, 0.15);
    color: var(--brand-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pill--muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.game-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}


.game-hero__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: calc(var(--radius) * 0.9);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-card--accent {
    background: linear-gradient(135deg, rgba(75, 93, 255, 0.15), rgba(33, 212, 253, 0.12));
}

.hero-card__header {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-card small {
    color: var(--text-muted);
}

.hero-card .card-actions {
    margin-top: auto;
}

.media-frame {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.media-frame figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tag {
    padding: 0.45rem 1rem;
    border-radius:999px;
    border:1px solid rgba(255,255,255,0.1);
    font-size:0.85rem;
    color: var(--text-muted);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    height: 100%;
    justify-content: center;

.access-card {
    background: var(--surface-elevated);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.25);
}

.access-card h3 {
    margin-bottom: 0.5rem;
}

.access-card p {
    margin-bottom: 0.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--brand-muted);
    font-size: 0.9rem;
}

/* Responsive menu */
@media (max-width: 920px) {
    .navbar {
        grid-template-columns: 1fr auto 1fr;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(5, 8, 22, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: var(--transition);
        font-size: 1.2rem;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 1.8rem;
    }

    .cta-group {
        flex-direction: column;
    }
}
