/* BLOCKHUBCOIN homepage — CoinBoard design system (dark panels, gold accent, data-first). */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --bg: #07090d; --panel: #0d1117; --panel-2: #131923; --line: #1e2632; --line-2: #2a3444;
  --ink: #e9ecf2; --mute: #8b95a8; --dim: #5d6779;
  --gold: #e8bf5a; --gold-hi: #ffe39a; --gold-lo: #8a5e1a;
  --up: #1fc787; --down: #f2546f; --warn: #f0a63a;
  --r: 14px; --wrap: 1200px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); line-height: 1.5;
  font: 400 15px/1.55 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11" 1; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgb(232 191 90 / .08), transparent 60%),
    radial-gradient(900px 400px at -10% 0%, rgb(59 123 255 / .05), transparent 60%),
    var(--bg);
}
::selection { background: rgb(232 191 90 / .35); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
code, .mono { font-family: var(--mono); }
.num, .dl dd, .stat .v, .alloc .p, .alloc .a { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; padding: 8px 12px; border-radius: 8px; background: var(--gold); color: #000; font-weight: 600; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgb(7 9 13 / .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hdr-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.brand span { font: 800 15px/1 "Unbounded", sans-serif; letter-spacing: .04em; }
.brand b { color: var(--gold); font-weight: 800; }
.menu { display: flex; align-items: center; gap: 2px; margin-inline-start: 18px; }
.menu a { padding: 8px 11px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--mute); white-space: nowrap; }
.menu a:hover { color: var(--ink); }
.hdr-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgb(19 25 35 / .8); place-items: center; }
.burger svg { width: 20px; height: 20px; }

/* Buttons, pills, tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.btn:hover { border-color: var(--line-2); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; border: 1px solid var(--line); padding: 2px 8px; font-size: 11px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.pill.gold { border-color: rgb(232 191 90 / .4); color: var(--gold); background: rgb(232 191 90 / .1); }
.pill.up { border-color: rgb(31 199 135 / .4); color: var(--up); background: rgb(31 199 135 / .1); }
.pill.warn { border-color: rgb(240 166 58 / .4); color: var(--warn); background: rgb(240 166 58 / .1); }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); padding: 2px 7px; font-size: 11px; font-weight: 500; color: var(--mute); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: #627eea; }
.verified { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; border: 1px solid rgb(232 191 90 / .5); background: rgb(232 191 90 / .15); padding: 2px 7px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.verified svg { width: 12px; height: 12px; fill: currentColor; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgb(31 199 135 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(31 199 135 / 0); } 100% { box-shadow: 0 0 0 0 rgb(31 199 135 / 0); } }
.up { color: var(--up); } .down { color: var(--down); } .mute { color: var(--mute); } .dim { color: var(--dim); }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-h h2, .panel-h h3 { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.panel-b { padding: 16px; }
.note { padding: 8px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); }
.note a { color: var(--mute); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.note a:hover { color: var(--gold); }

/* Sections */
main { padding-top: 24px; }
.sec { margin-top: 56px; }
.sec-h { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sec-h h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.lede { max-width: 720px; font-size: 14px; color: var(--mute); }
.grid { display: grid; gap: 16px; }
.grid > *, .main-grid > *, .tok > *, .duo > *, .guard > *, .foot-in > *, .foot-base > * { min-width: 0; }

/* Token header */
.crumb { margin-bottom: 12px; font-size: 12px; color: var(--dim); }
.thead { display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; }
.tid { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tid img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px var(--line-2), 0 8px 30px rgb(232 191 90 / .18); }
.tid h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.tid .sym { font-size: 14px; font-weight: 500; color: var(--mute); }
.tid-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tid-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.tprice .p { font-size: 32px; font-weight: 700; line-height: 1.1; }
.tprice .c { margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tagline { margin: -4px 0 20px; font-size: 15px; color: var(--mute); }
.tagline b { color: var(--gold); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding: 16px; }
.stat .k { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); }
.stat .v { margin-top: 4px; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { margin-top: 2px; font-size: 12px; color: var(--dim); }
.sk { display: inline-block; width: 64px; height: 1em; border-radius: 4px; background: linear-gradient(90deg, var(--panel-2), var(--line), var(--panel-2)); background-size: 200% 100%; animation: sk 1.4s infinite; vertical-align: -2px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Chart */
.main-grid { display: grid; gap: 16px; }
.chart-tabs { display: flex; gap: 4px; }
.chart-tabs button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--mute); }
.chart-tabs button[aria-pressed="true"] { border-color: rgb(232 191 90 / .5); background: rgb(232 191 90 / .1); color: var(--gold); }
.chart { position: relative; height: 340px; }
.chart-msg { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; text-align: center; font-size: 13px; color: var(--mute); pointer-events: none; }
.chart-msg[hidden] { display: none; }
.panel-h { flex-wrap: wrap; }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 16px 16px; }
.links a { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--panel-2); }
.links a:hover { border-color: rgb(232 191 90 / .5); }
.links b { font-size: 13px; font-weight: 600; }
.links span { font-size: 11px; color: var(--mute); }

/* Spec list */
.dl { margin: 0; }
.dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dl div:last-child { border-bottom: 0; }
.dl dt { color: var(--mute); flex-shrink: 0; }
.dl dd { margin: 0; text-align: end; font-weight: 500; }
.ca { display: flex; align-items: center; gap: 8px; }
.ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 6px; background: var(--panel-2); padding: 6px 8px; font-size: 12px; }
.copy { flex-shrink: 0; border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--gold); }
.copy:hover { border-color: rgb(232 191 90 / .5); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hold { margin-top: 14px; }
.hold-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--panel-2); }
.hold-bar i { display: block; height: 100%; }
.hold-leg { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--mute); }
.hold-leg span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 5px; background: var(--c); vertical-align: 0; }

/* Tokenomics */
.tok { display: grid; gap: 16px; }
.donut { position: relative; width: min(260px, 70vw); aspect-ratio: 1; margin: 8px auto; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5.2; transition: stroke-width .2s, opacity .2s; }
.donut .bgc { stroke: var(--panel-2); }
.donut.focus circle.seg { opacity: .35; }
.donut circle.seg.on { opacity: 1; stroke-width: 6.6; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c b { font-size: 22px; font-weight: 700; }
.donut-c span { font-size: 12px; color: var(--mute); }
.alloc { list-style: none; margin: 0; padding: 0; }
.alloc li + li { border-top: 1px solid var(--line); }
.alloc button { width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "sw n p" ". a a" ". d d"; gap: 2px 10px; align-items: center; padding: 11px 16px; border: 0; background: transparent; text-align: start; }
.alloc button:hover, .alloc button.on { background: var(--panel-2); }
.alloc .sw { grid-area: sw; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.alloc .n { grid-area: n; font-size: 14px; font-weight: 600; }
.alloc .p { grid-area: p; font-size: 14px; font-weight: 700; color: var(--gold); }
.alloc .a { grid-area: a; font-size: 12px; color: var(--mute); }
.alloc .d { grid-area: d; font-size: 12px; color: var(--dim); }
.bar { grid-column: 2 / 4; height: 4px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--c); }
.locks { display: grid; gap: 12px; padding: 16px; }
.lock { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); padding: 14px; }
.lock b { display: block; font-size: 13px; font-weight: 600; }
.lock .amt { display: block; margin-top: 6px; font-size: 20px; font-weight: 700; color: var(--gold); }
.lock .meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--mute); }

/* Ecosystem */
.eco { display: grid; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
a.card:hover { border-color: rgb(232 191 90 / .5); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h3 { font-size: 15px; font-weight: 600; }
.card p { font-size: 13px; color: var(--mute); }
.card .go { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--gold); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 10px 12px; font-size: 13px; font-weight: 500; }
a.chip:hover { border-color: rgb(232 191 90 / .5); }
.util { list-style: none; margin: 0; padding: 0; }
.util li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.util li:last-child { border-bottom: 0; }
.util b { font-size: 14px; font-weight: 600; }
.util span { grid-column: 1; font-size: 13px; color: var(--mute); }
.util .pill { grid-row: 1 / 3; grid-column: 2; align-self: center; }

/* Guardians */
.guard { display: grid; gap: 16px; align-items: center; }
.guard-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 12px; min-height: 300px; padding: 24px 16px 0; background: radial-gradient(60% 70% at 50% 100%, rgb(232 191 90 / .16), transparent 70%); }
.guard-stage button { border: 0; background: none; padding: 0; position: relative; }
.eagle img { width: auto; height: 280px; transition: transform .25s; }
.eagle:hover img { transform: translateY(-4px) rotate(-1deg); }
.bot svg { width: 150px; height: auto; }
.bot .b-arm.r { transform-origin: 181px 150px; }
.bot.wave .b-arm.r { animation: wave .9s ease-in-out 2; }
@keyframes wave { 50% { transform: rotate(-38deg); } }
.bubble { position: absolute; top: -6px; left: 50%; transform: translate(-50%, -100%); white-space: nowrap; border: 1px solid rgb(232 191 90 / .4); border-radius: 10px; background: var(--panel-2); padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--gold-hi); opacity: 0; transition: opacity .2s; pointer-events: none; }
.guard-stage button:hover .bubble, .guard-stage button.say .bubble { opacity: 1; }
.poses { display: flex; flex-wrap: wrap; gap: 6px; }
.poses button { border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; color: var(--mute); text-transform: capitalize; }
.poses button[aria-pressed="true"] { border-color: rgb(232 191 90 / .5); color: var(--gold); background: rgb(232 191 90 / .1); }

/* Roadmap */
.road { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: ph; }
.road li { position: relative; }
.road .card { height: 100%; }
.road .ph { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* CTA cards */
.duo { display: grid; gap: 16px; }
.cta-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.cta-card h2 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.cta-card p { font-size: 14px; color: var(--mute); max-width: 520px; }
.cta-card p.kicker { font-size: 12px; color: var(--gold); }
.cta-card .btn-row { margin-top: 6px; }
.cta-card .art { position: absolute; right: -10px; bottom: -14px; width: 150px; opacity: .9; pointer-events: none; }
.cta-card.has-art { padding-right: 150px; }

/* Footer */
.foot { margin-top: 64px; border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 28px; padding: 40px 16px; font-size: 14px; color: var(--mute); }
.foot .brand span { color: var(--ink); }
.foot-tag { margin-top: 10px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--mute); }
.social a:hover { color: var(--gold); border-color: rgb(232 191 90 / .5); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.foot-mail { margin-top: 14px; }
.foot-mail a { color: var(--ink); }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.foot-nav h4 { margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.foot-nav a { display: block; padding: 3px 0; }
.foot-nav a:hover { color: var(--ink); }
.foot-base { border-top: 1px solid var(--line); padding: 18px 16px 28px; display: grid; gap: 12px; font-size: 12px; color: var(--dim); }
.foot-base .ca { max-width: 560px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; transition: .2s; border: 1px solid rgb(232 191 90 / .5); border-radius: 10px; background: var(--panel-2); padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--gold-hi); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1023px) {
  .menu { display: none; position: fixed; inset: 64px 0 0; margin: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; background: rgb(7 9 13 / .98); border-top: 1px solid var(--line); overflow-y: auto; }
  .menu.open { display: flex; }
  .menu a { padding: 12px; font-size: 16px; }
  .burger { display: grid; }
}
@media (max-width: 420px) { .hdr-cta .btn-gold { display: none; } }
@media (max-width: 639px) { .cta-card.has-art { padding-right: 22px; } .cta-card .art { display: none; } }
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eco, .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .thead { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .tprice { text-align: end; }
  .tprice .c { justify-content: flex-end; }
  .main-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .links { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .chart { height: 380px; }
  .tok { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
  .eco { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .road { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1.3fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
