:root {
  --surface: #0A0014;
  --surface-deep: #07000E;
  --surface-card: rgba(255, 255, 255, 0.075);
  --surface-card-strong: rgba(255, 255, 255, 0.12);
  --text: #F8F7FF;
  --muted: #D8D0F1;
  --line: rgba(255, 255, 255, 0.18);
  --violet: #5D34D0;
  --magenta: #FF006E;
  --cyan: #00F0FF;
  --pink: #FF8BE7;
  --shadow: 0 28px 80px rgba(255, 0, 110, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 240, 255, 0.2), transparent 22rem),
    radial-gradient(circle at 82% 16%, rgba(255, 0, 110, 0.24), transparent 26rem),
    linear-gradient(135deg, #0A0014 0%, #14124B 45%, #38145C 100%);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

body.viewer-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  color: var(--text);
  background: rgba(10, 0, 20, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 2rem);
  color: var(--muted);
  font-size: 0.88rem;
}

.nav a,
.site-footer a {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.25rem);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(22rem, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -12rem;
  top: 8rem;
  width: clamp(22rem, 40vw, 36rem);
  aspect-ratio: 1;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03));
  box-shadow: inset -36px -20px 70px rgba(10, 0, 20, 0.42);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 14%;
  width: min(42rem, 70vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(-7deg);
}

.cosmic-map {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 13% 18%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 14%, rgba(255, 255, 255, 0.3) 0 3px, transparent 4px),
    radial-gradient(circle at 12% 38%, rgba(255, 255, 255, 0.24) 0 2px, transparent 3px),
    linear-gradient(125deg, transparent 0 16%, rgba(255, 255, 255, 0.2) 16.2% 16.4%, transparent 16.6%),
    linear-gradient(105deg, transparent 0 25%, rgba(255, 255, 255, 0.16) 25.2% 25.35%, transparent 25.55%);
  opacity: 0.7;
}

.hero-copy,
.hero-stage {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.badge-row span,
.signal {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.48rem 0.85rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 139, 231, 0.55);
  border-radius: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-row span:last-child {
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.82), rgba(93, 52, 208, 0.72));
  border-color: rgba(255, 139, 231, 0.15);
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1 {
  max-width: 7.2ch;
  margin-bottom: 1.25rem;
  color: var(--pink);
  font-size: clamp(4.2rem, 9.2vw, 7.8rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(255, 0, 110, 0.45);
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(2.3rem, 6.8vw, 6rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 1rem;
  color: var(--pink);
  font-size: 1.05rem;
}

.intro {
  max-width: 42rem;
  color: var(--text);
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  line-height: 1.42;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 42rem;
  margin: 1.8rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.8rem 1.25rem;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.72);
}

.button:focus-visible,
.interactive-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.button.primary {
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  box-shadow: var(--shadow);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.button.is-disabled {
  cursor: default;
  opacity: 0.68;
}

.button.is-disabled:hover,
.button.is-disabled:focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-stage {
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, 32rem);
}

.feature-card {
  width: min(100%, 30rem);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.feature-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.band {
  position: relative;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 20%, rgba(0, 240, 255, 0.11), transparent 25rem);
}

.collection-band,
.gallery-band {
  background: rgba(7, 0, 14, 0.28);
}

.mint-band,
.traits-band {
  background: rgba(255, 255, 255, 0.035);
}

.section-heading,
.collection-grid,
.trait-list,
.gallery,
.mint-panel {
  position: relative;
  z-index: 1;
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 76rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading .signal {
  margin-bottom: 0;
}

.section-heading::after {
  content: attr(data-index);
  position: absolute;
  right: 0;
  top: -1.4rem;
  color: var(--cyan);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 900;
  line-height: 0.76;
  opacity: 0.1;
}

.mint-panel,
.collection-grid article,
.trait-list,
figure {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  backdrop-filter: blur(18px);
}

.mint-panel {
  max-width: 58rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}

.mint-panel p,
.collection-grid p {
  color: var(--muted);
  line-height: 1.65;
}

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

.collection-grid article {
  min-height: 15rem;
  padding: clamp(1.1rem, 3vw, 2rem);
}

.traits-band {
  display: grid;
  justify-items: center;
}

.traits-band .section-heading {
  width: min(100%, 62rem);
  justify-items: center;
  text-align: center;
}

.traits-band .section-heading::after {
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -48%);
  font-size: clamp(7rem, 16vw, 13rem);
}

.trait-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 62rem);
  padding: 0;
  margin: 0;
  overflow: hidden;
  list-style: none;
}

.trait-list li {
  display: grid;
  grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.trait-list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.trait-list li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.trait-list span {
  color: var(--pink);
  font-weight: 800;
}

.trait-list strong {
  color: var(--text);
  text-align: right;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border: 0;
  background: transparent;
}

figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

figure:hover img {
  transform: scale(1.04);
  filter: saturate(1.12);
}

.interactive-card {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.interactive-card:hover,
.interactive-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 139, 231, 0.75);
  box-shadow: 0 24px 60px rgba(255, 0, 110, 0.22);
}

.pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--cyan);
  opacity: 0.25;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  animation: pulse-out 620ms ease-out forwards;
}

@keyframes pulse-out {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(26);
  }
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

figcaption span {
  color: var(--cyan);
  font-weight: 900;
  white-space: nowrap;
}

figcaption strong {
  color: var(--text);
  text-align: right;
}

.site-footer {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  background: var(--surface-deep);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-primary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.social-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(12rem, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.footer-group h2 {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
  text-transform: uppercase;
}

.footer-group a {
  width: fit-content;
  color: var(--muted);
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 0, 20, 0.78);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.viewer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.45fr);
  width: min(68rem, 100%);
  max-height: min(92vh, 52rem);
  overflow: hidden;
  color: var(--text);
  background: rgba(20, 18, 75, 0.9);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  transform: translateY(18px) scale(0.98);
  transition: transform 180ms ease;
}

.viewer-panel:focus {
  outline: 1px solid var(--cyan);
  outline-offset: 0;
}

.viewer.is-open .viewer-panel {
  transform: translateY(0) scale(1);
}

.viewer-art {
  display: grid;
  place-items: center;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border-right: 1px solid var(--line);
}

.viewer-art img {
  width: min(100%, 38rem);
  aspect-ratio: 1;
  object-fit: cover;
}

.viewer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.viewer-kicker {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.viewer-title {
  color: var(--pink);
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.86;
}

.viewer-caption {
  color: var(--muted);
  line-height: 1.5;
}

.viewer-close {
  align-self: flex-start;
  margin-top: auto;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.spark {
  position: fixed;
  z-index: 60;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: spark-fly 560ms ease-out forwards;
}

@keyframes spark-fly {
  to {
    opacity: 0;
    transform: translate(var(--spark-x), var(--spark-y)) rotate(45deg) scale(0.35);
  }
}

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

  .hero-stats,
  .collection-grid,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .viewer-panel {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .viewer-art {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 1fr;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.78rem;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 14vw, 4.15rem);
  }

  .intro {
    font-size: 1.18rem;
  }

  .hero-stats,
  .collection-grid,
  .trait-list,
  .gallery {
    grid-template-columns: 1fr;
  }

  .trait-list li,
  .trait-list li:nth-child(odd),
  figcaption {
    grid-template-columns: 1fr;
    border-right: 0;
    flex-direction: column;
  }

  .footer-primary,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer-directory {
    grid-template-columns: 1fr;
  }

  .trait-list li:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .trait-list li:last-child {
    border-bottom: 0;
  }

  .trait-list strong,
  figcaption strong {
    text-align: left;
  }
}
