/* Bifrost Gate - archvault.link. Copyright - ArchNomally - 2026 */
:root {
  --ground: #0c1512;
  --ground-2: #0f1a16;
  --card: #111d19;
  --line: #23352e;
  --line-soft: #1a2a24;
  --text: #e6ece8;
  --muted: #b9c6bf;
  --faint: #95a69d;
  --gold: #c9a24a;
  --gold-hover: #e2c06e;
  --frost: #8fc3d6;
  --ok: #3ecf8e;
  --down: #e0794f;
  --wait: #6f7f78;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; border-radius: 6px; }
.rune, .runes { font-family: "Noto Sans Runic", serif; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
h1, h2 { font-family: Cinzel, serif; font-weight: 600; margin: 0; }

/* header */
.top { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand span { font-family: Cinzel, serif; font-weight: 600; font-size: 20px; letter-spacing: 0.18em; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

/* hero and the gate */
.hero { position: relative; min-height: 556px; padding-top: 150px; padding-bottom: 90px; text-align: center; }
.gate { position: absolute; top: 8px; left: 0; right: 0; margin: 0 auto; width: 100%; max-width: 1000px; height: 520px; opacity: 0.5; pointer-events: none; }
.hero-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.eyebrow { font-family: Cinzel, serif; font-size: 14px; letter-spacing: 0.3em; color: var(--gold); }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.1; letter-spacing: 0.04em; }
.lead { margin: 0; max-width: 620px; color: var(--muted); font-size: 18px; }
.pill { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #10201b; font-size: 14px; color: #cfd9d3; }

/* status lights */
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wait); flex: 0 0 auto; }
[data-state="online"] > .dot { background: var(--ok); }
[data-state="offline"] > .dot, [data-state="partial"] > .dot { background: var(--down); }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cfd9d3; }

/* realm cards */
.realms { padding-top: 24px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { display: flex; flex-direction: column; gap: 6px; }
.realm { font-family: Cinzel, serif; font-size: 13px; letter-spacing: 0.2em; color: var(--frost); }
.card h2 { font-size: 26px; }
.card p { margin: 0; color: var(--muted); }
.stats { display: flex; gap: 24px; padding: 14px 0; border-top: 1px solid #1f302a; border-bottom: 1px solid #1f302a; }
.stat { font-size: 22px; font-weight: 600; }
.stat-label { font-size: 12px; letter-spacing: 0.08em; color: var(--faint); }
.card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.btn { display: block; padding: 14px 18px; border-radius: 10px; background: var(--gold); color: #13110a; text-align: center; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--gold-hover); color: #13110a; }
.btn-ghost { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-ghost:hover { background: #1a2620; color: var(--gold-hover); }
.hint { font-size: 13px; color: var(--faint); text-align: center; }

/* joining Midgard */
.join { border-top: 1px solid var(--line-soft); background: var(--ground-2); }
.join-inner { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 48px; }
.join-intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.join-intro .eyebrow { font-size: 13px; }
.join-intro h2 { font-size: 34px; line-height: 1.2; }
.join-intro p { margin: 0; color: var(--muted); }
.steps { flex: 2 1 520px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.steps li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.steps strong { font-weight: 600; }
.steps span { color: var(--muted); }
.steps .step-wide { flex: 1 1 auto; gap: 10px; }
.steps .step-wide > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold) !important; display: flex; align-items: center; justify-content: center; font-family: Cinzel, serif; font-weight: 600; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
code { padding: 12px 16px; border-radius: 10px; background: #0b1411; border: 1px solid var(--line); font-size: 17px; color: var(--text); }
#copy-btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #2f463d; background: #16261f; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
#copy-btn:hover { background: #1c3028; }
#copy-btn span { color: var(--text); }

/* accounts and help */
.info { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 24px; }
.box { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; }
.box h2 { font-size: 22px; }
.box p { margin: 0; color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--line-soft); }
.foot { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint); }

@media (max-width: 640px) {
  .hero { min-height: 0; padding-top: 110px; padding-bottom: 64px; }
  .gate { height: 360px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
