@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700;800&family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #0a0b0c;
  --surface: #121417;
  --surface-2: #1a1d22;
  --line: #2a2f36;
  --text: #9da3a8;
  --heading: #ece7df;
  --accent: #d4642a;
  --accent-deep: #8f3f16;
  --amber: #cb8a2b;
  --ok: #76b17f;
  --focus: #f2ae4a;
  --radius: 0.35rem;
  --max: 78rem;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8rem;
  color: var(--heading);
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
  line-height: 1.06;
  letter-spacing: 0.03em;
}

.container {
  width: min(100% - 1.6rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 1000;
  background: var(--heading);
  color: #111;
  padding: 0.45rem 0.7rem;
  border-radius: 0.2rem;
}

.skip-link:focus {
  top: 0.5rem;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.demo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.85rem;
  background: #101113;
  border-bottom: 1px solid #272c34;
  text-align: center;
  font-size: 0.86rem;
  padding: 0.55rem 0.9rem;
  color: #9aa1a8;
}

.demo-banner strong {
  color: var(--heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.demo-banner a {
  color: var(--accent);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(10, 11, 12, 0.97), rgba(10, 11, 12, 0.86));
  border-bottom: 1px solid rgba(212, 100, 42, 0.2);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.2rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}

.brand__main {
  color: var(--heading);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand__sub {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #89919a;
}

.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--heading);
  padding: 0.45rem 0.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.cmd-nav {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 12, 0.98);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  display: grid;
  place-content: center;
  gap: 0.35rem;
}

.cmd-nav a {
  font-family: "IBM Plex Mono", monospace;
  color: #d8d4cd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.1rem;
  border: 1px solid #222832;
  background: #0f1114;
  min-width: 15rem;
}

.cmd-nav a::before {
  content: ">";
  margin-right: 0.6rem;
  color: var(--accent);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 40;
}

body.nav-open .cmd-nav {
  transform: translateY(0);
  z-index: 45;
}

section {
  padding: 4rem 0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  border: 1px solid #2f353e;
  color: var(--heading);
  background: transparent;
  padding: 0.66rem 1rem;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn--primary {
  border-color: #b65423;
  background: linear-gradient(180deg, #d4642a 0%, #a1481c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 165, 0.18);
}

.btn--ghost {
  background: #111318;
}

.btn--block {
  width: 100%;
}

.copy-ip {
  min-width: 8.5rem;
}

.btn.is-copied {
  border-color: #4c8f61;
  background: #17311f;
}

.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  align-items: end;
  border-bottom: 1px solid #242a31;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media video,
.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 9, 0.54) 8%, rgba(7, 8, 9, 0.9) 70%, rgba(7, 8, 9, 1) 100%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  padding: 6.3rem 0 3rem;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8ddd6;
}

.status-pulse {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  display: inline-block;
  background: var(--ok);
  margin-right: 0.4rem;
  box-shadow: 0 0 0 0 rgba(118, 177, 127, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 12px rgba(118, 177, 127, 0);
  }
}

.hero h1 {
  font-size: clamp(2.35rem, 10vw, 5rem);
}

.hero p {
  max-width: 42ch;
}

.term-panel {
  border: 1px solid #323943;
  background: rgba(18, 20, 23, 0.88);
  box-shadow: var(--shadow);
  padding: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.term-head {
  color: #afb5bc;
  border-bottom: 1px solid #2f353e;
  padding-bottom: 0.5rem;
  margin-bottom: 0.7rem;
}

.term-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px dashed #28303a;
  padding: 0.44rem 0;
}

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

.term-row strong {
  color: var(--heading);
}

.metric-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.metric {
  background: #0f1216;
  border: 1px solid #262d36;
  padding: 0.55rem;
}

.metric span {
  display: block;
  color: #a4abb2;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.metric strong {
  color: var(--heading);
  font-size: 1.1rem;
}

.connect-slab {
  background: linear-gradient(130deg, #101317 0%, #161a20 100%);
  border: 1px solid #303844;
  padding: 1.2rem;
}

.connect-code {
  display: block;
  background: #0c0f12;
  border: 1px solid #27303a;
  padding: 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  color: #d9d7cf;
  margin-bottom: 0.9rem;
}

.pillars,
.feature-grid,
.monument-grid,
.news-grid,
.staff-grid {
  display: grid;
  gap: 0.9rem;
}

.pillar-card {
  min-height: 12.5rem;
  border: 1px solid #2f353d;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.15), rgba(10, 12, 14, 0.92));
}

.pillar-card__body {
  position: relative;
  z-index: 1;
  padding: 0.95rem 1rem 1.1rem;
}

.pillar-card__body h3,
.pillar-card h3 {
  position: static;
  inset: auto;
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.pillar-card__body p {
  margin: 0;
  color: #b8bec5;
  font-size: 0.92rem;
}

.section-lead {
  max-width: 40rem;
  margin-bottom: 1.35rem;
  color: #a7adb4;
}

.hero-tag {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.05rem;
  color: #c4c8cd;
}

.wipe-board {
  border: 1px solid #353d47;
  background: #111419;
  padding: 1rem;
}

.digits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.digit {
  background: #0d1014;
  border: 1px solid #2c333d;
  text-align: center;
  padding: 0.75rem 0.4rem;
}

.digit strong {
  display: block;
  color: var(--heading);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.15rem, 5vw, 2rem);
}

.digit span {
  text-transform: uppercase;
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  color: #97a0a8;
}

.info-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.matrix-cell {
  border: 1px solid #303741;
  background: #13171c;
  padding: 0.82rem;
}

.matrix-cell span {
  display: block;
  font-size: 0.68rem;
  color: #9ea5ad;
  text-transform: uppercase;
}

.matrix-cell strong {
  color: var(--heading);
}

.feature-card,
.news-card,
.staff-card,
.monument-card {
  background: var(--surface);
  border: 1px solid #2e343d;
  padding: 1rem;
}

.monument-card {
  min-height: 13rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-color: #2f3640;
}

.monument-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 16, 0.25), rgba(12, 14, 16, 0.88));
}

.monument-card h3,
.monument-card p {
  position: relative;
  z-index: 1;
}

.raid-band,
.discord-band {
  background: #15191e;
  border-top: 1px solid #2f363f;
  border-bottom: 1px solid #2f363f;
}

.raid-band {
  background-image: linear-gradient(120deg, rgba(212, 100, 42, 0.12), rgba(18, 20, 23, 0.7));
}

.clan-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.clan-tile {
  border: 1px solid #343b45;
  background: #101317;
  padding: 0.95rem;
}

.clan-tile strong {
  color: var(--heading);
  font-size: 1.4rem;
  display: block;
}

.page-hero {
  padding: 6.6rem 0 3.5rem;
  border-bottom: 1px solid #2c333c;
  background: linear-gradient(180deg, #101317, #0a0b0c);
}

.acc {
  display: grid;
  gap: 0.6rem;
}

.acc-item {
  border: 1px solid #313844;
  background: #12161b;
}

.acc-q {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--heading);
  border: 0;
  padding: 0.85rem 0.95rem;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.acc-a {
  display: none;
  padding: 0 0.95rem 0.95rem;
}

.acc-item.is-open .acc-a {
  display: block;
}

.staff-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #303742;
  margin-bottom: 0.75rem;
}

.site-footer {
  border-top: 1px solid #2d333b;
  background: #0c0d0f;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  justify-content: space-between;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #0f1318;
  border: 1px solid #404a56;
  color: var(--heading);
  padding: 0.55rem 0.75rem;
  opacity: 0;
  transform: translateY(14px);
  transition: 0.22s ease;
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.warn {
  color: var(--amber);
}

@media (min-width: 720px) {
  .hero__grid {
    grid-template-columns: 1.25fr minmax(17rem, 0.9fr);
    align-items: end;
    gap: 2rem;
  }

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

  .feature-grid,
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .clan-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .cmd-nav {
    position: static;
    transform: none;
    display: flex;
    gap: 0.45rem;
    background: none;
    inset: auto;
    place-content: initial;
  }

  .cmd-nav a {
    min-width: initial;
    padding: 0.55rem 0.8rem;
    font-size: 0.74rem;
  }

  .info-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
