/* =========================================================
   むーちゃん / MUCHAN ($MUCHAN) — cartoon Shiba dog meme landing
   cream / warm orange / red collar accents
   ========================================================= */

:root {
  --bg: #140c08;
  --bg-2: #1c120c;
  --bg-3: #26180f;
  --cyan: #ff8a3d;
  --cyan-dim: #e06a20;
  --cyan-glow: rgba(255, 138, 61, 0.45);
  --orange: #ff5a4a;
  --orange-glow: rgba(255, 90, 74, 0.35);
  --cream: #fff3e0;
  --frost: #fff8ef;
  --muted: #b89a82;
  --line: rgba(255, 138, 61, 0.22);
  --danger: #ff5c7a;
  --display: "Syne", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1180px;
  --radius: 16px;
}

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

html { background: var(--bg); color: var(--frost); scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--frost);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-gated { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
code, pre { font-family: var(--mono); }

#spark-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 3;
}
.fx-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.72) 100%);
}
.fx-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(ellipse 70% 45% at 75% 12%, rgba(255,138,61,.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 12% 78%, rgba(255,90,74,.08), transparent 50%);
}

/* ---------- GATE ---------- */
.gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: #140c08;
  transition: opacity .55s ease, visibility .55s ease;
}
.gate.is-out {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.gate__inner {
  text-align: center;
  padding: 2rem;
  animation: gate-in 0.8s ease both;
}
@keyframes gate-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.gate__logo {
  width: 96px; height: 96px; margin: 0 auto 1.25rem;
  border-radius: 18px;
  filter: drop-shadow(0 0 24px var(--cyan-glow));
  animation: float-y 3.2s ease-in-out infinite;
}
.gate__ascii {
  color: var(--cyan);
  font-size: .72rem; line-height: 1.25;
  opacity: .75; margin-bottom: 1.25rem;
}
.gate__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.6rem);
  letter-spacing: .08em;
  color: var(--frost);
  text-shadow: 0 0 40px var(--cyan-glow);
}
.gate__sub {
  margin-top: .5rem;
  color: var(--muted);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .75rem;
}
.gate__btn {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: .95rem 1.8rem;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  background: rgba(77,232,255,.08);
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: .14em;
  transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 0 0 0 var(--cyan-glow);
}
.gate__btn:hover {
  background: rgba(77,232,255,.18);
  box-shadow: 0 0 32px var(--cyan-glow);
  transform: translateY(-1px);
}
.gate__mute {
  margin-top: 1rem;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .06em;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem var(--pad);
  background: rgba(20,12,8,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 800; letter-spacing: .06em;
}
.nav__brand img {
  width: 36px; height: 36px;
  border-radius: 8px;
  filter: drop-shadow(0 0 10px var(--cyan-glow));
}
.nav__links {
  display: none; gap: 1.25rem; margin-left: auto;
  font-size: .9rem; color: var(--muted);
}
.nav__links a:hover { color: var(--cyan); }
.nav__cta {
  margin-left: auto;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #1a0c06;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 0 24px var(--cyan-glow);
}
.nav__cta:hover { filter: brightness(1.08); }
.nav__burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav__burger span {
  display: block; width: 18px; height: 2px; background: var(--frost);
}
.nav-mobile {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 49;
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem var(--pad) 1.25rem;
  background: rgba(20,12,8,.96);
  border-bottom: 1px solid var(--line);
}
.nav-mobile[hidden] { display: none !important; }
.nav-mobile a {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(77,232,255,.08);
  color: var(--frost);
}
@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 1rem; }
  .nav__burger { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  align-items: end;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad) 3.5rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
  opacity: .88;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,12,8,.94) 0%, rgba(20,12,8,.58) 42%, rgba(20,12,8,.28) 70%, rgba(20,12,8,.5) 100%),
    linear-gradient(0deg, rgba(20,12,8,.92) 0%, transparent 45%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 720px;
}
.eyebrow {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.hero__title {
  display: flex; flex-direction: column; gap: .15rem;
  margin-bottom: 1rem;
}
.hero__word {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.02em;
  text-shadow: 0 0 60px var(--cyan-glow);
}
.hero__tick {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--orange);
  letter-spacing: .18em;
}
.hero__tag {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 1.4rem;
}
.hero__tag em {
  font-style: normal;
  color: var(--frost);
  border-bottom: 1px solid var(--cyan-dim);
}

.ca-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  max-width: 100%;
  padding: .45rem .45rem .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5,12,18,.78);
  backdrop-filter: blur(10px);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 1px rgba(77,232,255,.04), 0 10px 40px rgba(0,0,0,.35);
}
.ca-pill__label {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--cyan);
  letter-spacing: .16em;
}
.ca-pill__addr {
  font-size: .82rem;
  color: var(--frost);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: min(42vw, 280px);
}
.ca-pill__copy {
  flex-shrink: 0;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #1a0c06;
  font-weight: 700;
  font-size: .8rem;
}
.ca-pill__copy:hover { filter: brightness(1.08); }
.ca-pill.is-soon .ca-pill__addr { color: var(--muted); }

.hero__actions {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-bottom: .9rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--cyan);
  color: #1a0c06;
  box-shadow: 0 0 28px var(--cyan-glow);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--frost);
  background: rgba(77,232,255,.04);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.hero__pair-note {
  font-size: .78rem;
  color: var(--muted);
}
.hero__pair-note code { color: var(--cyan-dim); font-size: .72rem; }
.hero__pair-note[hidden] { display: none; }

.hero__float {
  position: absolute;
  right: clamp(1rem, 6vw, 4rem);
  top: 18%;
  z-index: 2;
  pointer-events: none;
  display: none;
}
.mascot {
  width: clamp(120px, 18vw, 220px);
  height: auto;
  border-radius: 22px;
  filter: drop-shadow(0 0 30px var(--cyan-glow));
  animation: float-y 4s ease-in-out infinite;
}
@media (min-width: 900px) {
  .hero__float { display: block; }
}

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

.banner-strip {
  border-block: 1px solid var(--line);
  background: #140c08;
}
.banner-strip img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
}

.section {
  position: relative; z-index: 5;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}
.section__head { margin-bottom: 2rem; max-width: 42rem; }
.section__head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.section__lead {
  margin-top: .85rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.section__lead strong { color: var(--frost); }

.lore__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .lore__grid { grid-template-columns: 1fr 1fr; }
}
.lore-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(77,232,255,.05), rgba(255,138,61,.03));
}
.lore-card__icon { font-size: 1.4rem; margin-bottom: .55rem; }
.lore-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: .45rem;
}
.lore-card p { color: var(--muted); font-size: .95rem; }
.lore-card--ascii .ascii-block {
  color: var(--cyan);
  font-size: .7rem;
  line-height: 1.2;
  margin-bottom: .75rem;
  opacity: .85;
}

.steps { list-style: none; display: grid; gap: 1rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12,16,24,.65);
}
.step__n {
  font-family: var(--mono);
  color: var(--orange);
  font-size: .9rem;
  letter-spacing: .08em;
  padding-top: .15rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .95rem; }

.chart-empty {
  padding: 2rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(77,232,255,.03);
}
.chart-empty code { color: var(--cyan); }
.chart-live[hidden], .chart-empty[hidden] { display: none !important; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.45);
}
.stat span {
  display: block;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}
.stat strong { font-size: 1.05rem; color: var(--cyan); }
.chart-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0a;
  min-height: 420px;
}
.chart-frame iframe {
  width: 100%;
  height: 480px;
  border: 0;
}

.signal__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .signal__grid { grid-template-columns: 1fr 1fr; }
}
.signal__label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
}
.tweet-wrap {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.35);
  min-height: 120px;
}
.tweet-wrap twitter-widget,
.tweet-wrap iframe { margin: 0 auto !important; }

.video-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,138,61,.06), rgba(77,232,255,.04));
}
.video-card__note {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .9rem;
}
.video-card__player {
  width: 100%;
  max-height: 640px;
  border-radius: 12px;
  background: #140c08;
  border: 1px solid rgba(77,232,255,.15);
}

.vault__grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 860px) {
  .vault__grid { grid-template-columns: repeat(3, 1fr); }
}
.vault__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  aspect-ratio: 1;
}
.vault__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.vault__item:hover img { transform: scale(1.04); }

.faq__list { display: grid; gap: .65rem; }
.faq__list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12,16,24,.7);
  padding: .15rem 1rem 0;
}
.faq__list summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list details[open] summary { color: var(--cyan); }
.faq__list details p {
  color: var(--muted);
  padding: 0 0 1rem;
  font-size: .95rem;
}
.faq__list code { color: var(--cyan); font-size: .85rem; }

.footer {
  position: relative; z-index: 5;
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}
.footer__brand {
  display: flex; align-items: center; gap: .75rem;
}
.footer__brand img {
  width: 40px; height: 40px; border-radius: 10px;
}
.footer__brand strong {
  display: block;
  font-family: var(--display);
}
.footer__brand span {
  color: var(--muted);
  font-size: .85rem;
}
.footer__warn, .footer__copy {
  color: var(--muted);
  font-size: .85rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 300;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  background: rgba(0,0,0,.9);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Muchan extras */
.gate__logo { border-radius: 50%; }
.nav__brand img { border-radius: 50%; }
.mascot { border-radius: 50%; }
.hero__word { color: var(--cream); }
.signal__grid { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .signal__grid { grid-template-columns: repeat(3, 1fr); }
}
.paw-row { display: flex; gap: .35rem; justify-content: center; font-size: 1.1rem; opacity: .8; margin-top: .75rem; }
.video-card { display: none; }
