:root {
    --header: #1e2734;
    --header-sub: #1a222d;
    --footer: #242e3d;
    --bg: #141a22;
    --bg-panel: #222529;
    --bg-panel-alt: #2b384a;
    --border: #36373b;
    --text: #d1d2d3;
    --text-strong: #f2f3f4;
    --text-dim: #a2a8b0;
    --link: #1d9bd1;
    --primary: #01579b;
    --primary-hover: #0167b8;
    --on-primary: #e7ecf5;
    --radius: 4px;

    --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-head: var(--font);

    --green: #4cc38a;  --green-b: #2e9e68;
    --cyan: #1d9bd1;   --cyan-b: #01579b;
    --gold: #e6b83f;   --gold-b: #c98f1e;
    --red: #e5574f;    --red-b: #b8322b;
    --purple: #a184e0; --purple-b: #673ab7;

    --accent-a: var(--link);
    --accent-b: var(--primary);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
    margin: 0;
    background:
        linear-gradient(rgba(20,26,34,.62), rgba(20,26,34,.94) 520px),
        url("https://csomod.com/images/humans2.jpg") center / cover no-repeat fixed,
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    top: 0 !important;
}

h1, h2, h3 { font-family: var(--font-head); margin: 0; color: var(--text-strong); }
a { color: var(--link); }
b, strong { color: var(--text-strong); }
code {
    background: var(--header);
    border: 1px solid var(--border);
    color: var(--link);
    padding: 1px 7px;
    border-radius: 3px;
    font-weight: 700;
    font-size: .95em;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.topbar { background: var(--header); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 58px; }
.logo { flex: none; display: flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
.main-menu { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: flex-end; }
.main-menu::-webkit-scrollbar { display: none; }
.main-menu a {
    text-decoration: none;
    font-size: 14.5px;
    color: #e0e3e6;
    padding: 8px 12px;
    border-radius: 3px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .15s, color .15s;
}
.main-menu a i { font-size: 13px; opacity: .8; }
.main-menu a:hover { background: var(--bg-panel-alt); color: #fff; }
.main-menu a[aria-current="page"] { background: var(--bg-panel-alt); color: #fff; box-shadow: inset 0 -2px 0 var(--link); }

.site-nav { background: var(--header-sub); border-bottom: 1px solid #10161e; }
.site-nav .wrap { display: flex; align-items: center; gap: 14px; height: 46px; }
.crumb {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #b3b6b9;
    white-space: nowrap;
}
.crumb i { color: var(--accent-a); }
.crumb b { color: var(--text-strong); font-weight: 600; }
.nav-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
    text-decoration: none;
    font-size: 13.5px;
    color: #b3b6b9;
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
    transition: color .15s, background .15s;
}
.nav-links a:hover { color: #fff; background: var(--bg-panel-alt); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: var(--radius);
    border: 0;
    transition: background .15s, color .15s;
    white-space: nowrap;
    cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: var(--bg-panel-alt); color: #e0e3e6; }
.btn-ghost:hover { background: #34445a; color: #fff; }
.site-nav .btn { padding: 6px 12px; font-size: 13.5px; flex: none; }

.hero { text-align: center; padding: 56px 0 20px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: color-mix(in srgb, var(--accent-a) 30%, rgba(20,26,34,.7));
    border: 1px solid color-mix(in srgb, var(--accent-a) 55%, transparent);
    padding: 5px 12px;
    border-radius: 3px;
    margin-bottom: 16px;
}
.hero h1 {
    font-size: clamp(30px, 5.5vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.hero p.lead { color: #c9ccd0; font-size: 16.5px; max-width: 600px; margin: 12px auto 26px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

section { padding-top: 48px; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: 21px; font-weight: 600; color: var(--link); display: flex; align-items: center; gap: 10px; }
.section-head p { color: var(--text-dim); margin: 4px 0 0; font-size: 14.5px; max-width: 760px; }

.c-green  { color: var(--green); }
.c-cyan   { color: var(--cyan); }
.c-gold   { color: var(--gold); }
.c-red    { color: var(--red); }
.c-purple { color: var(--purple); }
.c-dim    { color: var(--text-dim); }

.notices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--radius);
    border: 1px solid;
}
.notice.green  { color: #cfe8de; background: #005e46; border-color: #007154; }
.notice.cyan   { color: #cfe2e6; background: #0c515c; border-color: #0e616e; }
.notice.yellow { color: #f3e7b8; background: #5c4a0b; border-color: #76600f; }
.notice.red    { color: #f6cfd1; background: #6b1f24; border-color: #87282e; }
.notice i { opacity: .9; }

.t-green, .card.t-green   { --tier-a: var(--green);  --tier-b: var(--green-b); }
.t-cyan, .card.t-cyan     { --tier-a: var(--cyan);   --tier-b: var(--cyan-b); }
.t-gold, .card.t-gold     { --tier-a: var(--gold);   --tier-b: var(--gold-b); }
.t-red, .card.t-red       { --tier-a: var(--red);    --tier-b: var(--red-b); }
.t-purple, .card.t-purple { --tier-a: var(--purple); --tier-b: var(--purple-b); }

.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
    --tier-a: var(--cyan); --tier-b: var(--cyan-b);
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-top: 3px solid var(--tier-a);
    border-radius: var(--radius);
    padding: 20px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-strong);
}
.card-title i { color: var(--tier-a); }
.card p { margin: 0; font-size: 14.5px; color: var(--text-dim); }
.card p b, .card p strong { color: var(--text-strong); }
.badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: color-mix(in srgb, var(--tier-a) 22%, var(--bg-panel));
    border: 1px solid color-mix(in srgb, var(--tier-a) 45%, transparent);
    color: var(--tier-a);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    white-space: nowrap;
}
.icon-box {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 19px;
    color: var(--tier-a);
    background: color-mix(in srgb, var(--tier-a) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--tier-a) 35%, transparent);
    margin-bottom: 14px;
}

.cta-box {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-a);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cta-box h3 { font-size: 18px; font-weight: 600; color: var(--text-strong); display: flex; align-items: center; gap: 10px; }
.cta-box h3 i { color: var(--accent-a); }
.cta-box p { margin: 4px 0 0; color: var(--text-dim); font-size: 14.5px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.site-footer { background: var(--footer); margin-top: 64px; padding: 30px 0 34px; text-align: center; border-top: 1px solid #10161e; }
.social-icons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.social-icons a {
    text-decoration: none;
    font-size: 20px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-panel-alt);
    transition: transform .2s, background .2s;
}
.social-icons a:hover { transform: translateY(-3px); background: #34445a; }
.social-icons .fa-discord    { color: #8c95ff; }
.social-icons .fa-instagram  { color: #f06b86; }
.social-icons .fa-tiktok,
.social-icons .fa-steam      { color: #fff; }
.social-icons .fa-facebook-f { color: #5aa2ff; }
.social-icons .fa-comments   { color: var(--link); }
.copyright { margin: 16px 0 0; font-size: 13px; color: #b6b8b9; }
.copyright a { text-decoration: none; }

.skip-link {
    position: absolute;
    left: -999px;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    padding: 10px 16px;
    border-radius: var(--radius);
    z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }
a:focus-visible { outline: 2px dashed var(--link); outline-offset: 3px; }

@media (max-width: 760px) {
    .topbar .wrap { gap: 12px; }
    .main-menu { justify-content: flex-start; }
    .main-menu a span { display: none; }
    .main-menu a i { font-size: 15px; opacity: 1; }
    .crumb span { display: none; }
}
@media (max-width: 640px) {
    .site-nav .btn span { display: none; }
    .hero { padding-top: 40px; }
    .card, .cta-box { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

:root {
    --text-faint: #7d858f;
    --blue: #5aa9e6;
    --silver: #c9d1db;
    --bronze: #d99a62;
}
::selection { background: rgba(29,155,209,.35); color: #fff; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.nav-links a.active { color: #fff; background: var(--bg-panel-alt); box-shadow: inset 0 -2px 0 var(--link); }
.hero h1 { word-break: break-word; }
.hero h1 a { text-decoration: none; color: inherit; }

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.panel + .panel { margin-top: 14px; }

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--link);
    margin: 36px 0 14px;
}
.section-title i { color: var(--accent-a); font-size: 17px; }

.notice-box { text-align: center; padding: 28px 18px; color: var(--text-dim); font-size: 14.5px; }
.notice-box i { color: var(--gold); margin-right: 8px; }

input[type=text], input[type=password], select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--footer);
    color: #fff;
    margin: 0;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s, background .15s;
}
input[type=text]:focus, input[type=password]:focus, select:focus {
    outline: none;
    border-color: var(--link);
    background: #27334a;
}
input::placeholder { color: var(--text-faint); }
button:focus-visible { outline: 2px dashed var(--link); outline-offset: 3px; }
