:root {
  --yolk: #ffb21f;
  --yolk-deep: #f07c18;
  --cream: #fff9e8;
  --shell: #ffffff;
  --ink: #15120d;
  --muted: #6d6255;
  --green: #1fbf75;
  --green-deep: #0e7a4c;
  --line: #24170d;
  --shadow: 0 24px 70px rgba(36, 23, 13, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(31, 191, 117, 0.18), transparent 24rem),
    radial-gradient(circle at 82% 8%, rgba(255, 178, 31, 0.34), transparent 26rem),
    linear-gradient(180deg, var(--cream), #fff 46%, #f7fff8);
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  font-size: 1.05rem;
}

.brand-mark,
.footer-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--shell);
  object-fit: cover;
}

.nav-links {
  gap: 8px;
  padding: 7px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(36, 23, 13, 0.08);
}

.nav-links a {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: #fff3cf;
}

.nav-links .x-button {
  min-width: 42px;
  padding: 0;
  color: var(--shell);
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 3rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(4.5rem, 14vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: #3d352d;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.22;
}

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

.primary-action,
.secondary-action,
.contract-box button {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-weight: 950;
  box-shadow: 0 8px 0 var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action {
  padding: 0 24px;
  background: var(--green);
  color: var(--shell);
}

.secondary-action {
  padding: 0 22px;
  background: var(--shell);
}

.primary-action:hover,
.secondary-action:hover,
.contract-box button:hover {
  transform: translateY(3px);
  box-shadow: 0 5px 0 var(--line);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: min(64vw, 680px);
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(21, 18, 13, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 18, 13, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #fffef9, #ffdf79 48%, #78e1aa);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 3px solid rgba(21, 18, 13, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.hero-egg {
  position: relative;
  width: min(84%, 600px);
  filter: drop-shadow(0 28px 22px rgba(21, 18, 13, 0.22));
  animation: float 5.5s ease-in-out infinite;
}

.ticker-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 6px;
  max-width: min(320px, calc(100% - 40px));
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 0 var(--line);
}

.ticker-card span {
  font-size: 2rem;
  font-weight: 1000;
  line-height: 1;
}

.ticker-card strong {
  font-size: 0.95rem;
}

.launch-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--shell);
  overflow: hidden;
}

.launch-strip div {
  padding: clamp(18px, 3vw, 28px);
  border-right: 2px solid rgba(255, 255, 255, 0.18);
}

.launch-strip div:last-child {
  border-right: 0;
}

.launch-strip span {
  display: block;
  margin-bottom: 8px;
  color: #ffd675;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.launch-strip strong {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.section,
.contract-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.manifesto-grid article {
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 0 var(--line);
}

.manifesto-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--green-deep);
  font-weight: 950;
}

.manifesto-grid p,
.contract-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contract-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: end;
  gap: 24px;
}

.contract-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contract-box code {
  flex: 1;
  min-width: 0;
  padding: 18px;
  border: 2px dashed rgba(21, 18, 13, 0.24);
  border-radius: 8px;
  background: #fff9e8;
  color: #3d352d;
  font-size: clamp(0.78rem, 1.7vw, 1rem);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.contract-box button {
  min-width: 98px;
  padding: 0 18px;
  background: var(--yolk);
  color: var(--ink);
  cursor: pointer;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.meme-grid figure {
  aspect-ratio: 1;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--shell);
  box-shadow: 0 8px 0 var(--line);
  overflow: hidden;
}

.meme-grid figure.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 11;
}

.meme-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  color: var(--muted);
  text-align: center;
}

.footer p {
  margin: 0;
  font-weight: 800;
}

.footer a {
  color: var(--green-deep);
  font-weight: 950;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

@media (max-width: 860px) {
  .topbar {
    width: min(100% - 24px, 720px);
  }

  .nav-links a:not(.x-button) {
    display: none;
  }

  .hero,
  .contract-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  h1 {
    font-size: clamp(4.2rem, 22vw, 7rem);
  }

  .hero-art {
    min-height: 420px;
  }

  .launch-strip,
  .manifesto-grid {
    grid-template-columns: 1fr;
  }

  .launch-strip div {
    border-right: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  }

  .launch-strip div:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 560px) {
  .brand span {
    max-width: 8ch;
  }

  .hero-actions,
  .contract-box,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .contract-box button {
    width: 100%;
  }

  .hero-art {
    min-height: 350px;
  }

  .ticker-card {
    right: 12px;
    bottom: 12px;
  }

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

  .meme-grid figure.wide {
    grid-column: auto;
  }
}
