:root {
  --bg: #050a08;
  --bg-raise: rgba(8, 22, 16, 0.72);
  --ink: #edfff6;
  --muted: #9bb5a8;
  --green: #00ec97;
  --green-deep: #067a52;
  --line: rgba(0, 236, 151, 0.28);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --wrap: 1120px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Syne", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 236, 151, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(0, 120, 80, 0.2), transparent 50%),
    var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, a { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.55;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.aurora span:nth-child(1) {
  width: 42vw;
  height: 42vw;
  left: -8%;
  top: 10%;
  background: radial-gradient(circle, rgba(0, 236, 151, 0.35), transparent 68%);
  animation: drift 18s ease-in-out infinite;
}
.aurora span:nth-child(2) {
  width: 36vw;
  height: 36vw;
  right: -6%;
  top: 30%;
  background: radial-gradient(circle, rgba(40, 180, 255, 0.18), transparent 70%);
  animation: drift 22s ease-in-out infinite reverse;
}
.aurora span:nth-child(3) {
  width: 28vw;
  height: 28vw;
  left: 30%;
  bottom: -8%;
  background: radial-gradient(circle, rgba(0, 255, 170, 0.22), transparent 68%);
  animation: drift 26s ease-in-out infinite;
}
.glow-follow {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(0, 236, 151, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
body.magic-cursor .glow-follow { opacity: 1; }

.cursor { display: none; }
body.magic-cursor .cursor { display: block; }
body.magic-cursor, body.magic-cursor a, body.magic-cursor button { cursor: none; }
.cursor-dot, .cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 80;
  border-radius: 50%;
  transform: translate(-100px, -100px);
}
.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: #fff;
  box-shadow: 0 0 12px var(--green);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(0, 236, 151, 0.85);
  box-shadow: 0 0 18px rgba(0, 236, 151, 0.35);
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, background 0.2s ease;
}
body.cursor-hot .cursor-ring {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(0, 236, 151, 0.12);
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.nav, main, .footer { position: relative; z-index: 2; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 6vw;
  background: rgba(5, 10, 8, 0.72);
  border-bottom: 1px solid rgba(0, 236, 151, 0.12);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand img, .footer img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 0 18px rgba(0, 236, 151, 0.35);
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-right: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--ink); }
.nav-pill {
  color: var(--bg);
  background: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: rgba(0, 236, 151, 0.12);
  color: var(--ink);
  font-weight: 700;
  padding: 8px 14px;
}

.wrap { width: min(var(--wrap), calc(100% - 10vw)); margin: 0 auto; }
.hero {
  width: min(var(--wrap), calc(100% - 10vw));
  margin: 0 auto;
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 36px 0 64px;
}
.kicker, .eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2 { font-family: var(--display); line-height: 0.95; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(4.4rem, 9vw, 7.4rem); font-weight: 800; }
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #fff, var(--green) 40%, #9af7ff 70%, #fff);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s linear infinite;
}
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 16px; }
.ticker {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--green);
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 38rem; }
.hero-actions, .socials { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-solid {
  background: linear-gradient(180deg, #1dffb0, var(--green-deep));
  color: #04140e;
  border-color: transparent;
  font-weight: 800;
}
.btn-ghost:hover, .text-copy:hover { border-color: var(--green); }
.ca-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.ca-value, .text-copy, .footer .copy-ca {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0;
  font-size: 0.78rem;
  word-break: break-all;
}
.hero .copy-ca, .footer .copy-ca {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.portrait {
  position: relative;
  width: min(100%, 460px);
  justify-self: end;
  aspect-ratio: 1;
}
.portrait img {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  margin: 11%;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: var(--shadow), 0 0 40px rgba(0, 236, 151, 0.25);
}
.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(0, 236, 151, 0.45);
  animation: spin 22s linear infinite;
}
.orbit-b { inset: 8%; animation-duration: 16s; animation-direction: reverse; border-style: solid; opacity: 0.7; }
.orbit-c { inset: 18%; animation-duration: 12s; border-color: rgba(180, 255, 230, 0.35); }
.orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  top: -5px;
  left: 50%;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(0, 236, 151, 0.16);
  background: rgba(0, 236, 151, 0.04);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.marquee span {
  padding: 14px 28px;
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee span::before {
  content: "✦";
  margin-right: 28px;
  color: var(--green);
}

.band { padding: 88px 0; }
.split, .token-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.lore-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.spot, .token-card, .chart-card, .social {
  position: relative;
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid rgba(0, 236, 151, 0.16);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.spot::before, .social::before, .token-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 236, 151, 0.16), transparent 42%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.spot:hover::before, .social:hover::before, .token-card:hover::before { opacity: 1; }
.lore-list li { padding: 18px 20px; }
.lore-list strong { display: block; font-family: var(--display); margin-bottom: 6px; }
.lore-list span, .fine, .section-head p, .footer p { color: var(--muted); }
.banner { margin: 0; }
.banner img {
  width: 100%;
  height: auto;
  display: block;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.section-head { max-width: 640px; margin-bottom: 28px; }
.frame-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.frame-grid-3 { grid-template-columns: repeat(3, 1fr); }
.frame {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
.frame img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  border: 1px solid rgba(0, 236, 151, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.frame:hover img {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 20px 50px rgba(0, 236, 151, 0.16);
}
.frame figcaption, .frame span {
  color: var(--muted);
  font-size: 0.92rem;
}
.token-card, .chart-card { padding: 28px; }
.token-card dl { margin: 8px 0 0; }
.token-card dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.token-card dt { color: var(--muted); }
.token-card dd { margin: 0; font-weight: 700; }
.text-copy {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.candles {
  height: 220px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 0 18px;
}
.candles i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #d9ffe9, var(--green) 40%, #045c3d);
  box-shadow: 0 0 16px rgba(0, 236, 151, 0.35);
  transform-origin: bottom;
  animation: rise 2.8s ease-in-out infinite;
}
.candles i:nth-child(odd) { animation-delay: 0.2s; }
.candles i:nth-child(3n) { animation-delay: 0.45s; opacity: 0.85; }
.community-inner h2 { max-width: 16ch; }
.socials { margin-top: 8px; }
.social {
  min-width: 200px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  display: grid;
}
.social span { color: var(--green); }
.footer { padding: 28px 0 48px; border-top: 1px solid rgba(0, 236, 151, 0.12); }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer p { margin: 0; flex: 1; font-size: 0.92rem; }

.lightbox {
  width: min(920px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #07140f;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.72); }
.lightbox img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.lightbox figcaption { margin-top: 10px; color: var(--muted); }
.lightbox-close {
  float: right;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 6px 12px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--green);
  color: #04140e;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.in {
  animation: rise-in 0.8s ease forwards;
}

@keyframes sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(4%, -6%, 0); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes rise {
  0%, 100% { transform: scaleY(0.92); }
  50% { transform: scaleY(1); }
}
@keyframes rise-in {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero, .split, .token-layout, .frame-grid, .frame-grid-3 { grid-template-columns: 1fr 1fr; }
  .portrait { justify-self: center; }
  .hero { min-height: auto; padding-top: 28px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 6vw 16px;
    background: rgba(5, 10, 8, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-pill { display: none; }
  .hero, .split, .token-layout, .frame-grid, .frame-grid-3, .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }
  .footer-inner { justify-items: start; }
  h1 { font-size: 3.6rem; }
  .hero { gap: 8px; padding-top: 12px; padding-bottom: 28px; }
  .portrait { width: min(78%, 230px); }
  .lede { font-size: 1rem; }
  .token-card dl div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
