/* ════════════════════════════════════════════════════════
   WindowsGSH – site.css
   ════════════════════════════════════════════════════════ */

:root {
    /* Core palette */
    --bg:         #06101c;
    --bg-1:       #09141f;
    --bg-2:       #0d1a28;
    --bg-card:    #101f30;
    --bg-raised:  #142538;
    --bg-tinted:  #f3f7fb;
    --bg-paper:   #ffffff;

    /* Brand */
    --green:      #7ed321;
    --green-mid:  rgba(126, 211, 33, 0.18);
    --green-dim:  rgba(126, 211, 33, 0.10);
    --green-glow: rgba(126, 211, 33, 0.30);
    --blue:       #25a6df;
    --blue-dim:   rgba(37, 166, 223, 0.12);
    --yellow:     #ffd166;
    --red:        #ff6b6b;

    /* Text */
    --text:       #edf2f7;
    --text-2:     #b8c9da;
    --muted:      #677d93;
    --ink:        #0e1c2a;
    --ink-2:      #3a5068;
    --ink-muted:  #5c7489;

    /* Borders */
    --line:       rgba(255, 255, 255, 0.08);
    --line-2:     rgba(255, 255, 255, 0.14);
    --line-ink:   rgba(14, 28, 42, 0.12);

    /* Shadows */
    --shadow-sm:  0 2px 12px rgba(0, 0, 0, 0.25);
    --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg:  0 24px 64px rgba(0, 0, 0, 0.50);

    /* Layout */
    --max:        1200px;
    --radius:     10px;
    --radius-lg:  16px;

    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
}

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

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
    margin: 0;
    background: var(--bg-paper);
    color: var(--ink);
    line-height: 1.65;
}

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

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

h1, h2, h3, h4, p, dl, ul, ol { margin-top: 0; }

button { cursor: pointer; font-family: inherit; }

/* ─── Accessibility ─────────────────────────────────────── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link:focus {
    z-index: 200; width: auto; height: auto; margin: 1rem;
    padding: .75rem 1.25rem; clip: auto;
    background: var(--text); color: var(--bg);
    border-radius: var(--radius); outline: none;
    font-weight: 700;
}

/* ─── Shells ─────────────────────────────────────────────── */
.nav-shell,
.section-shell,
.hero-shell,
.footer-shell {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

/* ════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 16, 28, 0.82);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: border-color 200ms ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line-2);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -.02em;
    flex-shrink: 0;
}

.brand img {
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--line-2);
}

.site-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.site-menu a {
    color: var(--text-2);
    font-size: .9rem;
    font-weight: 600;
    padding: .55rem .8rem;
    border-radius: 8px;
    transition: color 150ms ease, background 150ms ease;
    white-space: nowrap;
}

.site-menu a:hover,
.site-menu a:focus-visible {
    color: var(--text);
    background: rgba(255,255,255,.07);
    outline: none;
}

.nav-github {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-left: .5rem;
    padding: .55rem 1rem !important;
    border: 1px solid var(--line-2);
    border-radius: var(--radius) !important;
    background: rgba(255,255,255,.06) !important;
    color: var(--text) !important;
    font-size: .875rem !important;
    font-weight: 700 !important;
}

.nav-github:hover,
.nav-github:focus-visible {
    border-color: var(--green) !important;
    background: var(--green-dim) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: rgba(255,255,255,.06);
    color: var(--text);
}

.nav-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
    transition: transform 250ms ease, opacity 250ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    padding: .7rem 1.35rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease, opacity 150ms ease;
    text-decoration: none;
}

.btn:hover:not(:disabled),
.btn:focus-visible:not(:disabled) {
    transform: translateY(-2px);
    outline: none;
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--green);
    color: #0d2200;
    box-shadow: 0 4px 16px var(--green-glow);
}

.btn-primary:hover:not(:disabled) {
    background: #8de829;
    box-shadow: 0 8px 28px var(--green-glow);
}

.btn-ghost {
    border-color: var(--line-2);
    background: rgba(255,255,255,.06);
    color: var(--text);
}

.btn-ghost:hover:not(:disabled) {
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.1);
}

.btn-sm {
    min-height: 36px;
    padding: .5rem 1rem;
    font-size: .875rem;
}

.btn-lg {
    min-height: 54px;
    padding: .9rem 2rem;
    font-size: 1.05rem;
    width: 100%;
    justify-content: center;
}

/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    background: var(--bg);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-glow {
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 70%;
    background:
        radial-gradient(ellipse 60% 50% at 30% 60%, rgba(126,211,33,.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 70% 40%, rgba(37,166,223,.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
    padding: clamp(4rem, 8vw, 7rem) 0;
    min-height: min(700px, calc(100svh - 72px));
}

.hero-content { max-width: 580px; }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(126,211,33,.3);
    border-radius: 99px;
    background: rgba(126,211,33,.08);
    color: var(--green);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
    50%       { opacity: .6; box-shadow: 0 0 4px var(--green); }
}

/* Headings */
h1 {
    font-size: clamp(3rem, 5.5vw, 5.2rem);
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.04em;
    color: var(--text);
    margin-bottom: 1rem;
}

h1 .accent { color: var(--green); }

h2 {
    font-size: clamp(1.9rem, 3.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1.3;
}

h4 {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .75rem;
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: .85rem;
    letter-spacing: -.02em;
}

.hero-desc {
    color: var(--text-2);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
}

.hero-pills span {
    padding: .35rem .75rem;
    border: 1px solid var(--line-2);
    border-radius: 99px;
    background: rgba(255,255,255,.04);
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
}

/* App frame mockup */
.hero-media { align-self: center; }

.app-frame {
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    background: #070e18;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04),
        var(--shadow-lg),
        0 0 80px rgba(126,211,33,.08);
}

.app-titlebar {
    display: flex;
    align-items: center;
    gap: .75rem;
    height: 40px;
    padding: 0 1rem;
    background: #0a1520;
    border-bottom: 1px solid var(--line);
}

.titlebar-dots {
    display: flex;
    gap: .4rem;
}

.titlebar-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.titlebar-dots span:nth-child(1) { background: #ff5f57; }
.titlebar-dots span:nth-child(2) { background: #febc2e; }
.titlebar-dots span:nth-child(3) { background: #28c840; }

.titlebar-name {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    margin-left: .5rem;
}

.app-frame img { display: block; width: 100%; }

/* ════════════════════════════════════════════════════════
   SECTION BASE
   ════════════════════════════════════════════════════════ */

.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--bg-paper);
    color: var(--ink);
}

.section-dark {
    background: var(--bg-1);
    color: var(--text);
    border-block: 1px solid var(--line);
}

.section-tinted {
    background: var(--bg-tinted);
    color: var(--ink);
}

.section-label { max-width: 720px; margin-bottom: 3rem; }

.section-label-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.section .section-desc   { color: var(--ink-muted); }
.section-dark .section-desc { color: var(--text-2); }
.section-tinted .section-desc { color: var(--ink-2); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.section-dark h2 { color: var(--text); }
.section .h2-plain { color: var(--ink); }

/* ════════════════════════════════════════════════════════
   SUPPORTED SERVERS
   ════════════════════════════════════════════════════════ */

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}

.game-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.1rem .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    text-align: center;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
    cursor: default;
}

.game-tile:hover {
    border-color: hsla(var(--hue, 120), 70%, 55%, 0.5);
    background: var(--bg-raised);
    transform: translateY(-2px);
}

.game-abbr {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: hsla(var(--hue, 120), 60%, 35%, 0.25);
    border: 1px solid hsla(var(--hue, 120), 60%, 55%, 0.25);
    color: hsla(var(--hue, 120), 80%, 70%, 1);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.game-name {
    color: var(--text-2);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
}

.game-status {
    padding: .18rem .5rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.game-tile-more {
    border-style: dashed;
    border-color: var(--line-2);
}

.game-tile-more .game-abbr {
    background: rgba(255,255,255,.04);
    border-color: var(--line-2);
    color: var(--muted);
    font-size: 1.2rem;
}

.game-tile-more .game-name { color: var(--muted); }

/* ════════════════════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════════════════════ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid var(--line-ink);
    border-radius: var(--radius-lg);
    background: var(--bg-paper);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.feature-card:hover {
    border-color: rgba(126,211,33,.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-card h3 { color: var(--ink); }

.feature-card p {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: .95rem;
    line-height: 1.65;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1.1rem;
    border-radius: 12px;
    background: var(--green-dim);
    border: 1px solid rgba(126,211,33,.2);
}

.feature-icon::before {
    content: '';
    width: 20px;
    height: 20px;
}

/* Icon shapes */
.feature-icon-dashboard::before {
    border: 2px solid var(--green);
    border-radius: 4px;
    box-shadow: inset 0 0 0 5px rgba(126,211,33,.2), 6px 6px 0 -4px var(--green);
}

.feature-icon-steamcmd::before {
    border-radius: 50%;
    border: 2px solid var(--green);
    box-shadow: inset 5px 0 0 rgba(126,211,33,.3);
}

.feature-icon-install::before {
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(-45deg);
    box-shadow: 7px -7px 0 -4px var(--green);
}

.feature-icon-console::before {
    width: 22px;
    height: 4px;
    border-radius: 99px;
    background: var(--green);
    box-shadow: 0 6px 0 var(--green), 0 12px 0 rgba(126,211,33,.4);
}

.feature-icon-module::before {
    border: 2px solid var(--green);
    border-radius: 3px;
    transform: rotate(45deg);
    box-shadow: 0 0 0 4px rgba(126,211,33,.12);
}

.feature-icon-diagnostics::before {
    width: 22px;
    height: 2px;
    background: transparent;
    border-bottom: 2px solid var(--green);
    box-shadow:
        0 -8px 0 -3px var(--green),
        0 -4px 0 -3px rgba(126,211,33,.5),
        6px -2px 0 -3px var(--green);
}

.feature-icon-health::before {
    width: 24px;
    height: 14px;
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: skewX(-18deg);
    box-shadow: 5px -4px 0 -3px var(--green);
}

.feature-icon-network::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow:
        13px 0 0 rgba(126,211,33,.75),
        6px 11px 0 rgba(126,211,33,.45);
}

.feature-icon-discord::before {
    width: 22px;
    height: 16px;
    border: 2px solid var(--green);
    border-radius: 7px;
    box-shadow: inset 6px 0 0 rgba(126,211,33,.22);
}

.feature-icon-shield::before {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--green);
}

/* ════════════════════════════════════════════════════════
   SCREENSHOTS
   ════════════════════════════════════════════════════════ */

.screenshots-section { overflow: hidden; }

.screenshot-tabs { max-width: 1000px; margin: 0 auto; }

.tab-bar {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding: .4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-2);
    width: fit-content;
}

.tab-btn {
    padding: .55rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 7px;
    background: none;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tab-btn:hover,
.tab-btn.is-active {
    color: var(--text);
    background: rgba(255,255,255,.08);
    border-color: var(--line-2);
}

.tab-btn.is-active {
    background: var(--bg-raised);
    border-color: var(--line-2);
}

.tab-panels { position: relative; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.screenshot-frame {
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    background: #050c16;
    box-shadow: var(--shadow-lg);
}

.screenshot-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    height: 42px;
    padding: 0 1rem;
    background: #091320;
    border-bottom: 1px solid var(--line);
}

.screenshot-dots {
    display: flex;
    gap: .4rem;
}

.screenshot-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.screenshot-dots span:nth-child(1) { background: rgba(255,95,87,.7); }
.screenshot-dots span:nth-child(2) { background: rgba(254,188,46,.7); }
.screenshot-dots span:nth-child(3) { background: rgba(40,200,64,.7); }

.screenshot-url {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
}

.screenshot-frame img { width: 100%; display: block; }

.screenshot-placeholder-frame {
    min-height: 470px;
}

.screenshot-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: .75rem;
    min-height: 428px;
    padding: 2rem;
    background:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
        radial-gradient(circle at 50% 38%, rgba(126,211,33,.10), transparent 38%),
        #07111d;
    background-size: 34px 34px, 34px 34px, auto, auto;
    color: var(--text);
    text-align: center;
}

.screenshot-placeholder strong {
    font-size: clamp(1.4rem, 3vw, 2.3rem);
    line-height: 1.1;
}

.screenshot-placeholder span {
    max-width: 520px;
    color: var(--text-2);
}

/* ════════════════════════════════════════════════════════
   MODULES
   ════════════════════════════════════════════════════════ */

.modules-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.modules-copy h2 { color: var(--ink); }

.modules-copy > p {
    color: var(--ink-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.check-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .6rem;
    padding: 0;
    margin: 1.5rem 0 2rem;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--ink-2);
    font-size: .95rem;
    font-weight: 500;
}

.check-list li::before {
    content: '';
    position: absolute;
    top: .5rem;
    left: 0;
    width: .7rem;
    height: .4rem;
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(-45deg);
}

.modules-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Module card */
.module-card-showcase { position: relative; }

.module-card {
    border: 1px solid var(--line-ink);
    border-radius: var(--radius-lg);
    background: var(--bg-paper);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.module-card-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--line-ink);
    background: var(--bg-tinted);
}

.module-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--green-dim);
    border: 1px solid rgba(126,211,33,.25);
    color: var(--green);
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.module-card-name {
    display: block;
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
}

.module-card-game {
    display: block;
    font-size: .8rem;
    color: var(--ink-muted);
    font-weight: 500;
}

.module-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
    padding: .3rem .75rem;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 700;
}

.module-status-example {
    background: rgba(37,166,223,.10);
    border: 1px solid rgba(37,166,223,.28);
    color: #1b78a0;
}

.module-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
}

.module-meta > div {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--line-ink);
    border-right: 1px solid var(--line-ink);
}

.module-meta > div:nth-child(even) { border-right: none; }
.module-meta > div:nth-last-child(-n+2) { border-bottom: none; }

.module-meta dt {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin-bottom: .2rem;
}

.module-meta dd {
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.module-meta dd a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 150ms;
}

.module-meta dd a:hover { text-decoration-color: currentColor; }

.mono {
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: .82rem;
}

.module-card-actions {
    display: flex;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-tinted);
    border-top: 1px solid var(--line-ink);
}

.module-card-caption {
    text-align: center;
    color: var(--ink-muted);
    font-size: .82rem;
    margin: .85rem 0 0;
}

/* ════════════════════════════════════════════════════════
   DISCORD
   ════════════════════════════════════════════════════════ */

.discord-section { overflow: hidden; }

.discord-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
}

.discord-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.discord-card h3 {
    color: var(--text);
}

.discord-card p {
    margin-bottom: 0;
    color: var(--text-2);
    font-size: .95rem;
    line-height: 1.65;
}

.discord-note {
    max-width: 800px;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: .92rem;
}

/* ════════════════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════════════════ */

.step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.step-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem;
    border: 1px solid var(--line-ink);
    border-radius: var(--radius-lg);
    background: var(--bg-paper);
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--green);
    color: #0d2200;
    font-size: 1.1rem;
    font-weight: 900;
    flex-shrink: 0;
}

.step-card h3 { color: var(--ink); margin-bottom: .4rem; }

.step-card p {
    color: var(--ink-muted);
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ════════════════════════════════════════════════════════
   DOWNLOAD
   ════════════════════════════════════════════════════════ */

.download-section { overflow: hidden; }

.download-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: start;
}

.download-copy h2 { color: var(--text); }

.download-copy > p {
    color: var(--text-2);
    font-size: 1.05rem;
    line-height: 1.7;
}

.version-tag {
    color: var(--green);
    font-size: .65em;
    font-weight: 700;
    vertical-align: middle;
    padding: .2em .6em;
    border: 1px solid rgba(126,211,33,.3);
    border-radius: 6px;
    background: rgba(126,211,33,.1);
    letter-spacing: .02em;
    margin-left: .4rem;
}

.sysreq {
    margin-top: 1.75rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-2);
}

.sysreq h4 {
    color: var(--text-2);
    margin-bottom: .75rem;
}

.sysreq ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .4rem;
}

.sysreq li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: .875rem;
}

.sysreq li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--green);
}

.download-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .85rem;
    padding: 2rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    min-width: 260px;
}

.download-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    background: var(--green-dim);
    border: 1px solid rgba(126,211,33,.25);
    color: var(--green);
}

.download-label {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.download-version {
    display: block;
    color: var(--green);
    font-size: .85rem;
    font-weight: 700;
    font-family: "Cascadia Code", Consolas, monospace;
}

.download-platform {
    color: var(--muted);
    font-size: .8rem;
}

.download-note {
    color: var(--muted);
    font-size: .78rem;
}

/* ════════════════════════════════════════════════════════
   DOCS
   ════════════════════════════════════════════════════════ */

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
}

.doc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.35rem;
    border: 1px solid var(--line-ink);
    border-radius: var(--radius-lg);
    background: var(--bg-paper);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.doc-card:not(.doc-card-disabled):hover,
.doc-card:not(.doc-card-disabled):focus-visible {
    border-color: var(--green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.doc-card-disabled {
    cursor: default;
}

.doc-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: .5rem;
    border-radius: 10px;
    background: var(--green-dim);
    border: 1px solid rgba(126,211,33,.2);
}

.doc-icon::before {
    content: '';
    width: 18px;
    height: 18px;
}

.doc-icon-start::before {
    border-radius: 50%;
    border: 2px solid var(--green);
    box-shadow: inset 4px 0 0 var(--green);
}

.doc-icon-server::before {
    border: 2px solid var(--green);
    border-radius: 4px;
    box-shadow: 0 6px 0 -3px var(--green), 0 12px 0 -3px rgba(126,211,33,.4);
}

.doc-icon-module::before {
    border: 2px solid var(--green);
    border-radius: 2px;
    transform: rotate(45deg);
}

.doc-icon-debug::before {
    width: 20px;
    height: 2px;
    background: var(--green);
    box-shadow: 0 6px 0 var(--green), -5px 3px 0 rgba(126,211,33,.5);
}

.doc-icon-shield::before {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--green);
}

.doc-icon-api::before {
    width: 18px;
    height: 10px;
    border: 2px solid var(--green);
    border-radius: 3px;
    box-shadow: -3px 5px 0 rgba(126,211,33,.4), 3px 5px 0 rgba(126,211,33,.4);
}

.doc-card h3 {
    font-size: 1rem;
    margin-bottom: .25rem;
    color: var(--ink);
}

.doc-card p {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: .875rem;
    line-height: 1.55;
    flex: 1;
}

.doc-status {
    display: block;
    margin-top: .5rem;
    color: var(--green);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ════════════════════════════════════════════════════════
   COMMUNITY
   ════════════════════════════════════════════════════════ */

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
}

.community-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    color: var(--text);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.community-card:hover,
.community-card:focus-visible {
    transform: translateY(-3px);
    outline: none;
}

.community-github:hover,
.community-github:focus-visible {
    border-color: rgba(255,255,255,.3);
    box-shadow: var(--shadow-md);
}

.community-discord:hover,
.community-discord:focus-visible {
    border-color: rgba(88,101,242,.5);
    box-shadow: 0 8px 32px rgba(88,101,242,.15);
}

.community-contact:hover,
.community-contact:focus-visible {
    border-color: rgba(37,166,223,.5);
    box-shadow: 0 8px 32px rgba(37,166,223,.15);
}

.community-card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
    color: var(--text-2);
}

.community-github .community-card-icon { color: var(--text); }
.community-discord .community-card-icon { color: #7289da; }
.community-contact .community-card-icon { color: var(--blue); }

.community-card h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: .25rem;
}

.community-card p {
    color: var(--text-2);
    font-size: .92rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
}

.community-link-label {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
}

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    min-height: 80px;
    padding: 1rem 0;
}

.footer-shell .brand { font-size: .95rem; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.footer-nav a {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
    padding: .4rem .7rem;
    border-radius: 6px;
    transition: color 150ms ease;
}

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

.footer-copy {
    color: var(--muted);
    font-size: .82rem;
    margin: 0;
}

/* ════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ════════════════════════════════════════════════════════ */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 550ms cubic-bezier(.22,1,.36,1), transform 550ms cubic-bezier(.22,1,.36,1);
}

.js [data-reveal-delay="1"] { transition-delay: 120ms; }
.js [data-reveal-delay="2"] { transition-delay: 240ms; }

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE – 1024px
   ════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .feature-grid,
    .discord-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

    .hero-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 3.5rem 0;
    }

    .hero-content { max-width: 100%; }

    .hero-media { order: -1; }

    .download-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .download-box { align-self: start; }

    .modules-layout { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE – 768px
   ════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .site-menu {
        position: absolute;
        top: 72px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: .5rem;
        border: 1px solid var(--line-2);
        border-radius: var(--radius-lg);
        background: #0b1826;
        box-shadow: var(--shadow-lg);
    }

    .site-menu.is-open { display: flex; }

    .site-menu a { padding: .75rem 1rem; border-radius: 8px; }

    .nav-github { margin-left: 0; }

    .feature-grid { grid-template-columns: 1fr; }

    .step-list { grid-template-columns: 1fr; }

    .docs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

    .community-grid { grid-template-columns: 1fr; }

    .discord-grid { grid-template-columns: 1fr; }

    .game-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

    .download-layout { grid-template-columns: 1fr; }

    .download-box { width: 100%; }

    .module-meta { grid-template-columns: 1fr; }
    .module-meta > div { border-right: none; }
    .module-meta > div:last-child { border-bottom: none; }

    .footer-shell { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem 0; }
    .footer-nav { gap: 0; }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE – 480px
   ════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }

    .hero-actions .btn { width: 100%; }

    .docs-grid { grid-template-columns: 1fr; }

    .tab-bar { width: 100%; justify-content: stretch; }

    .tab-btn { flex: 1; }

    .hero-pills span { font-size: .75rem; }
}

/* Dynamic module catalogue */
.game-tile { text-decoration: none; }
.game-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.doc-card { display: block; color: inherit; text-decoration: none; }
.doc-card:hover, .doc-card:focus-visible { border-color: rgba(56, 189, 248, .48); transform: translateY(-3px); }
.screenshot-frame { margin: 0; }
.screenshot-frame img { aspect-ratio: 16 / 9; object-fit: contain; background: #090e17; }
.screenshot-zoom { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; color: inherit; text-align: inherit; }
.screenshot-zoom img { width: 100%; transition: transform .2s ease, filter .2s ease; }
.screenshot-zoom:hover img { filter: brightness(.82); transform: scale(1.005); }
.screenshot-zoom:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.screenshot-zoom-hint { position: absolute; right: 14px; bottom: 14px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(3, 10, 18, .84); color: var(--text); font-size: .72rem; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.screenshot-zoom:hover .screenshot-zoom-hint,
.screenshot-zoom:focus-visible .screenshot-zoom-hint { opacity: 1; transform: none; }
.module-section-intro { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.module-section-heading h2 { max-width: 620px; margin: .55rem 0 0; color: var(--ink); font-size: clamp(2.35rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.045em; }
.module-section-details > p { max-width: 680px; margin: 0; color: var(--ink-muted); font-size: 1.05rem; line-height: 1.75; }
.module-section-details .check-list { margin: 1.35rem 0 1.6rem; }
.module-section-details .check-list li { line-height: 1.55; }
.btn-outline-ink { border: 1px solid rgba(14, 28, 42, .3); background: transparent; color: var(--ink); }
.btn-outline-ink:hover, .btn-outline-ink:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--text); transform: translateY(-1px); }
.module-install-preview { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.module-install-preview .screenshot-zoom { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #0c111a; box-shadow: var(--shadow-lg); }
.module-install-preview figcaption { margin-top: 13px; color: var(--muted); font-size: .86rem; text-align: center; }
.download-version-tag { display: inline-flex; margin: -6px 0 18px; white-space: nowrap; }
.image-lightbox { width: min(96vw, 1800px); max-width: none; max-height: 96vh; padding: 48px 16px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: #060b12; color: var(--text); box-shadow: var(--shadow-lg); }
.image-lightbox::backdrop { background: rgba(0, 5, 12, .88); backdrop-filter: blur(5px); }
.image-lightbox img { width: auto; max-width: 100%; max-height: calc(96vh - 90px); margin: 0 auto; object-fit: contain; }
.image-lightbox p { margin: 10px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.image-lightbox .image-lightbox-error { margin: 30px auto; padding: 24px; color: #fca5a5; font-size: .95rem; }
.image-lightbox-close { position: absolute; top: 7px; right: 12px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--text); font-size: 2rem; line-height: 1; }
.image-lightbox-close:hover { color: var(--blue); }
.catalogue-page { background: var(--bg); color: var(--text); }
.catalogue-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 150px 0 96px; }
.catalogue-header { max-width: 780px; margin-bottom: 38px; }
.catalogue-header h1 { margin: 10px 0 16px; font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.05em; }
.catalogue-header > p:last-child { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.catalogue-controls { padding: 22px; margin-bottom: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-card); }
.catalogue-controls label { display: block; margin-bottom: 9px; color: var(--text); font-size: .84rem; font-weight: 700; }
.catalogue-control-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; }
.catalogue-control-row input, .catalogue-control-row select { min-height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; background: #0b1421; color: var(--text); font: inherit; }
.catalogue-control-row input:focus, .catalogue-control-row select:focus { border-color: var(--blue); outline: 2px solid rgba(56, 189, 248, .18); }
.catalogue-count { margin: 12px 0 0; color: var(--muted); font-size: .85rem; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalogue-card { display: flex; min-height: 290px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(155deg, rgba(20, 35, 55, .92), rgba(9, 17, 29, .96)); box-shadow: var(--shadow-md); }
.catalogue-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.catalogue-monogram { display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid rgba(56, 189, 248, .28); border-radius: 12px; background: rgba(56, 189, 248, .1); color: #7dd3fc; font-size: .82rem; font-weight: 900; }
.catalogue-kind { padding: 5px 9px; border-radius: 999px; font-size: .69rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.catalogue-kind.is-official { background: rgba(34, 197, 94, .12); color: #86efac; }
.catalogue-kind.is-community { background: rgba(245, 158, 11, .12); color: #fcd34d; }
.catalogue-card h2 { margin: 20px 0 8px; font-size: 1.18rem; overflow-wrap: anywhere; }
.catalogue-card > p { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.catalogue-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: .75rem; }
.catalogue-card .btn { align-self: flex-start; }
.catalogue-empty { padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); text-align: center; }
.catalogue-safety { margin-top: 42px; padding: 26px; border: 1px solid rgba(245, 158, 11, .24); border-radius: var(--radius-lg); background: rgba(245, 158, 11, .06); }
.catalogue-safety h2 { margin: 0 0 9px; font-size: 1.1rem; }
.catalogue-safety p { max-width: 850px; color: var(--muted); line-height: 1.65; }
.catalogue-safety a { color: #7dd3fc; font-weight: 700; text-decoration: none; }
@media (max-width: 900px) { .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .module-section-intro { grid-template-columns: 1fr; gap: 1.35rem; }
    .module-section-heading h2 { max-width: 760px; }
    .module-install-preview { margin-top: 2rem; }
}
@media (max-width: 620px) {
    .catalogue-shell { width: min(100% - 28px, 1180px); padding-top: 118px; }
    .catalogue-control-row, .catalogue-grid { grid-template-columns: 1fr; }
}
