:root {
  --bg: #0b0f0c;
  --panel: #121816;
  --panel-2: #171d1a;
  --line: #27322c;
  --text: #eef6ef;
  --muted: #9aada0;
  --frog: #6dff3a;
  --frog-deep: #1f6b18;
  --cream: #f4f0e0;
  --ink: #071008;
  --font: "Satoshi", "Segoe UI", sans-serif;
  --display: "Clash Display", "Satoshi", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 4px 4px 0 #000;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
#buy { scroll-margin-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.55;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(109, 255, 58, 0.09), transparent 55%);
}

a { color: var(--frog); }
img { max-width: 100%; display: block; }
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.marquee {
  overflow: hidden;
  background: var(--frog);
  color: var(--ink);
  border-bottom: 3px solid #000;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee-track { display: flex; width: max-content; animation: scroll 55s linear infinite; }
.marquee-track span { padding: 0.45rem 0; white-space: nowrap; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--frog);
}
.brand-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-text em { font-style: normal; color: var(--frog); }
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-cta {
  background: var(--frog) !important;
  color: var(--ink) !important;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  border-radius: 10px !important;
}
.nav-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero { padding: 3.25rem 0 2.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.stamp {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.3rem 0.65rem;
  background: var(--panel-2);
  color: var(--frog);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--frog); }
.ticker-line {
  margin: 0.4rem 0 0.9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: none;
  font-weight: 500;
}

.ca-box {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  background: var(--panel);
  border: 1.5px solid #6dff3a;
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  box-shadow:
    0 0 0 1px rgba(109, 255, 58, 0.25),
    0 0 14px rgba(109, 255, 58, 0.35),
    0 0 28px rgba(109, 255, 58, 0.15);
  animation: ca-glow-pulse 2.2s ease-in-out infinite;
}
@keyframes ca-glow-pulse {
  0%, 100% {
    border-color: rgba(109, 255, 58, 0.45);
    box-shadow:
      0 0 0 1px rgba(109, 255, 58, 0.12),
      0 0 8px rgba(109, 255, 58, 0.18),
      0 0 16px rgba(109, 255, 58, 0.08);
  }
  50% {
    border-color: #b8ff7a;
    box-shadow:
      0 0 0 1px rgba(109, 255, 58, 0.45),
      0 0 18px rgba(109, 255, 58, 0.55),
      0 0 36px rgba(109, 255, 58, 0.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ca-box { animation: none; }
}
.ca-box .btn { margin-left: auto; flex-shrink: 0; }
.ca-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.ca-value {
  font-family: var(--mono);
  font-size: 0.78rem;
  word-break: break-all;
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-weight: 500;
}

.btn {
  appearance: none;
  border: 2px solid #000;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; text-decoration: none; }
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #000; }
.btn-primary { background: var(--frog); color: var(--ink); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line); box-shadow: 3px 3px 0 #000; }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.8rem; border-radius: 9px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.hero-visual { position: relative; justify-self: end; width: 100%; display: flex; justify-content: flex-end; }
.hero-pic {
  width: min(440px, 100%);
  border-radius: 18px;
  border: 3px solid #000;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.85);
  background: #000;
  object-fit: cover;
  aspect-ratio: 1;
}
.float-badge {
  position: absolute;
  right: -6px;
  bottom: 14px;
  background: var(--frog);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border: 2px solid #000;
  border-radius: 10px;
  transform: rotate(4deg);
}

section { padding: 2.75rem 0; border-top: 1px solid var(--line); }
.section-title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-sub { margin: 0 0 1.35rem; color: var(--muted); max-width: 38rem; }
.section-sub code { font-family: var(--mono); color: var(--frog); font-size: 0.9em; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--frog);
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.token-grid { display: grid; gap: 0.55rem; }
.token-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
}
.token-row .label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}
.token-row .value { font-family: var(--mono); font-size: 0.82rem; word-break: break-all; }
.token-row .value.plain { font-family: var(--font); font-size: 1rem; font-weight: 600; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 800;
  color: var(--frog);
  font-size: 1rem;
}
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.gallery-item {
  margin: 0;
  background: #000;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.gallery-item:hover { transform: translateY(-2px); border-color: var(--frog); }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-item figcaption {
  padding: 0.45rem 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.meme-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: start;
}
.meme-controls {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--muted);
}
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.65rem 0.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
}
.bg-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.bg-picks button {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.bg-picks button.active { border-color: var(--frog); }
.bg-picks img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.meme-preview-wrap {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
}
#memeCanvas { width: 100%; height: auto; display: block; }

.footer {
  border-top: 1px solid var(--line);
  background: #080b09;
  padding: 2.25rem 0 2.5rem;
}
.footer h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 800;
}
.disclaimer { color: var(--muted); font-size: 0.9rem; max-width: 52rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.footer-bottom {
  margin-top: 1rem;
  color: #66766b;
  font-size: 0.78rem;
  font-family: var(--mono);
}

.toast {
  position: fixed;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--frog);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  padding: 0.6rem 1rem;
  border: 2px solid #000;
  border-radius: 12px;
  opacity: 0;
  transition: 0.2s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 800px); max-height: 80vh; border-radius: 12px; border: 3px solid var(--frog); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; }

@media (max-width: 860px) {
  .hero-grid, .meme-layout, .card-grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #0b0f0c;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .token-row { grid-template-columns: 1fr; }
}


.live-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}
.stat-label {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.stat-value {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text);
  letter-spacing: -0.01em;
}
.stat-value.up { color: var(--frog); }
.stat-value.down { color: #ff6b6b; }
.stat-value.loading { color: var(--muted); font-weight: 600; font-size: 1rem; }
@media (max-width: 720px) {
  .live-stats { grid-template-columns: repeat(2, 1fr); }
}


/* account for sticky nav when jumping to anchors */
#buy,
#token,
#gallery,
#meme,
#top {
  scroll-margin-top: 84px;
}
