/* ============================================================
   HUHU · Meme Coin Landing — style.css
   ============================================================ */

:root {
  /* Warm, earthy palette pulled from the posters: black + gold + ember */
  --bg: #0e0a06;
  --bg-2: #1c1206;
  --purple: #8a4b12;   /* deep bronze */
  --pink: #e0622a;     /* ember orange */
  --yellow: #f4b52a;   /* gold */
  --cyan: #e8c07a;     /* warm tan highlight */
  --lime: #c8a24a;     /* antique gold */
  --white: #fbf3e2;    /* warm cream */
  --ink: #1a0f04;
  --card: rgba(244, 181, 42, 0.06);
  --card-brd: rgba(244, 181, 42, 0.20);
  --shadow: 0 20px 60px rgba(224, 98, 42, 0.35);
  --flap: #a8e029;      /* FLAP butterfly green */
  --flap-dark: #5fb80c;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Fredoka', 'Noto Sans SC', system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.5;
  position: relative;
}

/* ===== Bilingual visibility =====
   Default language is zh; JS toggles the .lang-en class on <html>. */
[data-lang="en"] { display: none; }
html.lang-en [data-lang="en"] { display: inline; }
html.lang-en [data-lang="zh"] { display: none; }
/* keep block-level containers behaving as blocks when shown */
p [data-lang], .hero-desc [data-lang], .partner-intro [data-lang],
.mech-note [data-lang], .ref-crown [data-lang], .footer-disc [data-lang] { display: inline; }

/* ===== Language toggle button ===== */
.lang-toggle {
  background: transparent;
  border: 2px solid var(--flap);
  color: var(--flap);
  font-weight: 700;
  font-size: .9rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: none;
  font-family: inherit;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.lang-toggle:hover {
  background: var(--flap);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(168,224,41,0.45);
}

/* animated gradient backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60vw 60vw at 15% 10%, rgba(138,75,18,0.40), transparent 60%),
    radial-gradient(55vw 55vw at 85% 20%, rgba(224,98,42,0.32), transparent 60%),
    radial-gradient(60vw 60vw at 50% 100%, rgba(244,181,42,0.20), transparent 60%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
  background-size: 200% 200%;
  animation: bgShift 18s ease-in-out infinite;
}
@keyframes bgShift {
  0%,100% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  50%     { background-position: 100% 50%, 0% 50%, 50% 0%, 0 0; }
}

/* subtle grid overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 90%);
  pointer-events: none;
}

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

.grad {
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradText 4s linear infinite;
}
@keyframes gradText { to { background-position: 200% center; } }

/* ===== Custom cursor ===== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot { width: 8px; height: 8px; background: var(--yellow); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 2px solid var(--cyan);
  transition: width .2s, height .2s, background .2s, border-color .2s;
}
.cursor-ring.hover {
  width: 60px; height: 60px;
  background: rgba(255,210,63,0.15);
  border-color: var(--yellow);
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } body { cursor: auto; } }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px; width: 0;
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan));
  z-index: 9998;
  box-shadow: 0 0 12px var(--pink);
}

/* ===== Background emojis ===== */
.bg-emojis { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-emojis span {
  position: absolute;
  font-size: 2rem;
  opacity: 0.15;
  animation: floatUp linear infinite;
  will-change: transform;
}
@keyframes floatUp {
  from { transform: translateY(110vh) rotate(0deg); }
  to   { transform: translateY(-20vh) rotate(360deg); }
}

/* ===== FX canvas ===== */
#fxCanvas { position: fixed; inset: 0; z-index: 9990; pointer-events: none; }

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(10, 5, 17, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-brd);
  padding: 10px 5vw;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 18px rgba(255,210,63,0.6);
  animation: spinSlow 12s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.nav-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.6rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color .2s;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  transition: width .25s;
}
.nav-links a:not(.nav-cta):hover { color: var(--yellow); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255,45,149,0.4);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 30px rgba(255,45,149,0.6); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: none; }
.nav-burger span { width: 28px; height: 3px; background: var(--white); border-radius: 3px; transition: .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: none;
  border: 2px solid transparent;
  transition: transform .18s, box-shadow .18s, background .2s;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--purple));
  background-size: 200% auto;
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(255,45,149,0.45);
  animation: gradText 5s linear infinite;
}
.btn-primary:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 44px rgba(255,45,149,0.65); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--card-brd);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 12px 30px rgba(22,240,224,0.35); }
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: left .6s;
}
.btn:hover::after { left: 130%; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5vw 60px;
  position: relative;
}
.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(123,47,247,0.5), transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite;
  z-index: 0;
}
@keyframes pulseGlow { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.2); opacity: 1; } }
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-title { display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; }
.hero-title .line { font-family: 'Bangers', cursive; letter-spacing: 3px; }
.hero-title .line:not(.huge):not(.sub) { font-size: clamp(1.6rem, 4vw, 3rem); color: var(--cyan); }
.hero-title .huge {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(4rem, 16vw, 12rem);
  line-height: 0.9;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan), var(--yellow));
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradText 5s linear infinite;
  filter: drop-shadow(0 8px 30px rgba(255,45,149,0.5));
}
.hero-title .sub {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.7rem);
  color: var(--white);
  letter-spacing: 0;
  margin-top: 8px;
}
.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 620px;
  margin: 0 auto 34px;
  opacity: 0.9;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-weight: 600; opacity: 0.7; letter-spacing: 1px; text-transform: uppercase; font-size: 0.85rem; }

.hero-mascot {
  position: absolute;
  right: 6vw; bottom: 8vh;
  width: clamp(120px, 16vw, 240px);
  z-index: 1;
  animation: bob 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.hero-mascot img { border-radius: 24px; border: 3px solid var(--yellow); box-shadow: 0 0 40px rgba(255,210,63,0.5); }

.scroll-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint span {
  width: 22px; height: 36px;
  border: 2px solid var(--white);
  border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--yellow);
  border-radius: 2px;
  animation: scrollDot 1.5s infinite;
}
@keyframes scrollDot { 0% { top: 6px; opacity: 1; } 100% { top: 20px; opacity: 0; } }

/* ===== MARQUEE ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  padding: 14px 0;
  border-top: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
  transform: rotate(-1.5deg) scale(1.03);
  margin: 40px 0;
}
.marquee-track { display: inline-flex; animation: marquee 22s linear infinite; }
.marquee-track span {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 2px;
  padding-right: 20px;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ===== SECTIONS ===== */
.section { padding: 90px 6vw; position: relative; z-index: 2; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: 1px;
  line-height: 1;
}
.section-sub { font-size: clamp(1rem, 2vw, 1.3rem); opacity: 0.75; margin-top: 12px; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-poster img {
  border-radius: 24px;
  border: 3px solid var(--card-brd);
  box-shadow: var(--shadow);
  width: 100%;
}
.about-text p { font-size: 1.1rem; margin-bottom: 18px; opacity: 0.92; }
.feature-list { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.feature-list li {
  display: flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: 1.1rem;
  background: var(--card);
  border: 1px solid var(--card-brd);
  padding: 12px 18px;
  border-radius: 14px;
  transition: transform .2s, border-color .2s;
}
.feature-list li:hover { transform: translateX(8px); border-color: var(--yellow); }
.feature-list li span { font-size: 1.5rem; }



/* ===== CAROUSEL ===== */
.carousel {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 26px;
  border: 3px solid var(--card-brd);
  box-shadow: var(--shadow);
  background: rgba(0,0,0,0.35);
}
.carousel-track {
  display: flex;
  transition: transform .6s cubic-bezier(.5,.05,.2,1);
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  background: rgba(26,15,4,0.7);
  backdrop-filter: blur(6px);
  color: var(--yellow);
  font-size: 2rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: transform .2s, background .2s, box-shadow .2s;
  z-index: 4;
}
.carousel-arrow:hover { background: var(--yellow); color: var(--ink); transform: translateY(-50%) scale(1.12); box-shadow: 0 0 24px rgba(244,181,42,0.6); }
.carousel-arrow.prev { left: -22px; }
.carousel-arrow.next { right: -22px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.carousel-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 0;
  background: var(--card-brd);
  cursor: none;
  transition: transform .2s, background .2s, width .3s;
}
.carousel-dots button.active {
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  width: 34px;
  border-radius: 6px;
}

/* ===== HOW TO BUY ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1150px; margin: 0 auto; }
.step-card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 22px;
  padding: 34px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-8px); border-color: var(--pink); box-shadow: var(--shadow); }
.step-num {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(255,45,149,0.4);
}
.step-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step-card p { opacity: 0.85; }

/* ===== BUY / CTA ===== */
.buy { text-align: center; }
.buy-inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 30px;
  padding: 56px 40px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.buy-logo { width: 92px; border-radius: 50%; border: 3px solid var(--yellow); box-shadow: 0 0 30px rgba(244,181,42,0.6); animation: bob 4s ease-in-out infinite; }
.buy-inner h2 { font-family: 'Luckiest Guy', cursive; font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 16px; }
.buy-inner p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 30px; }
.buy-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.socials-label { text-align: center; font-weight: 600; opacity: 0.75; letter-spacing: 1px; margin-bottom: 16px; font-size: 0.95rem; }
.socials { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  font-weight: 600;
  cursor: none;
  transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
}
.social .social-ico { font-size: 1.3rem; line-height: 1; }
.social .social-name { font-size: 0.98rem; }
.social:hover { transform: translateY(-5px); background: linear-gradient(135deg, var(--pink), var(--purple)); border-color: transparent; box-shadow: 0 12px 28px rgba(224,98,42,0.5); }
.social.copied { background: var(--flap); border-color: transparent; color: var(--ink); }

/* ===== FOOTER ===== */
.footer { text-align: center; padding: 60px 6vw 40px; border-top: 1px solid var(--card-brd); position: relative; z-index: 2; }
.footer-logos { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.footer-logo { width: 60px; border-radius: 50%; border: 2px solid var(--yellow); }
.footer-x { font-size: 1.4rem; opacity: 0.6; }
.footer-flap { height: 52px; }
.footer-name { font-family: 'Luckiest Guy', cursive; font-size: 1.6rem; background: linear-gradient(90deg, var(--yellow), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.footer-disc { max-width: 660px; margin: 0 auto 16px; font-size: 0.85rem; opacity: 0.65; line-height: 1.7; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 0 auto 16px; }
.footer-links a {
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: color .2s, opacity .2s, transform .2s;
}
.footer-links a:hover { color: var(--yellow); opacity: 1; transform: translateY(-2px); }
.footer-links a.copied { color: var(--flap); }
.footer-copy { font-size: 0.9rem; opacity: 0.7; }

/* ===== PARTNERSHIP (FLAP) ===== */
.partner-banner {
  max-width: 980px;
  margin: 0 auto 42px;
  background: linear-gradient(135deg, rgba(168,224,41,0.10), var(--card));
  border: 1px solid rgba(168,224,41,0.35);
  border-radius: 26px;
  padding: 38px 40px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(95,184,12,0.20);
  transition: transform .25s, border-color .25s;
}
.partner-logos { display: flex; align-items: center; justify-content: center; gap: 26px; margin-bottom: 22px; flex-wrap: wrap; }
.pl-token { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--yellow); box-shadow: 0 0 26px rgba(244,181,42,0.5); }
.pl-x { font-family: 'Luckiest Guy', cursive; font-size: 2.4rem; color: var(--white); opacity: 0.7; }
.pl-flap { height: 92px; filter: drop-shadow(0 0 18px rgba(168,224,41,0.5)); }
.partner-intro { max-width: 760px; margin: 0 auto; font-size: 1.08rem; opacity: 0.92; line-height: 1.8; }

.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; }
.adv-card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 20px;
  padding: 30px 22px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.adv-card:hover { border-color: var(--flap); box-shadow: 0 16px 40px rgba(168,224,41,0.22); }
.adv-icon { font-size: 2.4rem; margin-bottom: 14px; }
.adv-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--flap); }
.adv-card p { opacity: 0.82; font-size: 0.96rem; }

/* ===== MECHANISM ===== */
.mech-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  max-width: 1150px;
  margin: 0 auto 34px;
  flex-wrap: wrap;
}
.mech-step {
  flex: 1 1 300px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 22px;
  padding: 30px 26px;
  backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.mech-step:hover { border-color: var(--pink); box-shadow: var(--shadow); }
.mech-badge {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  color: var(--ink);
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(224,98,42,0.4);
}
.mech-step h3 { font-size: 1.35rem; margin-bottom: 16px; }
.mech-list { list-style: none; display: grid; gap: 12px; }
.mech-list li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.22);
  border-radius: 12px;
  border-left: 3px solid var(--yellow);
}
.mech-list li b { font-family: 'Luckiest Guy', cursive; color: var(--yellow); font-size: 1.15rem; min-width: 42px; }
.mech-arrow { display: flex; align-items: center; font-size: 2.2rem; color: var(--pink); font-weight: 700; }
.mech-note {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(244,181,42,0.08);
  border: 1px dashed var(--yellow);
  border-radius: 16px;
  padding: 20px 26px;
  font-size: 1.02rem;
  line-height: 1.8;
  text-align: center;
}
.mech-note b { color: var(--yellow); }

/* ===== REFERRAL ===== */
.ref-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 22px; max-width: 1200px; margin: 0 auto 34px; align-items: start; }
.ref-card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 22px;
  padding: 26px 24px;
  backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ref-card.rules { background: linear-gradient(160deg, rgba(224,98,42,0.16), rgba(138,20,20,0.12)); border-color: rgba(224,98,42,0.4); }
.ref-card:hover { box-shadow: var(--shadow); }
.ref-head { font-family: 'Luckiest Guy', cursive; font-size: 1.5rem; text-align: center; margin-bottom: 8px; color: var(--yellow); }
.ref-sub { text-align: center; opacity: 0.8; margin-bottom: 18px; font-size: 0.95rem; }
.ref-table { width: 100%; border-collapse: collapse; }
.ref-table th, .ref-table td { padding: 11px 10px; text-align: center; border-bottom: 1px solid var(--card-brd); }
.ref-table th { font-size: 0.9rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }
.ref-table td { font-size: 1.02rem; }
.ref-table td b { font-family: 'Luckiest Guy', cursive; color: var(--pink); font-size: 1.2rem; }
.ref-table tbody tr:last-child td { border-bottom: 0; }
.ref-tip { margin-top: 16px; font-size: 0.92rem; opacity: 0.85; text-align: center; }
.rules-list { list-style: none; display: grid; gap: 14px; }
.rules-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; line-height: 1.55; }
.rules-list li b { color: var(--yellow); }

.ref-extra { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1150px; margin: 0 auto 30px; }
.ref-x-card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
  transition: transform .25s, border-color .25s;
}
.ref-x-card:hover { border-color: var(--cyan); }
.rx-icon { font-size: 2rem; margin-bottom: 10px; }
.ref-x-card h4 { font-size: 1.05rem; margin-bottom: 8px; color: var(--cyan); }
.ref-x-card p { font-size: 0.92rem; opacity: 0.82; line-height: 1.55; }

.ref-crown {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  padding: 20px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border: 2px solid var(--yellow);
  box-shadow: 0 14px 40px rgba(224,98,42,0.4);
  line-height: 1.6;
}

/* buy logos row */
.buy-logos { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.buy-flap { height: 84px; filter: drop-shadow(0 0 18px rgba(168,224,41,0.5)); }

/* ===== TILT ===== */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ===== SCROLL REVEAL ===== */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; width: 70vw; max-width: 320px;
    flex-direction: column;
    justify-content: center;
    background: rgba(10,5,17,0.96);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform .35s;
    gap: 30px;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-extra { grid-template-columns: repeat(2, 1fr); }
  .ref-grid { grid-template-columns: 1fr; max-width: 560px; }
  .mech-arrow { transform: rotate(90deg); justify-content: center; }
  .mech-step { flex-basis: 100%; }
  .hero-mascot { display: none; }
  .hero-stats { gap: 26px; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .lang-toggle { order: -1; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .advantage-grid, .ref-extra { grid-template-columns: 1fr; }
  .marquee-track span { font-size: 1.1rem; }
  .partner-banner { padding: 28px 22px; }
  .pl-flap, .pl-token { height: 68px; }
  .pl-token { width: 68px; }
}
