:root {
  --base: #0052ff;
  --base-2: #2667ff;
  --base-soft: #eef3ff;
  --base-line: #d7e3ff;
  --orange: #ff5c1c;
  --bg: #ffffff;
  --ink: #0b1220;
  --muted: #5c6b86;
  --card: #ffffff;
  --line: #e6edf8;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Syne", "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Grotesk", ui-sans-serif, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.orb {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
}

.orb-a {
  width: 38vw;
  height: 38vw;
  background: rgba(0, 82, 255, 0.12);
  top: -8vw;
  right: -6vw;
}

.orb-b {
  width: 28vw;
  height: 28vw;
  background: rgba(0, 82, 255, 0.08);
  bottom: 8vh;
  left: -8vw;
}

.marquee {
  position: relative;
  z-index: 40;
  overflow: hidden;
  background: var(--base);
  color: #fff;
  height: 46px;
  display: flex;
  align-items: center;
}

.marquee-mid {
  background: var(--base-soft);
  color: var(--base);
  border-top: 1px solid var(--base-line);
  border-bottom: 1px solid var(--base-line);
  height: 50px;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
  min-width: max-content;
}

.marquee-track.reverse {
  animation-direction: reverse;
  animation-duration: 38s;
}

.marquee-track span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 1.1rem;
}

.marquee-track i {
  width: 7px;
  height: 7px;
  background: #fff;
  display: inline-block;
  flex: 0 0 auto;
}

.marquee-mid .marquee-track i {
  background: var(--base);
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--base);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  appearance: none;
  color: inherit;
}

.btn-solid {
  background: var(--base);
  color: #fff;
}

.btn-solid:hover {
  background: var(--base-2);
  transform: translateY(-1px);
}

.btn-line {
  border-color: var(--base-line);
  background: #fff;
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--base);
  color: var(--base);
}

.btn-ghost {
  width: 42px;
  padding: 0;
  border-color: var(--base-line);
}

.btn-lg {
  padding: 0.95rem 1.45rem;
  font-size: 0.95rem;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px auto;
}

.hero,
.about,
.buy,
.chart,
.tokenomics,
.roadmap,
.memes,
.join {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: calc(100svh - 110px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2vw;
  padding: 4vh 6vw 6vh;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--base);
  text-transform: lowercase;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.base-sq {
  width: 12px;
  height: 12px;
  background: var(--base);
  border-radius: 2px;
  position: relative;
  display: inline-block;
}

.base-sq::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 1px;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--ink);
}

h1 {
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  margin-bottom: 1.3rem;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  margin-bottom: 1.1rem;
}

em {
  font-style: italic;
  color: var(--base);
}

.lede {
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--base-line);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.55rem 0.55rem 0.85rem;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
}

.ca-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--base);
  flex: none;
}

.ca-pill code {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}

.ca-pill small {
  background: var(--base);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  flex: none;
}

.ca-full code {
  font-family: var(--mono);
  word-break: break-all;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: 72%;
  height: 72%;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.18), transparent 68%);
}

.hero-art img {
  position: relative;
  width: min(540px, 100%);
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.about,
.buy,
.chart,
.tokenomics,
.roadmap,
.memes,
.join {
  padding: 7.5rem 6vw;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5vw;
  align-items: center;
  background: var(--base-soft);
}

.about-visual {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: end;
}

.polaroid,
.juice-card {
  background: #fff;
  border: 1px solid var(--base-line);
  padding: 0.85rem;
}

.polaroid img,
.juice-card img {
  width: 100%;
  background: #fff;
}

.polaroid p,
.juice-card p {
  font-family: var(--serif);
  font-style: italic;
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
}

.about-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 42rem;
}

.about-copy strong {
  color: var(--base);
}

.note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink) !important;
  font-size: 1.25rem;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.6rem;
}

.section-head p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.steps li,
.tok-grid article,
.map article {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.4rem;
}

.steps li {
  min-height: 220px;
}

.steps span {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--base);
  font-weight: 700;
}

.steps h3,
.tok-grid h3,
.map h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  margin: 0.7rem 0 0.55rem;
}

.steps p,
.tok-grid p,
.map p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.buy-links .btn {
  background-clip: padding-box;
}

.chart-frame {
  width: 100%;
  height: min(72vh, 640px);
  border: 1px solid var(--base-line);
  background: #fff;
  overflow: hidden;
}

.chart-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.supply {
  border: 1px solid var(--base-line);
  background: var(--base-soft);
  padding: 2.4rem;
  text-align: center;
  margin-bottom: 1rem;
}

.supply-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--base);
}

.supply-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 1;
  margin: 0.4rem 0;
  color: var(--base);
}

.supply-note {
  color: var(--muted);
}

.tok-grid,
.map,
.meme-grid {
  display: grid;
  gap: 1rem;
}

.tok-grid {
  grid-template-columns: repeat(4, 1fr);
}

.map {
  grid-template-columns: repeat(3, 1fr);
}

.map article p:first-child {
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.meme-grid {
  grid-template-columns: repeat(3, 1fr);
}

.meme-grid figure {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: 0.25s ease;
}

.meme-grid figure:hover {
  transform: translateY(-6px);
  border-color: var(--base);
}

.meme-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}

.meme-grid figcaption {
  padding: 0.9rem 1rem 1.05rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

.join {
  text-align: center;
  padding-bottom: 5rem;
  background: var(--base-soft);
}

.join .kicker,
.join h2,
.join p {
  justify-content: center;
}

.join p {
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.join-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 6vw 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  background: #fff;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.foot-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.foot-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.foot a:hover {
  color: var(--base);
}

.foot-links {
  display: flex;
  gap: 1rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--base);
  color: #fff;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .hero-art img {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1200px) {
  .ca-pill {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label copy"
      "code code";
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    padding: 0.9rem 1rem;
    gap: 0.45rem 0.7rem;
    align-items: center;
  }

  .ca-label {
    grid-area: label;
  }

  .ca-pill small {
    grid-area: copy;
    justify-self: end;
  }

  .ca-pill code {
    grid-area: code;
    white-space: normal;
    word-break: break-all;
    line-height: 1.45;
    font-size: 0.86rem;
    color: var(--ink);
  }
}

@media (max-width: 1100px) {
  .steps,
  .tok-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps li {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .nav {
    padding: 0.7rem 4.5vw;
    gap: 0.5rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 1rem 5vw;
    border-top: 1px solid var(--line);
    min-height: 48px;
  }

  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .nav .btn-solid {
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
  }

  .hero,
  .about,
  .about-visual {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 1.4rem 5vw 2.2rem;
    gap: 0.4rem;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    width: min(300px, 78vw);
  }

  .lede {
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .about,
  .buy,
  .chart,
  .tokenomics,
  .roadmap,
  .memes,
  .join {
    padding: 4.2rem 5vw;
  }

  .map,
  .meme-grid {
    grid-template-columns: 1fr 1fr;
  }

  .polaroid,
  .juice-card {
    max-width: none;
  }

  .chart-frame {
    height: 78vw;
    min-height: 360px;
    max-height: 520px;
  }

  .supply {
    padding: 1.6rem 1rem;
  }

  .join-actions,
  .buy-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .join-actions .btn,
  .buy-links .btn {
    width: 100%;
    min-height: 48px;
  }

  .foot {
    flex-direction: column;
    text-align: center;
    padding: 1.4rem 5vw calc(1.6rem + env(safe-area-inset-bottom));
  }

  .toast {
    width: calc(100vw - 2rem);
    text-align: center;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.7rem, 13vw, 3.6rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .steps,
  .tok-grid,
  .map {
    grid-template-columns: 1fr;
  }

  .meme-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .meme-grid figcaption {
    font-size: 0.95rem;
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .nav .btn-ghost {
    display: none;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }
}
