:root {
    --bg: #050607;
    --bg-elevated: #121317;
    --accent: #b3161a;
    --accent-soft: rgba(179,22,26,0.35);
    --text: #f5f5f7;
    --muted: #9a9dac;
    --border-subtle: rgba(255,255,255,0.06);
}

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

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #15161d 0, #050607 55%);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
}

.news-comments
{
    font-size: 0.84rem;
    color: var(--muted);
}

/* Header / Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: radial-gradient(circle at top left, rgba(179,22,26,0.16), transparent 55%), linear-gradient(to bottom, rgba(5,6,7,0.96), rgba(5,6,7,0.9));
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.site-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #900;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255,0,0,0.35), transparent 60%);
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-logo span {
    transform: translateY(-1.5px);
}

.brand-text-main {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-text-sub {
    font-size: 0.7rem;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
}

.nav-link {
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

.nav-link:hover {
    border-color: rgba(255,255,255,0.16);
    color: var(--text);
    background: rgba(255,255,255,0.03);
}

.nav-cta {
    background: var(--accent);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.nav-cta:hover {
    background: #d61c22;
}

/* Hero */

.hero {
    max-width: 1100px;
    margin: 1.4rem auto 1.8rem;
    padding: 0 1.25rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: stretch;
}

.hero-copy h1 {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 2.1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
}

.hero-tagline {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
    text-decoration: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #d61c22;
}

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

.btn-ghost:hover {
    background: rgba(255,255,255,0.04);
}

/* Hero banner */

.hero-banner {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(145deg, rgba(179,22,26,0.45), transparent 55%),
        radial-gradient(circle at top left, rgba(230,230,230,0.08), transparent 55%),
        url("../assets/img/hero-placeholder.jpg") center/cover no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.hero-banner-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(0,0,0,0.5), transparent 60%);
    mix-blend-mode: multiply;
}

.hero-banner-text {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hero-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.2rem 0.6rem;
    background: rgba(0,0,0,0.55);
}

/* Sections */

.section {
    max-width: 1100px;
    margin: 0 auto 1.8rem;
    padding: 0 1.25rem;
}

.section-header h2 {
    font-family: "Orbitron", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 1.15rem;
    margin: 0 0 0.3rem;
}

.section-header p {
    margin: 0 0 0.9rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Cards */

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

.card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    padding: 0.9rem 0.9rem 1rem;
    font-size: 0.9rem;
}

.card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card ul {
    margin: 0.2rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

/* Panel */

.panel {
    background: rgba(10,10,14,0.9);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    padding: 0.9rem 0.9rem 1rem;
    font-size: 0.88rem;
}

.panel-header {
    margin-bottom: 0.6rem;
}

.panel-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.panel-sub {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Server banners */

.server-banners {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-banner {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.5rem 0.6rem 0.6rem;
}

.server-banner-label {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    color: var(--muted);
}

.server-banner img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* News */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.news-item {
    padding: 0.6rem 0.1rem 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
}

.news-item-title {
    font-size: 0.9rem;
    margin: 0;
}

.news-item-meta {
    font-size: 0.72rem;
    color: var(--muted);
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.news-item-excerpt {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
}

/* Simple pages */

.simple-page .section-header {
    margin-top: 2rem;
}

.page-hero-compact {
    margin-top: 1.6rem;
    margin-bottom: 1.4rem;
}

.page-hero-compact h1 {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 0.4rem;
}

.page-hero-compact p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.page-body {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr);
    gap: 1.4rem;
    margin-top: 0.4rem;
}

.content-main {
    font-size: 0.9rem;
}

.content-main h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.content-main h3 {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.content-main p {
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.content-main ol,
.content-main ul {
    margin-top: 0.2rem;
    margin-bottom: 0.8rem;
    padding-left: 1.1rem;
    color: var(--muted);
}

.content-aside {
    font-size: 0.84rem;
}

.docs-content {
    line-height: 2em;
}

/* Mini list */
.mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mini-list li {
    margin-bottom: 0.55rem;
}

.mini-list strong {
    display: block;
    font-size: 0.86rem;
}

.mini-list small {
    font-size: 0.76rem;
    color: var(--muted);
}

/* Legacy */

.legacy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.3rem;
}

.legacy-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.86rem;
}

.legacy-item h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.legacy-item p {
    margin-top: 0;
    margin-bottom: 0.4rem;
    color: var(--muted);
}

.legacy-item ul {
    margin: 0 0 0.6rem 1rem;
    color: var(--muted);
}

.legacy-video iframe {
    width: 100%;
    height: 180px;
    border-radius: 6px;
}

/* Buttons (re-use) */

.btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--accent);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
}

.btn:hover {
    background: #d61c22;
}

/* Footer */

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(5,6,7,0.97);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.7rem 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 0.7rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
}

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

.footer-stats-line {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}
/* Responsive */

@media (max-width: 880px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .nav {
        flex-wrap: wrap;
        gap: 0.3rem;
        font-size: 0.72rem;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .page-body {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


.legacy-item--full {
    grid-column: 1 / -1;
}

.legacy-item--full .server-banner img {
        border-radius: 0 !important;
}