:root {
  --ink: #07140c;
  --void: #020805;
  --matrix: #00ff41;
  --matrix-dim: #0c3d18;
  --matrix-soft: #7dff8a;
  --paper: #f3ead2;
  --paper-dark: #e4d5b0;
  --ticket: #fff8e6;
  --blue: #1a5cff;
  --red: #dc1f26;
  --gold: #f5d742;
  --tan: #c4a882;
  --line: #101410;
  --gutter: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: "Comic Neue", "Trebuchet MS", sans-serif;
  background: var(--void);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

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

.matrix-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 255, 65, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(26, 92, 255, 0.08), transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 46px,
      rgba(0, 255, 65, 0.045) 47px,
      rgba(0, 255, 65, 0.045) 48px
    ),
    #020805;
}

#rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.28;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
}

.site {
  position: relative;
  z-index: 2;
}

.desk {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 36px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: #071109;
  border: 5px solid #0a0f0b;
  box-shadow: 8px 8px 0 #00c834;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;
  padding: 3px;
  background: #031208;
  border: 3px solid var(--matrix);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.brand-ticker {
  margin-top: 4px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--matrix);
}

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

.nav-links a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border: 2px solid transparent;
}

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

.nav-buy {
  background: var(--matrix);
  color: #031208 !important;
  border-color: #031208 !important;
  font-weight: 700;
}

.nav-buy:hover {
  background: var(--gold);
  color: #031208 !important;
}

.ca-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 14px;
  background: #04160a;
  border: 3px solid #0f2a16;
}

.ca-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--matrix-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.ca-value {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: #fff;
  overflow-wrap: anywhere;
  text-align: right;
}

.ca-copy {
  border: 2px solid var(--matrix);
  background: transparent;
  color: var(--matrix);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.ca-copy:hover,
.ca-copy.is-copied {
  background: var(--matrix);
  color: #031208;
}

.panel {
  margin-top: var(--gutter);
  border: 5px solid #0a0f0b;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  background: #06140c;
  box-shadow: 8px 8px 0 #1670ff;
}

.hero-art {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(0, 255, 65, 0.08), transparent 30%),
    #030a06;
  border-right: 5px solid #0a0f0b;
}

.monitor {
  padding: 12px;
  background: #010604;
  border: 4px solid #14351c;
  box-shadow: inset 0 0 0 3px #00ff4133;
}

.monitor img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.led-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.led-green { background: var(--matrix); }
.led-gold { background: var(--gold); }
.led-red { background: var(--red); }

.hero-copy {
  padding: 28px 26px 24px;
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    repeating-conic-gradient(from 0deg, transparent 0 8deg, rgba(0, 255, 65, 0.04) 8deg 9deg);
  pointer-events: none;
}

.kicker {
  position: relative;
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #031208;
  background: var(--gold);
  padding: 5px 9px;
  border: 2px solid #0a0f0b;
}

.display {
  position: relative;
  margin: 12px 0 6px;
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  line-height: 0.86;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 3px 0 #ff2f86, -3px 0 #18e0ff, 4px 4px 0 #031208;
}

.symbol {
  position: relative;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1rem;
  color: var(--matrix);
  letter-spacing: 0.16em;
}

.equation {
  position: relative;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.eq-chip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Permanent Marker", cursive;
  font-size: 1.05rem;
  color: var(--paper);
}

.eq-chip span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--matrix-soft);
}

.bubble {
  position: relative;
  margin: 22px 0 0;
  background: var(--paper);
  color: #1a1408;
  padding: 16px 18px 18px;
  border: 3px solid #0a0f0b;
  border-radius: 22px;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -14px;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border-right: 3px solid #0a0f0b;
  border-bottom: 3px solid #0a0f0b;
  transform: rotate(45deg);
}

.bubble p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.cta-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 3px solid #0a0f0b;
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  box-shadow: 4px 4px 0 #0a0f0b;
}

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

.btn-buy {
  background: var(--matrix);
  color: #031208;
}

.btn-chart {
  background: var(--blue);
  color: #fff;
}

.btn-x {
  background: #0a0f0b;
  color: #fff;
}

.about {
  background: var(--paper);
  color: #1c160c;
  box-shadow: 8px 8px 0 #dc1f26;
}

.about-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 18px 22px 10px;
  border-bottom: 4px dashed #1c160c;
}

.section-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 4px 0 0;
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.about .section-tag { color: #8a3b12; }
.about .section-title { color: #1c160c; }

.issue-stamp {
  font-family: "Permanent Marker", cursive;
  font-size: 0.95rem;
  color: var(--red);
  transform: none;
  border: 3px solid var(--red);
  padding: 6px 10px;
  white-space: nowrap;
}

.banner-well {
  padding: 18px 18px 8px;
}

.banner-frame {
  background: #111;
  padding: 8px;
  border: 4px solid #1c160c;
}

.banner-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-body {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 18px;
  padding: 8px 22px 24px;
}

.pull-quote {
  margin: 0;
  font-family: "Permanent Marker", cursive;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #8a3b12;
}

.about-body p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.55;
  font-weight: 700;
}

.howto {
  background: #08150e;
  box-shadow: 8px 8px 0 #f5d742;
}

.howto-head {
  padding: 20px 22px 8px;
}

.howto .section-tag { color: var(--gold); }
.howto .section-title { color: #fff; }

.tickets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 18px 22px;
}

.ticket {
  background: var(--ticket);
  color: #1c160c;
  border: 3px dashed #1c160c;
  padding: 14px 12px 16px;
  min-width: 0;
}

.ticket-no {
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.8rem;
  color: var(--red);
  line-height: 1;
}

.ticket h3 {
  margin: 8px 0 8px;
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.ticket p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.ticket i {
  font-size: 1.4rem;
  color: var(--blue);
}

.community {
  background:
    linear-gradient(180deg, rgba(0, 255, 65, 0.06), transparent 40%),
    #04110a;
  box-shadow: 8px 8px 0 #00ff41;
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 18px 22px 24px;
}

.community .section-tag { color: var(--matrix-soft); }
.community .section-title { color: #fff; }

.community-copy p {
  margin: 12px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  color: #d8f5d8;
}

.logo-well {
  margin-top: 18px;
  max-width: 220px;
  padding: 8px;
  background: #010604;
  border: 3px solid #1a5a28;
}

.logo-well img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.badge-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 168px;
  padding: 18px 10px;
  border: 4px solid #0a0f0b;
  text-align: center;
  box-shadow: 5px 5px 0 #0a0f0b;
}

.badge:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #0a0f0b;
}

.badge i {
  font-size: 2rem;
}

.badge strong {
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
}

.badge span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-x {
  background: #111;
  color: #fff;
}

.badge-buy {
  background: var(--matrix);
  color: #031208;
}

.badge-dex {
  background: var(--blue);
  color: #fff;
}

.colophon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 14px 8px 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: #8bb894;
}

@media (max-width: 900px) {
  .hero,
  .about-body,
  .community-grid,
  .tickets {
    grid-template-columns: 1fr;
  }

  .hero-art {
    border-right: 0;
    border-bottom: 5px solid #0a0f0b;
  }

  .badge-row {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.nav-buy) {
    display: none;
  }
}

@media (max-width: 640px) {
  .desk {
    width: min(100% - 16px, 1180px);
  }

  .masthead {
    padding: 10px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .ca-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .ca-value {
    text-align: left;
  }

  .display {
    font-size: 3rem;
  }
}
