:root {
  color-scheme: dark;
  --ink: #f4f1e7;
  --muted: #b8c3b6;
  --paper: #101614;
  --panel: rgba(21, 29, 24, 0.88);
  --panel-strong: #1f2b24;
  --line: rgba(244, 241, 231, 0.16);
  --green: #7acb62;
  --green-2: #3d9b65;
  --amber: #f2b85d;
  --red: #e36854;
  --teal: #7ed2c5;
  --stone: #8e9a8b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.12rem 0.34rem;
  color: #f7d58c;
  font-size: 0.92em;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 16, 13, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  width: 76px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 241, 231, 0.18);
  border-radius: 8px;
  background: rgba(244, 241, 231, 0.96);
  box-shadow: inset 0 -3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 64px;
  height: auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-links a {
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

#world-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 10, 0.9), rgba(9, 12, 10, 0.45) 52%, rgba(9, 12, 10, 0.62)),
    linear-gradient(0deg, var(--paper), rgba(16, 22, 20, 0) 36%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 4rem);
  width: min(1180px, calc(100% - 2rem));
  min-height: 92vh;
  margin: 0 auto;
  padding: 8rem 0 5rem;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 10vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.lead {
  max-width: 620px;
  color: #dbe2d2;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.support-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  width: min(940px, 100%);
  margin: 0 auto;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.78rem 1rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

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

.button-primary {
  background: linear-gradient(180deg, #9be57a, var(--green-2));
  color: #0c160d;
  box-shadow: 0 14px 36px rgba(66, 177, 91, 0.3);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.button-muted {
  border-color: rgba(126, 210, 197, 0.32);
  background: rgba(126, 210, 197, 0.09);
  color: #c8fff5;
}

.wide {
  width: 100%;
}

.server-panel,
.download-card,
.note,
.rule-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.server-panel {
  padding: 1rem;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row span {
  color: var(--muted);
}

.panel-row strong {
  text-align: right;
}

.status-dot::before {
  content: "";
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(122, 203, 98, 0.16);
}

.content-band {
  padding: clamp(3.5rem, 8vw, 6.5rem) 1rem;
  scroll-margin-top: 86px;
}

.intro-band {
  background:
    linear-gradient(180deg, #101614 0%, #17221c 100%);
}

.section-heading {
  width: min(940px, 100%);
  margin: 0 auto 2rem;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 1rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.download-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.download-card .wide {
  grid-column: 1 / -1;
}

.download-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: rgba(122, 203, 98, 0.14);
  color: var(--green);
}

.download-icon svg {
  width: 30px;
  height: 30px;
}

.download-card p,
.rule-card p,
.note p {
  color: var(--muted);
  line-height: 1.66;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.1rem 0 0;
}

.meta-grid div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

dt {
  color: var(--stone);
  font-size: 0.8rem;
  font-weight: 800;
}

dd {
  margin: 0.2rem 0 0;
  font-weight: 800;
}

.note-stack {
  display: grid;
  gap: 0.8rem;
}

.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1rem;
}

.note svg {
  width: 22px;
  height: 22px;
  color: var(--amber);
}

.note p {
  margin-bottom: 0;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.rule-card {
  padding: 1.2rem;
  box-shadow: none;
}

.rule-number {
  display: inline-flex;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--red);
  color: var(--amber);
  font-weight: 900;
}

.split-band {
  border-block: 1px solid var(--line);
  background: #141b17;
}

.compact {
  margin-bottom: 1rem;
}

.steps {
  display: grid;
  gap: 0.8rem;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.steps span {
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.2rem;
  border-top: 1px solid var(--line);
  padding: 1.6rem 1rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  border: 1px solid rgba(122, 203, 98, 0.36);
  border-radius: 8px;
  background: #18241c;
  padding: 0.8rem 1rem;
  color: var(--ink);
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .hero-inner,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .server-panel {
    max-width: 540px;
  }

  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 88vh;
    padding-top: 7rem;
  }

  .panel-row,
  .steps li {
    grid-template-columns: 1fr;
  }

  .panel-row {
    display: grid;
  }

  .panel-row strong {
    text-align: left;
  }

  .download-card,
  .meta-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
