:root {
  --black: #050505;
  --ash: #0d0d0d;
  --stone: #171717;
  --stone-light: #2b2b2b;
  --metal: #d7d3c9;
  --muted: #99958e;
  --smoke: rgba(255, 255, 255, 0.08);
  --line: rgba(215, 211, 201, 0.18);
  --glow: rgba(215, 211, 201, 0.22);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--metal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(circle at 50% -10%, rgba(215, 211, 201, 0.16), transparent 32rem),
    radial-gradient(circle at 10% 34%, rgba(255, 255, 255, 0.055), transparent 18rem),
    linear-gradient(180deg, #080808 0%, #020202 78%);
  overflow-x: hidden;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.11) 0 1px, transparent 1.5px);
  background-size: 33px 37px, 49px 53px;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.8);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(215, 211, 201, 0.32);
  border-radius: 8px;
  color: var(--black);
  background: linear-gradient(135deg, #f0ede5, #8e8b85 62%, #f8f6ee);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.22), 0 0 28px var(--glow);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 850;
}

.nav a:hover {
  color: var(--metal);
  background: var(--smoke);
}

main {
  padding: 24px 16px 56px;
}

.hero {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  min-height: clamp(430px, 56vw, 690px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--black);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.68);
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.32) 48%, rgba(5, 5, 5, 0.92)),
    linear-gradient(0deg, rgba(5, 5, 5, 0.94), transparent 62%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(620px, calc(100% - 48px));
  min-height: inherit;
  padding: clamp(28px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: #f5f2e9;
  font-size: clamp(3.2rem, 10vw, 9rem);
  line-height: 0.83;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 18px 52px #000;
}

.hero-description {
  max-width: 54ch;
  margin: 18px 0 0;
  color: rgba(245, 242, 233, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 650;
}

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

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary,
.copy-button {
  color: #070707;
  background: linear-gradient(135deg, #f2f0e9, #8a8883);
  box-shadow: 0 16px 36px rgba(215, 211, 201, 0.16);
}

.button.secondary {
  color: var(--metal);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.sigils {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, var(--max-width));
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090909;
}

.sigils span {
  min-height: 74px;
  padding: 20px;
  color: var(--muted);
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  border-right: 1px solid var(--line);
}

.sigils span:last-child {
  border-right: 0;
}

.forge,
.vault-grid,
.token {
  width: min(100%, var(--max-width));
  margin: 18px auto 0;
}

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

.emblem-card,
.forge-copy,
.vault-grid article,
.token {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent),
    var(--stone);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.emblem-card {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.emblem-card img {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  background: #000;
}

.emblem-card span,
.token-row span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.emblem-card strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.forge-copy {
  padding: clamp(26px, 5vw, 46px);
}

.forge-copy h2,
.token h2 {
  margin: 0;
  color: #f6f3eb;
  font-size: clamp(2.1rem, 5vw, 5.2rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.forge-copy p:not(.eyebrow),
.vault-grid p {
  color: var(--muted);
  font-weight: 650;
}

.forge-copy p:not(.eyebrow) {
  max-width: 62ch;
  margin: 18px 0 0;
}

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

.vault-grid article {
  min-height: 228px;
  padding: 20px;
}

.vault-grid span {
  color: #f3f0e8;
  font-size: 2rem;
  font-weight: 950;
}

.vault-grid h3 {
  margin: 22px 0 10px;
  color: #f3f0e8;
  font-size: 1.16rem;
}

.vault-grid p {
  margin: 0;
}

.token {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: center;
  padding: clamp(26px, 5vw, 42px);
}

.token-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080808;
}

.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.token-row strong {
  text-align: right;
}

.copy-button {
  width: 100%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, var(--max-width));
  margin: 22px auto 0;
  padding: 24px 16px 38px;
  color: var(--muted);
  font-weight: 850;
}

@media (max-width: 940px) {
  .topbar,
  .hero,
  .sigils,
  .forge,
  .vault-grid,
  .token {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .forge,
  .token {
    grid-template-columns: 1fr;
  }

  .emblem-card {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
  }

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

  .vault-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav {
    justify-content: flex-start;
  }

  main {
    padding-inline: 0;
  }

  .hero {
    min-height: 540px;
  }

  .hero-image::after {
    background:
      linear-gradient(0deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.2) 78%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.45), transparent);
  }

  .hero-copy {
    width: 100%;
    padding: 24px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 5.2rem);
  }

  .button {
    flex: 1 1 132px;
  }

  .sigils {
    grid-template-columns: 1fr;
  }

  .sigils span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .emblem-card {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    width: min(calc(100% - 24px), var(--max-width));
  }
}
