:root {
  --bg: #050507;
  --panel: #0d0f14;
  --panel2: #121620;
  --text: #f4f4ef;
  --muted: #8b93a3;
  --line: rgba(255,255,255,.12);
  --green: #b6ff3b;
  --cyan: #54e8ff;
  --pink: #ff4fd8;
  --yellow: #ffd84a;
  --orange: #ff8f3c;
  --shadow: 0 40px 120px rgba(0,0,0,.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 15%, black, transparent 72%);
}

.bg-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 560px;
  height: 560px;
  filter: blur(80px);
  opacity: .25;
  border-radius: 999px;
}

.glow-a {
  top: -180px;
  left: -160px;
  background: var(--cyan);
}

.glow-b {
  right: -180px;
  top: 180px;
  background: var(--pink);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(5,5,7,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.logo-pixel {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #06100a;
  background: var(--green);
  border: 3px solid #eaffb6;
  box-shadow:
    5px 5px 0 #1b341a,
    0 0 30px rgba(182,255,59,.35);
}

.topbar nav {
  display: flex;
  gap: 6px;
}

.topbar nav a {
  padding: 10px 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
}

.topbar nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: var(--line);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
  padding: 66px 5vw 54px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--green);
  background: rgba(182,255,59,.08);
  border: 1px solid rgba(182,255,59,.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.status-pill span {
  width: 9px;
  height: 9px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  margin-top: 24px;
  font-size: clamp(86px, 15vw, 220px);
  line-height: .78;
  letter-spacing: -0.13em;
  text-shadow:
    8px 8px 0 rgba(182,255,59,.12),
    0 0 70px rgba(84,232,255,.2);
}

h1 small {
  display: block;
  max-width: 620px;
  margin-top: 24px;
  font-size: clamp(26px, 3.1vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: var(--text);
}

.lead {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-weight: 900;
  border-radius: 16px;
  transition: .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #07100a;
  background: var(--green);
  box-shadow:
    6px 6px 0 #253d12,
    0 0 44px rgba(182,255,59,.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 670px;
  gap: 12px;
  margin-top: 44px;
}

.hero-metrics div {
  padding: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.hero-metrics b {
  display: block;
  font-size: 26px;
  letter-spacing: -0.06em;
}

.hero-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.console-card {
  width: min(100%, 470px);
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035)),
    #0a0d13;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.console-top {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
}

.console-top span {
  width: 12px;
  height: 12px;
  background: var(--line);
  border-radius: 99px;
}

.console-top span:nth-child(1) { background: var(--pink); }
.console-top span:nth-child(2) { background: var(--yellow); }
.console-top span:nth-child(3) { background: var(--green); }

.console-top strong {
  margin-left: auto;
  font-size: 11px;
}

.screen {
  position: relative;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 45%, rgba(84,232,255,.18), transparent 52%),
    #020305;
  border: 2px solid #1d2532;
  border-radius: 24px;
  overflow: hidden;
}

.screen canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  border-radius: 16px;
  background: #060810;
}

.screen-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.05),
    rgba(255,255,255,.05) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
  opacity: .38;
}

.console-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 6px 2px;
}

.console-info b,
.console-info span {
  display: block;
}

.console-info span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

code {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--green);
  color: #050507;
  font-weight: 950;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.ticker div {
  display: inline-block;
  padding: 14px 0;
  animation: move 24s linear infinite;
}

@keyframes move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mint,
.gallery,
.protocol {
  padding: 90px 5vw;
}

.section-title {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-title p,
.protocol-card p {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-title h2,
.protocol-copy h2,
.protocol-card h2 {
  margin-top: 12px;
  font-size: clamp(42px, 7vw, 96px);
  line-height: .9;
  letter-spacing: -0.1em;
}

.mint-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.mint-box,
.rules div,
.protocol-card,
.protocol-copy,
.gallery-item {
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 26px 80px rgba(0,0,0,.25);
}

.mint-box {
  padding: 30px;
}

.mint-label {
  display: inline-flex;
  padding: 8px 10px;
  color: var(--green);
  background: rgba(182,255,59,.08);
  border: 1px solid rgba(182,255,59,.24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.mint-box h3 {
  margin-top: 22px;
  font-size: 42px;
  letter-spacing: -0.07em;
}

.mint-box p,
.rules p,
.protocol-copy p,
.protocol-card span {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.72;
}

.mint-form {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.mint-form input {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
}

.mint-form input:focus {
  border-color: rgba(182,255,59,.65);
  box-shadow: 0 0 0 4px rgba(182,255,59,.1);
}

.mint-form button {
  height: 58px;
  padding: 0 22px;
  color: #050507;
  background: var(--green);
  border: 0;
  border-radius: 16px;
  font-weight: 950;
  cursor: pointer;
}

.mint-message {
  min-height: 24px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.mint-message.ok { color: var(--green); }
.mint-message.bad { color: #ff6b8b; }

.rules {
  display: grid;
  gap: 14px;
}

.rules div {
  padding: 24px;
}

.rules b {
  display: inline-flex;
  color: var(--green);
  font-size: 12px;
}

.rules h4 {
  margin-top: 10px;
  font-size: 24px;
  letter-spacing: -0.06em;
}

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

.gallery-item {
  padding: 10px;
  transition: .18s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(182,255,59,.42);
}

.gallery-item canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #05070d;
  border-radius: 18px;
}

.gallery-meta {
  padding: 12px 4px 4px;
}

.gallery-meta b,
.gallery-meta span {
  display: block;
}

.gallery-meta b {
  font-size: 15px;
  letter-spacing: -0.03em;
}

.gallery-meta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.badges em {
  padding: 5px 7px;
  color: var(--green);
  background: rgba(182,255,59,.07);
  border: 1px solid rgba(182,255,59,.18);
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.protocol {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
}

.protocol-card,
.protocol-copy {
  padding: 30px;
}

.protocol-card code {
  display: block;
  margin-top: 18px;
  padding: 18px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 15px;
}

.protocol-card span {
  display: block;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 5vw 52px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer b {
  color: var(--text);
}

@media (max-width: 1120px) {
  .hero,
  .mint-layout,
  .protocol {
    grid-template-columns: 1fr;
  }

  .hero-right {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  .topbar {
    height: auto;
    padding: 18px 5vw;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: 92px;
  }

  h1 small {
    font-size: 28px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .console-info,
  .mint-form,
  footer {
    flex-direction: column;
  }

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

  .mint,
  .gallery,
  .protocol {
    padding: 68px 5vw;
  }
}
