:root {
  --bg: #edab17;
  --ink: #111111;
  --panel: #8b4f09;
  --card: #7b3f07;
  --pill: #f2b24e;
  --accent: #ffce6a;
  --edge: #000000;
  --radius: 18px;
  --radius-lg: 22px;
  --border: 4px;
  --font-display: "Baloo 2", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-hand: "Kalam", "Baloo 2", cursive, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.btn,
.contract,
.card,
.facts li,
.legal-box {
  border: var(--border) solid var(--edge);
  border-radius: var(--radius);
  background: #fbd06e;
  box-shadow: 0 6px 0 var(--edge), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.btn {
  display: inline-block;
  background: #f7c54f;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  transition: transform 0.06s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
}
.btn.buy {
  background: #ffe07a;
}
.btn.primary {
  background: #ffd05c;
  margin-right: 10px;
}
.btn.outline {
  background: #fbf0c7;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px 24px;
}
.brand {
  margin: 16px 0 8px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 62px;
  line-height: 1;
  letter-spacing: 0.5px;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
  color: #ffe8a9;
}
.hero-illustration {
  width: 260px;
  max-width: 70vw;
  margin: 6px auto 14px;
}

.contract {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #efb14e;
  border-radius: 999px;
  max-width: 860px;
}
.contract.small {
  padding: 10px 14px;
}

.contract .label {
  font-weight: 900;
  font-family: var(--font-display);
}
.contract .hash {
  word-break: break-all;
  font-weight: 700;
  letter-spacing: 0.25px;
}
.contract .copy {
  margin-left: auto;
  border: var(--border) solid var(--edge);
  border-radius: 999px;
  background: #fff3bf;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
}

.socials {
  margin: 16px 0 6px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.socials img {
  width: 38px;
  height: 38px;
  display: block;
}

.hero-cta {
  margin: 8px 0 0;
  display: flex;
  justify-content: center;
}

.section {
  padding: 8px 18px 26px;
}
.section h2 {
  text-align: center;
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
  color: #ffe8a9;
}
.card {
  background: #9e5f16;
  border-radius: 22px;
  padding: 18px;
  position: relative;
}
.about-card {
  max-width: 920px;
  margin: 0 auto;
}
.poem {
  color: #fff4e6;
  font-weight: 800;
  font-size: 20px;
  text-align: center;
  line-height: 1.4;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
  font-family: var(--font-display);
}

/* Tokenomics layout */
.token-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  align-items: center;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.facts li {
  background: #f5c76b;
  padding: 9px 12px;
  font-weight: 800;
}
.facts li span {
  display: inline-block;
  min-width: 92px;
}
.token-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.coin {
  width: 240px;
  height: auto;
  display: block;
  margin-top: 14px;
} /* drop image slightly */

/* Make the 'Ca' pill full width for long address */
.token-card .contract.small {
  width: 100%;
  max-width: none;
}
.token-card .contract.small .hash {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 22px 18px 10px;
}
.legalbar {
  display: flex;
  justify-content: center;
  padding: 10px 12px 28px;
}
.legal-box {
  background: #fbf0c7;
  padding: 8px 14px;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3px;
}

@media (max-width: 720px) {
  .token-card {
    grid-template-columns: 1fr;
  }
  .coin {
    width: 220px;
    margin-top: 8px;
  }
}

@media (min-width: 900px) {
  .brand {
    font-size: 78px;
  }
  .hero-illustration {
    width: 340px;
  }
  .poem {
    font-size: 22px;
  }
  .coin {
    width: 260px;
  }
}

/* Handwritten headings to match $4EVA */
#about h2,
#tokenomics h2 {
  font-family: var(--font-hand);
  letter-spacing: 0.5px;
}

/* Responsive hero typography/images */
.brand {
  font-size: clamp(44px, 7vw, 80px);
}
.hero-illustration {
  width: clamp(200px, 36vw, 360px);
}
.poem {
  font-size: clamp(18px, 2.1vw, 22px);
}

/* Tokenomics: give left side room on desktop, stack on mobile */
.token-card {
  grid-template-columns: 1.25fr 0.75fr;
}
@media (max-width: 900px) {
  .token-card {
    grid-template-columns: 1fr;
  }
  .token-right {
    display: flex;
    justify-content: center;
  }
}
/* CA pill full width and wrap on narrow screens */
.token-card .contract.small {
  width: 100%;
  max-width: none;
  padding: 10px 14px;
}
.token-card .contract.small .hash {
  white-space: nowrap;
  letter-spacing: 0.2px;
}
@media (max-width: 780px) {
  .token-card .contract.small .hash {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
    font-size: 14px;
  }
}
/* Coin image sizing/positioning */
.coin {
  width: clamp(190px, 26vw, 280px);
  margin-top: 14px;
}
@media (max-width: 780px) {
  .coin {
    margin-top: 8px;
  }
}

/* === Tokenomics (no CA row) layout tweaks === */
@media (min-width: 901px) {
  .token-card {
    grid-template-columns: 1fr 1fr;
  } /* توازن بين النص والصورة */
}
.token-left {
  margin-bottom: 10px;
} /* فراغ بسيط فوق الصورة عند التكديس */
.facts {
  margin-top: 6px;
} /* تعويض اختفاء الـ CA */
.token-right {
  display: flex;
  justify-content: center;
}
.coin {
  margin-top: 6px;
}

/* Spacing tune with Liquidity row */
.facts {
  gap: 10px;
}
@media (max-width: 780px) {
  .facts {
    gap: 8px;
  }
}

/* Responsive hero & typography */
.brand {
  font-size: clamp(44px, 7vw, 80px);
}
.hero-illustration {
  width: clamp(200px, 36vw, 360px);
}
.poem {
  font-size: clamp(18px, 2.1vw, 22px);
}

/* Tokenomics layout & spacing without CA */
@media (min-width: 901px) {
  .token-card {
    grid-template-columns: 1fr 1fr;
  }
}
.token-right {
  display: flex;
  justify-content: center;
}
.coin {
  width: clamp(190px, 26vw, 280px);
  margin-top: 8px;
}
.facts {
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .token-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .coin {
    margin-top: 6px;
  }
}
