:root {
  --bg: #0a0a0a;
  --fg: #e6e6e6;
  --muted: #9aa0a6;
  --acid: #8aff6c;
  --violet: #9d7cff;
  --cyan: #6ce7ff;
  --edge: #121212;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.6) 80%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 2px 4px);
  mix-blend-mode: soft-light;
  opacity: 0.6;
  z-index: 1000;
  animation: grain 10s steps(10) infinite;
}

@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1%, -0.5%);
  }
  50% {
    transform: translate(-1%, 0.5%);
  }
  75% {
    transform: translate(0.5%, 1%);
  }
}

.scanlines {
  position: relative;
  min-height: 100%;
}

.scanlines::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(255, 255, 255, 0.07) 3px 3px);
  z-index: 900;
}

@supports (-webkit-overflow-scrolling: touch) {
  html {
    -webkit-overflow-scrolling: touch;
  }
}

a {
  color: var(--fg);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  top: -40px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.82);
  border-radius: 0.5rem;
  transition: top 0.2s ease;
  z-index: 1100;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, 1100px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 850;
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.25rem;
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  background: linear-gradient(135deg, rgba(157, 124, 255, 0.08), rgba(108, 231, 255, 0.08));
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__copy h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__sub {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__tagline {
  max-width: 32ch;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.hero__frame {
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(157, 124, 255, 0.22), rgba(108, 231, 255, 0.12));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 2rem 3rem rgba(0, 0, 0, 0.45);
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.section__frame {
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(157, 124, 255, 0.2), rgba(108, 231, 255, 0.16));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 1.5rem 2.5rem rgba(0, 0, 0, 0.4);
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bullet-list {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.bullet-list li {
  list-style: square;
}

.aspect-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.aspect-16x9 > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.live-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.5rem;
  color: var(--muted);
}

.live-placeholder__icon {
  font-size: 2.5rem;
  color: var(--violet);
}

.live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.token-cards,
.links-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.link-card {
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h3,
.link-card__title {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card p,
.link-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--edge);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #050505;
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
}

.pill-badge {
  display: inline-flex;
  gap: 0.5ch;
  align-items: center;
  font: 600 0.8rem/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif;
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  background: var(--acid);
  color: #071107;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.35) inset;
}

.glitch {
  position: relative;
  display: inline-block;
  filter: contrast(1.1);
}

@media (prefers-reduced-motion: no-preference) {
  .glitch::before,
  .glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.7;
  }

  .glitch::before {
    transform: translateX(-1px);
    color: var(--violet);
  }

  .glitch::after {
    transform: translateX(1px);
    color: var(--cyan);
  }

  .glitch.animate::before,
  .glitch.animate::after {
    animation: glitch-jump 12s steps(1) infinite;
  }

  @keyframes glitch-jump {
    0%,
    92%,
    100% {
      transform: translateX(0);
    }
    93% {
      transform: translate(2px, -1px);
    }
    94% {
      transform: translate(-2px, 1px);
    }
    95% {
      transform: translate(1px, 0);
    }
    96% {
      transform: translate(-1px, 0);
    }
  }

  .marquee > span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 18s linear infinite;
  }

  .marquee:hover > span {
    animation-play-state: paused;
  }

  @keyframes marquee {
    to {
      transform: translateX(-100%);
    }
  }
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-top: 1rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #111;
  color: var(--fg);
  border: 1px solid var(--edge);
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 950;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.92);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero__inner,
  .section__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-nav {
    gap: 1rem;
    font-size: 0.75rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .live-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .toast,
  .btn,
  .link-card,
  .card {
    transition: none !important;
  }
}
