.page--token {
  align-items: stretch;
}

.token-body {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vh, 72px);
}

.token-header {
  text-align: center;
}

.token-layout {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(340px, 1.05fr) minmax(320px, 1fr);
  align-items: stretch;
}

.token-layout__side {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 32px);
  min-width: 0;
}

.token-card {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 4px solid rgba(47, 42, 30, 0.15);
  box-shadow: 0 22px 40px rgba(47, 42, 30, 0.18);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
}

.token-card--allocation {
  background: linear-gradient(165deg, rgba(255, 215, 0, 0.9), rgba(255, 238, 184, 0.85));
  border-color: rgba(47, 42, 30, 0.2);
  box-shadow: 0 28px 52px rgba(47, 42, 30, 0.2);
}

.token-card__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.token-card__header h2 {
  margin: 0;
  font-size: clamp(26px, 5vw, 36px);
}

.token-card__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(47, 42, 30, 0.55);
}

.token-card--allocation .token-card__eyebrow {
  color: rgba(47, 42, 30, 0.72);
}

.token-card__note {
  margin: 0;
  font-size: var(--font-size-xs);
  color: rgba(47, 42, 30, 0.7);
}

.token-pie {
  position: relative;
  width: min(320px, 46vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(rgba(255, 255, 255, 0.6) 0deg 360deg);
  box-shadow: 0 20px 36px rgba(47, 42, 30, 0.2);
  overflow: hidden;
  transform: rotate(0deg);
  will-change: transform, background;
}

.token-pie::after {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 32px rgba(47, 42, 30, 0.12);
}

.token-pie__center {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 20px rgba(47, 42, 30, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.token-pie__logo {
  width: clamp(48px, 12vw, 84px);
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(47, 42, 30, 0.18));
}

.token-pie--spinning {
  animation: tokenPieSpin 2.1s cubic-bezier(0.21, 0.74, 0.29, 1) forwards;
}

@keyframes tokenPieSpin {
  0% {
    transform: rotate(-160deg) scale(0.9);
  }
  55% {
    transform: rotate(14deg) scale(1.03);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

.token-pie__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
}

.token-pie__legend-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(47, 42, 30, 0.12);
}

.token-pie__legend-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.token-pie__legend-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.token-pie__legend-marker {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--legend-color), var(--legend-color-soft));
  box-shadow: 0 12px 20px rgba(47, 42, 30, 0.16);
}

.token-card--allocation .token-pie__legend-marker {
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.token-pie__legend-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.token-pie__legend-title {
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(47, 42, 30, 0.72);
}

.token-pie__legend-value {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: rgba(47, 42, 30, 0.9);
}

.token-pie__legend-copy {
  margin: 0;
  font-size: var(--font-size-xs);
  line-height: 1.6;
  color: rgba(47, 42, 30, 0.72);
}

.token-meta {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 16px);
}

.token-meta__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  gap: clamp(12px, 3vw, 20px);
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(47, 42, 30, 0.12);
}

.token-meta__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.token-meta dt {
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  color: rgba(47, 42, 30, 0.55);
  text-transform: uppercase;
}

.token-meta dd {
  margin: 0;
  font-size: var(--font-size-lg);
  overflow-wrap: anywhere;
}

.token-card--description p {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

@media (max-width: 960px) {
  .token-layout {
    grid-template-columns: 1fr;
  }

  .token-layout__side {
    flex-direction: column;
  }

  .token-pie {
    width: min(280px, 70vw);
  }
}

@media (max-width: 640px) {
  .token-card {
    padding: clamp(20px, 8vw, 32px);
  }

  .token-meta__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .token-meta dt {
    font-size: var(--font-size-xs);
    letter-spacing: 0.14em;
  }
}
