/* CCD token page (private sandbox). Site aesthetic layer only. Live CSS is not changed. */
html { hyphens: none; }

/* Hero sits in the same dark shell as the Hub, with a soft lime/cyan glow like the homepage. */
.tok-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px) 0 0;
  text-align: left;
}
.tok-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 80% 20%, rgba(177, 252, 3, 0.08), transparent 55%),
    radial-gradient(700px 380px at 10% 0%, rgba(0, 225, 255, 0.07), transparent 50%),
    url("img/hero-stars.webp") top center / min(1600px, 140%) auto no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.tok-hero .container,
.tok-hero-art { position: relative; z-index: 1; }
.tok-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.05;
}
.tok-hero .lede {
  margin-top: 16px;
  max-width: 38em;
}
.tok-hero .lede + .lede { margin-top: 10px; }

.tok-novalue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(177, 252, 3, 0.08);
  border: 1px solid rgba(177, 252, 3, 0.28);
  color: var(--accent);
  font: 700 12px/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tok-bar {
  display: block;
  width: min(280px, 70%);
  height: 6px;
  margin: 22px 0 0;
  border-radius: 999px;
  background: url("img/grad-bar.webp") center / 100% 100% no-repeat,
    linear-gradient(90deg, #fe00d9 0%, #5397f2 43%, #13cffc 57%, #58ddad 100%);
}

.tok-hero .hero-actions { margin-top: 24px; }

/* White paper art as the hero visual, contained like the homepage 3D mark, not a full bleed poster. */
.tok-hero-art {
  margin: 8px auto 0;
  max-width: 860px;
  padding: 0 var(--gutter) 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 88%, transparent 100%);
}
.tok-hero-glow {
  position: absolute;
  inset: 12% 10% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 252, 3, 0.16) 0%, rgba(0, 225, 255, 0.08) 40%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}
.tok-plate {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  /* Skip the empty faded top of the plate so the coins enter the first screen. */
  margin-top: -12%;
  animation: tokFloat 9s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}
@keyframes tokFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .tok-plate { animation: none; }
}

/* Body sections use the site's .section / .section-title / .section-lead spacing. */
.tok-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.tok-fact {
  margin: 0;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 14px/1.3 var(--font);
  color: var(--text);
}
.tok-fact b { color: #B1FC03 !important; font-weight: 700; }

.tok-alloc {
  display: grid;
  gap: 28px;
  align-items: center;
  margin: 8px 0 28px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(0, 225, 255, 0.05), rgba(10, 12, 10, 0.85) 60%);
  border: 1px solid rgba(0, 225, 255, 0.14);
}
.tok-donut-wrap { display: grid; justify-items: center; gap: 16px; }
.tok-donut { position: relative; width: min(220px, 68vw); }
.tok-donut svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4)); }
.tok-donut-label {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center; pointer-events: none;
}
.tok-donut-label strong {
  font: 800 28px/1 var(--font-display);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: none;
}
.tok-donut-label span {
  margin-top: 4px;
  font: 700 10px/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.tok-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; max-width: 340px; }
.tok-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  font: 600 14px/1.3 var(--font);
  color: var(--text);
}
.tok-swatch { width: 12px; height: 12px; border-radius: 4px; }
.tok-legend em { font-style: normal; color: var(--text-muted); font-weight: 600; }

.tok-split { margin-top: 8px; }
.tok-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.tok-pct {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tok-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tok-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--text-muted);
  font: 500 15px/1.5 var(--font);
}
.tok-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(177, 252, 3, 0.35);
}

.tok-card .tok-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font: 500 15px/1.5 var(--font);
}

.tok-utils.feature-grid { gap: 14px; }
.tok-util {
  margin: 0;
  padding: 18px 20px;
  font: 600 16px/1.35 var(--font);
  color: var(--ink);
}

/* Keep in-page jumps clear of the sticky header + mobile nav. */
#intro, #supply, #utilities, #airdrop, #governance, #earning, #conclusion {
  scroll-margin-top: 140px;
}

/* Airdrop / snapshot block uses the same energy as the site CTA band. */
.tok-qualify.cta-band {
  display: block;
  margin: 0;
  padding: clamp(24px, 4vw, 40px);
}
.tok-qualify .section-title {
  margin-bottom: 10px;
  text-wrap: balance;
}
.tok-qualify .section-lead {
  margin: 0 0 18px;
  max-width: 28em;
}
.tok-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
  max-width: 40em;
}
.tok-steps > li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 12px 4px 12px 0;
}
.tok-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(177, 252, 3, 0.10);
  border: 1px solid rgba(177, 252, 3, 0.38);
  color: var(--accent);
  font: 700 16px/1 var(--font-display);
  box-shadow: 0 0 12px rgba(177, 252, 3, 0.16);
}
.tok-step-body {
  color: var(--ink);
  font: 600 16px/1.4 var(--font);
  text-wrap: pretty;
}
.tok-step-meta {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font: 500 14px/1.4 var(--font);
}
.tok-step-opt {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(177, 252, 3, 0.10);
  border: 1px solid rgba(177, 252, 3, 0.28);
  color: var(--accent);
  font: 700 10px/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tok-step-body:has(.tok-step-opt) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tok-qualify .tok-reassure {
  margin: 0 0 16px;
  max-width: 40em;
  color: var(--ink);
  font: 600 16px/1.45 var(--font);
  text-wrap: pretty;
}
.tok-qualify .hero-actions { margin: 0 0 20px; justify-content: flex-start; }
.tok-qualify-src {
  margin: 16px 0 0;
  text-align: center;
}

.snap-hero { margin: 0 auto; max-width: 520px; }
.snap-hero .vf-foil-card { margin: 0; }
.snap-hero .vf-foil-title { font-size: clamp(17px, 5.4vw, 22px); line-height: 1.12; text-wrap: balance; }
.snap-hero .vf-foil-mark {
  width: 46px;
  height: 46px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.snap-hero .vf-foil-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #0A0C0A;
  box-shadow: inset 0 0 0 1px rgba(177, 252, 3, 0.22);
  pointer-events: none;
  z-index: 0;
  box-sizing: border-box;
}
.snap-hero .vf-foil-mark svg {
  position: absolute;
  z-index: 1;
  /* Official CCDToken.png: glyph width is 70.27% of disc diameter.
     Bbox center sits 3.182% of diameter right and 1.266% down of the disc center. */
  width: calc(0.7027 * (100% - 6px));
  height: auto;
  aspect-ratio: 222 / 194;
  margin: 0;
  left: calc(50% + 0.03182 * (100% - 6px));
  top: calc(50% + 0.01266 * (100% - 6px));
  transform: translate(-50%, -50%);
  fill: #F2FFF1;
  color: #F2FFF1;
  stroke: none;
  display: block;
}
/* Variant 2: official purple token medallion. Preview with ?medal=purple */
.snap-hero.snap-medal-purple .vf-foil-mark {
  background: #050605;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 16px rgba(80, 20, 180, 0.38);
}
.snap-hero.snap-medal-purple .vf-foil-mark::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.16), transparent 52%),
    linear-gradient(150deg, #0028C3 0%, #1525C6 28%, #7515D3 68%, #A50DDA 100%);
  box-shadow:
    inset 0 0 0 1px rgba(200, 180, 255, 0.22),
    inset 1px 1px 2px rgba(255,255,255,0.28),
    inset -1px -2px 3px rgba(20, 0, 60, 0.35);
}

/* Combo previews. Placement of the mark stays official (70.27% width, +3.182% right, +1.266% down). */
/* foilpurple: lime foil ring, official purple face, lime mark */
.snap-hero.snap-medal-foilpurple .vf-foil-mark::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.16), transparent 52%),
    linear-gradient(150deg, #0028C3 0%, #1525C6 28%, #7515D3 68%, #A50DDA 100%);
  box-shadow:
    inset 0 0 0 1px rgba(200, 180, 255, 0.22),
    inset 1px 1px 2px rgba(255,255,255,0.28),
    inset -1px -2px 3px rgba(20, 0, 60, 0.35);
}
.snap-hero.snap-medal-foilpurple .vf-foil-mark svg { fill: #B1FC03; color: #B1FC03; }

/* foilcoin: lime foil ring, official purple face, white mark */
.snap-hero.snap-medal-foilcoin .vf-foil-mark::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.16), transparent 52%),
    linear-gradient(150deg, #0028C3 0%, #1525C6 28%, #7515D3 68%, #A50DDA 100%);
  box-shadow:
    inset 0 0 0 1px rgba(200, 180, 255, 0.22),
    inset 1px 1px 2px rgba(255,255,255,0.28),
    inset -1px -2px 3px rgba(20, 0, 60, 0.35);
}

/* purplelime: black ring, official purple face, lime mark */
.snap-hero.snap-medal-purplelime .vf-foil-mark {
  background: #050605;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 16px rgba(80, 20, 180, 0.38);
}
.snap-hero.snap-medal-purplelime .vf-foil-mark::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.16), transparent 52%),
    linear-gradient(150deg, #0028C3 0%, #1525C6 28%, #7515D3 68%, #A50DDA 100%);
  box-shadow:
    inset 0 0 0 1px rgba(200, 180, 255, 0.22),
    inset 1px 1px 2px rgba(255,255,255,0.28),
    inset -1px -2px 3px rgba(20, 0, 60, 0.35);
}
.snap-hero.snap-medal-purplelime .vf-foil-mark svg { fill: #B1FC03; color: #B1FC03; }

/* blacklime: black ring, lime foil face, purple mark */
.snap-hero.snap-medal-blacklime .vf-foil-mark {
  background: #050605;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 16px rgba(177,252,3,0.35);
}
.snap-hero.snap-medal-blacklime .vf-foil-mark::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.28), transparent 52%),
    linear-gradient(160deg, #f8f4ff, #b1fc03 30%, #7af0ff 55%, #ffe27a 80%, #f8f4ff);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.28),
    inset 1px 1px 2px rgba(255,255,255,0.45),
    inset -1px -2px 3px rgba(20, 40, 0, 0.2);
}
.snap-hero.snap-medal-blacklime .vf-foil-mark svg { fill: #6B12D0; color: #6B12D0; }

/* foilface: lime foil ring and face, purple mark */
.snap-hero.snap-medal-foilface .vf-foil-mark::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.28), transparent 52%),
    linear-gradient(160deg, #f8f4ff, #b1fc03 30%, #7af0ff 55%, #ffe27a 80%, #f8f4ff);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.28),
    inset 1px 1px 2px rgba(255,255,255,0.45),
    inset -1px -2px 3px rgba(20, 40, 0, 0.2);
}
.snap-hero.snap-medal-foilface .vf-foil-mark svg { fill: #6B12D0; color: #6B12D0; }

/* classic: lime foil ring and face, black mark */
.snap-hero.snap-medal-classic .vf-foil-mark::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.28), transparent 52%),
    linear-gradient(160deg, #f8f4ff, #b1fc03 30%, #7af0ff 55%, #ffe27a 80%, #f8f4ff);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.28),
    inset 1px 1px 2px rgba(255,255,255,0.45),
    inset -1px -2px 3px rgba(20, 40, 0, 0.2);
}
.snap-hero.snap-medal-classic .vf-foil-mark svg { fill: #0A0C0A; color: #0A0C0A; }
.snap-units { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 0; }
.snap-unit { text-align: center; padding: 9px 4px 8px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.snap-unit b { display: block; font: 800 22px/1 "Montserrat", system-ui, sans-serif; letter-spacing: 0.02em; color: #F2FFF1; font-variant-numeric: tabular-nums; }
.snap-unit span { display: block; margin-top: 5px; font: 700 9px/1 "Montserrat", system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: #B1FC03; }
.snap-hero .vf-foil-bot { justify-content: center; text-align: center; }
.snap-line { position: relative; z-index: 1; margin: 10px 2px 0; text-align: center; font: 600 14px/1.4 "DM Sans", system-ui, sans-serif; color: #F2FFF1; }

.tok-grid {
  display: grid;
  gap: 20px;
}
.tok-panel.feature-card { padding: 24px; }
.tok-panel .section-title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.tok-src {
  margin: 8px 0 0;
  color: var(--steel);
  font: 500 13px/1.5 var(--font);
}

@media (min-width: 700px) {
  .tok-hero { text-align: center; }
  .tok-hero h1 { margin-left: auto; margin-right: auto; }
  .tok-hero .lede { margin-left: auto; margin-right: auto; }
  .tok-bar { margin-left: auto; margin-right: auto; }
  .tok-hero .hero-actions { justify-content: center; }
  .tok-hero-art { max-width: 620px; margin-top: 0; }
  .tok-plate { margin-top: -12%; }
  .tok-alloc { grid-template-columns: 1fr auto; gap: 40px; padding: 28px 32px; }
  .tok-alloc .tok-copy { text-align: left; }
  .snap-hero { max-width: 560px; }
  .snap-hero .vf-foil-title { font-size: 24px; }
  .snap-unit b { font-size: 26px; }
  .snap-hero .vf-foil-mark { width: 52px; height: 52px; }
  .tok-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 900px) {
  .tok-split { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .tok-hero { padding-top: 22px; }
  .tok-hero-art { padding-left: 0; padding-right: 0; }
  .tok-hero .lede { margin-top: 12px; }
  .tok-hero .hero-actions { margin-top: 18px; }
  .tok-plate { margin-top: -12%; }
  .snap-hero .vf-foil-title { font-size: 20px; }
  .tok-alloc { padding: 16px 14px; }
  .tok-qualify.cta-band { padding: 22px 16px 28px; }
  .tok-qualify .hero-actions {
    /* Keep the CTA clear of the floating Ask Kaf button on the right. */
    padding-right: 88px;
  }
  .tok-steps > li { gap: 12px; padding: 10px 0; }
  .tok-step-num { width: 32px; height: 32px; font-size: 15px; }
  .tok-steps { grid-auto-rows: minmax(0, auto); }
  .tok-steps > li { grid-template-columns: 32px 1fr; }
  .tok-step-body { font-size: 15px; }
  .tok-qualify .tok-reassure { font-size: 15px; }

}

/* Tablet and desktop: pull the hero back a notch and tighten the layout
   so typography, cards, and spacing feel uniform — nothing oversized.
   Mobile (under 768px) is left exactly as-is, including the 700px centering rules. */
@media (min-width: 768px) {
  .tok-hero { padding-top: 48px; }
  /* Same scale as the site hero, but capped below the 72px max so it isn't oversized. */
  .tok-hero h1 { font-size: clamp(40px, 5.4vw, 60px) !important; }
  .tok-hero-art {
    max-width: 720px;
    padding-left: 0;
    padding-right: 0;
  }

  main > .section { padding: 56px 0; }

  /* Override hubmatch's 52px !important so every section title matches, and
     in-card headings stay a consistent smaller size. */
  .section-title { font-size: 32px !important; }
  .tok-panel .section-title { font-size: 22px !important; margin-bottom: 12px; }
  .tok-card h3 { font-size: 20px; margin-bottom: 10px; }

  .feature-card.tok-card,
  .feature-card.tok-panel,
  .feature-card.tok-util {
    padding: 22px 24px;
  }
  .tok-alloc {
    padding: 24px 28px;
    gap: 32px;
    margin-bottom: 24px;
  }
  .tok-qualify.cta-band { padding: 28px 32px; }
  .tok-grid { gap: 20px; }
}
@media (min-width: 1024px) {
  .tok-hero-art { max-width: 880px; }
}
