:root {
  --bg: #07080b;
  --bg-2: #0c0e14;
  --panel: rgba(14, 16, 22, 0.78);
  --panel-solid: #12141b;
  --line: rgba(201, 164, 92, 0.16);
  --line-strong: rgba(201, 164, 92, 0.32);
  --text: #efe7d6;
  --muted: #8d8678;
  --gold: #c9a45c;
  --gold-2: #e8d08a;
  --gold-dim: #8a6f2e;
  --online: #4ade80;
  --offline: #f07171;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
.section-anchor { scroll-margin-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Outfit, system-ui, sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }

.page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(201, 164, 92, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(90, 50, 20, 0.18), transparent 50%),
    linear-gradient(180deg, #0b0d12 0%, var(--bg) 40%, #050608 100%);
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}
h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; }
em { font-style: italic; color: var(--gold-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  color: #1a1408;
  background: linear-gradient(180deg, #efd27a, var(--gold));
  box-shadow: 0 10px 28px rgba(201, 164, 92, 0.22);
}
.btn-gold:hover { box-shadow: 0 14px 32px rgba(201, 164, 92, 0.32); }
.btn-ghost {
  color: var(--gold-2);
  background: transparent;
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); }
.btn.hidden { display: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 11, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--gold);
}
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-2); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
}

.hero {
  padding: 5.5rem 0 3.5rem;
  text-align: center;
}
.hero h1 {
  margin: 0 auto 0.8rem;
  max-width: 16ch;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero p.lead {
  margin: 0 auto 1.8rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 4rem;
}
.status-chip {
  padding: 0.95rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.status-chip .label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.status-chip .value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  color: var(--gold-2);
}
.status-chip .value.ok { color: var(--online); }
.status-chip .value.bad { color: var(--offline); }

.section { padding: 1.5rem 0 4rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
}
.more {
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.25rem 1.3rem 1.35rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0.2rem 0 0.55rem;
  font-size: 1.7rem;
  line-height: 1.1;
}
.card p { margin: 0; color: var(--muted); }
.card .meta {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card.featured {
  min-height: 100%;
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    radial-gradient(circle at 80% 0%, rgba(201, 164, 92, 0.16), transparent 45%),
    var(--panel);
}
.card.featured h3 { font-size: 2.2rem; }

.feature-card .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.8rem;
  color: var(--gold);
}

.class-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid var(--line);
  padding: 0.15rem 0.45rem;
}

.cta {
  margin: 1rem 0 4rem;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 164, 92, 0.16), transparent 55%),
    var(--panel);
}
.cta h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer a { color: var(--gold); text-decoration: none; }

.page-hero {
  padding: 3.8rem 0 2rem;
}
.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
}
.page-hero p { margin: 0; color: var(--muted); max-width: 40rem; }

.article + .article { margin-top: 1rem; }
.article h3 { font-size: 2rem; margin: 0.25rem 0 0.5rem; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.list {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.list li + li { margin-top: 0.25rem; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.empty { color: var(--muted); font-style: italic; }

.bars { margin-top: 0.4rem; }
.bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
}
.bar-label { width: 6.2rem; color: var(--muted); }
.bar-track {
  flex: 1;
  height: 8px;
  background: #1b1e27;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
}
.bar-count { width: 1.6rem; text-align: right; }

.pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid #5c3a12;
  background: #2a1a10;
  color: #e8c85a;
}
.pill.war { background: #3a1010; color: #ff8a8a; border-color: #6a2020; }

.banner {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #5c3a12;
  background: linear-gradient(90deg, rgba(92,58,18,0.35), rgba(201,162,39,0.12));
  color: #f0d78a;
  font-weight: 600;
}
.banner.hidden { display: none; }

.connect-box {
  margin-top: 1rem;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--muted);
  font-size: 0.9rem;
}
.connect-box strong { color: var(--text); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.2rem 0 1.4rem;
}
.stat .label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat .value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.1rem;
  line-height: 1.1;
}

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.panels-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.events { list-style: none; margin: 0; padding: 0; }
.events li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.events li:last-child { border-bottom: none; }

.note {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.muted { color: var(--muted); }

@media (max-width: 980px) {
  .status-strip,
  .news-grid,
  .feature-grid,
  .class-grid,
  .stats,
  .panels,
  .panels-3,
  .detail-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #0b0d12;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 0.7rem 0; }
  .status-strip,
  .news-grid,
  .feature-grid,
  .class-grid,
  .stats,
  .panels,
  .panels-3,
  .detail-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .hero { padding-top: 3.2rem; }
}
