:root {
  color-scheme: dark;
  --bg: #040405;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f8f7f2;
  --muted: rgba(248, 247, 242, 0.68);
  --line: rgba(255, 255, 255, 0.16);
  --chrome: #f1f7ff;
  --accent: #1ed760;
  --accent-two: #ff4fd8;
  --accent-three: #52d6ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.56);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(30, 215, 96, 0.2), transparent 28rem),
    radial-gradient(circle at 86% 22%, rgba(255, 79, 216, 0.18), transparent 24rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

button,
input {
  font: inherit;
}

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

h1,
h2,
h3,
p,
a,
button,
strong,
span,
dd {
  overflow-wrap: anywhere;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 3.5rem;
  background: linear-gradient(to bottom, rgba(4, 4, 5, 0.82), rgba(4, 4, 5, 0));
  backdrop-filter: blur(14px);
}

.brand,
.nav-action,
.nav-links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(30, 215, 96, 0.34);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.nav-links a {
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.nav-action {
  justify-self: end;
  padding: 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: var(--text);
  color: #080809;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: min(88vh, 58rem);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(19rem, 0.78fr);
  align-items: center;
  gap: 5rem;
  padding: 8.5rem 6rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0.3;
  filter: saturate(1.08) contrast(1.1);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 4, 5, 0.94) 0%, rgba(4, 4, 5, 0.72) 46%, rgba(4, 4, 5, 0.32) 100%),
    radial-gradient(circle at 82% 42%, rgba(30, 215, 96, 0.22), transparent 24rem);
}

.hero-grid {
  position: absolute;
  inset: auto 0 0;
  height: 28vh;
  z-index: -1;
  background:
    linear-gradient(to right, transparent, rgba(255, 255, 255, 0.14), transparent),
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(255, 255, 255, 0.14) 63px 64px),
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(255, 255, 255, 0.12) 33px 34px);
  transform: perspective(420px) rotateX(62deg);
  transform-origin: bottom;
  opacity: 0.38;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 45rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 10ch;
  font-size: 5.9rem;
  line-height: 0.9;
  font-weight: 950;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, #fff 0%, #baf7d0 28%, #dff5ff 46%, #ffb8ed 72%, #fff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 42px rgba(255, 255, 255, 0.1);
}

h2 {
  max-width: 14ch;
  font-size: 4.4rem;
  line-height: 0.96;
  font-weight: 950;
}

.hero-copy,
.section-copy p,
.origin-copy p,
.token-copy p,
.rule-list p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.5rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 1.35rem;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: var(--text);
  color: #050505;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.2);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
}

.full-width {
  width: 100%;
}

.hero-art {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(34vw, 30rem);
  min-width: 19rem;
  animation: floatIcon 7s ease-in-out infinite;
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 26px 70px rgba(30, 215, 96, 0.32));
}

.hero-ball {
  width: min(38vw, 34rem);
}

.hero-ball img {
  border-radius: 999px;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 42px rgba(255, 255, 255, 0.18))
    drop-shadow(0 28px 80px rgba(30, 215, 96, 0.28));
}

.orbital {
  position: absolute;
  inset: 8%;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  transform: rotate(-16deg);
  opacity: 0.55;
}

.orbital-two {
  inset: 0;
  border-color: rgba(82, 214, 255, 0.26);
  transform: rotate(28deg);
}

.ticker-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  overflow: visible;
}

.ticker-strip span {
  flex: 0 1 auto;
  color: var(--chrome);
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.moment,
.gallery-section,
.rules,
.token {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 6vw, 6rem);
}

.moment,
.token {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.section-copy {
  max-width: 52rem;
}

.section-copy h2,
.section-copy p {
  max-width: 100%;
}

.origin-lockup {
  display: grid;
  grid-template-columns: minmax(9rem, 0.58fr) minmax(0, 0.42fr);
  align-items: stretch;
  gap: 1rem;
}

.origin-image,
.origin-copy,
.rule-list li,
.token-visual,
.token-copy {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow);
}

.origin-image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
}

.origin-image img,
.token-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.origin-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 16rem;
  padding: 1.25rem;
}

.origin-copy span,
.token-details dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.origin-copy strong {
  margin-top: 0.5rem;
  font-size: 2.7rem;
  line-height: 0.95;
}

.gallery-wrap {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #050505;
  box-shadow: var(--shadow);
}

.gallery-wrap img {
  width: 100%;
  max-height: 62rem;
  object-fit: cover;
}

.cosmos-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.gallery-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 45% 28%, rgba(255, 255, 255, 0.12), transparent 8rem),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.55rem;
}

.rules {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 14% 50%, rgba(82, 214, 255, 0.12), transparent 25rem);
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1.25rem;
}

.rule-list span {
  color: var(--accent);
  font-weight: 950;
}

.rule-list strong {
  margin-top: 0.7rem;
  font-size: 2.15rem;
  line-height: 1;
}

.token {
  grid-template-columns: minmax(16rem, 0.4fr) minmax(0, 0.6fr);
}

.token-visual {
  overflow: hidden;
  aspect-ratio: 1;
}

.token-copy {
  padding: 2.5rem;
}

.token-copy h2 {
  max-width: none;
  font-size: 6rem;
  line-height: 0.95;
}

.token-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.token-details div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.24);
}

.token-details dd {
  margin: 0.45rem 0 0;
  overflow-wrap: anywhere;
  font-size: 1.35rem;
  font-weight: 900;
}

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

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-1rem) rotate(2deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 1rem 2rem;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .moment,
  .token {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 7.5rem 2rem 3rem;
  }

  h1 {
    max-width: 12ch;
    font-size: 4.4rem;
  }

  h2 {
    font-size: 3.35rem;
  }

  .hero-art {
    width: min(74vw, 28rem);
  }

  .hero-ball {
    width: min(78vw, 28rem);
  }

  .moment,
  .gallery-section,
  .rules,
  .token {
    padding: 4.5rem 2rem;
  }

  .origin-lockup {
    grid-template-columns: 1fr;
  }

  .rule-list {
    grid-template-columns: 1fr;
  }

  .rule-list li {
    min-height: 12rem;
  }

  .token-details {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    flex-direction: column;
    padding: 1.25rem 2rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-action {
    min-height: 2.5rem;
    padding: 0 0.95rem;
  }

  .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  h1 {
    max-width: 11ch;
    font-size: 2.72rem;
    line-height: 0.94;
  }

  h2 {
    font-size: 2.35rem;
    line-height: 1;
  }

  .hero,
  .moment,
  .gallery-section,
  .rules,
  .token {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .hero-art {
    width: 100%;
    max-width: 22rem;
    min-width: 0;
  }

  .hero-ball {
    width: 100%;
    max-width: 22rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 3rem;
    padding: 0.75rem 1rem;
  }

  .cosmos-gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gallery-card img {
    padding: 0.45rem;
  }

  .ticker-strip span {
    font-size: 0.9rem;
  }

  .origin-copy strong,
  .rule-list strong {
    font-size: 1.75rem;
  }

  .token-copy h2 {
    font-size: 3.3rem;
  }

  .token-copy {
    padding: 1.25rem;
  }

  .token-details div {
    padding: 0.9rem;
  }

  .token-details dd {
    font-size: 1.1rem;
  }

  .hero-copy,
  .section-copy p,
  .origin-copy p,
  .token-copy p,
  .rule-list p {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-copy,
  .section-copy p,
  .origin-copy p,
  .token-copy p,
  .rule-list p {
    font-size: 0.95rem;
  }

  .ticker-strip {
    gap: 0.5rem;
    padding: 0.7rem;
  }

  .ticker-strip span {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
