/* ===================== TOKENS ===================== */
:root {
  --bg: #ffffff;
  --card: #f7f7f7;
  --pill: #e9e9e9;
  --ink: #4c4c4c;
  --ink-strong: #000000;
  --muted: #aeaaaa;
  --muted-2: #949494;
  --green: #13cc7b;
  --red: #ca0c2f;
  --max: 1728px;
  --pad: clamp(20px, 4vw, 64px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.muted { color: var(--muted); }

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--pad);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(16px);
}
.nav__left { display: flex; align-items: center; gap: 32px; }
.nav__brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 20px; color: var(--ink);
  text-decoration: none;
}
.nav__logo { width: 26px; height: 26px; object-fit: contain; }
.nav__link {
  font-size: 18px; font-weight: 500; color: var(--ink);
  text-decoration: none; transition: opacity .2s;
}
.nav__link:hover { opacity: .55; }
.nav__owner {
  background: var(--pill);
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
}
.nav__owner span { font-variant-numeric: tabular-nums; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 140px) var(--pad) clamp(80px, 12vw, 160px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 48px;
}
.hero__title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 510;
  line-height: 1.05;
  color: var(--muted);
  max-width: 9ch;
}
.hero__title span { color: var(--ink); }
.hero__countdown {
  margin-top: clamp(40px, 10vw, 130px);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 510;
  color: var(--muted);
}
.hero__countdown span { color: var(--ink); font-variant-numeric: tabular-nums; }
.hero__coin {
  width: clamp(260px, 38vw, 562px);
  justify-self: end;
}
.hero__coin img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,.12));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.hero__note {
  grid-column: 2;
  justify-self: end;
  text-align: right;
  max-width: 433px;
  margin-top: clamp(40px, 8vw, 120px);
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 510;
  color: var(--muted);
}

/* ===================== BANDS ===================== */
.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 130px) var(--pad);
  text-align: center;
}
.band__label {
  font-size: 16px;
  font-weight: 510;
  letter-spacing: .04em;
  color: var(--muted-2);
  margin-bottom: 28px;
}
.band__title {
  font-size: clamp(56px, 11vw, 128px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.band__sub {
  max-width: 964px;
  margin: 32px auto 0;
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 510;
  color: var(--muted);
}
.band__sub--total { margin-top: 56px; }
.band__sub--total span { font-variant-numeric: tabular-nums; color: var(--ink); }

/* ===================== NFT CARD ===================== */
.nftcard {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--card);
  border-radius: 20px;
  max-width: 667px;
  margin: clamp(48px, 8vw, 96px) auto 0;
  padding: 24px;
}
.nftcard__img {
  width: 262px; height: 262px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}
.nftcard__info {
  flex: 1 1 200px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nftcard__row {
  font-size: 22px;
  font-weight: 510;
  color: var(--ink-strong);
}
.nftcard__row strong { font-weight: 510; }
.nftcard__row.muted { color: var(--muted); }
.nftcard__buy {
  flex: 1 1 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--pill);
  border: none;
  border-radius: 50px;
  padding: 6px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-family: var(--font);
  transition: transform .15s ease, background .2s ease;
}
.nftcard__buy:hover { background: #e0e0e0; transform: translateY(-2px); }
.nftcard__buy:active { transform: translateY(0); }
.nftcard__buy img { width: 56px; height: 56px; border-radius: 100px; }
.nftcard__buy span {
  flex: 1; text-align: center;
  font-size: 22px; font-weight: 600; color: #000;
  padding-right: 56px;
}

/* Buy dropdown */
.buymenu {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 10px);
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
  animation: rowIn .18s ease both;
}
.buymenu[hidden] { display: none; }
.buymenu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-strong);
  text-decoration: none;
  transition: background .15s ease;
}
.buymenu__item:hover { background: var(--card); }
.buymenu__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c, #000);
  flex-shrink: 0;
}

/* ===================== HOLDERS ===================== */
.holders {
  max-width: 1163px;
  margin: clamp(48px, 8vw, 96px) auto 0;
  background: var(--card);
  border-radius: 25px;
  padding: 24px clamp(20px, 4vw, 56px);
  text-align: left;
}
.holders__head,
.holderrow {
  display: grid;
  grid-template-columns: 48px 1fr 180px 200px;
  align-items: center;
  gap: 16px;
}
.holders__head {
  padding: 8px 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid #ececec;
}
.holders__num { text-align: right; }
.holderrow {
  padding: 16px 0;
  border-bottom: 1px solid #ededed;
  font-size: clamp(14px, 1.5vw, 20px);
  animation: rowIn .35s ease both;
}
.holderrow:last-child { border-bottom: none; }
.holderrow__rank {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.holderrow__rank.top { color: #e6a400; }
.holderrow__wallet {
  font-family: var(--mono);
  color: var(--ink);
}
.holderrow__amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 500;
}
.holderrow__share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.holderrow__bar {
  flex: 1;
  height: 6px;
  border-radius: 100px;
  background: #e4e4e4;
  overflow: hidden;
  max-width: 110px;
}
.holderrow__bar > i {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #f0b400, #e6a400);
}
.holderrow__pct {
  width: 58px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
}

/* ===================== TRANSACTIONS CARD ===================== */
.txcard {
  position: relative;
  background: var(--card);
  border-radius: 25px;
  max-width: 1163px;
  margin: clamp(48px, 8vw, 96px) auto 0;
  padding: 40px clamp(20px, 4vw, 64px);
  overflow: hidden;
}
.txcard__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.4vw, 20px);
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d2d2d2 transparent;
  padding-right: 6px;
}
.txcard__list::-webkit-scrollbar { width: 8px; }
.txcard__list::-webkit-scrollbar-thumb { background: #d2d2d2; border-radius: 100px; }
.txcard__list::-webkit-scrollbar-track { background: transparent; }
.txrow {
  display: grid;
  grid-template-columns: 110px 1fr 150px;
  align-items: center;
  gap: 16px;
  animation: rowIn .4s ease both;
}
.txrow__time { color: var(--ink); text-align: left; white-space: nowrap; }
.txrow__action { text-align: center; }
.txrow__action.buy { color: var(--green); }
.txrow__action.sell { color: var(--red); }
.txrow__wallet { color: var(--ink); text-align: right; white-space: nowrap; }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.empty {
  text-align: center;
  color: var(--muted);
  font-family: var(--font);
  font-size: clamp(14px, 1.5vw, 18px);
  padding: 48px 16px;
  letter-spacing: .01em;
}
.txcard__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to top, var(--card), rgba(247,247,247,0));
  pointer-events: none;
}

/* ===================== FOOTER ===================== */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad) 56px;
  text-align: center;
}
.footer__line { border: none; border-top: 1px solid #e2e2e2; margin-bottom: 24px; }
.footer__x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: opacity .2s ease;
}
.footer__x:hover { opacity: .55; }
.footer__text { font-size: 16px; font-weight: 500; color: var(--muted-2); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 32px;
  }
  .hero__title { max-width: none; margin: 0 auto; }
  .hero__coin { justify-self: center; }
  .hero__countdown { margin-top: 8px; }
  .hero__note {
    grid-column: 1;
    justify-self: center;
    text-align: center;
    margin-top: 0;
  }
  .nav__left { gap: 18px; }
}
@media (max-width: 620px) {
  .nav { flex-wrap: wrap; }
  .nav__owner { font-size: 14px; padding: 8px 16px; }
  .nav__link { font-size: 15px; }
  .nftcard__info { text-align: center; }
  .nftcard__buy span { padding-right: 56px; }
  .txrow {
    grid-template-columns: 70px 1fr;
    font-size: 12px;
  }
  .txrow__wallet { display: none; }
  .holders__head,
  .holderrow {
    grid-template-columns: 32px 1fr 90px;
    gap: 10px;
    font-size: 13px;
  }
  .holders__head span:nth-child(3),
  .holderrow__amount { display: none; }
  .holderrow__bar { display: none; }
}
