/* ═══════════════════════════════════════════════════════
   GAMEPUSHER.DEV — Design System v2
   Editorial Dark Theme
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400&display=swap');

/* ── Tokens — Deep Green + Tan ── */
:root {
    --bg: #0b110d;
    --surface: #141f18;
    --surface-hover: #1a2b20;
    --border: rgba(180, 200, 180, .08);
    --border-hover: rgba(180, 200, 180, .16);
    --text: #e4dfd4;
    --text-dim: #8a9b8a;
    --text-muted: #536653;
    --accent: #5cb85c;
    --accent-hover: #72d572;
    --accent-soft: rgba(92, 184, 92, .1);
    --tan: #c4a97d;
    --tan-soft: rgba(196, 169, 125, .12);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-w: 1080px;
    --gap: 24px;
    --radius: 6px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

/* ── Dot Grid Background ── */
.dot-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(140, 180, 140, .04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 17, 13, .85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: transform .35s ease;
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gap);
    height: 56px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: .85em;
    font-weight: 400;
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 4px;
    transition: color .2s, background .2s;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
}

.nav-links a.active {
    color: var(--text);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-dim);
    transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 640px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(11, 17, 13, .95);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        max-height: 260px;
    }

    .nav-links a {
        display: block;
        padding: 14px var(--gap);
        border-radius: 0;
    }
}

/* ── Content ── */
.content {
    position: relative;
    z-index: 5;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* ── Hero ── */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: .75em;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2em, 5vw, 3.6em);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.1em;
    font-weight: 300;
    color: var(--text-dim);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    font-family: var(--font-body);
    font-size: .9em;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000;
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, .03);
}

/* ── Divider ── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ── Section ── */
.section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-label {
    font-family: var(--font-mono);
    font-size: .7em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6em;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-sub {
    color: var(--text-dim);
    font-weight: 300;
    margin-bottom: 40px;
    font-size: .95em;
}

/* ── Game Cards ── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.25, .8, .25, 1), border-color .3s, box-shadow .3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
    color: inherit;
}

.game-card-thumb {
    height: 160px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.game-card-body {
    padding: 16px;
}

.game-card-body h3 {
    font-family: var(--font-heading);
    font-size: .95em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.game-card-body p {
    font-size: .85em;
    color: var(--text-dim);
    line-height: 1.6;
    font-weight: 300;
}

.game-card-tags {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.tag {
    font-family: var(--font-mono);
    font-size: .65em;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, .15);
}

/* ── Stack Cards ── */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.stack-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s;
}

.stack-card:hover {
    border-color: var(--border-hover);
}

.stack-card h3 {
    font-family: var(--font-heading);
    font-size: .85em;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.stack-card p {
    font-size: .8em;
    color: var(--text-dim);
    line-height: 1.6;
    font-weight: 300;
}

/* ── Stats ── */
.stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text);
    display: block;
    letter-spacing: -0.03em;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: .65em;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ── Footer ── */
.footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: .85em;
    font-weight: 600;
    color: var(--text-dim);
}

.footer-brand span {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: .8em;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    width: 100%;
    font-size: .7em;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ── About ── */
.about-content {
    max-width: 640px;
    font-size: 1em;
    line-height: 1.8;
    color: var(--text-dim);
    font-weight: 300;
}

.about-content strong {
    color: var(--text);
    font-weight: 500;
}

.about-content a {
    border-bottom: 1px solid rgba(245, 158, 11, .3);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

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

.reveal-stagger>* {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}

.reveal-stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: .08s;
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: .16s;
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: .24s;
}

.reveal-stagger.visible>*:nth-child(5) {
    transition-delay: .32s;
}

.reveal-stagger.visible>*:nth-child(6) {
    transition-delay: .4s;
}

/* ── Util ── */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 32px;
}

/* ── Breakout (full-bleed) ── */
.breakout {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

/* ── Video Reel ── */
.video-reel {
    background: #000;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.video-reel video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: cover;
}

.video-reel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
    pointer-events: none;
}

.video-reel-caption p {
    max-width: var(--max-w);
    margin: 0 auto;
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.01em;
}

/* ── Video Placeholder (for demo) ── */
.video-placeholder {
    width: 100%;
    max-height: 70vh;
    min-height: 300px;
    background: linear-gradient(135deg, #0d1a12 0%, #1a2b20 40%, #0b160e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(92, 184, 92, .06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.video-placeholder-text {
    font-family: var(--font-mono);
    font-size: .8em;
    color: var(--text-muted);
    z-index: 1;
    text-align: center;
    line-height: 2;
}

.video-placeholder-text span {
    display: block;
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--text-dim);
    margin-bottom: 8px;
}

/* ── Language / Tech Badges ── */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.lang-card {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: border-color .2s, transform .2s;
}

.lang-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.lang-card-icon {
    font-size: 1.6em;
    margin-bottom: 8px;
}

.lang-card h4 {
    font-family: var(--font-heading);
    font-size: .8em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.lang-card p {
    font-size: .7em;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ── Pipeline Arrow ── */
.pipeline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 0;
}

.pipeline-step {
    font-family: var(--font-mono);
    font-size: .75em;
    padding: 6px 14px;
    border-radius: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.pipeline-step.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.pipeline-arrow {
    color: var(--text-muted);
    font-size: .8em;
}