:root {
  --ink: #0e0c0a;
  --ink-2: #171410;
  --panel: #1c1813;
  --line: rgba(224, 178, 74, 0.22);
  --paper: #f4e7c9;
  --gold: #e0b24a;
  --gold-deep: #b8862b;
  --sage: #7d9a6a;
  --sage-deep: #5a754c;
  --luck: #c4452d;
  --muted: #b3a48c;
  --text: #f6efe0;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: "Noto Sans SC", "Bricolage Grotesque", system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.grain,
.glow,
.seal {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.grain {
  z-index: 8;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' 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");
}

.glow {
  z-index: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(224, 178, 74, 0.18), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(125, 154, 106, 0.16), transparent 28%),
    radial-gradient(circle at 70% 90%, rgba(196, 69, 45, 0.08), transparent 30%);
}

.seal {
  z-index: 0;
  display: grid;
  place-items: center;
  font-family: "Ma Shan Zheng", serif;
  font-size: 48vw;
  color: rgba(224, 178, 74, 0.045);
  transform: translateY(8vh);
}

.nav,
main,
.foot,
.ticker {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: rgba(14, 12, 10, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.brand strong {
  display: block;
  font-size: 1.15rem;
}

.brand small {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}

.links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.links a:hover {
  color: var(--gold);
}

.nav-cta,
.hero-actions,
.buy-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.gold,
.ghost,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: 650 0.92rem/1 "Bricolage Grotesque", sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
}

.gold {
  color: #1a1408;
  background: linear-gradient(180deg, #f0c86a, var(--gold) 55%, var(--gold-deep));
}

.ghost,
.icon-btn {
  color: var(--paper);
  background: transparent;
  border-color: var(--line);
}

.gold:hover,
.ghost:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #14110d;
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.ticker-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  padding: 0.55rem 0;
  animation: marquee 28s linear infinite;
}

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

.hero,
.lore,
.chart,
.buy,
.tokenomics {
  padding: 5.5rem 6vw;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 7rem);
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--sage);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.symbol {
  font-family: "Ma Shan Zheng", serif;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(5rem, 12vw, 9.5rem);
  line-height: 0.85;
  color: var(--paper);
}

.symbol {
  margin: 0.2rem 0 1.2rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--gold);
}

.lead {
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
  padding: 0.65rem 0.7rem 0.65rem 1rem;
  max-width: 34rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(28, 24, 19, 0.7);
}

.ca-label {
  color: var(--sage);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#ca-display {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--paper);
  font-size: 0.92rem;
}

.icon-btn {
  padding: 0.45rem 0.9rem;
  background: #2a241c;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 28rem;
}

.ring {
  position: absolute;
  border-radius: 50%;
}

.ring.gold {
  width: min(34rem, 92%);
  aspect-ratio: 1;
  border: 1px dashed rgba(224, 178, 74, 0.55);
  animation: spin 28s linear infinite;
}

.ring.sage {
  width: min(28rem, 78%);
  aspect-ratio: 1;
  border: 10px solid rgba(125, 154, 106, 0.28);
}

.medallion {
  width: min(22rem, 68%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow), 0 0 0 14px rgba(224, 178, 74, 0.08);
  animation: float 5.5s ease-in-out infinite;
}

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

.caption {
  position: absolute;
  bottom: 0.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

.lore {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  background: linear-gradient(180deg, transparent, rgba(125, 154, 106, 0.05));
}

.lore h2,
.chart h2,
.buy h2,
.tokenomics h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.lore p,
.sub {
  color: var(--muted);
  font-size: 1.05rem;
}

.lore-photo {
  overflow: hidden;
  border-radius: 1.5rem 6rem 1.5rem 6rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lore-photo img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

blockquote {
  margin: 1.4rem 0 0;
  padding: 1rem 0 1rem 1.1rem;
  border-left: 3px solid var(--luck);
  color: var(--paper);
  font-family: "Ma Shan Zheng", serif;
  font-size: 1.8rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.chart-window {
  position: relative;
  z-index: 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #0a0908;
  box-shadow: var(--shadow);
}

.chart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.dots {
  width: 42px;
  height: 10px;
  background:
    radial-gradient(circle, #c4452d 4px, transparent 5px) 0 0 / 14px 10px,
    radial-gradient(circle, #e0b24a 4px, transparent 5px) 14px 0 / 14px 10px,
    radial-gradient(circle, #7d9a6a 4px, transparent 5px) 28px 0 / 14px 10px;
}

.live {
  color: var(--gold);
}

.chart-stage {
  position: relative;
  height: min(72vh, 720px);
  background: #0a0908;
}

.chart-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0a0908;
}

.buy {
  background: var(--ink-2);
}

.buy ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.8rem;
  padding: 0;
  list-style: none;
}

.buy li {
  display: flex;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--ink);
}

.buy li span {
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
}

.buy h3 {
  margin-bottom: 0.35rem;
}

.buy p {
  margin: 0;
  color: var(--muted);
}

.tokenomics .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tokenomics article {
  padding: 1.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(224, 178, 74, 0.07), transparent);
}

.tokenomics h3 {
  color: var(--gold);
  font-size: 1.7rem;
}

.tokenomics p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 6vw 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot-brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.foot-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.foot-brand p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
}

.foot-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 30;
  transform: translate(-50%, 20px);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

button {
  font-family: inherit;
}

::selection {
  background: var(--gold);
  color: #1a1408;
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
  }

  .links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 0.35rem;
  }

  .hero,
  .lore,
  .buy ol,
  .tokenomics .grid,
    .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-mark {
    order: -1;
    min-height: 22rem;
  }

  .section-head,
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-stage {
    height: 620px;
  }
}

@media (max-width: 640px) {
  .nav,
  .hero,
  .lore,
  .chart,
  .buy,
  .tokenomics,
  .foot,
      .nav-cta .ghost {
    display: none;
  }

  .hero h1 {
    font-size: 4.4rem;
  }

  .ca-row {
    max-width: none;
  }
}
