/* Quantum Wheel
 * Colors only (owner, 2026-12-03): the warm near-black background and the stone/bone logo palette of pqc.market.
 * Layout, type and the wheel are our own. Instrument Serif (display) + Manrope (everything else, tabular numbers). */
:root {
  --bg: #121110;
  --surface: #1a1918;
  --surface-2: #211f1e;
  --line: #2a2826;
  --line-2: #3a3734;
  --bone: #e4e2d4;
  --parchment: #c8c8b8;
  --taupe: #a89888;
  --olive: #989888;
  --deep-olive: #4a4a3a;
  --dim: #8a837c;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--parchment);
  font: 400 16px/1.6 var(--sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--bone); font-weight: 400; }
p { margin: 0; }
b, strong { color: var(--bone); font-weight: 700; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--bone); color: var(--bg); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--bone); color: var(--bg); padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip:focus { left: 12px; }

.small { font-size: 13px; color: var(--dim); letter-spacing: .01em; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--taupe); flex: none; }
body.live .dot { background: var(--bone); box-shadow: 0 0 0 0 rgba(228, 226, 212, .55); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(228, 226, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 226, 212, 0); } }
@media (prefers-reduced-motion: reduce) { body.live .dot { animation: none; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s;
}
.btn:active { transform: scale(.97); }
.btn-bone { background: var(--bone); color: var(--bg); }
.btn-bone:hover { background: #f2efe4; }
.btn-line { background: transparent; color: var(--bone); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--taupe); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 max(20px, calc((100vw - var(--wrap)) / 2));
  background: rgba(18, 17, 16, .86); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); font: 400 23px/1 var(--serif); letter-spacing: .005em; }
.brand-mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--dim); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--bone); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.ca-pill, .x-btn {
  height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--bone); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .15s;
}
.ca-pill { padding: 0 14px; font: 600 13px/1 var(--sans); }
.x-btn { width: 36px; }
.ca-pill:hover, .x-btn:hover { border-color: var(--taupe); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 56px 20px 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 40px; align-items: center;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin-bottom: 22px; }
h1 { font: 400 clamp(46px, 6.1vw, 80px)/.98 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
h1 em { font-style: italic; color: var(--taupe); }
.lede { margin-top: 24px; max-width: 34em; font-size: 17.5px; color: var(--parchment); text-wrap: pretty; }
.hero .ctas { margin-top: 30px; }
.hero-facts { display: flex; gap: 0; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts div { flex: 1; padding-right: 16px; }
.hero-facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-facts dt { font-size: 12px; color: var(--dim); letter-spacing: .02em; }
.hero-facts dd { margin: 4px 0 0; color: var(--bone); font-weight: 700; font-size: 16px; }

/* the wheel */
.wheel-wrap { position: relative; margin: 0; width: 100%; max-width: 580px; justify-self: end; aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; overflow: visible; }
.orbits ellipse { fill: none; stroke: var(--deep-olive); stroke-width: 1.1; }
.orbits .electron { fill: var(--taupe); }
.ring .rim { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ring .tick { stroke: var(--olive); stroke-width: 1; opacity: .5; }
.ring .tick.major { stroke: var(--bone); opacity: .9; stroke-width: 1.6; }
.spin { transform-origin: 300px 300px; transition: transform 4.2s cubic-bezier(.13, .72, .09, 1); }
.slice path { stroke: var(--bg); stroke-width: 3; transition: fill .4s; }
.slice.s0 path { fill: var(--surface-2); }
.slice.s1 path { fill: var(--surface); }
.slice.s2 path { fill: #282624; }
.slice.on path { fill: #34312d; }
.slice .tk { font: 800 15px/1 var(--sans); fill: var(--bone); text-anchor: middle; letter-spacing: .06em; }
.slice .nm { font: 600 11.5px/1 var(--sans); fill: var(--dim); text-anchor: middle; letter-spacing: .02em; }
.slice.on .nm { fill: var(--parchment); }
.slice .logo-ring { fill: var(--bone); }
.pointer { fill: var(--bone); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.hub {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2);
  box-shadow: 0 0 0 8px rgba(18, 17, 16, .7), inset 0 0 0 6px var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
}
.hub-label { font-size: clamp(10px, 1.1vw, 12px); color: var(--dim); font-weight: 600; letter-spacing: .04em; }
.hub-time { font: 400 clamp(40px, 5.6vw, 64px)/1 var(--serif); color: var(--bone); }
.hub-sub { font-size: clamp(10px, 1.1vw, 12.5px); color: var(--dim); }
.hub-sub b { color: var(--taupe); }

/* ---------- tape ---------- */
.tape { border-block: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.tape-track { display: flex; width: max-content; animation: tape 60s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } }
.tape-item { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-right: 1px solid var(--line); white-space: nowrap; font-size: 14px; color: var(--dim); }
.tape-item b { color: var(--bone); letter-spacing: .04em; }
.tape-item .px { color: var(--parchment); font-weight: 600; }
.up { color: var(--bone); font-weight: 700; white-space: nowrap; }
.down { color: var(--taupe); font-weight: 700; white-space: nowrap; }

/* ---------- logos ---------- */
.logo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--bone); flex: none; }
.logo-lg { width: 44px; height: 44px; }
.logo-xl { width: 64px; height: 64px; }

/* ---------- sections ---------- */
section.board, section.seven, section.how, section.coin { max-width: var(--wrap); margin: 0 auto; padding: 88px 20px 0; }
.sect-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sect-head h2, .coin-card h2 { font: 400 clamp(36px, 4.4vw, 54px)/1 var(--serif); letter-spacing: -.01em; }
.sect-head > p { max-width: 36em; color: var(--dim); }
.board-state { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--parchment); }
.board-state .round { padding-left: 12px; border-left: 1px solid var(--line-2); color: var(--dim); }

/* board */
.board-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; }
.now { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.now-stock { display: flex; align-items: center; gap: 18px; }
.now-name { font: 400 clamp(40px, 4.6vw, 58px)/1 var(--serif); color: var(--bone); }
.now-meta { margin-top: 8px; color: var(--dim); font-size: 14px; font-weight: 600; }
.now-clock { display: flex; align-items: baseline; justify-content: space-between; }
.now-clock b { font: 400 64px/1 var(--serif); color: var(--bone); }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: -10px; }
.bar i { display: block; height: 100%; width: 0; background: var(--bone); border-radius: 4px; transition: width .5s linear; }
.queue-wrap { display: flex; flex-direction: column; gap: 10px; }
.queue { list-style: none; margin: 0; padding: 0; }
.queue li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.queue li span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.queue li b { font-size: 16px; }
.queue li small { font-size: 12.5px; color: var(--dim); font-weight: 600; }
.queue li em { font-style: normal; font-size: 13px; color: var(--taupe); font-weight: 700; white-space: nowrap; }
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.figures .card { padding: 18px 20px; }
.figures dt { font-size: 13px; color: var(--dim); }
.figures dd { margin: 6px 0 0; font: 800 26px/1.1 var(--sans); color: var(--bone); letter-spacing: -.01em; }
.recent { padding: 20px; flex: 1; }
.recent h3 { font: 700 14px/1 var(--sans); color: var(--parchment); margin-bottom: 12px; letter-spacing: .02em; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log .d-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.log .d-main b { font-size: 15px; }
.log .d-main span { font-size: 13px; color: var(--dim); }
.log .d-sol { font-weight: 800; color: var(--bone); white-space: nowrap; }
.log a.d-rcpt { font-size: 13px; font-weight: 700; color: var(--taupe); text-decoration: none; white-space: nowrap; }
.log a.d-rcpt:hover { color: var(--bone); }
.log li.empty { flex-direction: column; align-items: flex-start; gap: 4px; }
.log li.empty span { color: var(--dim); font-size: 14px; }

/* the seven */
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.roster li { padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s; }
.roster li.on { border-color: var(--taupe); }
.ro-top { display: flex; align-items: center; gap: 14px; }
.ro-n { margin-left: auto; align-self: flex-start; font: 400 30px/1 var(--serif); color: var(--line-2); }
.roster li.on .ro-n { color: var(--taupe); }
.ro-name { font: 400 28px/1.05 var(--serif); color: var(--bone); }
.ro-tk { font-size: 12.5px; font-weight: 700; color: var(--dim); letter-spacing: .05em; }
.ro-why { font-size: 14.5px; color: var(--parchment); }
.ro-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.ro-foot .px { color: var(--bone); font-weight: 700; font-size: 15px; }
.note { margin-top: 16px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; color: var(--taupe); }
.note svg { flex: none; margin-top: 2px; }
.note p { color: var(--parchment); font-size: 14.5px; }

/* how */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 26px; }
.step-n { display: block; font: 400 44px/1 var(--serif); color: var(--taupe); margin-bottom: 18px; }
.steps h3 { font: 800 18px/1.25 var(--sans); margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--dim); }

/* coin */
.coin-card { padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.facts { margin: 24px 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; color: var(--bone); font-weight: 700; text-align: right; }
.ca-box { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: 26px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-2); }
.ca-value { font: 600 15px/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--bone); word-break: break-all; }

/* footer */
.footer { max-width: var(--wrap); margin: 96px auto 0; padding: 32px 20px 40px; border-top: 1px solid var(--line); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-top nav { display: flex; gap: 22px; }
.foot-top nav a { font-size: 14px; color: var(--dim); text-decoration: none; }
.foot-top nav a:hover { color: var(--bone); }
.disclaimer { margin-top: 22px; font-size: 12.5px; line-height: 1.65; color: var(--dim); max-width: 92ch; }
.copy { margin-top: 14px; font-size: 12.5px; color: var(--dim); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--bone); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
  max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: opacity .2s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 36px; }
  .wheel-wrap { justify-self: center; max-width: 540px; }
  .board-grid, .coin-card { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 28px; height: 28px; }
  .ca-pill { padding: 0 11px; font-size: 12px; }
  h1 { font-size: 44px; }
  .lede { font-size: 16px; }
  .ctas .btn { flex: 1 1 auto; }
  .hero-facts dd { font-size: 14px; }
  .hero-facts div + div { padding-left: 12px; }
  .slice .nm { display: none; }
  section.board, section.seven, section.how, section.coin { padding-top: 64px; }
  .now { padding: 22px; }
  .now-clock b { font-size: 52px; }
  .figures { gap: 10px; }
  .figures .card { padding: 14px 16px; }
  .figures dd { font-size: 21px; }
  .coin-card { padding: 22px; gap: 26px; }
  .ca-box { padding: 18px; }
}
