/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
    --bg: #0d1117;
    --bg2: #161b22;
    --bg3: #1c2128;
    --border: #30363d;
    --gold: #f0a500;
    --gold-dim: #b07d00;
    --green: #3fb950;
    --red: #f85149;
    --blue: #79c0ff;
    --cyan: #39d0c8;
    --purple: #d2a8ff;
    --muted: #8b949e;
    --text: #c9d1d9;
    --bright: #e6edf3;

    --font-px: "Press Start 2P", monospace;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;
    --font-ui: "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius: 6px;
    --radius-lg: 12px;
    --glow-gold:
        0 0 20px rgba(240, 165, 0, 0.35), 0 0 40px rgba(240, 165, 0, 0.15);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background: #070b10;
    color: var(--text);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    color: var(--gold);
    text-decoration: none;
}
a:hover {
    color: var(--bright);
}
code {
    font-family: var(--font-mono);
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0 5px;
    font-size: 0.88em;
    color: var(--cyan);
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bright);
    font-family: var(--font-px);
    font-size: 0.7rem;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.nav-logo:hover {
    color: var(--gold);
}
.logo-glyph {
    font-size: 1.3rem;
}
.nav-logo-img {
    height: 30px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.85rem;
}
.nav-links a {
    color: var(--muted);
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text);
}
.nav-links a.active {
    color: var(--gold);
}
.nav-wiki {
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--radius);
    color: var(--text) !important;
    transition:
        border-color 0.2s,
        color 0.2s !important;
}
.nav-wiki:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}
.nav-discord {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #5865f2;
    color: #fff !important;
    padding: 5px 12px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.82rem;
    transition: opacity 0.2s;
}
.nav-discord:hover {
    opacity: 0.85;
    color: #fff !important;
}
.nav-discord svg {
    flex-shrink: 0;
}
.nav-trello {
    background: #0052cc;
    color: #fff !important;
    padding: 5px 12px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.82rem;
    transition: opacity 0.2s;
}
.nav-trello:hover {
    opacity: 0.85;
    color: #fff !important;
}
.nav-gh {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: #000 !important;
    padding: 5px 12px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.82rem;
    transition: opacity 0.2s;
}
.nav-gh:hover {
    opacity: 0.85;
}
.nav-gh svg {
    flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font-px);
    font-size: 0.6rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-gold {
    background: var(--gold);
    color: #0d1117;
    box-shadow: 0 0 16px rgba(240, 165, 0, 0.4);
}
.btn-gold:hover {
    background: #ffc030;
    color: #0d1117;
    box-shadow: var(--glow-gold);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-1px);
}
.btn-lg {
    font-size: 0.65rem;
    padding: 14px 28px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
}
.starfield {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}
.scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 2px,
        rgba(0, 0, 0, 0.06) 4px
    );
    pointer-events: none;
    z-index: 1;
}
.hero-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}
.hero-copy {
    flex: 0 0 auto;
    max-width: 480px;
}
.hero-logo {
    width: 100px;
    height: auto;
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 16px rgba(0, 255, 80, 0.3));
}
.hero-badge {
    display: inline-block;
    font-family: var(--font-px);
    font-size: 0.48rem;
    letter-spacing: 2px;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    padding: 5px 10px;
    border-radius: 3px;
    margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-px);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.2;
    color: var(--gold);
    text-shadow: var(--glow-gold);
    letter-spacing: 4px;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 32px;
}
.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.hstat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hstat-n {
    font-family: var(--font-px);
    font-size: 1.2rem;
    color: var(--gold);
}
.hstat-l {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Terminal mockup */
.hero-terminal {
    flex: 1;
    min-width: 0;
}
.term-chrome {
    background: #1a1f26;
    border-radius: var(--radius-lg);
    border: 1px solid #3a4048;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(240, 165, 0, 0.1);
    overflow: hidden;
}
.term-titlebar {
    background: #252b34;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #3a4048;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.dot-r {
    background: #f85149;
}
.dot-y {
    background: #f0a500;
}
.dot-g {
    background: #3fb950;
}
.term-name {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}
.term-screen {
    background: var(--bg);
    padding: 14px 18px;
    min-height: 340px;
    overflow: hidden;
    position: relative;
}
.term-pre {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--text);
    white-space: pre;
    overflow: hidden;
}
.term-pre div {
    white-space: pre;
    min-height: 1.05em;
}
.term-cursor {
    color: var(--gold);
    animation: blink 1s step-end infinite;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    vertical-align: middle;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    font-size: 1.1rem;
    color: var(--muted);
    animation: bounce 2s ease-in-out infinite;
    z-index: 2;
}
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

/* ── Section base ───────────────────────────────────────────────────────── */
.section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-title {
    font-family: var(--font-px);
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    color: var(--bright);
    letter-spacing: 2px;
    margin-bottom: 14px;
    line-height: 1.5;
}
.section-sub {
    color: var(--muted);
    font-size: 1rem;
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 52px;
}

/* ── Features ───────────────────────────────────────────────────────────── */
.features {
    position: relative;
    z-index: 2;
    padding: 100px 24px;
    background: transparent;
    /*border-top: 1px solid rgba(48, 54, 61, 0.4);*/
    /*border-bottom: 1px solid rgba(48, 54, 61, 0.4);*/
}
.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.feat-card {
    background: rgba(28, 33, 40, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(48, 54, 61, 0.7);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition:
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
    opacity: 0;
    transform: translateY(20px);
}
.feat-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        border-color 0.25s,
        box-shadow 0.25s;
}
.feat-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.feat-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}
.feat-card h3 {
    font-family: var(--font-px);
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.feat-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ── Ages ───────────────────────────────────────────────────────────────── */
.ages-section {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}
.ages-section .section-wrap {
    padding-bottom: 52px;
}
.ages-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.ages-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(240, 165, 0, 0.1);
    border: 1px solid rgba(240, 165, 0, 0.35);
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
    box-shadow: 0 0 0 rgba(240, 165, 0, 0);
}
.ages-arrow:hover {
    background: rgba(240, 165, 0, 0.22);
    border-color: var(--gold);
    transform: scale(1.1);
    box-shadow: 0 0 22px rgba(240, 165, 0, 0.28);
}
.ages-arrow:active {
    transform: scale(0.94);
}
.ages-scroll {
    flex: 1;
    min-width: 0;
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.ages-scroll::-webkit-scrollbar {
    display: none;
}
.ages-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 24px 0 32px;
    align-items: stretch;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}
.age-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: min(42vw, 440px);
    min-width: 240px;
    min-height: 340px;
    padding: 36px 28px 32px;
    border-radius: 8px;
    background: rgba(22, 27, 34, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: none;
    box-shadow:
        0 14px 48px rgba(0, 0, 0, 0.55),
        0 2px 12px rgba(0, 0, 0, 0.4);
    cursor: default;
    transition:
        box-shadow 0.3s,
        transform 0.3s;
    scroll-snap-align: start;
    text-align: center;
    gap: 18px;
    overflow: hidden;
    animation: float 7s ease-in-out infinite;
}
/* era colour bar at top */
.age-node::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ac, var(--gold));
    opacity: 0.9;
}
/* background glow on hover */
.age-node::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 20%,
        var(--ac, var(--gold)) 0%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.age-node:hover {
    animation-play-state: paused;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.65),
        0 0 50px color-mix(in srgb, var(--ac, var(--gold)) 25%, transparent);
}
.age-node:hover::after {
    opacity: 0.08;
}

/* era accent colours via data-era */
.age-node[data-era="primitive"] {
    --ac: #b8914a;
}
.age-node[data-era="ancient"] {
    --ac: #d4a843;
}
.age-node[data-era="classical"] {
    --ac: #e8c060;
}
.age-node[data-era="medieval"] {
    --ac: #c07030;
}
.age-node[data-era="renaissance"] {
    --ac: #e0b050;
}
.age-node[data-era="industrial"] {
    --ac: #8090a8;
}
.age-node[data-era="electric"] {
    --ac: #60a0d8;
}
.age-node[data-era="atomic"] {
    --ac: #50c888;
}
.age-node[data-era="digital"] {
    --ac: #a060f0;
}
.age-node[data-era="cyber"] {
    --ac: #00d4d8;
}
.age-node[data-era="cosmic"] {
    --ac: #c060e8;
}

.age-dot {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(28, 33, 40, 0.75);
    border: 2px solid rgba(48, 54, 61, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4rem;
    transition:
        border-color 0.25s,
        box-shadow 0.25s,
        transform 0.3s;
    flex-shrink: 0;
}
.age-node:hover .age-dot {
    border-color: var(--ac, var(--gold));
    box-shadow: 0 0 24px
        color-mix(in srgb, var(--ac, var(--gold)) 40%, transparent);
    transform: scale(1.1);
}
.age-order {
    font-family: var(--font-px);
    font-size: 0.42rem;
    color: var(--ac, var(--gold));
    letter-spacing: 0.15em;
    opacity: 0.8;
}
.age-name {
    font-family: var(--font-px);
    font-size: 0.65rem;
    color: var(--text);
    text-align: center;
    line-height: 1.9;
    white-space: pre-line;
}
.age-desc {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.65;
    max-width: 26ch;
    margin-top: auto;
}
.age-node:hover .age-name {
    color: #fff;
}
.age-node:hover .age-desc {
    color: var(--text);
}

/* ── How to Play ────────────────────────────────────────────────────────── */
.howto {
    position: relative;
    z-index: 2;
    padding: 100px 24px;
    background: transparent;
    /*border-top: 1px solid rgba(48, 54, 61, 0.4);*/
    /*border-bottom: 1px solid rgba(48, 54, 61, 0.4);*/
}
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px 0;
    /*border-bottom: 1px solid var(--border);*/
    opacity: 0;
    transform: translateX(-20px);
}
.step.visible {
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}
/*.step:last-child {
    /*border-bottom: none;*/
/*}*/
.step-num {
    font-family: var(--font-px);
    font-size: 1.8rem;
    color: var(--border);
    min-width: 70px;
    line-height: 1;
    padding-top: 4px;
    transition: color 0.25s;
}
.step:hover .step-num {
    color: var(--gold-dim);
}
.step-body h3 {
    font-family: var(--font-px);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.step-body p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 14px;
    line-height: 1.7;
}
.codeblock {
    background: rgba(13, 17, 23, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 12px 48px 12px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    line-height: 1.6;
    position: relative;
    overflow-x: auto;
}
.copy-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    font-family: var(--font-px);
    font-size: 0.4rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--muted);
    padding: 5px 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: border-color 0.15s, color 0.15s;
    line-height: 1;
    white-space: nowrap;
}
.copy-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.copy-btn.copied {
    border-color: var(--green);
    color: var(--green);
}
.codeblock code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}
.code-event {
    color: var(--gold);
}
.code-success {
    color: var(--green);
}

/* ── Commands ───────────────────────────────────────────────────────────── */
.commands-section {
    position: relative;
    z-index: 2;
    padding: 100px 24px;
}
.cmd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 28px;
}
.cmd-group-title {
    font-family: var(--font-px);
    font-size: 0.55rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.cmd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}
.cmd-row:last-child {
    border-bottom: none;
}
.cmd-row code {
    flex-shrink: 0;
    font-size: 0.75rem;
    white-space: nowrap;
}
.cmd-row span {
    color: var(--muted);
    font-size: 0.8rem;
    text-align: right;
}
.cmd-more {
    color: var(--muted);
    font-size: 0.9rem;
}
.cmd-more a {
    color: var(--gold);
}

/* ── Download ───────────────────────────────────────────────────────────── */
.download {
    position: relative;
    z-index: 2;
    padding: 100px 24px;
    background: transparent;
    /*border-top: 1px solid rgba(48, 54, 61, 0.4);*/
}
.ptabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.ptab {
    font-family: var(--font-px);
    font-size: 0.52rem;
    padding: 9px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}
.ptab:hover {
    border-color: var(--text);
    color: var(--text);
}
.ptab.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(240, 165, 0, 0.08);
}
.pane {
    display: none;
}
.pane.active {
    display: block;
}
.install-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 18px;
}
.install-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.istep-label {
    font-family: var(--font-px);
    font-size: 0.52rem;
    color: var(--muted);
    letter-spacing: 1px;
}
.install-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--muted);
}
.install-note code {
    color: var(--cyan);
}
.dl-direct {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.dl-btn-alt {
    font-family: var(--font-px);
    font-size: 0.52rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.dl-btn-alt:hover {
    color: var(--gold);
}
.post-download {
    background: rgba(240, 165, 0, 0.06);
    border: 1px solid rgba(240, 165, 0, 0.2);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.post-download-label {
    font-family: var(--font-px);
    font-size: 0.48rem;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.nerdy-path {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.nerdy-path summary {
    font-family: var(--font-px);
    font-size: 1rem;
    color: var(--muted);
    letter-spacing: 1px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: color 0.2s;
    user-select: none;
}
.nerdy-path summary:hover {
    color: var(--text);
}
.nerdy-path[open] summary {
    color: var(--text);
    margin-bottom: 20px;
}
.dl-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

/* ── Community + Support ─────────────────────────────────────────────────── */
.community-support {
    position: relative;
    z-index: 2;
    padding: 80px 24px;
    background: transparent;
    /*border-top: 1px solid rgba(48, 54, 61, 0.4);*/
    /*border-bottom: 1px solid rgba(48, 54, 61, 0.4);*/
}
.cs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.cs-card {
    background: rgba(28, 33, 40, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(48, 54, 61, 0.7);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition:
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
}
.cs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.cs-discord:hover {
    border-color: #5865f2;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.2);
}
.cs-coffee:hover {
    border-color: #ffdd00;
    box-shadow: 0 8px 32px rgba(255, 221, 0, 0.15);
}
.cs-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 4px;
}
.cs-discord .cs-icon {
    color: #5865f2;
}
.cs-title {
    font-family: var(--font-px);
    font-size: 0.65rem;
    color: var(--bright);
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.cs-body p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.cs-btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #5865f2;
    color: #fff;
    border-radius: var(--radius);
    font-family: var(--font-px);
    font-size: 0.55rem;
    letter-spacing: 1px;
    transition:
        background 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
}
.cs-btn-discord:hover {
    background: #4752c4;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.45);
}
.bmc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    background: #ffdd00;
    color: #000;
    border-radius: var(--radius);
    font-family: var(--font-px);
    font-size: 0.55rem;
    letter-spacing: 1px;
    font-weight: 700;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
    box-shadow: 0 4px 16px rgba(255, 221, 0, 0.25);
}
.bmc-btn:hover {
    background: #ffe633;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 221, 0, 0.4);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 2;
    padding: 56px 24px 40px;
    background: rgba(7, 11, 16, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(48, 54, 61, 0.5);
    text-align: center;
}
.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}
.footer-glyph {
    font-size: 1.8rem;
}
.footer-logo {
    height: 28px;
    width: auto;
    display: block;
    opacity: 0.85;
}
.footer-name {
    font-family: var(--font-px);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 2px;
}
.footer-tag {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.footer-links a {
    color: var(--muted);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-copy {
    color: var(--border);
    font-size: 0.78rem;
}

/* ── Pixel art decorative border (removed) ──────────────────────────────── */

/* ── Hamburger + Mobile Menu ─────────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.nav-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 16, 0.97);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.nav-mobile-menu.open {
    display: flex;
}
.nav-mobile-link {
    font-family: var(--font-px);
    font-size: 0.75rem;
    color: var(--text);
    letter-spacing: 2px;
    transition: color 0.2s;
    padding: 8px 0;
    text-align: center;
}
.nav-mobile-link:hover {
    color: var(--gold);
}
.nav-mobile-discord {
    background: #5865f2;
    color: #fff !important;
    padding: 10px 28px;
    border-radius: var(--radius);
    margin-top: 8px;
}
.nav-mobile-discord:hover {
    color: #fff !important;
    opacity: 0.85;
}
.nav-mobile-gh {
    background: var(--gold);
    color: #000 !important;
    padding: 10px 28px;
    border-radius: var(--radius);
}
.nav-mobile-gh:hover {
    color: #000 !important;
    opacity: 0.85;
}
.nav-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
}
.nav-mobile-close:hover {
    color: var(--text);
    border-color: var(--text);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero-layout {
        flex-direction: column;
        gap: 40px;
    }
    .hero-terminal {
        width: 100%;
    }
    .hero-copy {
        max-width: 100%;
    }
}
@media (max-width: 760px) {
    .cs-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 680px) {
    /* Nav — switch to hamburger */
    .nav-hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 72px 16px 48px;
    }
    .hero-layout {
        gap: 28px;
    }
    .hero-logo {
        width: 72px;
        margin-bottom: 14px;
    }
    .hero-badge {
        font-size: 0.38rem;
        letter-spacing: 1.5px;
    }
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    .hero-sub {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }
    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    .hstat-n {
        font-size: 1rem;
    }

    /* Terminal — shrink, prevent overflow */
    .hero-terminal {
        overflow: hidden;
        border-radius: var(--radius-lg);
    }
    .term-screen {
        min-height: 200px;
        overflow: hidden;
    }
    .term-pre {
        font-size: 0.6rem;
    }

    /* Sections — reduce padding */
    .features {
        padding: 64px 16px;
    }
    .howto {
        padding: 64px 16px;
    }
    .commands-section {
        padding: 64px 16px;
    }
    .download {
        padding: 64px 16px;
    }
    .community-support {
        padding: 56px 16px;
    }
    .ages-section {
        padding: 64px 0;
    }
    .ss-section {
        padding: 56px 0;
    }
    .section-wrap {
        padding: 0 16px;
    }
    .ages-section .section-wrap {
        padding-bottom: 28px;
    }
    .section-sub {
        margin-bottom: 32px;
        font-size: 0.9rem;
    }

    /* Ages / Screenshots carousel — hide arrows, use native touch scroll */
    .ages-arrow {
        display: none;
    }
    .ages-carousel,
    .ss-carousel {
        padding: 0 16px;
    }

    /* Age cards — comfortable touch targets */
    .age-node {
        width: min(80vw, 300px);
        min-width: 220px;
        padding: 28px 20px 24px;
    }

    /* Steps */
    .step {
        flex-direction: column;
        gap: 14px;
        padding: 24px 0;
    }
    .step-num {
        font-size: 1.2rem;
        min-width: auto;
    }

    /* Grids */
    .cmd-grid {
        grid-template-columns: 1fr;
    }
    .feat-grid {
        grid-template-columns: 1fr;
    }

    /* Feature cards */
    .feat-card {
        padding: 22px 20px;
    }

    /* Community cards — stack icon and body */
    .cs-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    /* Download */
    .dl-cta {
        flex-direction: column;
    }
    .dl-direct {
        flex-direction: column;
        gap: 12px;
    }
    .dl-direct .btn {
        width: 100%;
        justify-content: center;
    }

    /* Platform tabs */
    .ptabs {
        gap: 6px;
    }
    .ptab {
        font-size: 0.45rem;
        padding: 8px 10px;
    }
}

/* Extra-small phones */
@media (max-width: 480px) {
    /* Hero title */
    .hero-title {
        font-size: 1.6rem;
    }

    /* Hide terminal entirely — too small to render meaningfully */
    .hero-terminal {
        display: none;
    }

    /* Tighter hero stats */
    .hero-stats {
        gap: 12px;
    }
    .hstat-n {
        font-size: 0.9rem;
    }
    .hstat-l {
        font-size: 0.65rem;
    }

    /* Section titles */
    .section-title {
        font-size: 0.8rem;
    }

    /* Age cards even narrower */
    .age-node {
        width: min(84vw, 260px);
        min-width: 200px;
    }
    .age-dot {
        width: 80px;
        height: 80px;
        font-size: 2.8rem;
    }

    /* Nav logo — hide text, keep image */
    .logo-word {
        display: none;
    }

    /* Buttons */
    .btn {
        font-size: 0.52rem;
        padding: 10px 18px;
    }
    .btn-lg {
        font-size: 0.55rem;
        padding: 12px 20px;
    }
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* ── Screenshots scroller ──────────────────────────────────────────────── */
.ss-section {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}
.ss-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.ss-card {
    flex-shrink: 0;
    width: min(44vw, 480px);
    min-width: 220px;
    border-radius: 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    overflow: hidden;
    scroll-snap-align: start;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    cursor: default;
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}
.ss-card:hover {
    border-color: rgba(240, 165, 0, 0.5);
    box-shadow:
        0 0 40px rgba(240, 165, 0, 0.15),
        0 12px 40px rgba(0,0,0,0.6);
    transform: translateY(-3px);
}
.ss-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ss-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
    transition: transform 0.4s ease;
}
.ss-card:hover .ss-frame img {
    transform: scale(1.03);
}
.ss-caption {
    padding: 0.65rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--border);
    transition: color 0.2s;
}
.ss-card:hover .ss-caption {
    color: var(--text);
}
.ss-empty {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    padding: 2rem 0;
}

/* ── Screenshot lightbox ────────────────────────────────────────────────── */
.ss-card {
    cursor: zoom-in;
}
.ss-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.ss-lightbox.open {
    opacity: 1;
    pointer-events: all;
}
.ss-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 80px rgba(0,0,0,0.9);
    display: block;
}
.ss-lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}
.ss-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
}
.ss-lightbox-close:hover {
    color: var(--text);
    border-color: var(--text);
}
