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

:root {
  --cream: #fff4c8;
  --gold: #ffd23f;
  --orange: #ff7a18;
  --pink: #ff5d8f;
  --sky: #7ecbff;
  --ink: #1b120c;
  --muted: #6b4a28;
  --white: #fffdf5;
  --outline: #1b120c;
  --font-display: "Luckiest Guy", system-ui, sans-serif;
  --font-body: "Fredoka", system-ui, sans-serif;
  --shadow: 6px 8px 0 var(--outline);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 210, 63, 0.45), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(255, 122, 24, 0.18), transparent 32%),
    #fff6d6;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

.bg-blobs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 70%, rgba(255, 210, 63, 0.45), transparent 24%),
    radial-gradient(circle at 92% 48%, rgba(255, 93, 143, 0.22), transparent 22%);
}

img { max-width: 100%; display: block; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.accent { color: var(--orange); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.85rem 0 0;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 0.55rem 0.7rem 0.55rem 0.75rem;
  background: var(--white);
  border: 4px solid var(--outline);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--outline);
  background: var(--gold);
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

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

.nav-socials { display: flex; gap: 0.4rem; }

.nav-social {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--ink) !important;
  border: 3px solid var(--outline);
}

.nav-social:hover { background: var(--gold); }

.nav-cta {
  display: inline-flex !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--orange) !important;
  color: var(--white) !important;
  border: 3px solid var(--outline);
  font-weight: 800 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(27, 18, 12, 0.72) 0%, rgba(27, 18, 12, 0.32) 48%, transparent 78%),
    linear-gradient(180deg, rgba(27, 18, 12, 0.18) 0%, transparent 30%, rgba(27, 18, 12, 0.4) 100%);
}

.hero-grid {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
  padding: 8rem 0 3.2rem;
}

.speech {
  display: inline-block;
  background: var(--white);
  border: 4px solid var(--outline);
  border-radius: 28px;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  margin-bottom: 1.1rem;
  position: relative;
  color: var(--ink);
}

.speech::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -16px;
  border: 10px solid transparent;
  border-top-color: var(--outline);
}

.hero-kicker {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 11vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 4px 5px 0 var(--outline);
  margin-bottom: 0.35rem;
}

.hero-ticker {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.hero-bio {
  font-size: 1.08rem;
  font-weight: 600;
  max-width: 32em;
  margin-bottom: 1.4rem;
  color: rgba(255, 253, 245, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero .btn-ghost {
  background: rgba(255, 253, 245, 0.16);
  color: var(--white);
}

.hero-stage {
  display: grid;
  place-items: end center;
}

.hero-logo {
  width: min(220px, 58%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--gold);
  box-shadow: 6px 8px 0 var(--outline);
  background: var(--gold);
  animation: bounce 2.4s ease-in-out infinite;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 4px solid var(--outline);
  cursor: pointer;
  box-shadow: 4px 5px 0 var(--outline);
  transition: transform 0.12s ease;
}

.btn:hover { transform: translate(-2px, -2px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
}

.btn-lg { padding: 1rem 1.6rem; font-size: 1.08rem; }

.btn-copy {
  background: var(--sky);
  color: var(--ink);
  flex-shrink: 0;
}

.btn-copy.copied { background: var(--gold); }

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--orange);
  color: var(--white);
  border-block: 4px solid var(--outline);
  padding: 0.7rem 0;
}

.marquee-alt {
  background: var(--sky);
  color: var(--ink);
}

.marquee-track {
  display: flex;
  gap: 1.15rem;
  width: max-content;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  animation: marquee 24s linear infinite;
}

.marquee-track.reverse { animation-direction: reverse; animation-duration: 30s; }

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

/* Sections */
.section { padding: 4.8rem 0; }

.section-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.section-text {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  max-width: 36em;
}

.section-text strong { color: var(--ink); }

.story-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  background: var(--gold);
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  min-height: 540px;
}

.gallery-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 4px solid rgba(255, 210, 63, 0.85);
  box-shadow: 0 16px 32px rgba(27, 18, 12, 0.12);
  background: #1b120c;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-main { grid-row: 1 / 3; }

.gallery-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.1rem 0.95rem;
  background: linear-gradient(180deg, transparent, rgba(27, 18, 12, 0.78));
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.meme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.meme-card {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 4px solid rgba(255, 210, 63, 0.85);
  box-shadow: 0 16px 32px rgba(27, 18, 12, 0.12);
  background: #1b120c;
}

.meme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meme-wide { grid-column: 1 / -1; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
}

.about-visual { position: relative; }

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 28px;
  border: 4px solid var(--gold);
  box-shadow: 0 16px 32px rgba(27, 18, 12, 0.12);
  background: var(--gold);
}

.about-coin {
  position: absolute;
  width: 118px;
  height: 118px;
  right: -10px;
  bottom: -18px;
  border-radius: 50%;
  border: 5px solid var(--outline);
  background: var(--gold);
  animation: bounce 2.8s ease-in-out infinite;
}

/* Origin */
.origin {
  background: rgba(126, 203, 255, 0.18);
}

.origin-head { text-align: center; margin-bottom: 1.8rem; }

.origin-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: center;
  margin-bottom: 1.3rem;
}

.origin-quote {
  margin: 0;
  background: var(--white);
  border: 5px solid var(--outline);
  border-radius: 36px 36px 36px 12px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
}

.origin-quote::after {
  content: "";
  position: absolute;
  right: 48px;
  bottom: -22px;
  border: 14px solid transparent;
  border-top-color: var(--outline);
}

.origin-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.origin-quote footer {
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
}

.origin-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.origin-facts li {
  background: var(--gold);
  border: 4px solid var(--outline);
  border-radius: 22px;
  padding: 1.1rem 1rem;
  box-shadow: 4px 5px 0 var(--outline);
}

.origin-facts span {
  display: block;
  font-family: var(--font-display);
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.origin-facts strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.origin-facts p { font-size: 0.95rem; }

.tweet-stage {
  padding: 0.7rem;
  background: var(--pink);
  border: 5px solid var(--outline);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.tweet-stage-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.7rem;
}

.tweet-stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--outline);
}

.tweet-stage-label {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tweet-stage-link {
  margin-left: auto;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.x-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
  color: #0f1419;
  border: 3px solid var(--outline);
}

.x-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.x-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 3px solid var(--outline);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.x-card-who { display: flex; flex-direction: column; line-height: 1.25; }
.x-card-who span { font-size: 0.88rem; color: #536471; }
.x-card-logo { margin-left: auto; }

.x-card-body {
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.x-card-meta {
  font-size: 0.88rem;
  color: #536471;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #eff3f4;
  margin-bottom: 0.8rem;
}

.x-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.tweet-embed {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  border-radius: 16px;
  background: #fff;
}

.tweet-stage.is-embedded .x-card { display: none; }

.tweet-stage.is-embedded .tweet-embed {
  height: auto;
  min-height: 280px;
  overflow: visible;
  visibility: visible;
}

.tweet-embed .twitter-tweet { margin: 0 auto !important; }
blockquote.twitter-tweet { display: none; }

/* Contract */
.contract-card {
  padding: 2rem 1.6rem 1.5rem;
  background: var(--white);
  border: 4px solid var(--gold);
  border-radius: 32px;
  box-shadow: 0 16px 32px rgba(27, 18, 12, 0.1);
}

.contract-copy { text-align: center; margin-bottom: 1.2rem; }

.contract-hint {
  color: var(--muted);
  font-weight: 600;
  max-width: 34em;
  margin: 0 auto;
}

.ca-kicker {
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1rem 1rem 1.15rem;
  background: var(--gold);
  border: 4px solid var(--outline);
  border-radius: 22px;
}

.ca-address {
  flex: 1;
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  word-break: break-all;
  font-weight: 700;
}

.ca-address.is-tba {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.18em;
  text-align: center;
}

.copy-toast {
  min-height: 1.5rem;
  margin-top: 0.7rem;
  text-align: center;
  font-weight: 700;
  color: var(--orange);
  opacity: 0;
  transition: opacity 0.25s;
}

.copy-toast.show { opacity: 1; }

.contract-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.3rem;
  margin-top: 0.35rem;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

/* Chart */
.chart-head { text-align: center; margin-bottom: 1.2rem; }
.chart-lead { color: var(--muted); font-weight: 600; }

.chart-wrapper {
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid var(--outline);
  box-shadow: var(--shadow);
  background: #1b120c;
  min-height: 420px;
}

.chart-wrapper.is-tba {
  min-height: 340px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 210, 63, 0.28), transparent 55%),
    #1b120c;
}

.chart-tba {
  text-align: center;
  color: var(--cream);
  padding: 2.6rem 1.4rem;
}

.chart-tba-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  border: 4px solid var(--gold);
}

.chart-tba-kicker {
  display: block;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.chart-tba strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.chart-tba p { color: rgba(255, 244, 200, 0.82); font-weight: 600; }

.dexscreener-embed {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

.chart-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

/* Buy */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.step {
  padding: 1.2rem 1.05rem;
  background: var(--white);
  border: 4px solid var(--outline);
  border-radius: 24px;
  box-shadow: 4px 5px 0 var(--outline);
}

.step:nth-child(2) { background: var(--sky); }
.step:nth-child(3) { background: var(--gold); }
.step:nth-child(4) { background: #ffd0e0; }

.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--orange);
  display: block;
  margin-bottom: 0.3rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.step p { font-size: 0.95rem; }

.buy-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.footer {
  padding: 2.6rem 0 2rem;
  background: var(--ink);
  color: var(--cream);
}

.footer-inner {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  text-align: center;
}

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

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer-brand span { font-size: 0.85rem; opacity: 0.8; }

.footer-links { display: flex; gap: 1.25rem; }

.footer-links a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.footer-disclaimer {
  max-width: 42em;
  font-size: 0.82rem;
  opacity: 0.72;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .origin-feature,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-rows: none;
    min-height: 0;
  }

  .gallery-main { grid-row: auto; min-height: 360px; }
  .gallery-card { min-height: 260px; }
  .meme-grid { grid-template-columns: 1fr; }

  .hero { min-height: auto; }
  .hero-grid { padding: 7rem 0 2.4rem; }
  .hero-logo { width: min(160px, 46%); }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border: 4px solid var(--outline);
    border-radius: 24px;
    padding: 0.4rem 0 0.8rem;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a { display: block; padding: 0.8rem 1.2rem; }
  .nav-socials { justify-content: center; padding: 0.45rem; }
  .nav-cta { margin: 0.35rem 1rem; justify-content: center; }
  .nav-toggle { display: flex; }
  .steps, .origin-facts { grid-template-columns: 1fr; }
  .ca-box { flex-wrap: wrap; }
  .ca-kicker { width: 100%; }
  .dexscreener-embed,
  .chart-wrapper { min-height: 380px; }
  .dexscreener-embed { height: 380px; }
  .about-coin { width: 84px; height: 84px; }
}

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