:root {
  --paper: #070a08;
  --white: #101612;
  --studio: #ffffff;
  --ink: #f3f7f3;
  --ink-soft: #9eaea2;
  --cinnamon: #ccff00;
  --copper: #00a304;
  --amber: #9dff9a;
  --line: rgba(243, 247, 243, 0.1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button,
.btn {
  font-family: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.toast {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translate(-50%, -140%);
  background: var(--cinnamon);
  color: #041105;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  z-index: 20;
  transition: transform 0.35s ease;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 6vw;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.tracker {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  background: linear-gradient(180deg, #f4f6f8, #c7ccd2);
  box-shadow: inset 0 0 0 1px #9aa1a8, 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tracker.small {
  width: 1.4rem;
  height: 1.4rem;
}

.tracker-ping,
.tracker::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: #2d3338;
}

.tracker-ping {
  inset: auto;
  width: 2.4rem;
  height: 2.4rem;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(0, 200, 5, 0.55);
  background: transparent;
  border-radius: 6px;
  transform: translate(-50%, -50%);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--ink-soft);
}

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

.menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0;
}

.menu span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.btn-solid {
  background: var(--cinnamon);
  color: #041105;
}

.btn-solid:hover {
  background: #5cff5c;
}

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

.btn-ghost:hover {
  border-color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(340px, 1.08fr);
  align-items: center;
  gap: 1.5rem 2.5rem;
  min-height: calc(100svh - 72px - 48px);
  padding: 3.5vh 5vw 0 6vw;
  overflow: hidden;
  background:
    radial-gradient(ellipse 48% 62% at 78% 58%, rgba(0, 200, 5, 0.16), transparent 62%),
    var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 2.4rem;
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cinnamon);
  font-weight: 600;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9e62;
  box-shadow: 0 0 0 6px rgba(47, 158, 98, 0.12);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8.4vw, 7.6rem);
  line-height: 0.86;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.hero h1 em {
  display: block;
  margin-top: 0.42em;
  font-size: 0.26em;
  font-style: italic;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 18ch;
  line-height: 1.3;
}

.hero-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  margin: 1.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.hero-pills .slash {
  color: var(--amber);
  font-style: italic;
}

.hero-pills .pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: var(--cinnamon);
  color: #041105;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.lede {
  max-width: 40ch;
  margin: 1.15rem 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.7rem 0 1.2rem;
}

.ca-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 420px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.ca-row > div {
  min-width: 0;
}

#ca {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.ca-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.copy-btn {
  flex-shrink: 0;
  border: 0;
  background: var(--cinnamon);
  color: #041105;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
  height: 100%;
}

.hero-glow {
  position: absolute;
  width: 78%;
  height: 70%;
  right: 4%;
  bottom: 6%;
  background: radial-gradient(ellipse at center, rgba(0, 200, 5, 0.28), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-cat {
  position: relative;
  z-index: 1;
  width: min(118%, 820px);
  max-height: calc(100svh - 132px);
  margin: 0 -6% 0 auto;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 32px;
  background: var(--studio);
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.45));
  animation: floaty 5.5s ease-in-out infinite;
}

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

.hero-caption {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 11%;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
}

.hero-caption span {
  display: block;
  color: var(--cinnamon);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.marquee {
  border-block: 1px solid rgba(0, 200, 5, 0.25);
  background: var(--cinnamon);
  color: #041105;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  padding: 0.85rem 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  animation: slide 28s linear infinite;
}

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

.lore,
.posts,
.tokenomics,
.buy,
.observe,
.chart {
  scroll-margin-top: 5.5rem;
}

.lore,
.posts,
.tokenomics,
.buy,
.chart {
  padding: 6.5rem 6vw;
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-head h2,
.buy-panel h2,
.box h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

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

.lore-card {
  padding: 1.4rem 1.3rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 240px;
}

.lore-card.featured {
  background: var(--cinnamon);
  color: #041105;
}

.lore-card.featured p {
  color: #145214;
}

.lore-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cinnamon);
}

.lore-card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 1.4rem 0 0.6rem;
}

.lore-card p {
  margin: 0;
  color: var(--ink-soft);
}

.observe {
  padding: 0 6vw 2rem;
}

.box {
  text-align: center;
  padding: 4rem 1.5rem;
  border: 1px dashed color-mix(in srgb, var(--cinnamon) 55%, var(--line));
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 160, 106, 0.18), transparent 42%),
    var(--white);
}

.box-states {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  margin: 0.6rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.state {
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.state-or {
  color: var(--amber);
  font-weight: 400;
  font-style: italic;
}

.box.alive #stateDead,
.box.dead #stateAlive {
  opacity: 0.18;
  filter: blur(6px);
}

.box-copy {
  max-width: 42ch;
  margin: 0 auto 1.6rem;
  color: var(--ink-soft);
}

.posts {
  background: #050806;
}

.thread {
  position: relative;
  max-width: 640px;
}

.thread-line {
  width: 2px;
  height: 28px;
  margin: 0 0 0 35px;
  background: var(--line);
}

.tweet {
  position: relative;
  padding: 1.2rem 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.tweet:hover {
  transform: translateY(-3px);
}

.tweet-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.tweet-head,
.quote-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tweet-head {
  margin-bottom: 0.85rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
}

.avatar-elon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
}

.tweet-name {
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tweet-handle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.verified {
  width: 17px;
  height: 17px;
  color: #1d9bf0;
}

.x-logo {
  width: 18px;
  margin-left: auto;
}

.tweet-body {
  margin: 0 0 0.9rem;
  font-size: 1.12rem;
  line-height: 1.45;
}

.quote-tweet {
  position: relative;
  z-index: 2;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 0.85rem;
  background: color-mix(in srgb, var(--white) 70%, #000);
}

.quote-tweet p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.quote-head .tweet-handle {
  font-size: 0.8rem;
}

.tweet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.embed-label {
  margin: 2.4rem 0 0.8rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cinnamon);
  font-weight: 600;
}

.x-embeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0;
  align-items: start;
}

.x-embeds .twitter-tweet {
  margin: 0 !important;
  max-width: none !important;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.5;
}

.x-embeds .twitter-tweet a {
  color: var(--cinnamon);
}

.tweet-reply .avatar {
  object-position: 35% 18%;
}

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

.stat {
  padding: 1.4rem;
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--line);
}

.stat p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.chart {
  background: #050806;
}

#dexscreener-embed {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: -0.5rem 0 1.1rem;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dex-frame {
  position: relative;
  width: 100%;
  height: min(78vh, 740px);
  min-height: 480px;
  border-radius: 24px;
  overflow: hidden;
  background: #0b0e11;
  border: 1px solid rgba(26, 20, 16, 0.18);
  box-shadow: var(--shadow);
}

.dex-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.dex-frame.is-live iframe {
  display: block;
}

.dex-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  padding: 2rem;
  text-align: center;
  color: #c8c2bb;
  font-family: var(--serif);
}

.dex-fallback p {
  margin: 0;
}

.dex-fallback p:first-child {
  font-size: 1.6rem;
  color: #fff;
}

.dex-frame.is-live .dex-fallback {
  display: none;
}

.buy {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.buy-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 0.15rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

.buy-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.buy-art img {
  border-radius: 28px;
  background: var(--studio);
}

.buy-art figcaption {
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: end;
  padding: 2rem 6vw 2.4rem;
  border-top: 1px solid var(--line);
}

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

.footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.disclaimer {
  max-width: 52ch;
}

@media (max-width: 980px) {
  .hero,
  .buy,
  .footer,
  .lore-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 2rem 6vw 0;
    gap: 0;
  }

  .hero-copy {
    order: 1;
    padding-bottom: 1.2rem;
  }

  .hero-art {
    order: 0;
    min-height: 340px;
  }

  .hero-cat {
    width: min(100%, 520px);
    max-height: 58vh;
    margin: 0 auto;
  }

  .hero-caption {
    right: 50%;
    bottom: 4%;
    transform: translateX(50%);
  }

  .nav-cta {
    display: none;
  }

  .menu {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 6vw 1.2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
  }

  .nav-links.open {
    display: flex;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .x-embeds {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .stat-grid,
  .lore-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
