/* Ascended Inu — palette taken from the mascot and the X banner */
:root {
  --night: #07080f;
  --night-2: #110f1d;
  --ink: #1a0f24;            /* dark text on gradient surfaces */
  --cream: #f6ecdb;
  --cream-dim: rgba(246, 236, 219, .7);
  --cream-faint: rgba(246, 236, 219, .14);
  --lilac: #af94f8;
  --orchid: #ba73e9;
  --rose: #f27ea0;
  --peach: #fedcb7;
  --ascend: linear-gradient(100deg, var(--lilac) 0%, var(--rose) 52%, var(--peach) 100%);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

main { overflow-x: clip; } /* the tilted band and reels never cause sideways scroll */

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

a { color: inherit; }

p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  letter-spacing: -.02em;
}

h3 {
  font-size: 1.25rem;
  font-stretch: 112%;
  line-height: 1.2;
}

code { font-family: inherit; font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: .6em 1em; border-radius: 10px;
  background: var(--cream); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  --lift: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-stretch: 110%;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transform: translateY(var(--lift));
  transition: transform .35s var(--ease-out), background-position .6s var(--ease-out), box-shadow .35s var(--ease-out), background-color .2s;
}
.btn:hover { --lift: -2px; }
.btn:active { --lift: 0px; }

.btn-primary {
  color: var(--ink);
  background-image: linear-gradient(100deg, var(--lilac), var(--rose), var(--peach), var(--rose), var(--lilac));
  background-size: 250% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px -12px rgba(242, 126, 160, .6);
}
.btn-primary:hover { background-position: 70% 50%; box-shadow: 0 14px 36px -12px rgba(242, 126, 160, .8); }

.btn-ghost {
  color: var(--cream);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(246, 236, 219, .45);
}
.btn-ghost:hover { background-color: var(--cream-faint); box-shadow: inset 0 0 0 1.5px var(--cream); }

.btn-small { min-height: 42px; padding: .7em 1.2em; font-size: .9375rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background-color: rgba(7, 8, 15, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--cream-faint);
}
.nav-inner {
  height: 100%;
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-weight: 800; font-stretch: 118%; font-size: 1.0625rem;
}
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav nav { margin-left: auto; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--cream-dim); font-weight: 500; font-size: .9375rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 72px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 55% at 75% 45%, rgba(175, 148, 248, .16), transparent 70%),
    radial-gradient(40% 40% at 15% 90%, rgba(242, 126, 160, .08), transparent 70%),
    var(--night);
}

.hero-particles {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-ribbon {
  position: absolute; z-index: -1;
  right: -12%; bottom: -18%;
  width: min(1150px, 92vw);
  height: auto;
  aspect-ratio: 1;
  pointer-events: none;
}
.ribbon-band {
  fill: none; stroke: url(#ribbon); stroke-width: 150; stroke-linecap: butt;
  opacity: 1;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.ribbon-band--soft { stroke-width: 70; opacity: .45; }
.ribbon-line {
  fill: none; stroke: var(--cream); stroke-width: 1.5; opacity: .28;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}

.hero-inner {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.hero-title {
  font-size: clamp(2.9rem, 6.9vw, 6.4rem);
  font-weight: 850;
  font-stretch: 125%;
  line-height: .9;
  letter-spacing: -.035em;
  text-wrap: initial;
}

/* Countdown — sits under the headline */
.countdown {
  display: inline-grid;
  gap: 10px;
  margin-top: clamp(22px, 2.6vw, 34px);
  padding: 16px 24px 14px;
  border-radius: 22px;
  background: rgba(17, 15, 29, .62);
  box-shadow: inset 0 0 0 1px var(--cream-faint);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.countdown-title {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 800;
  font-stretch: 118%;
  color: var(--cream);
}
.countdown-clock { display: flex; align-items: flex-start; gap: clamp(6px, 1vw, 12px); }
.countdown-unit { display: grid; justify-items: center; gap: 4px; }
.countdown-num,
.countdown-sep {
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  font-weight: 850;
  font-stretch: 112%;
  line-height: 1;
}
.countdown-num {
  display: block;
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: var(--ascend);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.countdown-num.is-tick { animation: tick .45s var(--ease-out); }
.countdown-sep { color: rgba(246, 236, 219, .3); }
.countdown-label { font-size: .8125rem; color: var(--cream-dim); }
.countdown.is-done .countdown-num { background: none; color: var(--cream); }
@keyframes tick { from { opacity: .25; transform: translateY(.3em); } }

.hero-lede {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--cream-dim);
}
.hero-lede a { color: var(--cream); text-decoration-color: var(--rose); text-underline-offset: 3px; }

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

.ca-chip {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 24px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: rgba(17, 15, 29, .7);
  box-shadow: inset 0 0 0 1px var(--cream-faint);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ca-chip-label { font-weight: 800; font-stretch: 120%; font-size: .8125rem; color: var(--rose); }
.ca-chip-value { font-size: .9375rem; color: var(--cream); letter-spacing: .01em; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: var(--cream-faint); color: var(--cream);
  font: inherit; font-size: .875rem; font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.copy-btn:hover { background: rgba(246, 236, 219, .24); }
.copy-btn.is-copied { background: var(--peach); color: var(--ink); }

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  will-change: transform;
}
.hero-halo {
  position: absolute; inset: -18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 126, 160, .38), rgba(175, 148, 248, .18) 55%, transparent 75%);
  filter: blur(10px);
  z-index: -1;
}
.hero-mascot {
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(7, 8, 15, .55));
}

/* Hero entrance — one orchestrated sequence */
.js .hero-title,
.js .countdown,
.js .hero-lede,
.js .hero-actions,
.js .ca-chip { opacity: 0; transform: translateY(18px); }
.js .hero-mascot { opacity: 0; transform: translateY(80px) scale(.94); }
.js .hero-halo { opacity: 0; }
.js .ribbon-band, .js .ribbon-line { stroke-dashoffset: 1; }

.js.is-ready .hero-title   { animation: rise .9s var(--ease-out) .05s forwards; }
.js.is-ready .countdown    { animation: rise .9s var(--ease-out) .12s forwards; }
.js.is-ready .hero-lede    { animation: rise .9s var(--ease-out) .2s forwards; }
.js.is-ready .hero-actions { animation: rise .9s var(--ease-out) .32s forwards; }
.js.is-ready .ca-chip      { animation: rise .9s var(--ease-out) .44s forwards; }
.js.is-ready .ribbon-band,
.js.is-ready .ribbon-line  { animation: draw 1.8s var(--ease-out) .1s forwards; }
.js.is-ready .ribbon-line:nth-of-type(4) { animation-delay: .3s; }
.js.is-ready .hero-halo    { animation: fade 1.6s ease .5s forwards; }
.js.is-ready .hero-mascot  {
  animation:
    ascend 1.4s var(--ease-out) .35s forwards,
    hover 6s ease-in-out 1.75s infinite;
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ascend { to { opacity: 1; transform: none; } }
@keyframes hover {
  0%, 100% { opacity: 1; transform: translateY(0) rotate(0deg); }
  50%      { opacity: 1; transform: translateY(-14px) rotate(-1.5deg); }
}

/* ---------- Motto band ---------- */
.band {
  position: relative; z-index: 2;
  margin-top: -36px;
  transform: rotate(-2deg);
  background: var(--ascend);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(242, 126, 160, .5);
}
.band-track { display: flex; justify-content: center; }
.band-list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 28px;
  margin: 0; padding: 18px 14px;
  list-style: none;
  font-weight: 800; font-stretch: 122%;
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  letter-spacing: -.01em;
}
.spark {
  width: .8em; height: .8em; flex: none;
  background: var(--ink);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* Marquee motion. Static by default (wraps / scrolls); JS adds .marquee-on,
   clones each list so the loop is seamless, and adds .is-looping. */
.marquee-on .band-track { width: max-content; justify-content: flex-start; }
.marquee-on .band-list { flex: none; flex-wrap: nowrap; white-space: nowrap; }
[data-marquee].is-looping { animation: marquee var(--duration, 40s) linear infinite; }
.reel-row--reverse[data-marquee].is-looping { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(88px, 12vw, 160px); }

/* Tokenomics */
.tok-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.tok-intro { position: sticky; top: calc(var(--nav-h) + 32px); }
.tok-intro > p { margin-top: 24px; max-width: 38ch; color: var(--cream-dim); font-size: 1.125rem; }

.swap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 32px;
}
.swap-token {
  padding: .5em 1em; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--cream-faint);
  font-weight: 700; font-stretch: 110%;
}
.swap-arrows { color: var(--lilac); }
.swap-fee {
  padding: .5em 1em; border-radius: 999px;
  background: var(--ascend); color: var(--ink);
  font-weight: 800; font-stretch: 112%;
}

.splits { list-style: none; margin: 0; padding: 0; }
.split {
  display: grid;
  grid-template-columns: minmax(6.2ch, auto) 1fr;
  gap: 8px clamp(20px, 3vw, 40px);
  padding-block: 32px;
  border-top: 1px solid var(--cream-faint);
}
.split:last-child { border-bottom: 1px solid var(--cream-faint); }
.split-pct {
  font-size: clamp(3rem, 6.5vw, 5.25rem);
  font-weight: 850; font-stretch: 125%;
  line-height: .9; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: var(--ascend);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.split-body h3 { margin-top: 4px; }
.split-body p { margin-top: 8px; color: var(--cream-dim); max-width: 40ch; }

.meter {
  position: relative;
  margin-top: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(246, 236, 219, .08);
  overflow: hidden;
}
.meter span {
  position: absolute; inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  border-radius: inherit;
  background: var(--ascend);
  transform-origin: left;
}
.js .meter span { transform: scaleX(0); transition: transform 1.4s var(--ease-out); }
.js .split:nth-child(2) .meter span { transition-delay: .15s; }
.js .split:nth-child(3) .meter span { transition-delay: .3s; }
.js .splits.is-visible .meter span { transform: scaleX(1); }

/* How to buy — the steps climb */
.buy { background: linear-gradient(180deg, var(--night), var(--night-2) 40%, var(--night)); }
.steps {
  list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  align-items: end;
}
.step {
  position: relative;
  padding: 28px 28px 32px;
  border-radius: 28px;
  background: rgba(246, 236, 219, .035);
  box-shadow: inset 0 0 0 1px var(--cream-faint);
}
.step:nth-child(2) { margin-bottom: 48px; }
.step:nth-child(3) { margin-bottom: 96px; }
.step-num {
  display: inline-block;
  font-size: 4.5rem; font-weight: 850; font-stretch: 125%; line-height: .9;
  background: var(--ascend);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.step h3 { margin-top: 20px; }
.step-pup {
  position: absolute;
  right: 28px; bottom: calc(100% - 14px);
  width: 88px;
  filter: drop-shadow(0 10px 18px rgba(7, 8, 15, .6));
  transform: rotate(8deg);
}
.step p { margin-top: 10px; color: var(--cream-dim); }

.buy-panel {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 32px;
  padding: 24px 24px 24px 32px;
  border-radius: 28px;
  background: rgba(17, 15, 29, .9);
  box-shadow: inset 0 0 0 1px var(--cream-faint);
}
.ca-block { min-width: 0; }
.ca-block-label { font-size: .875rem; color: var(--cream-dim); }
.ca-block-value {
  display: block; margin-top: 4px;
  font-size: clamp(.9375rem, 1.7vw, 1.1875rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.buy-panel-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-btn--wide { min-height: 52px; padding: .85em 1.6em; font-size: 1rem; background: transparent; }
.copy-btn--wide.is-copied { background: var(--peach); color: var(--ink); box-shadow: none; }

/* Art reel */
.art .wrap { margin-bottom: clamp(32px, 4vw, 48px); }
.art-lede { margin-top: 16px; color: var(--cream-dim); font-size: 1.125rem; }
.art-lede a { color: var(--cream); text-decoration-color: var(--rose); text-underline-offset: 3px; }

.reel { display: grid; gap: 16px; }
.reel-row { display: flex; overflow-x: auto; overscroll-behavior-x: contain; }
.marquee-on .reel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-on .reel-row { width: max-content; overflow: visible; }
.reel:hover [data-marquee],
.reel:focus-within [data-marquee] { animation-play-state: paused; }
.reel-list {
  flex: none;
  display: flex; gap: 16px;
  margin: 0; padding: 0 8px;
  list-style: none;
}
.reel-list > li { flex: none; }
.reel-list img {
  height: clamp(180px, 22vw, 280px);
  width: auto;
  max-width: none;
  border-radius: 22px;
  background: var(--night-2);
  transition: transform .5s var(--ease-out);
}
.reel-list li:hover img { transform: scale(1.03); }

/* Join */
.join {
  text-align: center;
  padding-bottom: clamp(72px, 9vw, 120px);
  background: radial-gradient(50% 60% at 50% 100%, rgba(175, 148, 248, .14), transparent 70%);
}
.join-inner { display: flex; flex-direction: column; align-items: center; }
.join-mascot {
  width: 132px;
  filter: drop-shadow(0 18px 30px rgba(242, 126, 160, .35));
}
.join h2 { margin-top: 28px; font-size: clamp(2.4rem, 6.4vw, 5rem); }
.join p { margin-top: 18px; color: var(--cream-dim); font-size: 1.125rem; }
.join-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Footer */
.footer { padding-block: 40px 48px; box-shadow: inset 0 1px 0 var(--cream-faint); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.footer-note { max-width: 62ch; font-size: .875rem; color: rgba(246, 236, 219, .55); }
.footer-meta { font-size: .875rem; color: rgba(246, 236, 219, .55); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav nav { margin-left: auto; }

  .hero { padding-top: calc(var(--nav-h) + 8px); align-items: start; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: -1; width: min(62vw, 300px); }
  .hero-ribbon {
    right: -20%; bottom: auto; top: -45vw; width: 150vw;
    /* keep the ribbon behind the mascot only, so the copy stays readable */
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 94%);
            mask-image: linear-gradient(to bottom, #000 78%, transparent 94%);
  }

  .tok-grid { grid-template-columns: 1fr; }
  .tok-intro { position: static; }

  .steps { grid-template-columns: 1fr; align-items: stretch; }
  .step:nth-child(2), .step:nth-child(3) { margin-bottom: 0; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; padding: 24px; }
  .step-num { grid-row: span 2; font-size: 3.25rem; }
  .step-pup { display: none; }
  .step h3 { margin-top: 2px; }

  .buy-panel { padding: 22px; }
  .buy-panel-actions { width: 100%; }
  .buy-panel-actions .btn { flex: 1 1 180px; }
}

@media (max-width: 480px) {
  .brand span { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .ca-chip { width: 100%; }
  .ca-chip-value { margin-right: auto; }
  .countdown { display: grid; width: 100%; padding-inline: 20px; }
  .countdown-clock { justify-content: space-between; }
  .split { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-title, .js .countdown, .js .hero-lede, .js .hero-actions, .js .ca-chip,
  .js .hero-mascot, .js .hero-halo { opacity: 1; transform: none; animation: none !important; }
  .countdown-num.is-tick { animation: none; }
  .js .ribbon-band, .js .ribbon-line { stroke-dashoffset: 0; animation: none !important; }
  .js .meter span { transform: none; transition: none; }
  [data-marquee].is-looping { animation: none; }
  .btn, .reel-list img { transition: none; }
}
