:root {
  --bg: #1a1106;
  --bg-2: #2a1c07;
  --card: #3a2610;
  --gold: #f3c15b;
  --gold-deep: #d28a1a;
  --amber: #ff8a2a;
  --ink: #f7ecd2;
  --muted: #c9b089;
  --line: rgba(243, 193, 91, 0.28);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: radial-gradient(1200px 700px at 50% -10%, #4a2f0d 0%, var(--bg) 55%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

body.touch { cursor: auto; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; }

body.touch button,
body.touch a { cursor: pointer; }

h1, h2, h3, .brand-name, .ticker, .stack, .wall p, .banner-overlay {
  font-family: "Bricolage Grotesque", sans-serif;
}

.grain,
.cursor,
.cursor-glow,
#spark-canvas {
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#spark-canvas {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.cursor-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(243, 193, 91, 0.7);
  transition: transform 180ms ease;
}

.cursor-core {
  position: absolute;
  inset: 9px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 16px #ff8a2a;
}

.cursor-cat {
  position: absolute;
  inset: -10px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.4) rotate(-12deg);
  transition: opacity 160ms ease, transform 160ms ease;
}

body.is-hovering .cursor-ring { transform: scale(1.7); }
body.is-hovering .cursor-core { opacity: 0.2; }
body.is-popping .cursor-cat {
  opacity: 1;
  transform: scale(1) rotate(8deg);
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: 1;
  background: radial-gradient(circle, rgba(243, 193, 91, 0.16), transparent 68%);
  transform: translate(-50%, -50%);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.orb-a { width: 420px; height: 420px; background: rgba(243, 193, 91, 0.18); top: 8%; left: 8%; animation: drift 14s ease-in-out infinite; }
.orb-b { width: 360px; height: 360px; background: rgba(255, 138, 42, 0.14); right: 6%; top: 36%; animation: drift 18s ease-in-out infinite reverse; }
.orb-c { width: 500px; height: 500px; background: rgba(210, 138, 26, 0.12); bottom: -10%; left: 30%; animation: drift 22s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding: 16px 20px;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 17, 6, 0.7);
  backdrop-filter: blur(12px);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(243, 193, 91, 0.6);
  box-shadow: 0 0 18px rgba(243, 193, 91, 0.35);
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

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

.nav-links {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 17, 6, 0.7);
  backdrop-filter: blur(12px);
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover {
  background: var(--gold);
  color: #2a1c07;
}

.nav-socials { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(26, 17, 6, 0.7);
}

.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--gold); color: #2a1c07; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-primary {
  background: var(--gold);
  color: #2a1c07;
  border-color: var(--gold);
  box-shadow: 0 6px 0 #8b5a12;
}

.btn-primary:hover { transform: translateY(3px); box-shadow: 0 3px 0 #8b5a12; }

.btn-ghost {
  border-color: rgba(243, 193, 91, 0.5);
  color: var(--ink);
}

.btn-ghost:hover { background: rgba(243, 193, 91, 0.14); }

.hero {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 148px 20px 80px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(243, 193, 91, 0.4);
  background: rgba(243, 193, 91, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
}

h1 {
  margin-top: 18px;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.84;
  letter-spacing: -0.06em;
  font-weight: 800;
}

h1 .gold {
  color: var(--gold);
  display: block;
  text-shadow: 0 10px 0 rgba(210, 138, 26, 0.55);
}

h1 .stroke {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--amber);
}

h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 800;
}

h2 em { color: var(--gold); font-style: normal; }

.lead {
  margin-top: 20px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ca-pill {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(58, 38, 16, 0.7);
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.ca-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
}

.ca-value { font-family: ui-monospace, monospace; font-size: 0.82rem; }
.ca-pill svg { width: 16px; height: 16px; }
.ca-pill.copied { border-color: var(--gold); color: var(--gold); }

.hero-stage {
  perspective: 1000px;
  position: relative;
}

.hero-orbit {
  position: absolute;
  inset: 8%;
  border: 2px dashed rgba(243, 193, 91, 0.35);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

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

.pop-stage {
  position: relative;
  display: block;
  width: min(100%, 460px);
  margin: 0 auto;
  background: none;
  border: 0;
  transform-style: preserve-3d;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1);
}

.pop-stage img {
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
  animation: floaty 4s ease-in-out infinite;
}

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

.tag {
  position: absolute;
  border-radius: 16px;
  border: 2px solid;
  padding: 8px 12px;
  font-weight: 800;
}

.tag-click {
  top: 8px;
  left: -6px;
  background: var(--amber);
  color: #2a1c07;
  border-color: var(--amber);
  transform: rotate(-6deg);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-pops {
  right: -4px;
  bottom: 12px;
  background: var(--card);
  color: var(--gold);
  border-color: var(--gold);
  transform: rotate(6deg);
  font-size: 1.05rem;
}

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 2px solid rgba(255,255,255,.08);
  border-bottom: 2px solid rgba(255,255,255,.08);
  padding: 14px 0;
}

.ticker-gold { background: var(--gold); color: #2a1c07; }
.ticker-dark { background: var(--card); color: var(--gold); border-color: var(--line); }

.ticker-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: ticker 22s linear infinite;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.ticker-track.reverse { animation-direction: reverse; }
.ticker-track span::after { content: " ●"; opacity: 0.45; }

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

.banner-band {
  position: relative;
  z-index: 2;
  height: 220px;
  overflow: hidden;
}

.banner-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, rgba(26,17,6,.55), transparent 40%, transparent 60%, rgba(26,17,6,.55));
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0,0,0,.6);
}

.about, .solana, .buy, .memes, .community {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 20px;
}

.about-head, .section-head { max-width: 760px; }
.section-head.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.about-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.stack {
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.86;
  color: var(--gold);
  text-shadow:
    2px 2px 0 #8b5a12,
    4px 4px 0 #6d430c,
    6px 6px 0 #4a2c08;
}

.stack.accent { color: var(--amber); }

.cover-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(243, 193, 91, 0.4);
  box-shadow: var(--shadow);
}

.cover-card img { width: 100%; }
.cover-card figcaption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  background: var(--gold);
  color: #2a1c07;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.sol-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.glass-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(58,38,16,.75), rgba(26,17,6,.6));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #2a1c07;
  background: var(--gold);
  padding: 4px 8px;
  border-radius: 999px;
}

.glass-card h3 { margin: 14px 0 8px; font-size: 1.4rem; }
.glass-card p { color: var(--muted); line-height: 1.55; }

.ecosystem {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ecosystem a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.ecosystem a:hover { color: #2a1c07; background: var(--gold); }

.steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
}

.steps li {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(26, 17, 6, 0.5);
}

.steps span {
  color: var(--gold);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
}

.steps h3 { margin: 10px 0 8px; }
.steps p { color: var(--muted); line-height: 1.5; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.meme-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.meme-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 2px solid rgba(243, 193, 91, 0.25);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1);
}

.tilt-left { transform: rotate(-2deg); }
.tilt-right { transform: rotate(1.6deg); }
.meme-card:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); }

.meme-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 400ms ease;
}

.meme-card:hover img { transform: scale(1.06); }

.chip {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(26,17,6,.7);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

.meme-card figcaption {
  padding: 14px 12px 18px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold);
  font-size: 1.25rem;
}

.wall {
  position: relative;
  margin-top: 56px;
  border-radius: 0;
  overflow: hidden;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.wall img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.wall p {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: #1a1106;
  text-shadow: 0 0 20px rgba(243,193,91,.4);
}

.community { text-align: center; }
.community .lead { margin-left: auto; margin-right: auto; }
.community-cat {
  width: 120px;
  margin: 0 auto 18px;
  animation: wiggle 1.6s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.4));
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

.community-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.footer {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.ca-foot { font-family: ui-monospace, monospace; color: var(--gold); }

.pop-burst {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(243,193,91,.8);
  animation: burst 700ms ease-out forwards;
}

@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.3); opacity: 0; }
}

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .hero, .about-grid, .sol-grid, .steps, .meme-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .section-head.split { display: block; }
}

@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-glow { display: none; }
}
