:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #f3f3f3;
  --muted: #8f8f8f;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --eth-blue: #86a8ff;
  --steel: #b8c0ca;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 82% 6%, rgba(134, 168, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #050505 0%, #000 48%, #050505 100%);
}

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

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

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: block;
  width: clamp(118px, 16vw, 174px);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 34px);
  color: #d9d9d9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header nav a {
  position: relative;
  padding-block: 8px;
}

.site-header nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100svh - 160px));
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.78) 38%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.92) 100%);
}

.hero::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.22;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-img {
  position: absolute;
  object-fit: cover;
  filter: grayscale(1) contrast(1.16) brightness(0.78);
}

.hero-img-primary {
  top: 0;
  right: 0;
  width: min(66vw, 820px);
  height: 100%;
  object-position: center;
  opacity: 0.92;
}

.hero-img-secondary,
.hero-img-tertiary {
  width: min(30vw, 360px);
  aspect-ratio: 1;
  opacity: 0.34;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-img-secondary {
  right: min(46vw, 560px);
  bottom: 42px;
}

.hero-img-tertiary {
  right: 38px;
  bottom: -48px;
}

.hero-content {
  align-self: center;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 104px);
  padding-block: 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.46em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--fg);
  font-family: Impact, "Arial Black", Inter, sans-serif;
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(76px, 15vw, 184px);
  text-shadow: 0 0 1px #fff, 0 18px 58px rgba(0, 0, 0, 0.75);
}

h2 {
  font-size: clamp(44px, 8vw, 92px);
  max-width: 980px;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: #d8d8d8;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.button,
.contract-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 0;
  border: 2px solid #f7f7f7;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button {
  min-width: 212px;
  padding: 0 28px;
}

.button:hover,
.button:focus-visible,
.contract-button:hover,
.contract-button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: #f7f7f7;
  color: #000;
}

.button-secondary {
  background: transparent;
  color: #fff;
}

.button-icon {
  width: 18px;
  margin-right: 10px;
  font-size: 18px;
  line-height: 1;
}

.section {
  width: min(var(--max-width), calc(100% - 36px));
  margin-inline: auto;
  padding-block: clamp(76px, 12vw, 140px);
}

.mindset {
  padding-top: clamp(18px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.mindset-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
  color: #b6b6b6;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.mindset-copy p {
  margin: 0;
}

.token {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

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

.stat,
.lore-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.stat {
  min-height: 146px;
  padding: 22px;
}

.stat span,
.lore-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 22px;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.contract {
  display: grid;
  justify-items: center;
  text-align: center;
  border-block: 1px solid var(--line);
}

.contract-button {
  width: min(100%, 720px);
  min-height: 76px;
  margin-top: 32px;
  padding: 0 22px;
  gap: 18px;
  background: #f3f3f3;
  color: #000;
}

.contract-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(18px, 3.2vw, 34px);
  letter-spacing: 0.02em;
  text-transform: none;
}

.copy-label {
  flex: 0 0 auto;
  color: #555;
}

.contract-note {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.lore-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.lore-heading p {
  max-width: 360px;
  margin: 0 0 8px;
  color: #a8a8a8;
  font-size: 16px;
  line-height: 1.55;
}

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

.lore-card {
  overflow: hidden;
}

.lore-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.lore-card div {
  padding: 18px;
}

.lore-card strong {
  display: block;
  margin-top: 9px;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 58px 18px 72px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer img {
  width: 170px;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: #f3f3f3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: #f3f3f3;
  color: #000;
  transform: translateY(-2px);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #f3f3f3;
  color: #000;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 104px;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    font-size: 11px;
  }

  .hero {
    min-height: min(620px, calc(100svh - 150px));
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.98) 64%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.18));
  }

  .hero-img-primary {
    width: 100%;
    height: 60%;
    object-position: center top;
    opacity: 0.64;
  }

  .hero-img-secondary,
  .hero-img-tertiary {
    display: none;
  }

  .hero-content {
    align-self: center;
    margin-left: 18px;
    padding-block: 36px;
  }

  h1 {
    font-size: clamp(64px, 17vw, 104px);
  }

  .hero-copy {
    max-width: 420px;
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .mindset {
    padding-top: 14px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .mindset-copy,
  .token,
  .gallery {
    grid-template-columns: 1fr;
  }

  .lore-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .token-grid {
    grid-template-columns: 1fr;
  }

  .contract-button {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
  }
}
