@font-face {
  font-family: 'Colus';
  src: url('./fonts/Colus-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg-deep: #070a10;
  --bg: #0b1019;
  --bg-raised: #111827;
  --panel: rgba(19, 27, 42, 0.88);
  --panel-solid: #151e2e;
  --panel-soft: rgba(25, 35, 53, 0.62);
  --line: rgba(129, 150, 184, 0.2);
  --line-strong: rgba(129, 150, 184, 0.38);
  --text: #f3f6fb;
  --text-soft: #c6cfdd;
  --muted: #8898b1;
  --gold: #f6c94f;
  --gold-soft: #e0b34b;
  --green: #35d28b;
  --green-dark: #1ea96c;
  --red: #ec6b70;
  --blue: #5da9ed;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -5%, rgba(49, 116, 178, 0.16), transparent 30rem),
    var(--bg-deep);
  color: var(--text);
  font-family: Inter, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  content: '';
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--gold);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
.display {
  font-family: 'Colus', 'Segoe UI', sans-serif;
  font-weight: 400;
  letter-spacing: 0.055em;
}

p {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #151109;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 16, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content));
  min-height: 72px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(246, 201, 79, 0.62);
  border-radius: 10px 3px 10px 3px;
  background: linear-gradient(145deg, rgba(246, 201, 79, 0.18), rgba(246, 201, 79, 0.04));
  box-shadow: inset 0 0 20px rgba(246, 201, 79, 0.08), 0 0 24px rgba(246, 201, 79, 0.08);
  color: var(--gold);
  font-family: 'Colus', sans-serif;
  font-size: 21px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: 'Colus', sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-navigation > a:not(.btn) {
  position: relative;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  transition: color 150ms ease, background 150ms ease;
}

.primary-navigation > a:not(.btn):hover,
.primary-navigation > a.active:not(.btn) {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.primary-navigation > a.active:not(.btn)::after {
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 1px;
  background: var(--gold);
  content: '';
}

.primary-navigation .staff-link {
  color: var(--muted) !important;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--text);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(61, 224, 147, 0.54);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 9px 25px rgba(32, 185, 113, 0.18), inset 0 1px rgba(255, 255, 255, 0.2);
  color: #06130d;
  cursor: pointer;
  font-family: 'Colus', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(32, 185, 113, 0.25), inset 0 1px rgba(255, 255, 255, 0.2);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn.small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 11px;
}

.btn.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  color: var(--text);
}

.btn.secondary:hover {
  border-color: rgba(246, 201, 79, 0.5);
  background: rgba(246, 201, 79, 0.07);
}

.btn.disabled,
.btn[aria-disabled='true'] {
  opacity: 0.46;
  filter: grayscale(1);
  pointer-events: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
  content: '';
  pointer-events: none;
}

.hero::before {
  top: -26rem;
  left: 45%;
  width: 60rem;
  height: 60rem;
  border: 1px solid rgba(93, 169, 237, 0.16);
  background: radial-gradient(circle, rgba(55, 121, 181, 0.22), transparent 68%);
}

.hero::after {
  bottom: -30rem;
  left: -15rem;
  width: 52rem;
  height: 52rem;
  background: radial-gradient(circle, rgba(246, 201, 79, 0.1), transparent 66%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 72px;
  align-items: center;
  width: min(calc(100% - 48px), var(--content));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 88px 0 96px;
}

.hero-copy {
  min-width: 0;
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: '';
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--text);
  font-size: clamp(46px, 6.6vw, 88px);
  line-height: 0.98;
  text-shadow: 0 14px 52px rgba(0, 0, 0, 0.55);
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  color: var(--gold);
}

.hero .tagline {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 12px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(53, 210, 139, 0.7);
  content: '';
}

.realm-console {
  position: relative;
  padding: 1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(246, 201, 79, 0.45), rgba(93, 169, 237, 0.12), var(--line));
  box-shadow: var(--shadow);
}

.realm-console::before {
  position: absolute;
  inset: 18% 4% -8%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(41, 127, 190, 0.18);
  filter: blur(55px);
  content: '';
}

.realm-console-inner {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 1px);
  background: rgba(9, 14, 23, 0.96);
}

.realm-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.realm-console-header div {
  display: grid;
  gap: 2px;
}

.realm-console-header strong {
  font-family: 'Colus', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.realm-console-header small {
  color: var(--muted);
  font-size: 11px;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(53, 210, 139, 0.28);
  border-radius: 999px;
  background: rgba(53, 210, 139, 0.07);
  color: #8be7b9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-label::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(53, 210, 139, 0.7);
  content: '';
}

.realmlist {
  padding: 12px;
}

.realm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 150ms ease, background 150ms ease;
}

.realm:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.realm + .realm {
  margin-top: 9px;
}

.realm .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(236, 107, 112, 0.45);
}

.realm.online .status-dot {
  background: var(--green);
  box-shadow: 0 0 12px rgba(53, 210, 139, 0.65);
}

.realm-info {
  min-width: 0;
}

.realm-name {
  overflow: hidden;
  color: var(--text);
  font-family: 'Colus', sans-serif;
  font-size: 15px;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realm-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.realm-meta strong {
  color: var(--text-soft);
}

.realm-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.region {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.realm-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.section {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 100px 0;
}

.section.compact {
  padding-top: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

.section-heading > div {
  max-width: 680px;
}

.section-heading h2,
.section > h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.section-heading p,
.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(24, 34, 52, 0.88), rgba(12, 18, 29, 0.88));
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature::after {
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(246, 201, 79, 0.08);
  border-radius: 50%;
  content: '';
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 201, 79, 0.3);
}

.feature-index {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-family: 'Colus', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
}

.feature h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.systems-stage {
  position: relative;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 30%, rgba(35, 121, 179, 0.12), transparent 34rem),
    rgba(8, 12, 19, 0.74);
}

.systems-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 76px;
  align-items: start;
}

.systems-copy {
  position: sticky;
  top: 112px;
}

.systems-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.systems-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.system-list {
  display: grid;
  gap: 10px;
}

.system-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(19, 27, 42, 0.62);
}

.system-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--gold);
  font-family: 'Colus', sans-serif;
  font-size: 12px;
}

.system-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.system-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.system-state {
  padding: 4px 8px;
  border: 1px solid rgba(53, 210, 139, 0.22);
  border-radius: 999px;
  color: #8be7b9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.journey-step {
  min-height: 190px;
  padding: 24px;
  background: var(--bg);
}

.journey-step span {
  color: var(--gold);
  font-family: 'Colus', sans-serif;
  font-size: 11px;
}

.journey-step h3 {
  margin: 30px 0 9px;
  font-size: 15px;
}

.journey-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 64px;
  border: 1px solid rgba(246, 201, 79, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(125deg, rgba(246, 201, 79, 0.09), transparent 45%),
    linear-gradient(145deg, #182237, #0d1420);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-panel::after {
  position: absolute;
  top: -220px;
  left: calc(50% - 220px);
  width: 440px;
  height: 440px;
  border: 1px solid rgba(246, 201, 79, 0.14);
  border-radius: 50%;
  content: '';
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-panel p {
  max-width: 600px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.empty {
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

[data-nav],
[data-scroll] {
  cursor: pointer;
}

.view-enter {
  animation: view-fade 280ms ease both;
}

@keyframes view-fade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

/* Auth & account */
.auth-page {
  display: grid;
  min-height: calc(100vh - 73px);
  place-items: center;
  padding: 64px 20px;
  background: radial-gradient(circle at 50% 12%, rgba(61, 131, 194, 0.15), transparent 36rem);
}

.auth-panel {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(13, 19, 30, 0.94);
  box-shadow: var(--shadow);
}

.auth-panel::before {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(246, 201, 79, 0.55);
  border-radius: 12px 4px 12px 4px;
  color: var(--gold);
  content: 'A';
  font-family: 'Colus', sans-serif;
  font-size: 22px;
}

.auth-panel h1 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 25px;
  text-align: center;
}

.auth-panel label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
}

.auth-panel input:not([type='checkbox']) {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(5, 9, 15, 0.72);
  color: var(--text);
}

.auth-panel input:not([type='checkbox']):focus {
  border-color: rgba(246, 201, 79, 0.6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(246, 201, 79, 0.08);
}

.auth-panel form .btn,
.oauth-area .btn {
  width: 100%;
  margin-top: 12px;
}

.oauth-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.oauth-actions .btn {
  margin-top: 0;
}

@media (min-width: 520px) {
  .oauth-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.auth-panel .hint {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.message {
  display: none;
  margin: 0 0 14px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.message.error,
.message.success {
  display: block;
}

.message.error {
  border: 1px solid rgba(236, 107, 112, 0.38);
  background: rgba(236, 107, 112, 0.08);
  color: #f1a5a8;
}

.message.success {
  border: 1px solid rgba(53, 210, 139, 0.34);
  background: rgba(53, 210, 139, 0.07);
  color: #8be7b9;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: '';
}

.toggle {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px !important;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

/* Wiki */
.wiki-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  width: min(calc(100% - 48px), var(--content));
  min-height: calc(100vh - 170px);
  margin: 42px auto 80px;
  align-items: start;
}

.wiki-nav,
.wiki-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.wiki-nav {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 120px);
  padding: 16px;
  overflow-y: auto;
}

.wiki-nav input[type='search'] {
  width: 100%;
  min-height: 40px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #0a101a;
  color: var(--text);
}

.wiki-cat h4,
.wiki-subcat h5 {
  margin: 16px 6px 5px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wiki-subcat {
  margin-left: 10px;
}

.wiki-link {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 12px;
}

.wiki-link:hover {
  background: rgba(246, 201, 79, 0.07);
  color: var(--gold);
}

.wiki-content {
  min-width: 0;
  padding: clamp(24px, 5vw, 52px);
}

.wiki-content h1 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 34px;
}

.wiki-body {
  color: var(--text-soft);
}

.wiki-body img {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.wiki-body pre,
.wiki-body code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #080d15;
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 12px;
}

.wiki-body pre {
  padding: 14px;
  overflow-x: auto;
}

.wiki-body code {
  padding: 2px 5px;
}

.wiki-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
}

.wiki-table th,
.wiki-table td {
  padding: 9px 11px;
  border: 1px solid var(--line);
  font-size: 12px;
  text-align: left;
}

.wiki-table th {
  background: rgba(246, 201, 79, 0.05);
  color: var(--gold);
}

.wiki-updated {
  margin-top: 30px;
  color: var(--muted);
  font-size: 11px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #080c13;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 180px;
  gap: 48px;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 58px 0 44px;
}

.footer-brand {
  align-items: flex-start;
}

.footer-brand strong,
.footer-column strong {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand p {
  max-width: 360px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column strong {
  margin-bottom: 5px;
}

.footer-column a {
  color: var(--muted);
  font-size: 12px;
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  color: #66758d;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    min-height: auto;
    padding: 80px 0;
  }

  .hero-copy {
    max-width: 760px;
  }

  .realm-console {
    width: min(100%, 650px);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .systems-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .systems-copy {
    position: static;
  }

  .journey {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .header-inner {
    width: min(calc(100% - 28px), var(--content));
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: fixed;
    top: 72px;
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(9, 14, 23, 0.98);
    box-shadow: var(--shadow);
    flex-direction: column;
  }

  .primary-navigation.open {
    display: flex;
  }

  .primary-navigation > a:not(.btn) {
    padding: 12px;
  }

  .primary-navigation > a.active:not(.btn)::after {
    top: 8px;
    right: auto;
    bottom: 8px;
    left: 1px;
    width: 2px;
    height: auto;
  }

  .header-cta {
    margin-top: 4px;
  }

  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-nav {
    position: static;
    max-height: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .hero-grid,
  .section,
  .wiki-layout,
  .footer-inner,
  .footer-bottom {
    width: min(calc(100% - 30px), var(--content));
  }

  .hero-grid {
    padding: 62px 0 72px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(39px, 12.2vw, 48px);
    letter-spacing: 0.035em;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 10px 14px;
  }

  .realm {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .realm-side {
    grid-column: 2;
    width: 100%;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }

  .features,
  .journey {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    display: block;
  }

  .system-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .system-state {
    grid-column: 2;
    justify-self: start;
  }

  .cta-panel {
    padding: 44px 22px;
  }

  .auth-panel {
    padding: 28px 20px;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    gap: 7px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
