@font-face {
  font-family: Tektur;
  src: url("Tektur-Medium.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Tektur;
  src: url("Tektur-Bold.ttf") format("truetype");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #04121c;
  --panel: rgba(6, 29, 44, .94);
  --line: #355b72;
  --field: rgba(11, 39, 59, .96);
  --text: #e8e2d0;
  --muted: #aabfce;
  --cream: #f3e7c4;
  --gold: #e8c35a;
  --gold-fill: #5b4823;
  --gold-hover: #6c562b;
  --online: #6ee7a0;
  --online-bg: rgba(24, 92, 56, .55);
  --closed: #e8c35a;
  --closed-bg: rgba(91, 72, 35, .45);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 500 16px/1.5 Tektur, "Segoe UI", Roboto, system-ui, sans-serif;
  background:
    linear-gradient(rgba(2, 13, 24, .58), rgba(2, 13, 24, .90) 48%, var(--bg)),
    url("bg.jpg") center top / cover no-repeat fixed,
    var(--bg);
}

a { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.wrap.narrow { max-width: 560px; }

/* Header & top navigation */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.logo {
  display: block;
  width: min(260px, 72vw);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .7));
}

.logo-sm { width: min(190px, 56vw); }

.tag {
  margin: 6px 0 0;
  padding: 4px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(6, 29, 44, .82);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-align: center;
}

.top-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(6, 29, 44, .78);
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
}

.top-nav a:hover, .top-nav a:focus-visible {
  color: var(--cream);
  border-color: var(--line);
}

.top-nav a[aria-current="page"] {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(11, 39, 59, .95);
}

/* Panels */
.panel {
  width: 100%;
  padding: 20px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.panel + .panel { margin-top: 16px; }

h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 4.5vw, 30px);
  line-height: 1.2;
  color: var(--cream);
  font-weight: 700;
}

h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .6px;
  text-transform: uppercase;
}

h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
}

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.lead {
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.muted { color: var(--muted); font-size: 14px; }

/* Buttons (beta page exact style) */
.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 0;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .3px;
}

.btn small {
  flex-basis: 100%;
  font-weight: 500;
  font-size: 13px;
  opacity: .85;
}

.btn.primary {
  background: var(--gold-fill);
  border: 2px solid var(--gold);
  color: var(--cream);
}
.btn.primary:hover, .btn.primary:focus-visible { background: var(--gold-hover); }

.btn.secondary {
  min-height: 52px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
}
.btn.secondary:hover, .btn.secondary:focus-visible { border-color: var(--muted); }

.icon { width: 22px; height: 22px; flex: none; fill: currentColor; }

/* Pills & badges */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.badge.online {
  color: var(--online);
  background: var(--online-bg);
  border-color: var(--online);
}

.badge.closed {
  color: var(--closed);
  background: var(--closed-bg);
  border-color: var(--gold);
}

.badge.region {
  color: var(--cream);
  background: var(--field);
  border-color: var(--line);
}

/* Grids */
.grid-2, .grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  padding: 14px 14px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
}

.card-num {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.card p { font-size: 14px; color: var(--muted); margin: 0; }

/* Gallery with dedicated caption panel below each screenshot */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.shot {
  margin: 0;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #020b12;
}

.shot figcaption {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: rgba(6, 29, 44, .96);
  font-size: 14px;
  color: var(--text);
}

.shot figcaption b { color: var(--cream); display: block; margin-bottom: 2px; }
.shot figcaption span { color: var(--muted); font-size: 13px; }

/* Lists & steps */
ol.steps, ul.bullets {
  margin: 8px 0 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 15px;
}

ol.steps li + li, ul.bullets li + li { margin-top: 8px; }

a.runtime {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin: 6px 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
}
a.runtime:hover, a.runtime:focus-visible { border-color: var(--muted); }

/* News articles */
.article-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.article-date {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.article-body h3 {
  margin: 16px 0 8px;
  font-size: 15px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.article-body ul {
  margin: 6px 0 12px;
  padding-left: 20px;
}

.article-body li + li { margin-top: 6px; }

/* Server list & migration bar */
.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.server-name { font-size: 17px; font-weight: 700; color: var(--cream); }
.server-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(2, 13, 24, .85);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 8px 0 12px;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
}

.stage-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.stage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--field);
  border: 1px solid var(--line);
  font-size: 14px;
}

/* Legal prose */
.legal-prose h2, .legal-prose h3 {
  text-transform: none;
  letter-spacing: 0;
  color: var(--cream);
  margin-top: 18px;
}
.legal-prose p, .legal-prose li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* Language switcher & footer (matches beta page) */
.lang-nav {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.lang-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  background: rgba(6, 29, 44, .75);
  border: 1px solid transparent;
}

.lang-nav a[aria-current="true"] {
  color: var(--gold);
  border-color: var(--line);
}

footer {
  margin-top: 16px;
  color: #7f97a8;
  font-size: 13px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 2px;
}
.footer-links a:hover { color: var(--gold); }

@media (min-width: 680px) {
  .actions.row { flex-direction: row; }
  .actions.row .btn { flex: 1 1 0; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .wrap { padding: 28px 20px 40px; }
  .logo { width: 300px; }
  .logo-sm { width: 210px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
