:root {
  color-scheme: dark;
  --bg: #0e1217;
  --panel: #171d24;
  --panel-2: #202833;
  --text: #f7f8fb;
  --muted: #adb8c7;
  --line: #313c4a;
  --gold: #ffd166;
  --mint: #67e0ad;
  --purple: #b58cff;
  --blue: #81c7ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(181, 140, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(103, 224, 173, 0.09), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-weight: 900;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(14, 18, 23, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.08);
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 22px);
  color: var(--muted);
  font-size: 14px;
}

nav a:hover { color: var(--text); }

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(46px, 7vw, 98px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 36px;
  min-height: 78vh;
  padding: clamp(46px, 8vw, 94px) clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.hero-copy,
.section-head { max-width: 820px; }

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.join-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
  margin-top: 26px;
}

.join-panel div,
.network-card,
.realm-card,
.panel,
.feature-list div,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
}

.join-panel div {
  padding: 16px;
}

.join-panel span,
.status-lines span,
.mock-scoreboard span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.join-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: clamp(20px, 3vw, 30px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button.primary {
  border-color: transparent;
  background: var(--gold);
  color: #17130a;
}

.button.secondary {
  background: var(--panel);
  color: var(--text);
}

.button.primary:hover,
.button.secondary:hover {
  border-color: transparent;
  background: var(--mint);
  color: #07140f;
}

.network-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
}

.network-logo {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 8px;
  background: #0b0f14;
}

.status-lines {
  display: grid;
  gap: 10px;
}

.status-lines p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.status-lines strong {
  color: var(--mint);
}

.mock-scoreboard {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: #0b0f14;
}

.mock-scoreboard strong {
  color: var(--gold);
}

.notice,
.section {
  margin: 0 auto;
  padding: 42px clamp(18px, 5vw, 56px);
}

.notice {
  max-width: 1180px;
  color: var(--muted);
  border-top: 0;
  border-inline: 0;
  border-radius: 0;
  background: transparent;
}

.notice strong { color: var(--text); }

.section-head {
  margin-bottom: 24px;
}

.section-head p:not(.eyebrow) { color: var(--muted); }

.realm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.realm-card,
.panel,
.feature-list div {
  padding: 20px;
}

.realm-card img,
.panel-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}

.realm-card p,
.panel p,
.feature-list span {
  color: var(--muted);
}

.band {
  max-width: none;
  background: rgba(20, 26, 33, 0.86);
  border-block: 1px solid var(--line);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  margin-bottom: 6px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.panel .button {
  width: max-content;
  margin-top: 8px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .realm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav { justify-content: flex-start; }

  .hero,
  .feature-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; }

  .join-panel,
  .feature-list,
  .realm-grid {
    grid-template-columns: 1fr;
  }

  .panel .button {
    width: 100%;
  }

  footer { flex-direction: column; }
}
