:root {
  color-scheme: dark;
  --black: #080a0b;
  --ink: #101416;
  --panel: #151a1c;
  --panel-soft: #1a2022;
  --line: #30383b;
  --paper: #ece9df;
  --paper-bright: #f6f3ea;
  --paper-muted: #b9b7af;
  --text-dark: #141819;
  --muted-dark: #62686a;
  --rust: #d95228;
  --rust-dark: #91351a;
  --cyan: #42c4c9;
  --cyan-dark: #0e7378;
  --green: #8ec96e;
  --yellow: #e4ba58;
  --font-display: "Barlow Condensed", Impact, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-body);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

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

code {
  color: inherit;
  font-size: 0.9em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 11, 0.91);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--rust);
  color: white;
  font: 800 21px/1 var(--font-display);
}

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

.brand-copy strong {
  font: 800 19px/1 var(--font-display);
}

.brand-copy small {
  margin-top: 4px;
  color: var(--paper-muted);
  font-size: 9px;
  letter-spacing: 0.18em;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
  font-weight: 700;
}

nav > a:not(.discord-link) {
  color: #b8bdbd;
}

nav > a:hover {
  color: white;
}

.discord-link,
.primary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--rust);
  color: white;
  font-weight: 800;
}

.discord-link svg,
.primary-button svg {
  width: 17px;
}

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

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 6, 7, 0.93) 0%, rgba(4, 6, 7, 0.68) 39%, rgba(4, 6, 7, 0.12) 72%),
    linear-gradient(0deg, rgba(5, 7, 8, 0.82) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 90vw);
  padding: 22vh 0 180px 7vw;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 20px;
  color: white;
  font: 800 clamp(72px, 10vw, 142px) / 0.73 var(--font-display);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  color: #deddd7;
  font-size: clamp(16px, 1.65vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 32px;
}

.primary-button {
  min-height: 50px;
  padding: 0 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7d9d5;
  font-size: 12px;
  font-weight: 700;
}

.text-link svg {
  width: 16px;
}

.hero-ledger {
  position: absolute;
  z-index: 3;
  right: 5vw;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(155px, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 0;
  background: rgba(8, 10, 11, 0.91);
}

.hero-ledger > div {
  min-height: 118px;
  padding: 19px 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-ledger > div:last-child {
  border-right: 0;
}

.hero-ledger span,
.hero-ledger strong {
  display: block;
}

.ledger-label {
  margin-bottom: 9px;
  color: var(--cyan);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-ledger strong {
  color: white;
  font: 700 31px/1 var(--font-display);
}

.hero-ledger strong + span {
  margin-top: 7px;
  color: #9ea5a6;
  font-size: 10px;
}

.status-strip {
  background: var(--rust);
}

.status-inner {
  display: grid;
  width: min(1240px, calc(100% - 12vw));
  min-height: 112px;
  grid-template-columns: 260px 1fr auto;
  gap: 40px;
  align-items: center;
  margin: 0 auto;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pulse {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.17);
}

.live-status small,
.live-status strong {
  display: block;
}

.live-status small {
  margin-bottom: 5px;
  color: #ffd1c0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.live-status strong {
  font: 700 20px/1 var(--font-display);
}

.status-inner > p {
  margin: 0;
  color: #fff3ed;
  font-size: 12px;
  line-height: 1.65;
}

.status-inner > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.status-inner > a svg {
  width: 15px;
}

.section {
  padding: 92px 6vw;
}

.section-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.paper-section {
  background: var(--paper);
  color: var(--text-dark);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 80px;
  align-items: end;
}

.section-heading > p {
  margin-bottom: 0;
  color: var(--muted-dark);
  font-size: 13px;
  line-height: 1.75;
}

.section-heading.inverted > p {
  color: #aeb5b6;
}

.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font: 700 clamp(38px, 5vw, 66px) / 0.94 var(--font-display);
  letter-spacing: 0;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 55px;
  border-top: 1px solid #babbb5;
  border-left: 1px solid #babbb5;
}

.process article {
  position: relative;
  min-height: 240px;
  padding: 30px 26px;
  border-right: 1px solid #babbb5;
  border-bottom: 1px solid #babbb5;
  background: var(--paper-bright);
}

.process article > span {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #9b9d98;
  font: 700 18px/1 var(--font-display);
}

.process svg {
  width: 28px;
  color: var(--rust-dark);
}

.process h3 {
  margin: 45px 0 10px;
  font: 700 24px/1 var(--font-display);
}

.process p {
  margin: 0;
  color: #686d6d;
  font-size: 12px;
  line-height: 1.65;
}

.formula-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 19px 22px;
  border-left: 3px solid var(--cyan-dark);
  background: #dcdad1;
}

.formula-note svg {
  width: 19px;
  flex: 0 0 auto;
  color: var(--cyan-dark);
}

.formula-note p {
  margin: 0;
  color: #4e5455;
  font-size: 12px;
  line-height: 1.65;
}

.zone-section {
  background: #0c1012;
}

.zone-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border: 1px solid var(--line);
}

.zone-summary > div {
  min-height: 130px;
  padding: 24px 27px;
  border-right: 1px solid var(--line);
  background: #121719;
}

.zone-summary > div:last-child {
  border-right: 0;
}

.zone-summary small,
.zone-summary strong,
.zone-summary span {
  display: block;
}

.zone-summary small {
  color: var(--cyan);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.zone-summary strong {
  margin: 15px 0 6px;
  color: white;
  font: 700 30px/1 var(--font-display);
}

.zone-summary span {
  color: #899194;
  font-size: 10px;
}

.zone-toolbar,
.container-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 17px;
}

.segmented {
  display: inline-flex;
  border: 1px solid #394245;
  border-radius: 4px;
  overflow: hidden;
}

.segmented button {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-right: 1px solid #394245;
  background: transparent;
  color: #9da5a7;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button:hover,
.segmented button.active {
  background: var(--rust);
  color: white;
}

.search-box {
  display: flex;
  width: min(320px, 100%);
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid #394245;
  border-radius: 4px;
  background: #111517;
}

.search-box svg {
  width: 16px;
  color: #747d80;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 11px;
}

.search-box input::placeholder {
  color: #747d80;
}

.zone-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #111517;
}

.data-table th,
.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #282f32;
  text-align: left;
}

.data-table th {
  background: #181e20;
  color: #727c7f;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.data-table td {
  color: #bfc5c6;
  font-size: 11px;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #161c1e;
}

.data-table td:first-child {
  color: white;
  font-weight: 700;
}

.level-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.level-badge.high {
  color: var(--yellow);
}

.level-badge.medium {
  color: var(--cyan);
}

.level-badge.controlled {
  color: #91a0a3;
}

.empty-state {
  margin: 0;
  padding: 32px;
  color: #8b9496;
  text-align: center;
  font-size: 12px;
}

.bunker-section {
  background: var(--paper);
  color: var(--text-dark);
}

.bunker-callout {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 55px;
  padding: 24px 28px;
  border-left: 4px solid var(--rust);
  background: var(--text-dark);
  color: white;
}

.bunker-callout > svg {
  width: 31px;
  color: var(--yellow);
}

.bunker-callout small {
  color: var(--yellow);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.bunker-callout h3 {
  margin: 5px 0 7px;
  font: 700 29px/1 var(--font-display);
}

.bunker-callout p {
  max-width: 800px;
  margin: 0;
  color: #b8bebe;
  font-size: 11px;
  line-height: 1.65;
}

.bunker-callout > span {
  color: white;
  font: 800 62px/1 var(--font-display);
}

.container-toolbar {
  justify-content: flex-start;
  margin-top: 30px;
}

.dark-segmented {
  border-color: #bbb9b1;
}

.dark-segmented button {
  border-color: #bbb9b1;
  color: #656a69;
}

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

.container-card {
  min-height: 290px;
  padding: 25px;
  border: 1px solid #c4c2ba;
  border-radius: 6px;
  background: var(--paper-bright);
}

.container-card[hidden] {
  display: none;
}

.container-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.container-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--text-dark);
  color: var(--cyan);
}

.container-icon svg {
  width: 18px;
}

.container-head small {
  display: block;
  margin-bottom: 4px;
  color: #7b807e;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.container-head h3 {
  margin: 0;
  font: 700 25px/1 var(--font-display);
}

.container-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 21px 0 18px;
  border-top: 1px solid #cdcbc3;
  border-left: 1px solid #cdcbc3;
}

.container-stats span {
  min-height: 61px;
  padding: 11px;
  border-right: 1px solid #cdcbc3;
  border-bottom: 1px solid #cdcbc3;
}

.container-stats small,
.container-stats strong {
  display: block;
}

.container-stats small {
  color: #7a7f7e;
  font-size: 8px;
}

.container-stats strong {
  margin-top: 4px;
  font: 700 20px/1 var(--font-display);
}

.container-card p {
  margin: 0;
  color: #626766;
  font-size: 11px;
  line-height: 1.65;
}

.module-panel {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: center;
  margin-top: 18px;
  padding: 34px;
  border-radius: 6px;
  background: #121719;
  color: white;
}

.module-visual {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid #3a4649;
  background: #0b0e0f;
  color: var(--cyan);
}

.module-visual svg {
  width: 50px;
  height: 50px;
}

.module-visual span {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: var(--yellow);
  font: 700 19px/1 var(--font-display);
}

.module-copy h3 {
  margin-bottom: 10px;
  font: 700 32px/1 var(--font-display);
}

.module-copy > p:not(.section-kicker) {
  margin: 0;
  color: #b5bcbd;
  font-size: 11px;
  line-height: 1.7;
}

.module-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 17px;
  color: #e0b85a;
  font-size: 10px;
  line-height: 1.55;
}

.module-warning svg {
  width: 17px;
  flex: 0 0 auto;
}

.module-stats {
  border-top: 1px solid #354043;
}

.module-stats span {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #354043;
}

.module-stats small {
  color: #7e898b;
  font-size: 9px;
}

.module-stats strong {
  font: 700 22px/1 var(--font-display);
}

.rarity-section {
  background: #101416;
}

.compact-heading {
  align-items: center;
}

.rarity-scale {
  display: grid;
  gap: 14px;
  margin-top: 54px;
}

.rarity-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 45px;
  gap: 20px;
  align-items: center;
}

.rarity-row > strong {
  color: #d7dbd9;
  font: 700 18px/1 var(--font-display);
}

.rarity-row > b {
  color: white;
  font: 700 20px/1 var(--font-display);
  text-align: right;
}

.rarity-track {
  height: 15px;
  padding: 3px;
  border: 1px solid #3a4447;
  background: #080a0b;
}

.rarity-track span {
  display: block;
  width: var(--weight);
  min-width: 7px;
  height: 100%;
  background: var(--cyan);
}

.rarity-row.abundant .rarity-track span {
  background: var(--green);
}

.rarity-row.common .rarity-track span {
  background: #9fc783;
}

.rarity-row.uncommon .rarity-track span {
  background: var(--cyan);
}

.rarity-row.rare .rarity-track span {
  background: #5d91cc;
}

.rarity-row.very-rare .rarity-track span {
  background: #9a76c8;
}

.rarity-row.extremely-rare .rarity-track span {
  background: var(--rust);
}

.audit-band {
  padding: 65px 6vw;
  background: var(--rust-dark);
}

.audit-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 75px;
  align-items: center;
}

.audit-grid .section-kicker {
  color: #ffc2a8;
}

.audit-grid h2 {
  max-width: 500px;
  margin: 0;
  font: 700 clamp(34px, 4vw, 53px) / 0.95 var(--font-display);
}

.audit-grid dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.audit-grid dl > div {
  min-height: 100px;
  padding: 21px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.audit-grid dt {
  font: 700 28px/1 var(--font-display);
}

.audit-grid dd {
  margin: 7px 0 0;
  color: #e7d5ce;
  font-size: 9px;
  line-height: 1.45;
}

footer {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: space-between;
  padding: 30px 6vw;
  border-top: 1px solid var(--line);
  background: var(--black);
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font: 700 20px/1 var(--font-display);
}

.footer-brand div > span {
  margin-top: 6px;
  color: #81898b;
  font-size: 10px;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: #929a9c;
  font-size: 10px;
}

.footer-links a:hover {
  color: var(--cyan);
}

@media (max-width: 1000px) {
  nav > a:not(.discord-link) {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-content {
    padding-top: 180px;
    padding-left: 6vw;
  }

  .hero-ledger {
    right: 6vw;
    left: 6vw;
  }

  .status-inner {
    grid-template-columns: 230px 1fr;
    padding: 24px 0;
  }

  .status-inner > a {
    grid-column: 2;
  }

  .section-heading,
  .audit-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .module-panel {
    grid-template-columns: 110px 1fr;
  }

  .module-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid #354043;
  }

  .module-stats span {
    padding: 0 15px;
    border-right: 1px solid #354043;
  }

  .audit-grid dl {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 64px;
    padding: 0 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .discord-link {
    width: 40px;
    padding: 0;
  }

  .discord-link span {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4, 6, 7, 0.91) 0%, rgba(4, 6, 7, 0.55) 65%, rgba(4, 6, 7, 0.25) 100%),
      linear-gradient(0deg, rgba(5, 7, 8, 0.94) 0%, transparent 55%);
  }

  .hero-content {
    width: 100%;
    padding: 145px 22px 275px;
  }

  h1 {
    font-size: 75px;
  }

  .hero-copy {
    max-width: 94%;
    font-size: 15px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .hero-ledger {
    right: 0;
    left: 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-ledger > div {
    min-height: 118px;
    padding: 16px 12px;
  }

  .hero-ledger strong {
    font-size: 24px;
  }

  .hero-ledger strong + span {
    font-size: 8px;
    line-height: 1.4;
  }

  .status-inner {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 26px 0;
  }

  .status-inner > a {
    grid-column: auto;
  }

  .section {
    padding: 68px 20px;
  }

  .section-heading h2 {
    font-size: 42px;
  }

  .process,
  .zone-summary,
  .container-grid {
    grid-template-columns: 1fr;
  }

  .process article {
    min-height: 190px;
  }

  .zone-summary > div {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .zone-summary > div:last-child {
    border-bottom: 0;
  }

  .zone-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    min-width: 0;
    flex: 1;
    padding: 0 9px;
  }

  .search-box {
    width: 100%;
  }

  .zone-table-wrap {
    overflow-x: auto;
  }

  .data-table {
    min-width: 650px;
  }

  .bunker-callout {
    grid-template-columns: 42px 1fr;
    padding: 23px 20px;
  }

  .bunker-callout > span {
    display: none;
  }

  .container-toolbar {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .container-toolbar .segmented {
    min-width: 530px;
  }

  .module-panel {
    grid-template-columns: 1fr;
    padding: 25px 20px;
  }

  .module-visual {
    width: 82px;
    height: 82px;
  }

  .module-visual svg {
    width: 38px;
    height: 38px;
  }

  .module-stats {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .rarity-row {
    grid-template-columns: 90px minmax(0, 1fr) 38px;
    gap: 12px;
  }

  .rarity-row > strong {
    font-size: 15px;
  }

  .audit-grid dl {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

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