:root {
  --bg: #0c0c0a;
  --ink: #f4f1ea;
  --muted: #a9a49a;
  --dim: #6f6a62;
  --panel: #1d1a17;
  --line: rgba(244, 241, 234, 0.14);
  --pink: #ff6ce8;
  --lime: #c8ff00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
}

.scene-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0c0c0a;
}

.scene-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 12%, rgba(200, 255, 0, 0.07), transparent 20%),
    radial-gradient(circle at 86% 40%, rgba(255, 108, 232, 0.07), transparent 23%),
    linear-gradient(180deg, rgba(12, 12, 10, 0.2), rgba(12, 12, 10, 1));
}

.blur-card {
  position: absolute;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--peg) center / cover no-repeat;
  filter: blur(3px);
  opacity: 0.32;
}

.b1 { left: 38%; top: 6%; transform: rotate(2deg); }
.b2 { left: 76%; top: 20%; transform: rotate(8deg); }
.b3 { left: 18%; top: 31%; transform: rotate(-8deg); }
.b4 { left: 64%; top: 57%; transform: rotate(5deg); }
.b5 { left: 88%; top: 66%; transform: rotate(-7deg); }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  height: 72px;
  padding: 0 31px;
  background: rgba(12, 12, 10, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.app-header nav,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 22px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  background: var(--peg) center / contain no-repeat;
  image-rendering: pixelated;
}

.app-header nav {
  gap: 28px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.app-header nav a.active {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
}

.header-actions {
  justify-self: end;
  gap: 8px;
}

.theme-button,
.connect-button {
  min-height: 36px;
  border-radius: 4px;
}

.theme-button {
  width: 36px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #11100e;
}

.connect-button {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #11100e;
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.explore {
  width: min(1232px, calc(100% - 62px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.gallery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: 150px;
  margin-bottom: 22px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--pink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: 55px;
  line-height: 0.95;
  letter-spacing: 0;
}

.stats {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 8px 10px;
  align-items: baseline;
  padding-bottom: 11px;
}

.stats strong {
  font-size: 20px;
  font-weight: 500;
}

.stats span {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.search-block {
  max-width: 640px;
}

.search-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.search-label span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.search-label p {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
}

.search-row input,
.search-row button {
  height: 44px;
  border: 0;
}

.search-row input {
  padding: 0 17px;
  color: var(--ink);
  background: #1d1a17;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.search-row button {
  color: #11100e;
  background: #8e8b84;
  cursor: pointer;
}

.filters {
  display: flex;
  gap: 7px;
  margin: 24px 0 16px;
}

.filters button {
  height: 29px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid rgba(244, 241, 234, 0.16);
  background: rgba(12, 12, 10, 0.58);
  cursor: pointer;
}

.filters button.active {
  color: var(--ink);
  border-color: var(--ink);
}

.filters span {
  margin-right: 10px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.gallery-card {
  position: relative;
  min-height: 232px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(244, 241, 234, 0.18);
  border-radius: 4px;
  background: var(--card-bg);
}

.gallery-art {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  background: var(--peg) center / contain no-repeat;
  image-rendering: pixelated;
}

.gallery-card span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}

.info-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--line);
  background: var(--line);
}

.info-row article {
  min-height: 160px;
  padding: 24px;
  background: rgba(16, 15, 13, 0.94);
}

.info-row h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.info-row p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: auto;
  background: rgba(12, 12, 10, 0.98);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-shell {
  position: relative;
  width: min(980px, calc(100% - 96px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 76px 0 78px;
}

.volume {
  margin: 0 0 26px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.intro-shell h1 {
  margin: 0;
  font-size: clamp(80px, 12vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.ticker {
  margin: 10px 0 74px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.intro-thesis h2 {
  max-width: 920px;
  margin-bottom: 28px;
  font-size: clamp(30px, 5vw, 45px);
  line-height: 1.16;
}

.open-app {
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.open-app span {
  margin-left: 10px;
}

.thesis-lines {
  display: grid;
  gap: 30px;
  margin-top: 64px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.thesis-lines article {
  display: grid;
  grid-template-columns: 50px minmax(0, 760px);
  gap: 22px;
}

.thesis-lines span {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.thesis-lines p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.intro-art {
  position: absolute;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(244, 241, 234, 0.1);
  background: var(--peg) center / cover no-repeat;
  filter: blur(2px);
  opacity: 0.28;
}

.a1 { top: 205px; left: 33%; transform: rotate(4deg); }
.a2 { top: 310px; right: 24%; transform: rotate(-7deg); }
.a3 { bottom: 210px; right: 2%; transform: rotate(5deg); }

@media (max-width: 900px) {
  .app-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .app-header nav {
    display: none;
  }

  .explore {
    width: min(100% - 32px, 680px);
  }

  .gallery-hero,
  .info-row {
    grid-template-columns: 1fr;
  }

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

  .stats {
    justify-content: start;
  }
}

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

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

  .intro-shell {
    width: min(100% - 32px, 520px);
  }

  .thesis-lines article {
    grid-template-columns: 38px 1fr;
  }
}
