/* Tokenomics coded page minimal styles */
.tokenomics-section.section {
  background: #ffffff;
  padding-top: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(24px, 4vw, 64px);
}

.tokenomics .tokenomics-title {
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  margin: clamp(24px, 3vw, 40px) 0;
  font-size: clamp(20px, 1.6vw + 9px, 31px);
}

.tokenomics .tokenomics-grid {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
  grid-template-columns: 1fr;
  width: 85vw; /* similar visual width to Utility in home-parity */
  margin-left: calc(50% - 42.5vw);
  margin-right: calc(50% - 42.5vw);
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.tokenomics .tokenomics-tile {
  background: var(--brand-gray-100);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 36px);
  min-height: 140px;
  text-align: center;
}

.tokenomics .tile-metric {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(26px, 3vw + 10px, 44px);
  line-height: 1.1;
  margin: 0 0 6px 0;
}

.tokenomics .tile-label {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

@media (min-width: 981px) {
  .tokenomics-section.section { padding-top: 80px; padding-bottom: 80px; }
  .tokenomics .tokenomics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 1224px;
    max-width: 1224px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Tokenomics hero (white) */
.tokenomics-hero.section {
  background: #ffffff;
  padding-top: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(24px, 4vw, 64px);
}
.tokenomics-hero .tokenomics-hero-grid {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}

@media (max-width: 980px) {
  /* Mobile-only: match gutters to other sections */
  .tokenomics-hero .tokenomics-hero-grid {
    width: 85vw;
    margin-left: calc(50% - 42.5vw);
    margin-right: calc(50% - 42.5vw);
    padding-inline: var(--gutter);
    box-sizing: border-box;
  }

  /* Mobile-only: center align all content in first section */
  .tokenomics-hero .hero-copy { text-align: center; }
  .tokenomics-hero .hero-text { margin-left: auto; margin-right: auto; }
  .tokenomics-hero .pill-row { justify-content: center; }
  .tokenomics-hero .unlock-title,
  .tokenomics-hero .unlock-text { text-align: center; }
}

@media (min-width: 981px) {
  .tokenomics-hero.section {
    background-image: url('../../img/tokenomics-hero.webp');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto; /* full width, bottom aligned */
    min-height: 100dvh;
    box-sizing: border-box;
    display: grid;
    align-items: center;
    padding-top: var(--header-bottom);
  }
}
/* Left copy */
.tokenomics-hero .hero-title {
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0;
  line-height: 1.12;
  font-size: clamp(25px, min(9.38vw, 4dvh), 39px);
}
@media (min-width: 981px) {
  .tokenomics-hero .hero-title {
    font-size: 45px;
  }
}
.tokenomics-hero .hero-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 60ch;
}

/* Pills */
.pill-stack { display: grid; gap: 10px; margin-top: clamp(11px, 2.1vw, 17px); margin-bottom: clamp(22px, 4.2vw, 34px); }
.pill-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.pill--value { background: var(--brand-green) !important; color: var(--brand-black); }
.pill--label { background: #f5f5f5; color: inherit; }

/* Unlock text */
.unlock-title {
  margin-top: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
}
.unlock-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 3px;
}

/* Right visual (video) */
.tokenomics-hero .hero-art { display: none; }
@media (min-width: 981px) {
  .tokenomics-hero .hero-art {
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .tokenomics-hero-video {
    max-height: 92vh;
    height: min(92vh, 640px);
    width: auto;
    object-fit: contain;
  }
}

/* Desktop grid for hero */
@media (min-width: 981px) {
  .tokenomics-hero .tokenomics-hero-grid {
    grid-template-columns: clamp(560px, 48vw, 780px) 1fr;
    gap: clamp(16px, 2vw, 24px);
    justify-content: start;
    justify-items: start;
    width: 100%;
  }
  .tokenomics-hero .tokenomics-hero-inner { text-align: left; width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: 17vw; padding-right: var(--gutter); }
  .tokenomics-hero .tokenomics-hero-grid > * { justify-self: start !important; }
  .tokenomics-hero .hero-copy { text-align: left; justify-self: start; max-width: 780px; margin-left: 0; grid-column: 1; }
  .tokenomics-hero .hero-title,
  .tokenomics-hero .hero-text,
  .tokenomics-hero .unlock-title,
  .tokenomics-hero .unlock-text { text-align: left !important; }
  .tokenomics-hero .hero-text { margin-left: 0; margin-right: 0; }
  .tokenomics-hero .pill-row { justify-content: flex-start !important; }
}

/* Utility (Tokenomics): make tiles non-interactive on all viewports */
.tokenomics-utility .utility-tiles > .tile {
  pointer-events: none;
  cursor: default;
}
.tokenomics-utility .utility-tiles > .tile:hover,
.tokenomics-utility .utility-tiles > .tile:focus,
.tokenomics-utility .utility-tiles > .tile:focus-visible {
  outline: none;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}

/* Tokenomics Utility (standalone, no Home parity) */
.tokenomics-utility.section { background: var(--brand-gray-100); padding-top: clamp(24px, 4vw, 64px); padding-bottom: clamp(24px, 4vw, 64px); }
.tokenomics-utility {
  --tile-radius: 50px;
  --tile-gap: clamp(10px, 2vw, 21px);
  --tile-title-bottom: clamp(40px, 5.4vw, 60px);
  --tile-title-lh: 1.25em;
}
.tokenomics-utility .utility-title {
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  margin: clamp(24px, 3vw, 40px) 0;
  font-size: clamp(20px, 1.6vw + 9px, 31px);
}
.tokenomics-utility .utility-tiles {
  display: grid;
  gap: var(--tile-gap);
  margin-top: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Viewport-spanning row at 85vw to enlarge tiles on mobile */
  width: 85vw;
  margin-left: calc(50% - 42.5vw);
  margin-right: calc(50% - 42.5vw);
  padding-inline: var(--gutter);
  box-sizing: border-box;
}
.tokenomics-utility .tile {
  background: #ffffff;
  border-radius: var(--tile-radius);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 1 / 1;
}
.tokenomics-utility .tile img {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translate(-50%, -10%);
  width: 66.6667%;
  height: auto;
  max-width: none;
  pointer-events: none;
  display: block;
}
.tokenomics-utility .tile-title {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tile-title-bottom) * 0.68);
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
}
.tokenomics-utility .tile-title sup { font-size: .55em; line-height: 0; position: relative; top: -.4em; }

@media (min-width: 981px) {
  .tokenomics-utility.section { padding-top: 80px; padding-bottom: 80px; }
  .tokenomics-utility .utility-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Lock inner content width and center (title, tiles) */
  .tokenomics-utility .utility-title,
  .tokenomics-utility .utility-tiles {
    width: 1224px;
    max-width: 1224px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile-only: halve corner rounding for Utility tiles */
@media (max-width: 980px) {
  .tokenomics-utility .tile { border-radius: calc(var(--tile-radius) / 2); }
}

/* Mobile section padding (canonical for all Tokenomics sections) */
@media (max-width: 980px) {
  .tokenomics-hero.section,
  .tokenomics-utility.section,
  .tokenomics-section.section {
    padding-top: clamp(48px, 8vw, 128px);
    padding-bottom: clamp(48px, 8vw, 128px);
  }
}

/* Reveal helpers (Tokenomics) */
.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 840ms cubic-bezier(0.22,1,0.36,1), transform 840ms cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.is-in { opacity: 1; transform: none; }

.tokenomics-hero .reveal-up {
  opacity: 1;
  transform: none;
}

@keyframes tokenomicsHeroReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .tokenomics-hero .hero-title.reveal-up,
  .tokenomics-hero .hero-text.reveal-up,
  .tokenomics-hero .pill-row.reveal-up,
  .tokenomics-hero .unlock-title.reveal-up,
  .tokenomics-hero .unlock-text.reveal-up {
    animation-name: tokenomicsHeroReveal;
    animation-duration: 840ms;
    animation-timing-function: cubic-bezier(0.22,1,0.36,1);
    animation-fill-mode: both;
  }

  .tokenomics-hero .hero-title.reveal-up { animation-delay: 0ms; }
  .tokenomics-hero .hero-text.reveal-up { animation-delay: 160ms; }
  .tokenomics-hero .pill-stack .pill-row.reveal-up:nth-of-type(1) { animation-delay: 320ms; }
  .tokenomics-hero .pill-stack .pill-row.reveal-up:nth-of-type(2) { animation-delay: 480ms; }
  .tokenomics-hero .pill-stack .pill-row.reveal-up:nth-of-type(3) { animation-delay: 640ms; }
  .tokenomics-hero .pill-stack .pill-row.reveal-up:nth-of-type(4) { animation-delay: 800ms; }
  .tokenomics-hero .unlock-title.reveal-up,
  .tokenomics-hero .unlock-text.reveal-up { animation-delay: 960ms; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Equalize vertical gaps: prevent slide on boundary elements */
.pill-row.reveal-up,
.unlock-title.reveal-up,
.hero-text.reveal-up { transform: none; }

/* Match Home: remove extra top margin above Utility title */
.tokenomics-utility .utility-title { margin-top: 0; }
@media (min-width: 981px) {
  .tokenomics-utility .utility-title { margin-top: 0; }
}

/* Normalize Tokenomics section title spacing */
.tokenomics .tokenomics-title { margin-top: 0; }
