:root {
  --green-900: #12360f;
  --green-800: #1d5117;
  --green-700: #27701d;
  --green-500: #5cae38;
  --green-300: #a6dc72;
  --pond-deep: #087b87;
  --pond-mid: #0bb5a6;
  --pond-light: #90ead1;
  --sky: #baf2ff;
  --sun: #fff06a;
  --cream: #fffce8;
  --ink: #10220f;
  --orange: #da7a37;
  --purple: #7a6cff;
  --max: 1180px;
  --shadow: 0 24px 60px rgba(18, 54, 15, 0.22);
  --font-display: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Trebuchet MS", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, #bdf4ff 0 32rem, #eaffcc 32rem 66rem, #f9ffe6 66rem),
    var(--cream);
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 28px), var(--max));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 12px;
  background: rgba(255, 252, 232, 0.82);
  border: 2px solid rgba(18, 54, 15, 0.14);
  border-radius: 32px;
  box-shadow: 0 10px 34px rgba(18, 54, 15, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding-right: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green-800);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(18, 54, 15, 0.2));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.twitter-button,
.contract-button,
.primary-action,
.secondary-action,
.pond-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 900;
  text-transform: lowercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-links a,
.contract-button {
  padding: 0 16px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.58);
}

.twitter-button {
  width: 44px;
  padding: 0;
  color: white;
  background: #0f1720;
  font-family: Arial, system-ui, sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.contract-button {
  gap: 7px;
  color: white;
  background: var(--green-800);
}

.contract-button span {
  opacity: 0.75;
}

.contract-button strong {
  font: inherit;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links a:hover,
.twitter-button:hover,
.contract-button:hover,
.primary-action:hover,
.secondary-action:hover,
.pond-cta:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 76px);
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 120px 0 56px;
}

.sky {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.78) 0 8rem, transparent 8.2rem),
    linear-gradient(180deg, #a6efff 0%, #ccf8ff 58%, #dffcc4 100%);
}

.cloud {
  position: absolute;
  display: block;
  width: 190px;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  filter: drop-shadow(0 10px 16px rgba(20, 99, 94, 0.08));
  animation: cloudDrift 12s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
  position: absolute;
  content: "";
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  width: 78px;
  height: 78px;
  left: 34px;
  bottom: 18px;
}

.cloud::after {
  width: 92px;
  height: 92px;
  right: 24px;
  bottom: 10px;
}

.cloud-one {
  top: 17%;
  left: 8%;
}

.cloud-two {
  top: 27%;
  right: 8%;
  width: 150px;
  transform: scale(0.84);
  animation-delay: -4s;
}

.cloud-three {
  top: 58%;
  left: 40%;
  width: 120px;
  opacity: 0.62;
  transform: scale(0.7);
  animation-delay: -8s;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 13vw, 9.4rem);
  font-weight: 800;
  line-height: 0.78;
}

.hero h1 span {
  display: block;
  color: var(--green-700);
  text-shadow: 0 8px 0 rgba(255, 240, 106, 0.9), 0 18px 32px rgba(18, 54, 15, 0.16);
}

.hero-line {
  max-width: 510px;
  margin: 28px 0 0;
  color: #294326;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.pond-cta {
  padding: 0 24px;
  box-shadow: 0 12px 24px rgba(18, 54, 15, 0.16);
}

.primary-action,
.pond-cta {
  color: white;
  background: var(--green-800);
}

.secondary-action {
  color: var(--green-900);
  background: var(--sun);
}

.pond-stage {
  position: relative;
  display: flex;
  min-height: min(58vw, 560px);
  align-items: center;
  justify-content: center;
}

.pond-scene {
  width: min(100%, 620px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
  filter: drop-shadow(0 28px 22px rgba(6, 69, 58, 0.34));
  animation: floatPutya 4.2s ease-in-out infinite;
}

.origin,
.meme-desk,
.lore {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.origin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 86px 0 72px;
}

.origin-text h2,
.lore h2 {
  margin: 0;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.9;
}

.origin-text p:not(.section-kicker) {
  max-width: 720px;
  margin: 18px 0 0;
  color: #2f4a2b;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.38;
}

.chain-badges {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.46);
  border: 2px solid rgba(18, 54, 15, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.chain-badges span,
.chain-badges strong {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.chain-badges span {
  color: var(--green-900);
  background: var(--sun);
}

.chain-badges strong {
  color: white;
  background: linear-gradient(135deg, var(--pond-deep), var(--pond-mid), var(--purple));
}

.meme-desk {
  padding: 70px 0 78px;
}

.desk-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: end;
  margin-bottom: 26px;
}

.desk-heading h2 {
  margin: 0;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.9;
}

.desk-heading > p {
  margin: 0;
  color: #2f4a2b;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  font-weight: 800;
  line-height: 1.35;
}

.desk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.meme-card {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #e9f8d0;
  border: 4px solid rgba(18, 54, 15, 0.2);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(18, 54, 15, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.meme-card:hover {
  box-shadow: 0 24px 56px rgba(18, 54, 15, 0.2);
  transform: translateY(-4px) rotate(-0.5deg);
}

.meme-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.lore {
  padding: 80px 0 96px;
}

.lore-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lore-grid article {
  min-height: 300px;
  padding: clamp(22px, 3vw, 32px);
  color: var(--green-900);
  background: rgba(255, 252, 232, 0.78);
  border: 2px solid rgba(18, 54, 15, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(18, 54, 15, 0.12);
}

.chapter {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: white;
  background: var(--green-800);
  border-radius: 50%;
  font-weight: 900;
}

.lore-grid p {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 800;
  line-height: 1.38;
}

.pond-cta {
  width: min(100%, 340px);
  margin-top: 24px;
}

@keyframes cloudDrift {
  50% {
    transform: translate3d(16px, -8px, 0);
  }
}

@keyframes floatPutya {
  50% {
    transform: translateY(-10px) rotate(-0.8deg);
  }
}

@keyframes pulseRipple {
  0%,
  100% {
    opacity: 0.34;
    transform: translateX(-50%) scale(0.96);
  }
  50% {
    opacity: 0.78;
    transform: translateX(-50%) scale(1.04);
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 16px), var(--max));
  }

  .nav-links a {
    display: none;
  }

  .nav-links .twitter-button {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 8px;
    padding-top: 104px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-line {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .pond-stage {
    min-height: clamp(360px, 82vw, 560px);
    margin-top: 0;
  }

  .pond-scene {
    width: min(100%, 560px);
    border-radius: 26px;
  }

  .origin,
  .desk-heading,
  .lore-grid {
    grid-template-columns: 1fr;
  }

  .desk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin {
    padding-top: 52px;
  }

  .lore-grid article {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    border-radius: 26px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .contract-button {
    max-width: 150px;
    padding: 0 14px;
  }

  .contract-button span {
    display: none;
  }

  .contract-button strong {
    max-width: 108px;
  }

  .hero h1 {
    font-size: clamp(3.9rem, 22vw, 6.2rem);
  }

  .hero-actions a {
    width: 100%;
  }

  .primary-action,
  .secondary-action,
  .pond-cta {
    padding: 0 18px;
  }

  .origin,
  .meme-desk,
  .lore {
    width: min(calc(100% - 22px), var(--max));
  }

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

  .meme-card img {
    aspect-ratio: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
