:root {
    color-scheme: dark;
    --bg: #080d15;
    --panel: rgba(18, 26, 39, 0.86);
    --panel-strong: #111927;
    --line: rgba(137, 164, 196, 0.18);
    --text: #f4f7fb;
    --muted: #9aa8ba;
    --cyan: #20d7ff;
    --green: #49e56f;
    --red: #ff5d68;
    --purple: #8d65ff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(180deg, rgba(32, 215, 255, 0.08), transparent 360px),
        radial-gradient(circle at 70% 0%, rgba(141, 101, 255, 0.14), transparent 34rem),
        var(--bg);
    color: var(--text);
}

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

.site-header,
.site-footer,
.hero,
.panel-grid,
.content-section,
.contact-strip,
.article-view {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(32, 215, 255, 0.8);
    background: rgba(32, 215, 255, 0.09);
    box-shadow: 0 0 28px rgba(32, 215, 255, 0.24);
    color: var(--cyan);
    font-weight: 800;
    border-radius: 8px;
}

.brand strong {
    display: block;
    font-size: 20px;
    letter-spacing: 0.08em;
}

.brand small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.main-nav a {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: #d8e1ec;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.main-nav a:hover,
.post-card a:hover,
.feature-card a:hover {
    color: var(--cyan);
    border-color: rgba(32, 215, 255, 0.7);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 28px;
    padding: 64px 0 48px;
}

.eyebrow,
.card-kicker {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(52px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: 0;
    text-shadow: 0 0 28px rgba(32, 215, 255, 0.28);
}

.hero p,
.section-heading p,
.contact-strip p,
.feature-card p,
.post-card p,
.article-body {
    color: var(--muted);
    line-height: 1.7;
}

.hero-copy > p {
    max-width: 720px;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 0 18px;
    border-radius: 6px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button-cyan {
    border-color: rgba(32, 215, 255, 0.75);
    box-shadow: inset 0 0 18px rgba(32, 215, 255, 0.1), 0 0 22px rgba(32, 215, 255, 0.16);
}

.button-green {
    border-color: rgba(73, 229, 111, 0.7);
    color: #ddffe5;
}

.button-red {
    border-color: rgba(255, 93, 104, 0.7);
    color: #ffe2e5;
}

.status-panel,
.feature-card,
.post-card,
.empty-state,
.article-view,
.contact-strip {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent), var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    border-radius: 8px;
}

.status-panel {
    padding: 20px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.panel-title span {
    width: 10px;
    height: 10px;
    background: var(--cyan);
    box-shadow: 0 0 16px var(--cyan);
}

.status-panel dl,
.status-panel dd {
    margin: 0;
}

.status-panel dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(137, 164, 196, 0.12);
    padding: 13px 0;
}

.status-panel dt {
    color: var(--muted);
}

.status-panel dd {
    font-weight: 800;
}

.online {
    color: var(--green);
}

.offline {
    color: var(--red);
}

.mc-player-section {
    border-top: 1px solid var(--line);
    margin-top: 16px;
    padding-top: 16px;
}

.mc-player-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mc-player-heading span {
    font-weight: 800;
}

.mc-player-heading small,
.mc-player-list p {
    color: var(--muted);
}

.mc-player-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 96px));
    justify-content: start;
    gap: 10px;
}

.mc-player {
    display: flex;
    width: 96px;
    min-height: 98px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(32, 215, 255, 0.28);
    background:
        linear-gradient(180deg, rgba(32, 215, 255, 0.09), rgba(255, 255, 255, 0.025)),
        rgba(4, 10, 18, 0.42);
    border-radius: 6px;
    padding: 11px 8px;
    text-align: center;
    box-shadow: inset 0 0 16px rgba(32, 215, 255, 0.045);
}

.mc-player img {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(244, 247, 251, 0.14);
    border-radius: 5px;
    image-rendering: pixelated;
    box-shadow: 0 0 18px rgba(32, 215, 255, 0.2);
}

.mc-player span {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #eef7ff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.panel-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.post-card {
    padding: 22px;
}

.feature-card-primary {
    border-color: rgba(32, 215, 255, 0.42);
    background:
        linear-gradient(180deg, rgba(32, 215, 255, 0.1), transparent 62%),
        var(--panel);
}

.feature-card h2,
.post-card h3,
.contact-strip h2,
.section-heading h2,
.article-view h1 {
    margin: 10px 0;
    letter-spacing: 0;
}

.feature-card a,
.post-card a {
    display: inline-flex;
    margin-top: 12px;
    border-bottom: 1px solid var(--line);
    color: #e9f4ff;
    font-weight: 800;
}

.content-section {
    padding: 64px 0 20px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.post-card span {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.empty-state {
    padding: 22px;
    color: var(--muted);
}

.contact-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    padding: 24px;
}

.article-view {
    max-width: 860px;
    padding: 34px;
    margin-top: 42px;
}

.article-view h1 {
    font-size: clamp(34px, 6vw, 64px);
}

.article-body {
    margin-top: 26px;
    font-size: 17px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding: 28px 0;
    margin-top: 64px;
    font-size: 14px;
}

.site-footer span:first-child {
    color: var(--cyan);
    font-weight: 800;
}

@media (max-width: 860px) {
    .site-header,
    .hero,
    .contact-strip,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .panel-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 32px;
    }
}
