:root {
    --bg: #0b1220;
    --surface: #121c2e;
    --surface-2: #182642;
    --text: #eaf0fb;
    --muted: #fff;
    --primary: #d30000;
    --primary-dark: #d31f03;
    --accent: #f5c451;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --maxw: 1120px;
    --font-head: "Poppins", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    line-height: 1.15;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: #04231a;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 22px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, .28);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--surface-2);
}

.btn-small {
    background: var(--primary);
    padding: 8px 16px;
    font-size: .9rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 18, 32, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.35rem;
}

.brand-text {
    color: var(--text);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-menu a {
    color: var(--muted);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .2s;
}

/* Hero */
.hero {
    padding: 64px 0 48px;
    background:
        radial-gradient(900px 400px at 80% -10%, rgba(16, 185, 129, .18), transparent 60%),
        radial-gradient(700px 400px at 0% 20%, rgba(245, 196, 81, .10), transparent 55%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}

.eyebrow {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .82rem;
}

.hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    margin: 12px 0 16px;
    text-wrap: balance;
}

.lead {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 46ch;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin: 26px 0 24px;
    flex-wrap: wrap;
}

.hero-stats {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--text);
}

.hero-stats span {
    color: var(--muted);
    font-size: .88rem;
}

.hero-media img {
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

/* Sections */
.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    text-wrap: balance;
}

.section-sub {
    color: var(--muted);
    text-align: center;
    max-width: 60ch;
    margin: 12px auto 40px;
}

/* Grid + cards */
.grid {
    display: grid;
    gap: 22px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .15s ease, border-color .15s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, .4);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
}

/* Steps */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    counter-reset: step;
}

.steps li {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.step-num {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 14px;
}

.steps h3 {
    margin-bottom: 6px;
}

.steps p {
    color: var(--muted);
}

/* Download */
.download {
    text-align: center;
    background:
        radial-gradient(700px 300px at 50% 0%, rgba(16, 185, 129, .16), transparent 60%);
}

.download-inner {
    display: grid;
    place-items: center;
}

.fineprint {
    color: var(--muted);
    font-size: .84rem;
    margin-top: 16px;
}

/* FAQ */
.faq {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq details {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 18px;
}

.faq summary {
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 14px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--primary);
    font-size: 1.4rem;
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq details p {
    color: var(--muted);
    padding: 0 0 16px;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand p {
    color: var(--muted);
    max-width: 40ch;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--muted);
    font-size: .84rem;
    text-align: center;
}

/* Active nav link */
.nav-menu a.active {
    color: var(--text);
    position: relative;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Page hero (interior pages) */
.page-hero {
    padding: 56px 0 40px;
    text-align: center;
    background: radial-gradient(800px 340px at 50% -20%, rgba(16, 185, 129, .16), transparent 60%);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    text-wrap: balance;
}

.page-hero p {
    color: var(--muted);
    max-width: 62ch;
    margin: 14px auto 0;
    font-size: 1.08rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .86rem;
    color: var(--muted);
}

.breadcrumb li::after {
    content: "/";
    margin-left: 8px;
    color: var(--border);
}

.breadcrumb li:last-child::after {
    content: "";
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--text);
}

.breadcrumb li[aria-current] {
    color: var(--text);
}

/* Prose / article content */
.prose {
    max-width: 760px;
    margin: 0 auto;
}

.prose h2 {
    font-size: 1.5rem;
    margin: 34px 0 12px;
}

.prose h3 {
    font-size: 1.2rem;
    margin: 24px 0 8px;
}

.prose p,
.prose li {
    color: var(--muted);
}

.prose p {
    margin-bottom: 16px;
}

.prose ul,
.prose ol {
    margin: 0 0 16px 22px;
}

.prose li {
    margin-bottom: 8px;
}

.prose strong {
    color: var(--text);
}

/* Games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.game-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, .4);
}

.game-card .game-body {
    padding: 22px;
}

.game-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.game-card p {
    color: var(--muted);
    font-size: .95rem;
}

.game-badge {
    display: inline-block;
    background: rgba(16, 185, 129, .14);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

/* Contact form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .92rem;
}

.field input,
.field textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font: inherit;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-note {
    color: var(--muted);
    font-size: .84rem;
}

.form-status {
    font-weight: 600;
}

.form-status.ok {
    color: var(--primary);
}

.contact-info {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.contact-info h3 {
    margin-bottom: 10px;
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 14px;
}

.contact-info a {
    color: var(--primary);
}

/* Info / callout box */
.callout {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 20px 0;
}

.callout p {
    color: var(--muted);
    margin: 0;
}

/* Center a lone CTA */
.center-cta {
    text-align: center;
    margin-top: 32px;
}

/* Responsive */
@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-media {
        order: -1;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 8px 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }

    .nav-menu.open {
        max-height: 360px;
    }

    .nav-menu li {
        width: 100%;
        padding: 8px 0;
    }

    .nav-menu .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
        transition: none !important;
    }
}