/* ============================================================
   $HODL — Diamond Hands Index
   Modern-tech design system (index-style, HODL branded)
   ============================================================ */
:root {
  --bg:        #f4f4f1;
  --bg-tint:   #eceef4;
  --surface:   #ffffff;
  --surface-2: #fafafa;
  --ink:       #0b0b0f;
  --ink-2:     #23232b;
  --muted:     #6a6a76;
  --faint:     #9a9aa6;
  --line:      #e7e7e2;
  --line-2:    #efefe9;

  --lime:      #d4ff3f;   /* diamond-hands brand accent */
  --lime-deep: #a9e000;
  --lime-ink:  #12210a;

  --indigo-1:  #3a3f8f;
  --indigo-2:  #5661d8;
  --indigo-3:  #7b8bff;
  --indigo-4:  #aab6ff;

  --pos:       #17a34a;
  --neg:       #e5484d;

  --display: "Capsule Sans Text", system-ui, sans-serif;
  --sans:    "Capsule Sans Text", system-ui, sans-serif;
  --mono:    "Capsule Sans Text Mono", ui-monospace, monospace;

  --max: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(16,16,24,.04), 0 12px 40px rgba(16,16,40,.08);
  --shadow-float: 0 2px 4px rgba(16,16,24,.05), 0 30px 80px rgba(30,30,80,.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--faint);
}
.section-label {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase;
}
.section-label b { color: var(--ink); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 24px;
  background: rgba(244,244,241,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.nav__diamond { width: 22px; height: 22px; }
.nav__logo-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.footer__logo-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.dash__logo-img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

/* token profile pictures */
.token-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--bg-tint); flex: none; }
.token-img--lg { width: 34px; height: 34px; }
.token-img--xs { width: 15px; height: 15px; vertical-align: middle; }
.legpill .token-img--xs { margin-right: 1px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: 9px; transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.nav__links a.is-active { color: var(--ink); background: rgba(0,0,0,.06); }
.nav__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__timer {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  padding: 8px 12px; border-radius: 10px;
  background: var(--ink); color: #fff;
}
.nav__timer .lbl { color: var(--faint); font-weight: 400; font-size: 11px; letter-spacing: 1px; }
.nav__timer .val { color: var(--lime); font-variant-numeric: tabular-nums; }
.nav__burger { display: none; background: none; border: 0; font-size: 22px; line-height: 1; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; transition: transform .12s, box-shadow .2s, background .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.btn--lime { background: var(--lime); color: var(--lime-ink); }
.btn--lime:hover { background: #e2ff6b; box-shadow: 0 10px 30px rgba(180,230,40,.45); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: #cfcfc8; }
.btn--sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 0%, var(--indigo-3) 0%, var(--indigo-2) 34%, var(--indigo-1) 72%, #22254f 100%);
  color: #fff;
  padding: 74px 0 90px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(212,255,63,.20), transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(170,182,255,.35), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  font-size: 12.5px; font-weight: 500; backdrop-filter: blur(6px);
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 6vw, 68px); line-height: .98; letter-spacing: -.03em;
  margin: 20px 0 18px;
}
.hero__title .accent { color: var(--lime); }
.hero__sub { font-size: 17.5px; color: rgba(255,255,255,.82); max-width: 440px; margin-bottom: 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 26px; margin-top: 30px; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats b { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.hero__stats span { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,.6); text-transform: uppercase; }

/* ---------- FLOATING DASHBOARD CARD ---------- */
.dash {
  background: var(--surface); color: var(--ink);
  border-radius: 20px; box-shadow: var(--shadow-float);
  overflow: hidden;
}
.dash__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.dash__head .brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 15px; }
.dash__hero { text-align: center; padding: 22px 20px 6px; }
.dash__hero .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--faint); text-transform: uppercase; }
.dash__hero .big { font-family: var(--display); font-weight: 700; font-size: 42px; letter-spacing: -.03em; line-height: 1.1; }
.dash__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); margin: 8px 0 0; }
.dash__row .cell { background: var(--surface); padding: 12px 20px; }
.dash__row .cell .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; color: var(--faint); text-transform: uppercase; }
.dash__row .cell .v { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 54px; padding: 14px 20px 4px; }
.spark span { flex: 1; background: var(--ink); border-radius: 2px 2px 0 0; min-height: 3px; opacity: .85; }
.spark span:last-child { background: var(--lime-deep); }
.spark span.ph { height: 3px; opacity: .18; }
.spark span.ph:last-child { background: var(--ink); }

.dash__foot { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px 16px 18px; }
.mini { border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; }
.mini__title { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.mini__title .muted { font-family: var(--mono); font-size: 10.5px; color: var(--faint); font-weight: 400; }
#dashLegs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.leg { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.leg .tk { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; font-weight: 700; color: #fff; background: var(--ink); }
.leg .nm { font-size: 12.5px; font-weight: 600; }
.leg .amt { margin-left: auto; text-align: right; }
.leg .amt b { font-family: var(--mono); font-size: 12px; color: var(--pos); }
.leg .amt span { display: block; font-family: var(--mono); font-size: 10px; color: var(--faint); }
/* ---------- GENERIC SECTIONS ---------- */
.section { padding: 78px 0; }
.section--tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.05; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section__head p { color: var(--muted); font-size: 15px; max-width: 460px; margin-top: 8px; }
.link-arrow { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .5px; color: var(--ink); border-bottom: 2px solid var(--lime); padding-bottom: 2px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stepcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.stepcard h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; margin: 12px 0 8px; }
.stepcard p { font-size: 14px; color: var(--muted); }
.stepcard .glyph { position: absolute; right: 16px; top: 14px; opacity: .8; }
.stepcard .glyph svg { width: 24px; height: 24px; display: block; color: var(--muted); }

/* basket cards */
.basket { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.coin { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .15s, box-shadow .2s; }
.coin:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.coin__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.coin__tk { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 11px; color: #fff; }
.coin__name { font-weight: 700; font-size: 15px; }
.coin__name small { display: block; font-weight: 400; font-size: 11px; color: var(--faint); font-family: var(--mono); }
.coin__weight { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink); background: var(--lime); padding: 3px 8px; border-radius: 7px; }
.coin__meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 12px; }
.coin__meta b { color: var(--ink); }

/* ---------- STAT CARDS (activity / portfolio) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.statcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.statcard .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.statcard .v { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 4px; }
.statcard .sub { font-size: 12.5px; color: var(--faint); }

/* ---------- TABLES ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel__head { padding: 16px 20px; border-bottom: 1px solid var(--line-2); font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -.02em; display: flex; align-items: center; justify-content: space-between; }
.panel__head .note { font-family: var(--mono); font-size: 11px; color: var(--faint); font-weight: 400; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); font-weight: 400; padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 14px 20px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tbl .txlink { font-family: var(--mono); font-size: 12px; color: var(--indigo-2); }
.tbl .txlink:hover { text-decoration: underline; }
.legpills { display: flex; flex-wrap: wrap; gap: 6px; }
.legpill { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-family: var(--mono); font-size: 11px; }
.legpill b { color: var(--ink); }
a.legpill { text-decoration: none; color: inherit; transition: border-color .15s; }
a.legpill:hover { border-color: var(--ink); }
.legpill .s { color: var(--muted); }
.tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; background: var(--bg-tint); color: var(--muted); }

/* ---------- PORTFOLIO LOOKUP ---------- */
.lookup { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.lookup input {
  flex: 1; min-width: 260px; font-family: var(--mono); font-size: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
}
.lookup input:focus { outline: none; border-color: var(--indigo-3); box-shadow: 0 0 0 3px rgba(123,139,255,.18); }
.hint { font-size: 13px; color: var(--faint); }
.folio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.folio .coin__meta { margin-top: 6px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty h3 { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); margin-bottom: 6px; letter-spacing: -.02em; }

/* preview-data pill */
.preview-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; color: #7a5c00;
  background: #fff6d6; border: 1px solid #efdf9a; border-radius: 999px; padding: 5px 12px;
}
.preview-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #e0a800; }

/* ---------- CTA BAND ---------- */
.cta {
  background: linear-gradient(115deg, var(--indigo-1), var(--indigo-2) 55%, var(--indigo-3));
  color: #fff; border-radius: 24px; padding: 48px; text-align: center; position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 80% 10%, rgba(212,255,63,.22), transparent 60%); }
.cta h2 { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.03em; }
.cta p { position: relative; color: rgba(255,255,255,.82); margin: 12px auto 24px; max-width: 500px; }
.cta .hero__cta { position: relative; justify-content: center; }

/* ---------- FOOTER ---------- */
.footer { padding: 44px 0 40px; border-top: 1px solid var(--line); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.footer__brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a { font-size: 13.5px; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.disclaimer { font-size: 12px; color: var(--faint); line-height: 1.7; max-width: 900px; }

/* ---------- PAGE HEAD ---------- */
.pagehead { padding: 54px 0 34px; }
.pagehead .section-label { margin-bottom: 12px; display: block; }
.pagehead h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 50px); letter-spacing: -.03em; line-height: 1; }
.pagehead p { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 560px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .steps, .basket, .stat-grid, .folio { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 60px; right: 16px; left: 16px; margin: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 10px; box-shadow: var(--shadow-card);
  }
  .nav__links.open a { padding: 11px 14px; }
  .nav__burger { display: block; }
}
@media (max-width: 620px) {
  .basket, .folio, .stat-grid, .steps { grid-template-columns: 1fr; }
  .dash__foot { grid-template-columns: 1fr; }
  #dashLegs { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 18px 26px; }
  .cta { padding: 34px 22px; }
  .tbl th:nth-child(3), .tbl td:nth-child(3) { display: none; }
}

/* ---------- table pagination ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 4px; }
.pager__btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 9px; padding: 7px 14px; font-size: 13px; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.pager__btn:hover:not(:disabled) { border-color: var(--ink); }
.pager__btn:disabled { opacity: .35; cursor: default; }
.pager__info { font-family: var(--mono); font-size: 12px; color: var(--muted); }
