@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/marcellus-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-var.woff2) format('woff2');
}

:root {
  --bg: #0a0a0c;
  --bg-2: #0f0f13;
  --card: #141418;
  --card-2: #18181d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f1ec;
  --muted: #a6a3ad;
  --lav: #c9b6f5;
  --peach: #ffc48e;
  --pink: #f08bb0;
  --violet: #7f86ff;
  --grad: linear-gradient(100deg, #7f86ff 0%, #b07cf2 26%, #f08bb0 54%, #ff9f8a 76%, #ffc48e 100%);
  --serif: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.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; }
.sr-copy { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-grad { background: var(--grad); color: #121014; box-shadow: 0 8px 30px -10px rgba(240, 139, 176, .55); }
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -10px rgba(240, 139, 176, .75); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); }
.btn.is-copied { border-color: rgba(255, 196, 142, .6); color: var(--peach); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-family: var(--serif); font-size: 25px; letter-spacing: .03em; }
.menu-panel { display: flex; align-items: center; gap: 30px; }
.menu-panel a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.menu-panel a:not(.btn):hover { color: var(--text); }
.menu-panel .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.menu { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 105%, rgba(255, 159, 138, .16), transparent 70%),
    radial-gradient(45% 50% at 12% 20%, rgba(127, 134, 255, .12), transparent 70%);
}
.hero-grid {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(32px, 5vw, 80px);
  padding-block: 56px 72px;
}
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 139, 176, .22), rgba(127, 134, 255, .08) 60%, transparent);
  filter: blur(30px);
}
.hero-svg { position: relative; width: min(100%, 520px); height: auto; }
.wave { transform-box: fill-box; transform-origin: 50% 100%; }
.wave-back { animation: sway 14s ease-in-out infinite alternate; }
.wave-front { animation: sway 18s ease-in-out -6s infinite alternate-reverse; }
@keyframes sway { from { transform: translateX(-6px) rotate(-1.2deg); } to { transform: translateX(6px) rotate(1.2deg); } }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(255, 159, 138, .8); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(72px, 10.5vw, 150px); line-height: .95; letter-spacing: .005em;
  background: linear-gradient(95deg, #fff7ee 0%, #ffe6c4 35%, #f6b0c6 70%, #c9b6f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.kicker { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--peach); }
.lede { margin-top: 20px; max-width: 34em; color: #cfccd4; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 28px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #7d7a85; }

/* ---------- marquee ---------- */
.marquee-wrap { position: relative; z-index: 2; overflow: hidden; padding-block: 18px; margin-top: -10px; }
.marquee {
  background: var(--grad); color: #141016;
  transform: rotate(-1.4deg); margin-inline: -40px;
  border-block: 1px solid rgba(255, 255, 255, .25);
  overflow: hidden;
}
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 16px 0; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 22px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 14px; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 112px); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--peach); }
.eyebrow span { width: 48px; height: 1px; background: linear-gradient(90deg, var(--peach), transparent); }
.section h2 { margin-top: 18px; font-size: clamp(42px, 6vw, 76px); line-height: 1.04; }
.section h2 em, .hero h1 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-note { margin-top: 18px; color: var(--muted); max-width: 40em; }

.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-grid > div > p:not(.eyebrow) { margin-top: 20px; color: #cfccd4; }
.about-grid h2 + p { margin-top: 28px !important; }
.meme-flag {
  margin-top: 28px !important; padding: 18px 20px; border-radius: 14px;
  border: 1px solid var(--line); border-left: 2px solid var(--pink);
  background: linear-gradient(90deg, rgba(240, 139, 176, .08), rgba(255, 255, 255, .015));
  color: var(--text) !important; font-weight: 500; font-size: 16px;
}
.vibe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vibe-list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.vibe-list li:hover { border-color: var(--line-2); transform: translateY(-2px); }
.vibe-list b {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(127, 134, 255, .18), rgba(255, 196, 142, .14)); color: var(--peach);
  border: 1px solid var(--line-2);
}
.vibe-list b svg { width: 22px; height: 22px; }
.vibe-list h3 { font-size: 22px; line-height: 1.2; }
.vibe-list p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ---------- token ---------- */
.token { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.stat {
  position: relative; padding: 24px 22px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden;
}
.stat::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); opacity: .55; }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat strong { display: block; margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; color: var(--lav); overflow-wrap: anywhere; }
.stat strong.num { font-family: var(--sans); font-weight: 500; letter-spacing: -.01em; }
.stat p { margin-top: 6px; font-size: 13px; color: var(--muted); }

.ca-box {
  margin-top: 14px; padding: 22px; border-radius: 18px;
  background:
    linear-gradient(var(--card-2), var(--card-2)) padding-box,
    linear-gradient(100deg, rgba(127, 134, 255, .55), rgba(240, 139, 176, .45), rgba(255, 196, 142, .55)) border-box;
  border: 1px solid transparent;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 22px;
}
.ca-label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ca-box code { font-family: var(--mono); font-size: clamp(14px, 1.6vw, 18px); color: var(--text); overflow-wrap: anywhere; word-break: break-all; }
.fine-line { margin-top: 14px; font-size: 14px; color: var(--muted); }
.pair { margin-top: 28px; display: grid; gap: 6px; font-size: 15px; color: #cfccd4; }
.pair span { display: inline-block; min-width: 82px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pair code { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; word-break: break-all; }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; padding: 120px 0 56px; border-top: 1px solid var(--line); }
.foot-waves {
  position: absolute; right: -10%; bottom: -55%; width: 70%; aspect-ratio: 1.6; pointer-events: none; opacity: .5;
  background:
    radial-gradient(closest-side, rgba(255, 196, 142, .55), rgba(240, 139, 176, .35) 45%, rgba(127, 134, 255, .2) 70%, transparent);
  filter: blur(40px);
}
.foot-grid { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.foot p { color: var(--muted); font-size: 14px; max-width: 62em; }
.foot p + p { margin-top: 10px; }
.foot strong { color: var(--text); font-weight: 600; }
.foot .fine { margin-top: 22px; font-size: 13px; color: #7d7a85; letter-spacing: .04em; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 20px; text-align: center; }
.notfound h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; }
.notfound p { color: var(--muted); max-width: 30em; }

/* ---------- reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 12px; border-radius: 12px;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); cursor: pointer;
  }
  .menu span { display: block; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .menu-panel {
    position: absolute; top: calc(var(--nav-h) - 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 22px; background: rgba(10, 10, 12, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .menu-panel.is-open { display: flex; }
  .menu-panel a:not(.btn) { padding: 14px 4px; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .menu-panel .btn { margin-top: 14px; min-height: 50px; font-size: 15px; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 28px 64px; gap: 8px; text-align: center; }
  .hero-art { order: 0; }
  .hero-svg { width: min(68vw, 300px); }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .actions { justify-content: center; }
  .lede { font-size: 17px; }
  .ca-box { grid-template-columns: 1fr; }
  .ca-box .btn { justify-self: start; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand span { font-size: 22px; }
  .hero h1 { margin-top: 18px; }
  .hero .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .stat-grid { gap: 10px; }
  .stat { padding: 18px 16px 18px; }
  .stat strong { font-size: 26px; }
  .ca-box { padding: 18px 16px; }
  .ca-box .btn { justify-self: stretch; }
  .token .actions .btn { width: 100%; }
  .pair span { display: block; margin-bottom: 2px; }
  .pair p + p { margin-top: 8px; }
  .marquee span { font-size: 18px; }
  .foot { padding-top: 88px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid img { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .wave-back, .wave-front { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .vibe-list li { transition: none; }
}
