/* MEMESTOCK — magical meme stock landing */
:root {
  --lime: #c8ff00;
  --lime-dim: #a8d900;
  --lime-glow: rgba(200, 255, 0, 0.45);
  --bg: #07080a;
  --bg-2: #0d0f12;
  --bg-3: #12151a;
  --card: rgba(18, 22, 28, 0.72);
  --border: rgba(200, 255, 0, 0.14);
  --text: #f2f5f0;
  --muted: #9aa39a;
  --white: #ffffff;
  --rainbow: linear-gradient(90deg, #ff3b3b, #c44dff, #3b82ff, #22c55e, #facc15);
  --radius: 20px;
  --nav-h: 72px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.lime {
  color: var(--lime);
  text-shadow: 0 0 40px var(--lime-glow);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  word-break: break-all;
}

/* Hide custom cursor on touch */
@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }
  .cursor-dot,
  .cursor-ring,
  #cursorTrail {
    display: none !important;
  }
  button,
  a {
    cursor: pointer;
  }
}

/* ===== Magical cursor ===== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--lime), 0 0 28px var(--lime-glow);
  mix-blend-mode: screen;
  transition: width 0.15s, height 0.15s, background 0.15s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(200, 255, 0, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s, background 0.2s;
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.15);
}

body.cursor-hover .cursor-dot {
  width: 14px;
  height: 14px;
  background: #fff;
}

body.cursor-hover .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: var(--lime);
  background: rgba(200, 255, 0, 0.08);
}

body.cursor-click .cursor-ring {
  width: 28px;
  height: 28px;
}

#cursorTrail,
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#cursorTrail {
  z-index: 9998;
}

/* ===== Floating orbs ===== */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: orb-float 18s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.55), transparent 70%);
  top: -10%;
  left: -5%;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(196, 77, 255, 0.35), transparent 70%);
  top: 40%;
  right: -8%;
  animation-delay: -4s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 255, 0.3), transparent 70%);
  bottom: 10%;
  left: 20%;
  animation-delay: -8s;
}

.orb-4 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.22), transparent 70%);
  top: 70%;
  right: 25%;
  animation-delay: -12s;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -30px) scale(1.08);
  }
  66% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 10, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 8, 10, 0.88);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 2;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 20px var(--lime-glow);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width 0.25s;
  box-shadow: 0 0 8px var(--lime);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  z-index: 2;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
  transition: 0.25s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 10, 0.96);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--lime);
  color: #0a0c08;
  box-shadow: 0 0 24px var(--lime-glow), 0 4px 0 #8fb300;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--lime-glow), 0 6px 0 #8fb300;
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(200, 255, 0, 0.05);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--lime);
  background: rgba(200, 255, 0, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  margin-top: 1.25rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90vw);
  height: 400px;
  background: radial-gradient(ellipse, rgba(200, 255, 0, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(200, 255, 0, 0.08);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lime);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--lime);
  margin-bottom: 1rem;
  text-shadow: 0 0 30px var(--lime-glow);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.contract-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
  max-width: 100%;
}

.contract-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.contract-box code {
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  color: var(--lime);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(200, 255, 0, 0.12);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lime);
  transition: 0.2s;
}

.copy-btn:hover {
  background: rgba(200, 255, 0, 0.22);
  box-shadow: 0 0 16px var(--lime-glow);
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-value {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-orb-ring {
  position: absolute;
  width: min(420px, 85%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff3b3b,
    #c44dff,
    #3b82ff,
    #22c55e,
    #facc15,
    #ff3b3b
  );
  opacity: 0.35;
  filter: blur(2px);
  animation: spin 12s linear infinite;
  z-index: 0;
}

.hero-orb-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--bg);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-mascot-wrap {
  position: relative;
  z-index: 2;
  width: min(340px, 78%);
}

.hero-mascot {
  width: 100%;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(200, 255, 0, 0.2),
    0 0 60px var(--lime-glow),
    0 30px 60px rgba(0, 0, 0, 0.5);
}

.mascot-shadow {
  position: absolute;
  bottom: -18px;
  left: 15%;
  right: 15%;
  height: 28px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(6px);
}

.float {
  animation: float-y 4.5s ease-in-out infinite;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(12, 14, 16, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: float-y 5s ease-in-out infinite;
}

.chip-1 {
  top: 12%;
  left: 0;
  animation-delay: -1s;
}

.chip-2 {
  top: 48%;
  right: -4%;
  animation-delay: -2.5s;
}

.chip-3 {
  bottom: 10%;
  left: 8%;
  animation-delay: -0.5s;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ===== Marquee ===== */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(200, 255, 0, 0.04);
  padding: 0.9rem 0;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.marquee .dot {
  color: rgba(200, 255, 0, 0.35);
}

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

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.75rem;
}

.section-head h2,
.vault-copy h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.about-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 255, 0, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(200, 255, 0, 0.08);
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 0 10px var(--lime-glow));
}

.about-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.banner-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(200, 255, 0, 0.08);
}

.banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 7;
  object-fit: cover;
}

/* Vault */
.vault {
  background: linear-gradient(180deg, transparent, rgba(200, 255, 0, 0.03), transparent);
}

.vault-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.vault-list {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vault-list li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--lime);
  box-shadow: -8px 0 20px -8px var(--lime-glow);
}

.vault-list strong {
  display: block;
  font-family: var(--display);
  margin-bottom: 0.25rem;
}

.vault-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.vault-list em {
  color: var(--lime);
  font-style: normal;
  font-weight: 600;
}

.glass-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.vault-card {
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.vault-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 200% 100%;
  animation: rainbow-shift 4s linear infinite;
}

@keyframes rainbow-shift {
  to {
    background-position: 200% 0;
  }
}

.vault-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vault-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 20px var(--lime-glow);
}

.vault-card-head h3 {
  font-family: var(--display);
  font-size: 1.15rem;
}

.pill {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(200, 255, 0, 0.12);
  color: var(--lime);
}

.vault-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vault-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.vault-row span {
  color: var(--muted);
}

.vault-row strong {
  text-align: right;
}

/* How */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(200, 255, 0, 0.1);
}

.step-num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--lime);
  text-shadow: 0 0 20px var(--lime-glow);
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--display);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.step-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  align-self: center;
  margin-top: 3rem;
  box-shadow: 0 0 12px var(--lime);
}

/* Tokenomics */
.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.token-card {
  padding: 1.4rem 1.5rem;
  transition: transform 0.25s, border-color 0.25s;
}

.token-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 255, 0, 0.35);
}

.token-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.token-card strong {
  font-family: var(--display);
  font-size: 1.15rem;
}

.token-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.token-banner img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* Gallery — all items forced 3:2 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  background: var(--bg-3);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-overlay span {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  text-shadow: 0 0 12px var(--lime);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(200, 255, 0, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(200, 255, 0, 0.12);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Community */
.community-card {
  text-align: center;
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.community-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(200, 255, 0, 0.08),
    transparent,
    rgba(196, 77, 255, 0.08),
    transparent
  );
  animation: spin 20s linear infinite;
  z-index: 0;
}

.community-card > * {
  position: relative;
  z-index: 1;
}

.community-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 40px var(--lime-glow);
}

.community-card h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.community-card > p {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  font-weight: 600;
  transition: 0.25s;
}

.social-btn:hover {
  border-color: var(--lime);
  background: rgba(200, 255, 0, 0.1);
  box-shadow: 0 0 24px var(--lime-glow);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  background: rgba(0, 0, 0, 0.4);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  font-family: var(--display);
}

.footer-brand span {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-disclaimer {
  max-width: 560px;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(154, 163, 154, 0.7);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(960px, 92vw);
  max-height: 75vh;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 0 50px rgba(200, 255, 0, 0.15);
}

.lightbox p {
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--lime);
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.15);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--lime);
  color: #0a0c08;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  z-index: 600;
  box-shadow: 0 0 30px var(--lime-glow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Magic sparkle hover on cards */
.about-card,
.token-card,
.step,
.gallery-item,
.vault-card {
  position: relative;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid,
  .vault-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
    min-height: 320px;
  }

  .about-grid,
  .token-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-line {
    width: 2px;
    height: 32px;
    margin: 0 auto;
    background: linear-gradient(180deg, transparent, var(--lime), transparent);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  .about-grid,
  .token-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1rem;
  }

  .floating-chip {
    display: none;
  }

  .banner-img {
    aspect-ratio: 16 / 9;
  }

  .section {
    padding: 4rem 0;
  }
}
