:root {
  color-scheme: dark;
  --bg: #071016;
  --panel: #101a21;
  --panel-2: #16232b;
  --line: #31424d;
  --text: #edf4f5;
  --muted: #a9b8bd;
  --gold: #e1b857;
  --green: #58d68d;
  --red: #e66464;
  --blue: #5ea9ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #071016;
}

a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(7, 16, 22, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong, .brand small { display: block; }
.brand small, .eyebrow, .status-grid dt, footer { color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 16px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 650; }
nav a:hover { color: var(--text); }

main { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  min-height: min(760px, calc(100vh - 72px));
  margin-left: -50vw;
  display: grid;
  grid-template-columns: minmax(0, 710px) minmax(300px, 380px);
  justify-content: center;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(42px, 7vh, 76px) max(18px, calc((100vw - 1160px) / 2)) clamp(34px, 7vh, 64px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 16, 22, .96) 0%, rgba(7, 16, 22, .82) 42%, rgba(7, 16, 22, .58) 72%, rgba(7, 16, 22, .78) 100%),
    linear-gradient(0deg, rgba(7, 16, 22, .96) 0%, rgba(7, 16, 22, .30) 42%, rgba(7, 16, 22, .72) 100%),
    url("/assets/augmentedrp-city-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.08));
  pointer-events: none;
}

.hero-copy, .status-card { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 14px;
  font-size: clamp(3.2rem, 8vw, 6.25rem);
  line-height: .9;
  letter-spacing: 0;
}
h2 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; margin-bottom: 0; }
h3 { margin-bottom: 10px; font-size: 1.05rem; }
.lede { max-width: 740px; color: #d7e2e4; font-size: clamp(1.1rem, 2vw, 1.35rem); }

.actions, .resource-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button, .resource-row a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.button.primary { background: var(--gold); color: #151007; border-color: var(--gold); }
.button.secondary:hover, .resource-row a:hover { border-color: var(--gold); }

.status-card, .quick-panel, article, .job-list, .section-copy {
  background: rgba(16, 26, 33, .92);
  border: 1px solid var(--line);
}

.status-card {
  align-self: center;
  padding: 22px;
  box-shadow: 0 18px 80px rgba(0, 0, 0, .34);
}
.status-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 850;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(225,184,87,.14);
}
.status-dot.online { background: var(--green); box-shadow: 0 0 0 5px rgba(88,214,141,.14); }
.status-dot.offline { background: var(--red); box-shadow: 0 0 0 5px rgba(230,100,100,.14); }
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.status-grid div { padding: 12px; background: var(--panel-2); border: 1px solid #263744; }
.status-grid dt { font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.status-grid dd { margin: 4px 0 0; font-weight: 850; overflow-wrap: anywhere; }

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  margin-bottom: 48px;
  background: var(--line);
}
.quick-panel div { padding: 18px; background: rgba(16, 26, 33, .96); }
.quick-panel strong, .quick-panel span { display: block; }
.quick-panel span { margin-top: 5px; color: var(--muted); }

.section { padding: 54px 0; border-top: 1px solid rgba(255,255,255,.09); }
.section-title { margin-bottom: 22px; }
.cards { display: grid; gap: 14px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
article { padding: 18px; }
article p, .section-copy { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.job-list { display: grid; gap: 1px; background: var(--line); }
.job-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 15px;
  background: rgba(16, 26, 33, .96);
}
.job-list span { color: var(--muted); }

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.flow span {
  display: grid;
  place-items: center;
  min-height: 82px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--gold);
  font-weight: 900;
}
.section-copy { margin: 14px 0 0; padding: 16px; }
code { color: var(--gold); }

footer {
  width: min(1160px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 26px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.09);
}

@media (max-width: 840px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero, .split, .quick-panel, .cards.three { grid-template-columns: 1fr; }
  .hero {
    min-height: auto;
    padding-top: 42px;
  }
  .job-list div { grid-template-columns: 1fr; gap: 6px; }
  .flow { grid-template-columns: 1fr 1fr; }
}
