@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #08111f;
    --bg-soft: rgba(10, 22, 38, 0.82);
    --panel: rgba(9, 20, 35, 0.78);
    --panel-strong: rgba(8, 18, 31, 0.92);
    --line: rgba(210, 179, 111, 0.18);
    --line-strong: rgba(210, 179, 111, 0.34);
    --text: #eef2f7;
    --muted: #9fb0c5;
    --accent: #d2b36f;
    --accent-strong: #f3d28d;
    --danger: #ef6f6f;
    --success: #58cf82;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(142, 114, 61, 0.24), transparent 35%),
        radial-gradient(circle at top right, rgba(70, 112, 178, 0.14), transparent 30%),
        linear-gradient(180deg, #07111f 0%, #0a1628 45%, #09111e 100%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-strong); }

button, input { font: inherit; }

.site-shell {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(5, 12, 23, 0.28), rgba(4, 10, 18, 0.76)),
        radial-gradient(circle at center top, rgba(255, 213, 135, 0.09), transparent 35%);
}

.container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(5, 14, 26, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible;
}

.nav-wrap {
    position: relative;
    min-height: 84px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
    overflow: visible;
}

.brand-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
}

.brand {
    font-family: Cinzel, Georgia, serif;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.topbar-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links a,
.link-button {
    color: #e9eef7;
    opacity: 0.92;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.link-button {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.inline-form { display: inline; }

.lang-switch {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
}

.lang-switch a {
    min-width: 42px;
    padding: 7px 10px;
    text-align: center;
    color: var(--muted);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
}

.lang-switch a.active {
    color: #0a1421;
    background: var(--accent);
}

.topbar-status-host { position: absolute; }

.server-sigil-image { display: block; }

@media (max-width: 1180px) {
    .topbar-status-host {
        display: none;
    }
}

.page-content {
    padding: 32px 0 52px;
}

.home-page .page-content {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: flex-start;
    padding: 28px 0 28px;
}

.panel-glass {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(14, 26, 41, 0.86), rgba(8, 18, 30, 0.9));
    box-shadow: var(--shadow);
    border-radius: var(--radius-xl);
}

.status-banner {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(88, 207, 130, 0.3);
    background: rgba(15, 37, 27, 0.7);
    color: #cbf4d9;
}

.landing-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    min-height: 100%;
}

.landing-main,
.landing-side { min-height: 100%; }

.landing-main {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.landing-main-wide {
    width: 100%;
    min-height: calc(100vh - 140px);
}

.landing-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 12%, rgba(243, 210, 141, 0.18), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(91, 135, 204, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.05), transparent 35%);
    pointer-events: none;
}

.landing-text { position: relative; z-index: 1; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-strong);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.eyebrow::before {
    content: "";
    width: 42px;
    height: 1px;
    background: rgba(243, 210, 141, 0.55);
}

.landing-main h1,
.content-header h1,
.form-card h1,
.info-block h2,
.downloads-section h2 {
    font-family: Cinzel, Georgia, serif;
}

.landing-main h1 {
    margin: 0;
    font-size: clamp(3rem, 4vw, 4.9rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    max-width: 11ch;
}

.hero-subtitle {
    margin: 24px 0 12px;
    max-width: 640px;
    font-size: 1.16rem;
    line-height: 1.8;
    color: #f5f8fc;
}

.hero-description {
    margin: 0;
    max-width: 650px;
    line-height: 1.85;
    color: var(--muted);
    font-size: 1rem;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(180deg, #d8bb7c, #bf9850);
    color: #111923;
    box-shadow: 0 12px 24px rgba(191, 152, 80, 0.28);
}

.btn-secondary {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.10);
    color: var(--text);
}

.btn-inline {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.92rem;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.landing-side {
    display: grid;
    gap: 22px;
}

.landing-side.single-panel {
    grid-template-rows: 1fr;
}

.status-panel,
.info-panel,
.form-card,
.content-header,
.info-block,
.downloads-table-wrap,
.empty-state,
.downloads-section {
    padding: 28px;
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    margin-bottom: 20px;
}

.panel-title-row h2,
.content-header h1,
.form-card h1,
.info-block h2,
.downloads-section h2 {
    margin: 0;
}

.status-updated,
.muted {
    color: var(--muted);
    font-size: 0.92rem;
}

.status-list,
.info-panel {
    display: grid;
    gap: 16px;
}

.status-card,
.feature-card {
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
}

.feature-card.large { min-height: 220px; }

.status-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.centered-status .status-label {
    margin-bottom: 0;
    font-size: 1.08rem;
    color: #f4f7fb;
    font-weight: 600;
}

.status-label {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.status-pill.small {
    min-width: 0;
    min-height: 30px;
    padding: 0 10px;
}

.status-pill.online {
    background: rgba(19, 83, 48, 0.74);
    color: #d5f5df;
    border-color: rgba(88, 207, 130, 0.36);
}

.status-pill.offline {
    background: rgba(102, 24, 36, 0.72);
    color: #ffd2d2;
    border-color: rgba(239, 111, 111, 0.34);
}

.content-header {
    margin-bottom: 22px;
}

.compact-content-header {
    padding-top: 24px;
    padding-bottom: 24px;
}

.content-header.narrow { max-width: 720px; }

.content-header h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 10px;
}

.content-header p,
.feature-card p,
.info-block p,
.empty-state,
.form-lead,
.downloads-section-header p {
    color: var(--muted);
    line-height: 1.75;
}

.content-grid {
    display: grid;
    gap: 22px;
}

.content-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.text-link {
    color: var(--accent-strong);
    font-weight: 700;
}

.form-shell {
    display: flex;
    justify-content: center;
    padding-top: 24px;
}

.form-card { width: min(560px, 100%); }

.form-grid {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field > span {
    color: #f2f5f9;
    font-weight: 600;
}

input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--text);
    background: rgba(5, 14, 24, 0.78);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus {
    border-color: rgba(243, 210, 141, 0.5);
    box-shadow: 0 0 0 3px rgba(243, 210, 141, 0.14);
}

.validation {
    color: #ffafb0;
    font-size: 0.9rem;
}

.form-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    color: var(--muted);
}

.form-links a { color: var(--accent-strong); }

.downloads-sections {
    display: grid;
    gap: 22px;
}

.downloads-section-header {
    margin-bottom: 18px;
}

.downloads-section-header h2 {
    margin-bottom: 8px;
    font-size: 1.55rem;
}

.compact-table-wrap,
.compact-empty {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 16px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.table th {
    color: var(--muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.info-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px 18px;
    margin: 0;
}

.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; }

.divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 18px 0;
}

.compact-form { margin-top: 16px; }
.empty-state { text-align: center; }

@media (max-width: 1100px) {
    .landing-grid,
    .content-grid.three-col,
    .content-grid.two-col {
        grid-template-columns: 1fr;
    }

    .home-page .page-content {
        min-height: auto;
        align-items: initial;
    }

    .landing-main { min-height: 420px; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 26px, 100%); }
    .nav-wrap { flex-direction: column; align-items: flex-start; padding: 14px 0 18px; }
    .topbar-right { width: 100%; flex-direction: column; align-items: flex-start; }
    .landing-main,
    .status-panel,
    .info-panel,
    .form-card,
    .content-header,
    .info-block,
    .downloads-table-wrap,
    .empty-state,
    .downloads-section { padding: 22px; }
    .landing-main h1 { max-width: none; }
    .status-card { flex-direction: column; align-items: flex-start; }
    .centered-status { align-items: flex-start; }
    .info-list { grid-template-columns: 1fr; }
    .table th:nth-child(3),
    .table td:nth-child(3) { display: none; }
}
