:root {
  --grass: #507d2a;
  --grass-bright: #6a9c3a;
  --grass-deep: #2f4f16;
  --dirt: #79553a;
  --dirt-dark: #5a3d28;
  --stone: #7a7a7a;
  --stone-dark: #4a4a4a;
  --jimothy: #8a8a8a;
  --jimothy-dark: #3a3a3a;
  --sky: #78a7ff;
  --sky-deep: #3d6ec9;
  --cream: #e8f0d8;
  --white: #f5f5f0;
  --ink: #1a1a14;
  --nametag: rgba(0, 0, 0, 0.72);
  --poppy: #c23b2a;
  --cornflower: #3a6fd8;
  --dandelion: #e8c84a;
  --font-display: "Press Start 2P", monospace;
  --font-body: "VT323", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --block: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--cream);
  background: var(--grass-deep);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

/* ——— Pixel dust ——— */
.pixel-dust {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
}

.pixel-dust span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--dandelion);
  opacity: 0;
  animation: dust-fall linear forwards;
  image-rendering: pixelated;
}

.pixel-dust span:nth-child(3n) { background: var(--poppy); }
.pixel-dust span:nth-child(3n+1) { background: var(--cornflower); }
.pixel-dust span:nth-child(5n) { width: 4px; height: 4px; }

@keyframes dust-fall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  12% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(110vh) rotate(180deg); }
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(180deg, rgba(26, 26, 20, 0.88) 0%, rgba(26, 26, 20, 0.55) 70%, transparent 100%);
  backdrop-filter: blur(2px);
  animation: nav-in 0.8s var(--ease-out) both;
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  image-rendering: auto;
  border: 2px solid var(--dirt);
  box-shadow: 2px 2px 0 var(--dirt-dark);
  transition: transform 0.25s var(--ease-out);
}

.nav-brand:hover img {
  transform: rotate(-6deg) scale(1.06);
}

.nav-links {
  display: none;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.5rem;
}

.nav-links a {
  color: var(--cream);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--dandelion);
}

.nav-social {
  display: flex;
  gap: 0.75rem;
}

.nav-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--stone-dark);
  border: 2px solid var(--stone);
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.35), inset 2px 2px 0 rgba(255,255,255,0.12);
  color: var(--white);
  transition: transform 0.2s var(--ease-out), background 0.2s;
}

.nav-social a:hover {
  transform: translateY(-2px);
  background: var(--grass);
}

@media (min-width: 720px) {
  .nav {
    padding: 0.9rem 2rem;
  }
  .nav-links {
    display: flex;
  }
  .nav-brand {
    font-size: 0.6rem;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1.25rem 4.5rem;
  overflow: hidden;
}

.hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 42rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: -4% -2%;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform: scale(1.08);
  animation: hero- ken 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-ken {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.14) translate(-1.5%, -1%); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(20, 28, 12, 0.35) 0%, rgba(20, 28, 12, 0.72) 70%),
    linear-gradient(0deg, rgba(47, 79, 22, 0.95) 0%, transparent 42%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nameplate {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.7rem;
  background: var(--nametag);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: #fff;
  letter-spacing: 0.02em;
  animation: nameplate-float 3.2s ease-in-out infinite;
  box-shadow: 0 2px 0 rgba(0,0,0,0.35);
}

@keyframes nameplate-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.5vw, 2.35rem);
  line-height: 1.35;
  color: var(--white);
  text-shadow:
    3px 3px 0 var(--ink),
    -1px 0 0 var(--ink),
    0 -1px 0 var(--ink);
  margin-bottom: 0.75rem;
}

.brand-line {
  display: block;
  animation: brand-rise 0.9s var(--ease-out) both;
}

.brand-line:nth-child(2) {
  animation-delay: 0.12s;
}

.brand-accent {
  color: var(--dandelion);
}

@keyframes brand-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.ticker {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2.5vw, 0.95rem);
  color: var(--cream);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  animation: brand-rise 0.9s var(--ease-out) 0.22s both;
}

.tagline {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  color: rgba(232, 240, 216, 0.92);
  max-width: 28ch;
  margin-bottom: 1.75rem;
  animation: brand-rise 0.9s var(--ease-out) 0.32s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: brand-rise 0.9s var(--ease-out) 0.42s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  line-height: 1.4;
  padding: 0.9rem 1.15rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), filter 0.15s;
  image-rendering: pixelated;
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  color: var(--ink);
  background: var(--dandelion);
  box-shadow:
    inset -3px -3px 0 rgba(0,0,0,0.22),
    inset 3px 3px 0 rgba(255,255,255,0.35),
    0 4px 0 var(--dirt-dark);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--white);
  background: rgba(26, 26, 20, 0.55);
  box-shadow:
    inset -3px -3px 0 rgba(0,0,0,0.35),
    inset 3px 3px 0 rgba(255,255,255,0.08),
    0 0 0 2px rgba(255,255,255,0.25);
}

.btn-ghost:hover {
  background: rgba(26, 26, 20, 0.75);
  transform: translateY(-2px);
}

.btn-copy {
  color: var(--ink);
  background: var(--grass-bright);
  box-shadow:
    inset -2px -2px 0 rgba(0,0,0,0.25),
    inset 2px 2px 0 rgba(255,255,255,0.2);
  white-space: nowrap;
}

.btn-copy:hover {
  filter: brightness(1.1);
}

.hero-mascot {
  position: relative;
  z-index: 2;
  width: min(48vw, 220px);
  flex-shrink: 0;
  pointer-events: none;
  animation: mascot-in 1.1s var(--ease-out) 0.2s both;
}

.mascot-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 0 0 4px rgba(0,0,0,0.35),
    8px 12px 0 rgba(0,0,0,0.25);
  animation: mascot-bob 3.6s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes mascot-in {
  from { opacity: 0; transform: translateY(40px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

.hero-grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  z-index: 3;
  background:
    repeating-linear-gradient(
      90deg,
      var(--grass-bright) 0 16px,
      var(--grass) 16px 32px,
      #5c8f30 32px 48px
    );
  box-shadow: 0 -4px 0 var(--dirt);
  clip-path: polygon(
    0 40%, 4% 0, 8% 40%, 12% 10%, 16% 40%, 22% 0, 28% 40%,
    34% 15%, 40% 40%, 46% 5%, 52% 40%, 58% 0, 64% 40%,
    70% 12%, 76% 40%, 82% 0, 88% 40%, 94% 8%, 100% 40%,
    100% 100%, 0 100%
  );
}

@media (min-width: 720px) {
  .hero {
    padding: 6rem 2rem 5rem;
  }

  .hero-center {
    gap: 1.5rem;
  }

  .hero-mascot {
    width: min(32vw, 280px);
  }
}

@media (min-width: 900px) {
  .hero-mascot {
    width: min(28vw, 320px);
  }

  .mascot-img {
    animation: mascot-bob-lg 3.6s ease-in-out infinite;
  }

  @keyframes mascot-bob-lg {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-14px) rotate(1.5deg); }
  }
}

/* ——— Sections ——— */
.section {
  position: relative;
  padding: 4.5rem 1.25rem;
}

.section-inner {
  max-width: 920px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.8vw, 1.15rem);
  line-height: 1.5;
  color: var(--dandelion);
  margin-bottom: 0.85rem;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.45);
}

.section-lead {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--cream);
  max-width: 36ch;
  margin-bottom: 2.25rem;
  opacity: 0.95;
}

.about {
  background:
    linear-gradient(180deg, var(--grass-deep) 0%, #243816 40%, #1e2e14 100%);
}

.feature-strip {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .section {
    padding: 5.5rem 2rem;
  }
  .feature-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature {
  padding: 1.25rem 1.1rem 1.4rem;
  background: linear-gradient(160deg, rgba(90, 61, 40, 0.55), rgba(58, 58, 58, 0.35));
  border: 3px solid var(--dirt);
  box-shadow:
    inset 3px 3px 0 rgba(255,255,255,0.06),
    inset -3px -3px 0 rgba(0,0,0,0.35),
    4px 4px 0 rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.feature.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature:nth-child(2).is-visible { transition-delay: 0.1s; }
.feature:nth-child(3).is-visible { transition-delay: 0.2s; }

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
  filter: grayscale(0.2);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 0.55rem;
  line-height: 1.5;
  margin-bottom: 0.55rem;
  color: var(--white);
}

.feature p {
  font-size: 1.25rem;
  color: rgba(232, 240, 216, 0.85);
}

/* ——— Tweet ——— */
.tweet-section {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(61, 110, 201, 0.25), transparent 55%),
    linear-gradient(180deg, #1e2e14 0%, #152018 100%);
}

.tweet-frame {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.tweet-frame.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mc-tweet {
  display: block;
  padding: 1.15rem 1.2rem 1.25rem;
  background: linear-gradient(165deg, #1c1f24 0%, #12151a 100%);
  border: 3px solid var(--stone-dark);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.05),
    6px 6px 0 rgba(0,0,0,0.3);
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}

.mc-tweet:hover {
  transform: translateY(-3px);
  border-color: var(--grass-bright);
}

.mc-tweet-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.mc-tweet-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--white);
  background: var(--grass);
  border: 2px solid var(--grass-bright);
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.3);
}

.mc-tweet-name {
  font-family: var(--font-display);
  font-size: 0.5rem;
  line-height: 1.5;
  color: var(--white);
}

.mc-badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.3rem;
  font-size: 0.35rem;
  vertical-align: middle;
  color: var(--ink);
  background: var(--dandelion);
}

.mc-tweet-handle {
  font-size: 1.1rem;
  color: rgba(232, 240, 216, 0.5);
}

.mc-tweet-text {
  font-size: 1.55rem;
  margin-bottom: 0.9rem;
  color: var(--cream);
}

.mc-tweet-media {
  overflow: hidden;
  border: 2px solid var(--stone-dark);
  margin-bottom: 0.85rem;
}

.mc-tweet-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.mc-tweet:hover .mc-tweet-media img {
  transform: scale(1.04);
}

.mc-tweet-meta {
  font-family: var(--font-display);
  font-size: 0.4rem;
  line-height: 1.6;
  color: rgba(232, 240, 216, 0.45);
}

.embed-wrap {
  display: flex;
  justify-content: center;
  min-height: 120px;
}

.embed-wrap .twitter-tweet {
  margin: 0 auto !important;
}

.tweet-section .section-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tweet-section .section-title {
  text-align: center;
}

/* ——— Token ——— */
.token {
  background:
    linear-gradient(180deg, #152018 0%, var(--dirt-dark) 55%, #3d2818 100%);
  padding-bottom: 5rem;
}

.ca-block {
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.ca-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ca-block label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.5rem;
  margin-bottom: 0.65rem;
  color: rgba(232, 240, 216, 0.7);
}

.ca-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ca-row input {
  flex: 1 1 220px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  padding: 0.85rem 1rem;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.45);
  border: 3px solid var(--stone-dark);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.4);
  outline: none;
}

.ca-hint {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.45rem;
  color: var(--dandelion);
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.45rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.35);
  border: 2px solid var(--stone);
  color: var(--cream);
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s;
}

.link-chip:hover {
  transform: translateY(-2px);
  background: rgba(80, 125, 42, 0.45);
  border-color: var(--grass-bright);
}

/* ——— Footer ——— */
.footer {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  background: #241810;
  border-top: 4px solid var(--dirt);
}

.footer-logo {
  margin: 0 auto 0.85rem;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid var(--dirt);
  animation: mascot-bob 4s ease-in-out infinite;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.5rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: var(--cream);
}

.footer-note {
  font-size: 1.05rem;
  color: rgba(232, 240, 216, 0.45);
  max-width: 36ch;
  margin: 0 auto;
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg {
    transform: none;
  }
}
