:root {
  --ink: #070b12;
  --navy: #0b1524;
  --paper: #f4e7c6;
  --paper-2: #e8d7a8;
  --red: #d61f26;
  --red-deep: #8d1218;
  --gold: #e4b31a;
  --gold-deep: #9a7610;
  --lime: #6cff4d;
  --line: #1c334d;
  --edge: 5px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--paper);
  background: var(--navy);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: Anton, Impact, sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.9;
  margin: 0;
}

.blueprint {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(214, 31, 38, 0.18), transparent 58%),
    radial-gradient(800px 480px at 88% 92%, rgba(228, 179, 26, 0.14), transparent 60%),
    linear-gradient(180deg, #08101b 0%, #0c1a2c 48%, #08131f 100%);
}

.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 140, 180, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 140, 180, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 88%);
}

.halftone {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.8px, transparent 1.1px);
  background-size: 5px 5px;
}

.nav-shell {
  position: sticky;
  top: 14px;
  z-index: 40;
  padding: 0 18px;
}

.nav-plate {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(8, 14, 22, 0.88);
  border: var(--edge) solid #111;
  box-shadow: 7px 7px 0 #111;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #111;
  border: 3px solid var(--gold);
}

.brand strong {
  display: block;
  font-family: Anton, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--lime);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-links a {
  color: var(--paper);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 3px solid #111;
  background: var(--gold);
  color: #111;
  font-size: 1.4rem;
}

.btn-iso {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 3px solid #111;
  box-shadow: 4px 4px 0 #111;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-iso:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #111;
}

.btn-iso--buy {
  background: var(--lime);
}

.btn-iso--dex {
  background: var(--gold);
}

.btn-iso--x {
  background: var(--paper);
}

.console {
  max-width: 1240px;
  margin: 28px auto 80px;
  padding: 0 18px;
  display: grid;
  gap: 64px;
}

.slab {
  position: relative;
  isolation: isolate;
}

.slab-face {
  position: relative;
  z-index: 2;
  background: #101820;
  border: var(--edge) solid #111;
}

.slab-east,
.slab-south {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.slab-east {
  top: 16px;
  right: -22px;
  width: 22px;
  height: calc(100% - 8px);
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  border: 3px solid #111;
  transform: skewY(-32deg);
}

.slab-south {
  left: 14px;
  bottom: -18px;
  width: calc(100% - 8px);
  height: 18px;
  background: linear-gradient(90deg, var(--red), var(--red-deep));
  border: 3px solid #111;
  transform: skewX(-42deg);
}

.slab--hero {
  width: min(100%, 1080px);
  justify-self: start;
}

.slab--about {
  width: min(100%, 1080px);
  justify-self: end;
}

.slab--buy,
.slab--community {
  width: 100%;
}

.slab--hero .slab-face {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) 1.15fr;
  min-height: 620px;
}

.hero-art {
  position: relative;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.15), rgba(8, 12, 18, 0.55)),
    var(--shot) center 18% / cover no-repeat;
  border-right: 4px solid #111;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 16px 28px;
  overflow: hidden;
}

.hero-art img {
  width: min(100%, 420px);
  height: auto;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
}

.sfx {
  position: absolute;
  font-family: "Permanent Marker", cursive;
  color: var(--gold);
  text-shadow: 3px 3px 0 #111;
  transform: rotate(-12deg);
}

.sfx--pull {
  top: 22px;
  left: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.sfx--pct {
  right: 16px;
  bottom: 28px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--lime);
  transform: rotate(8deg);
}

.hero-copy {
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.94), rgba(16, 24, 32, 0.88));
}

.stamp {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 2px dashed var(--red);
  color: var(--red);
  font-family: "Permanent Marker", cursive;
  font-size: 0.82rem;
  transform: rotate(-2deg);
}

h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
}

.ticker {
  margin: 10px 0 18px;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.balloon {
  position: relative;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--paper);
  color: #16120b;
  border: 4px solid #111;
  border-radius: 22px;
  font-size: 1.08rem;
  font-weight: 700;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -16px;
  border: 10px solid transparent;
  border-top-color: #111;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.ca-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #0a1018;
  border: 3px solid #111;
}

.ca-rail span {
  font-weight: 800;
  color: var(--gold);
}

.ca-rail code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d7e6f5;
  font-size: 0.82rem;
}

.ca-rail button {
  border: 3px solid #111;
  background: var(--paper);
  color: #111;
  font-weight: 800;
  padding: 6px 10px;
}

.slab--about .slab-face {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "copy stage"
    "evidence evidence";
  background:
    linear-gradient(180deg, rgba(10, 16, 24, 0.82), rgba(10, 16, 24, 0.9)),
    var(--shot, none);
}

.about-copy {
  grid-area: copy;
  padding: clamp(28px, 4vw, 46px);
}

.about-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.about-copy h2 span,
.buy-head h2 span {
  color: var(--lime);
}

.lead {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #efe4c6;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pills li {
  padding: 8px 12px;
  border: 2px solid #d5e4f2;
  background: rgba(8, 14, 22, 0.7);
  font-size: 0.86rem;
  font-weight: 700;
}

.about-stage {
  grid-area: stage;
  min-height: 360px;
  margin: 18px 18px 0 0;
  border: 4px solid #111;
  background: var(--shot) center 16% / cover no-repeat;
  box-shadow: 8px 8px 0 #111;
  position: relative;
}

.about-stage .caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: var(--paper);
  color: #111;
  font-weight: 800;
  font-size: 0.75rem;
  border: 2px solid #111;
}

.evidence {
  grid-area: evidence;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px 22px 24px;
}

.evidence figure {
  margin: 0;
  background: var(--paper-2);
  border: 4px solid #111;
  box-shadow: 5px 5px 0 #111;
  padding: 10px 10px 8px;
}

.evidence img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #0d1118;
}

.evidence figcaption {
  margin-top: 8px;
  color: #111;
  font-family: "Permanent Marker", cursive;
  font-size: 0.9rem;
}

.slab--buy .slab-face {
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.78), rgba(8, 12, 18, 0.88)),
    url("3.png") center 20% / cover no-repeat;
}

.buy-head {
  margin-bottom: 22px;
}

.buy-head h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

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

.cube {
  position: relative;
  min-height: 240px;
  padding: 22px 18px 20px;
  background: rgba(244, 231, 198, 0.94);
  color: #16120b;
  border: 4px solid #111;
  box-shadow: 8px 8px 0 #111;
}

.cube:first-child {
  background:
    linear-gradient(180deg, rgba(244, 231, 198, 0.88), rgba(244, 231, 198, 0.94)),
    var(--shot) center 20% / cover no-repeat;
}

.cube b {
  font-family: Anton, sans-serif;
  font-size: 2.2rem;
  color: var(--red);
}

.cube h3 {
  margin: 6px 0 10px;
  font-size: 1.7rem;
}

.cube p {
  margin: 0 0 14px;
  font-weight: 600;
}

.ca-rail--tight {
  padding: 8px;
  background: #111;
}

.ca-rail--tight code {
  color: var(--lime);
}

.slab--community .slab-face {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(6, 10, 16, 0.28), rgba(6, 10, 16, 0.72)),
    var(--shot) center / cover no-repeat;
}

.community-veil {
  max-width: 760px;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
}

.community-veil h2 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.foot {
  max-width: 1240px;
  margin: 0 auto 36px;
  padding: 0 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: #c9d6e4;
}

.foot img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 3px solid #111;
  background: #111;
}

.foot small {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-ca {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  background: var(--lime);
  color: #111;
  border: 3px solid #111;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.toast-ca.is-on {
  opacity: 1;
  transform: none;
}

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

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 16px;
    background: #101820;
    border: 4px solid #111;
    z-index: 50;
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-shell {
    position: sticky;
  }

  .nav-plate {
    position: relative;
  }

  .slab--hero .slab-face,
  .slab--about .slab-face,
  .buy-grid,
  .evidence {
    grid-template-columns: 1fr;
  }

  .slab--about .slab-face {
    grid-template-areas:
      "copy"
      "stage"
      "evidence";
  }

  .about-stage {
    margin: 0 18px 8px;
    min-height: 280px;
  }

  .slab-east,
  .slab-south {
    display: none;
  }

  .hero-art {
    min-height: 360px;
    border-right: 0;
    border-bottom: 4px solid #111;
  }
}

@media (max-width: 640px) {
  .nav-actions .btn-iso span,
  .brand em {
    display: none;
  }

  .evidence img {
    height: 160px;
  }

  h1 {
    font-size: 3rem;
  }
}
