:root {
  color-scheme: dark;
  --bg: #111516;
  --surface: #1d2323;
  --surface-soft: #272e2d;
  --text: #f4f5f2;
  --muted: #b7c0bd;
  --border: #46504d;
  --gold: #d2aa55;
  --red: #b63136;
  --red-hover: #ce3b40;
  --green: #45b978;
  --amber: #d4a23d;
  --offline: #b5bcb9;
  --max: 1180px;
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 72px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(64px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: rgba(10,13,13,.7);
  backdrop-filter: blur(10px);
}
.brand { font-size: 20px; font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 30px; }
nav a {
  color: #e1e5e2;
  font-size: 14px;
  text-decoration: none;
}
nav a:hover, nav a:focus-visible { color: var(--gold); }
.language-toggle {
  justify-self: end;
  width: 44px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.language-toggle:hover, .language-toggle:focus-visible { border-color: var(--gold); color: var(--gold); }

.hero {
  position: relative;
  min-height: min(84svh, 820px);
  display: flex;
  align-items: flex-end;
  background: #18201e url("/assets/marvis-online-banner.png") center / cover no-repeat;
  overflow: hidden;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(8,12,12,.43);
  box-shadow: inset 0 -180px 150px rgba(10,14,14,.72);
}
.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 170px 0 82px;
}
.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(56px, 8vw, 102px);
  line-height: 1;
  letter-spacing: 0;
}
.hero p {
  max-width: 620px;
  margin: 24px 0 30px;
  color: #eef0ed;
  font-size: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button-primary { background: var(--red); }
.button-primary:hover, .button-primary:focus-visible { background: var(--red-hover); }
.button-secondary { border-color: rgba(255,255,255,.55); background: rgba(10,13,13,.35); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: white; background: rgba(10,13,13,.66); }
.button-wide { width: 100%; }
.is-disabled { pointer-events: none; opacity: .55; }

.section-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}
h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: 0;
}

.status-band { border-top: 3px solid var(--gold); background: #0d1111; }
.status-layout {
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 2fr;
  align-items: center;
  gap: 42px;
  padding-block: 24px;
}
.status-updated { margin: 0; color: var(--muted); font-size: 13px; }
.status-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.status-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 1px 10px;
  align-items: center;
}
.status-item span:not(.status-dot) { color: var(--muted); font-size: 13px; }
.status-item strong { grid-column: 2; overflow-wrap: anywhere; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--offline); }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgba(69,185,120,.14); }
.status-dot.building { background: var(--amber); box-shadow: 0 0 0 4px rgba(212,162,61,.14); }

.download-section { padding: 112px 0; background: var(--bg); }
.download-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.download-copy p:last-child { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.download-panel { padding: 32px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.download-meta { display: grid; gap: 18px; margin-bottom: 28px; }
.download-meta div { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 16px; border-bottom: 1px solid #394240; padding-bottom: 14px; }
.download-meta span { color: var(--muted); }
.download-meta strong, .download-meta code { min-width: 0; overflow-wrap: anywhere; font-family: inherit; }
.download-meta code { font-size: 12px; color: #e7d4a7; }
.download-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

.updates-section { padding: 112px 0; background: #e8ece9; color: #171b1a; }
.updates-section .section-label { color: #8b631b; }
.update-list { margin-top: 52px; border-top: 1px solid #aab2ae; }
.update-list article {
  display: grid;
  grid-template-columns: 150px minmax(220px,.65fr) 1fr;
  gap: 34px;
  padding: 28px 0;
  border-bottom: 1px solid #aab2ae;
}
.update-list time { color: #5c6662; font-size: 14px; }
.update-list h3 { margin: 0; font-size: 20px; }
.update-list p { margin: 0; color: #4d5753; }

.requirements-section { padding: 104px 0; background: #222827; }
.requirements-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.requirements-list { margin: 0; border-top: 1px solid var(--border); }
.requirements-list div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.requirements-list dt { color: var(--muted); }
.requirements-list dd { margin: 0; font-weight: 700; }

footer { padding: 38px 0; background: #0b0e0e; color: var(--muted); }
.footer-layout { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; }
.footer-layout strong { color: white; }
.footer-layout p { margin: 0; }
.footer-layout a { color: var(--gold); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: 22px; }
  nav { display: none; }
  .hero { min-height: 78svh; }
  .hero-content { width: min(100% - 36px, var(--max)); padding-bottom: 54px; }
  .hero h1 { font-size: clamp(48px, 16vw, 72px); }
  .hero p { font-size: 17px; }
  .section-inner { width: min(100% - 36px, var(--max)); }
  .status-layout, .download-layout, .requirements-layout { grid-template-columns: 1fr; gap: 34px; }
  .status-list { grid-template-columns: 1fr; gap: 18px; }
  .download-section, .updates-section, .requirements-section { padding: 76px 0; }
  .update-list article { grid-template-columns: 1fr; gap: 8px; }
  .footer-layout { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 480px) {
  .site-header { height: 64px; }
  .brand { font-size: 18px; }
  .hero { min-height: 84svh; background-position: 62% center; }
  .hero h1 { font-size: 50px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .download-panel { padding: 22px; }
  .download-meta div, .requirements-list div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
