/* ── Variables ── */
:root {
  --bg: #ffffff;
  --orange: #f4a022;
  --orange-soft: rgba(244, 160, 34, 0.1);
  --orange-border: rgba(244, 160, 34, 0.5);
  --text: #f4a022;
  --max-w: 1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
img { display: block; max-width: 100%; }

/* ── Base ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Just Another Hand", cursive;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(244, 160, 34, 0.2) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: -1;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 8px;
  z-index: 60;
  width: min(1340px, calc(100% - 20px));
  margin: 10px auto 0;
  padding: 10px 18px;
  border: 2px solid var(--orange-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--orange-border);
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop: nav-menu is transparent so logo | nav | cta stay in one row */
.nav-menu {
  display: contents;
}

.nav-logo-text {
  font-family: "Just Me Again Down Here", cursive;
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: var(--orange);
  line-height: 1;
  white-space: nowrap;
}

nav {
  display: flex;
  justify-content: center;
  gap: 6px 20px;
  flex-wrap: wrap;
}

nav a {
  color: var(--orange);
  text-decoration: none;
  font-family: "Just Another Hand", cursive;
  font-size: clamp(1.1rem, 1.7vw, 1.7rem);
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.15s;
}
nav a:hover { opacity: 1; }

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-cta {
  color: var(--orange);
  text-decoration: none;
  font-family: "Just Another Hand", cursive;
  font-size: clamp(1.1rem, 1.7vw, 1.7rem);
  line-height: 1;
  border: 2px solid var(--orange-border);
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--orange-soft);
  white-space: nowrap;
}
.nav-cta:hover { background: rgba(244,160,34,0.18); }

/* ── Layout ── */
main {
  width: min(var(--max-w), calc(100% - 40px));
  margin: 0 auto 80px;
}

/* ── Headings ── */
h1, h2, h3 {
  margin: 0;
  font-family: "Just Me Again Down Here", cursive;
  font-weight: 400;
  color: var(--orange);
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.2rem, 8.5vw, 9rem);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: center;
}

h2 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  text-align: center;
}

h3 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 28px 0 0;
}

.hero-sub {
  font-family: "Just Another Hand", cursive;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  margin: 4px 0 24px;
  line-height: 1.2;
  color: var(--orange);
  opacity: 0.72;
}

.hero-logo-wrap {
  width: min(640px, 85%);
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 24px rgba(244, 160, 34, 0.2));
}

.hero-logo {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* ── CA Box ── */
.ca-box {
  margin: 0 auto;
  max-width: 860px;
  border: 2px solid var(--orange-border);
  border-radius: 999px;
  padding: 10px 10px 10px 20px;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ca-box > span {
  font-family: "Just Another Hand", cursive;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  white-space: nowrap;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
}

.ca-box code {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.ca-box button {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: "Just Another Hand", cursive;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  line-height: 1;
  padding: 12px 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

button .copy-default,
button .copy-done {
  grid-area: 1 / 1;
  transition: opacity 0.2s;
}
button .copy-done { opacity: 0; }
button.copied .copy-default { opacity: 0; }
button.copied .copy-done    { opacity: 1; }

/* ── Content sections ── */
.content {
  margin-top: 72px;
}

.content > p {
  font-family: "Just Another Hand", cursive;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  margin: 10px 0 0;
  text-align: center;
  color: var(--orange);
}

/* ── About ── */
.about-img-wrap {
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--orange-border);
}

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

/* ── HOW TO BUY ── */
.steps {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps article {
  background: var(--orange-soft);
  border: 2px solid var(--orange-border);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
}

.steps article h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.steps article p {
  font-family: "Just Another Hand", cursive;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.35;
  margin: 8px 0 16px;
  color: var(--orange);
}

.steps img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

/* ── Tokenomics ── */
.tokenomics-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 16px;

}

/* ── Marquee ── */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  margin-top: 18px;
  border-top: 2px solid var(--orange-border);
  border-bottom: 2px solid var(--orange-border);
  padding: 4px 0;
}

.marquee-row {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.marquee-row--ltr { animation: marquee-ltr 28s linear infinite; }
.marquee-row--rtl { animation: marquee-rtl 34s linear infinite; }

.marquee-row span {
  padding: 0 32px 0 0;
  font-family: "Just Me Again Down Here", cursive;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.8;
  color: var(--orange);
}

@keyframes marquee-ltr {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ── Disclaimer ── */
#disclaimer p {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  opacity: 0.55;
  text-align: center;
  line-height: 1.5;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 480ms ease, transform 480ms ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 900px) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .nav {
    grid-template-columns: 1fr auto;
    top: 4px;
    width: calc(100% - 16px);
    margin: 8px auto 0;
    padding: 10px 14px;
    gap: 0;
    border-radius: 16px;
  }

  .nav-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
  }

  .nav-logo-text {
    font-size: 1.5rem;
    text-align: left;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .nav-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    flex-direction: column;
    gap: 0;
    padding-top: 14px;
    border-top: 1px solid var(--orange-border);
    margin-top: 4px;
  }

  .nav.is-open .nav-menu {
    display: flex;
  }

  .nav-menu nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu nav a {
    font-size: 1.3rem;
    padding: 14px 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }

  .nav-menu nav a:hover,
  .nav-menu nav a:focus {
    background: var(--orange-soft);
  }

  .nav-cta-wrap {
    justify-content: stretch;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--orange-border);
  }

  .nav-cta {
    flex: 1;
    font-size: 1.2rem;
    padding: 12px 16px;
    min-height: 48px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  main {
    width: calc(100% - 24px);
    margin: 0 auto 48px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .hero {
    padding: 16px 0 0;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 4rem);
    white-space: normal;
    word-break: break-word;
    line-height: 0.95;
  }

  .hero-sub {
    font-size: 1.35rem;
    margin: 2px 0 16px;
  }

  .hero-logo-wrap {
    width: 92%;
    margin: 0 auto 20px;
  }

  .ca-box {
    flex-wrap: nowrap;
    border-radius: 16px;
    padding: 10px 12px;
    gap: 8px;
    max-width: 100%;
  }

  .ca-box > span {
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .ca-box code {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
  }

  .ca-box button {
    padding: 10px 12px;
    font-size: 0.95rem;
    min-height: 44px;
    flex-shrink: 0;
  }

  .content {
    margin-top: 48px;
  }

  .content > p {
    font-size: 1.2rem;
    margin: 8px 0 0;
  }

  h2 {
    font-size: clamp(2.2rem, 8vw, 4rem);
  }

  .about-img-wrap {
    margin-top: 14px;
    border-radius: 12px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }

  .steps article {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .steps article h3 {
    font-size: 2rem;
  }

  .steps article p {
    font-size: 1.15rem;
    margin: 6px 0 12px;
  }

  .steps img {
    border-radius: 10px;
  }

  .tokenomics-img {
    margin-top: 14px;
    border-radius: 12px;
  }

  .marquee-wrapper {
    margin-top: 14px;
    padding: 6px 0;
  }

  .marquee-row span {
    font-size: 1.4rem;
    padding-right: 24px;
  }

  #disclaimer p {
    font-size: 0.95rem;
  }
}
