:root {
  --bg: #050805;
  --ink: #f0f7f2;
  --mute: #8f9f94;
  --metal: #dce6df;
  --lime: #45ff2e;
  --lime-2: #16b84a;
  --lime-dim: rgba(69, 255, 46, 0.12);
  --line: rgba(220, 230, 223, 0.14);
  --display: "Archivo Black", sans-serif;
  --body: "Figtree", sans-serif;
  --wrap: min(1120px, calc(100% - 2.4rem));
  --nav: 72px;
  --hex: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.bg-void {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(ellipse 70% 45% at 70% 20%, rgba(69, 255, 46, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(22, 184, 74, 0.1), transparent 50%),
    linear-gradient(165deg, #030503 0%, #0a120c 50%, #050805 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(69, 255, 46, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 255, 46, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  animation: gridDrift 30s linear infinite;
}

.bg-glow {
  position: fixed;
  inset: auto 10% -20% 10%;
  height: 40vh;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(69, 255, 46, 0.22), transparent 65%);
  filter: blur(8px);
  animation: glowPulse 7s ease-in-out infinite;
}

#trail-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--nav);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: 0.3s ease;
}

.header.is-on {
  background: rgba(5, 8, 5, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(69, 255, 46, 0.45));
}

.brand em {
  font-style: normal;
  color: var(--lime);
}

.links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--metal);
  transition: color 0.2s ease;
}

.links a:hover {
  color: var(--lime);
}

.buy-link {
  padding: 0.55rem 1rem !important;
  color: #041006 !important;
  background: linear-gradient(120deg, var(--lime), var(--lime-2));
  clip-path: var(--hex);
  font-family: var(--display);
  font-size: 0.72rem !important;
  letter-spacing: 0.04em;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--metal);
  transition: 0.25s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav) + 2rem) 0 3.5rem;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.2) brightness(0.4) contrast(1.1);
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-video.is-ready {
  opacity: 0.34;
  animation: vidShift 22s ease-in-out infinite alternate;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 8, 5, 0.92) 0%, rgba(5, 8, 5, 0.5) 50%, rgba(5, 8, 5, 0.8) 100%),
    radial-gradient(circle at 75% 45%, rgba(69, 255, 46, 0.16), transparent 40%);
  pointer-events: none;
}

.hero-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hex-badge {
  margin: 0 0 1rem;
  display: inline-block;
  padding: 0.45rem 1.1rem;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--lime);
  border: 1px solid rgba(69, 255, 46, 0.45);
  background: var(--lime-dim);
  clip-path: var(--hex);
}

.ticker {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  color: var(--lime);
  text-shadow: 0 0 16px rgba(69, 255, 46, 0.45);
}

.hero-text h1 {
  margin: 0;
  display: grid;
  line-height: 0.9;
}

.hero-text .w,
.hero-text .g {
  font-family: var(--display);
  letter-spacing: 0.02em;
}

.hero-text .w {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  color: var(--metal);
}

.hero-text .g {
  font-size: clamp(3rem, 8.5vw, 5.7rem);
  color: var(--lime);
  text-shadow: 0 0 40px rgba(69, 255, 46, 0.4);
  animation: titleGlow 3.5s ease-in-out infinite;
}

.bio {
  margin: 1rem 0 0;
  max-width: 28rem;
  color: var(--mute);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
}

.actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  clip-path: var(--hex);
  transition: 0.2s ease;
}

.btn img {
  width: 15px;
  height: 15px;
}

.btn-fill {
  color: #041006;
  background: linear-gradient(120deg, #8dff5a, var(--lime-2));
  box-shadow: 0 0 28px rgba(69, 255, 46, 0.3);
}

.btn-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(69, 255, 46, 0.5);
}

.btn-ghost {
  color: var(--metal);
  border: 1px solid rgba(220, 230, 223, 0.3);
  background: rgba(6, 12, 8, 0.6);
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-edge {
  color: var(--lime);
  border: 1px solid rgba(69, 255, 46, 0.4);
  background: transparent;
}

.btn-edge:hover {
  background: var(--lime-dim);
}

.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.emblem {
  position: relative;
  z-index: 3;
  width: min(300px, 72%);
  filter: drop-shadow(0 0 30px rgba(69, 255, 46, 0.4));
  animation: emblemFloat 5s ease-in-out infinite;
}

.hex-ring {
  position: absolute;
  width: min(340px, 82%);
  aspect-ratio: 1;
  clip-path: var(--hex);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(69, 255, 46, 0.35);
  animation: hexPulse 3.2s ease-in-out infinite;
}

.hex-ring-2 {
  width: min(400px, 94%);
  box-shadow: inset 0 0 0 1px rgba(220, 230, 223, 0.18);
  animation-delay: 0.6s;
}

.plume {
  position: absolute;
  bottom: 8%;
  width: 4px;
  height: 28%;
  background: linear-gradient(180deg, var(--lime), transparent);
  filter: blur(1px);
  opacity: 0.7;
  animation: plumeFlicker 2.2s ease-in-out infinite;
  z-index: 1;
}

.plume::before,
.plume::after {
  content: "";
  position: absolute;
  top: 0;
  width: 2px;
  height: 70%;
  background: linear-gradient(180deg, rgba(220, 230, 223, 0.7), transparent);
}

.plume::before { left: -10px; transform: rotate(-10deg); }
.plume::after { right: -10px; transform: rotate(10deg); }

/* Sections */
.sec {
  position: relative;
  padding: 6rem 0;
}

.sec-head {
  margin-bottom: 2.3rem;
  max-width: 36rem;
}

.kicker {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

.sec-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: 0.02em;
  color: var(--metal);
}

.lead {
  margin: 0.75rem 0 0;
  color: var(--mute);
  font-size: 1.05rem;
}

.about {
  background: linear-gradient(180deg, transparent, rgba(22, 184, 74, 0.04), transparent);
}

.lore {
  display: grid;
  gap: 0.9rem;
}

.lore-item {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(10, 20, 12, 0.9), rgba(5, 10, 7, 0.6));
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  transition: 0.25s ease;
}

.lore-item:hover {
  border-color: rgba(69, 255, 46, 0.35);
  box-shadow: 0 0 28px rgba(69, 255, 46, 0.1);
}

.lore-item h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.lore-item p {
  margin: 0;
  color: var(--mute);
  line-height: 1.7;
}

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

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  padding: 1.2rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(6, 12, 8, 0.75);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  transition: 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(69, 255, 46, 0.35);
}

.step b {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--lime);
  text-shadow: 0 0 14px rgba(69, 255, 46, 0.4);
}

.step h3 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 0.95rem;
}

.step p {
  margin: 0;
  color: var(--mute);
  line-height: 1.55;
  font-size: 0.95rem;
}

.buy-row {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.ca {
  width: 100%;
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--mute);
  word-break: break-all;
}

.chart-wrap {
  display: grid;
  gap: 0.85rem;
}

.chart-frame {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(69, 255, 46, 0.22);
  background: rgba(2, 5, 3, 0.92);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  overflow: hidden;
}

.chart-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.chart-frame.has-pair iframe {
  opacity: 1;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle at 50% 40%, rgba(69, 255, 46, 0.1), transparent 55%);
}

.chart-frame.has-pair .chart-empty {
  display: none;
}

.chart-empty img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 12px rgba(69, 255, 46, 0.45));
}

.chart-empty p {
  margin: 0;
  color: var(--mute);
}

.dex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.dex-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(6, 12, 8, 0.7);
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--metal);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: 0.2s ease;
}

.dex-row a img {
  width: 13px;
  height: 13px;
}

.dex-row a:hover {
  border-color: rgba(69, 255, 46, 0.45);
  color: var(--lime);
}

.join-wrap {
  display: grid;
  gap: 1rem;
}

.banner-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(69, 255, 46, 0.28);
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
  box-shadow: 0 0 48px rgba(69, 255, 46, 0.12);
}

.banner-box img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  animation: bannerMove 16s ease-in-out infinite alternate;
}

.banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 5, 0.5));
  pointer-events: none;
}

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

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 56px;
  border: 1px solid var(--line);
  background: rgba(7, 14, 10, 0.85);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  clip-path: var(--hex);
  transition: 0.2s ease;
}

.socials a img {
  width: 18px;
  height: 18px;
}

.socials a:hover {
  transform: translateY(-3px);
  border-color: rgba(69, 255, 46, 0.45);
  color: var(--lime);
  box-shadow: 0 12px 28px rgba(69, 255, 46, 0.12);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  background: rgba(2, 4, 3, 0.9);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.footer-brand img {
  width: 26px;
  height: 26px;
}

.footer p {
  margin: 0;
  color: var(--mute);
  font-size: 0.84rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 72px 72px; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes vidShift {
  from { transform: scale(1.08); }
  to { transform: scale(1.14) translateX(-2%); }
}

@keyframes titleGlow {
  0%, 100% { text-shadow: 0 0 28px rgba(69, 255, 46, 0.35); }
  50% { text-shadow: 0 0 55px rgba(69, 255, 46, 0.75); }
}

@keyframes emblemFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes hexPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.98); }
  50% { opacity: 0.9; transform: scale(1.03); }
}

@keyframes plumeFlicker {
  0%, 100% { opacity: 0.35; height: 24%; }
  50% { opacity: 0.85; height: 32%; }
}

@keyframes bannerMove {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translateY(-1%); }
}

@media (max-width: 900px) {
  .burger { display: grid; }

  .links {
    position: absolute;
    top: calc(var(--nav) - 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem 1.2rem 1rem;
    background: rgba(5, 8, 5, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .links.is-open { display: flex; }

  .links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(220, 230, 223, 0.08);
  }

  .buy-link {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero-board {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-emblem { order: -1; min-height: 280px; }
  .bio { margin-inline: auto; }
  .actions { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
  .chart-frame { min-height: 420px; }
}

@media (max-width: 560px) {
  :root { --wrap: min(1120px, calc(100% - 1.35rem)); }
  .actions .btn { width: 100%; }
  .banner-box img { aspect-ratio: 16 / 10; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
