/* ==========================================================================
   HASHPOINT HK — core stylesheet
   Brand name is a placeholder; swap tokens below to rebrand.
   ========================================================================== */

:root {
  /* Warm obsidian rather than cool black — reads as lacquer, not terminal. */
  --bg:        #0A0908;
  --bg-2:      #0F0D0B;
  --surface:   #14110E;
  --surface-2: #1C1813;
  --border:    #2A2319;
  --border-2:  #3E3324;

  --text:      #F4EFE6;
  --text-dim:  #AEA496;
  --text-mute: #7E7568;

  /* Champagne gold is the brand accent. Green and red below are reserved
     strictly for real gains and losses — never for decoration. */
  --accent:    #D9B45B;
  --accent-2:  #B8912F;
  --accent-hi: #F2DB9A;
  --accent-dim: rgba(217, 180, 91, 0.12);
  --gold-line: linear-gradient(90deg, transparent, rgba(217,180,91,.55), transparent);

  --gain:      #4ED88A;
  --loss:      #E5564B;

  --warn:      #E0A144;
  --warn-dim:  rgba(224, 161, 68, 0.12);
  --danger:    #E5564B;
  --danger-dim: rgba(229, 86, 75, 0.12);
  --info:      #7FB3E0;

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1180px;

  /* CJK-first stack: PingFang HK/SC and Noto Sans HK/SC cover both scripts
     cleanly on macOS, iOS, Windows and Android. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "PingFang HK", "PingFang SC", "Noto Sans HK", "Noto Sans SC",
          "Hiragino Sans GB", "Microsoft JhengHei", "Microsoft YaHei",
          sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Display serif for headings and prices only. In Chinese the Ming/Song
     serifs (Songti, Noto Serif HK) carry the same prestige a Didone does in
     Latin. Body copy stays sans for readability. */
  --display: "Didot", "Bodoni MT", "Hoefler Text", Garamond, Georgia,
             "Times New Roman", "Songti TC", "Songti SC", "Noto Serif HK",
             "Noto Serif SC", "MingLiU", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Chinese pages: larger type and looser leading. Readers aged 30–60 are the
   target audience and CJK glyphs need more room than Latin at the same size. */
html[data-lang="tc"] body,
html[data-lang="sc"] body {
  font-size: 17.5px;
  line-height: 1.9;
  letter-spacing: .01em;
}
html[data-lang="tc"] h1, html[data-lang="sc"] h1,
html[data-lang="tc"] h2, html[data-lang="sc"] h2 { line-height: 1.35; letter-spacing: 0; }
html[data-lang="tc"] h3, html[data-lang="sc"] h3 { line-height: 1.5; font-size: 1.22rem; }
html[data-lang="tc"] .small, html[data-lang="sc"] .small { font-size: .89rem; line-height: 1.8; }
html[data-lang="tc"] .spec-list, html[data-lang="sc"] .spec-list { font-size: .95rem; }
html[data-lang="tc"] table, html[data-lang="sc"] table { font-size: .95rem; }
html[data-lang="tc"] .stat-label, html[data-lang="sc"] .stat-label { letter-spacing: .02em; }
html[data-lang="tc"] .eyebrow, html[data-lang="sc"] .eyebrow { letter-spacing: .08em; }
html[data-lang="tc"] .fieldset-title, html[data-lang="sc"] .fieldset-title { letter-spacing: .08em; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 650; }
h3 { font-size: 1.18rem; font-weight: 600; }
p  { margin: 0 0 1rem; color: var(--text-dim); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 82px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.mono { font-family: var(--mono); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--text-dim); max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 10, 14, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; color: var(--text); text-decoration: none; font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
/* The mark is a real SVG file so it can be reused for the favicon, print
   and any partner material. Sized here, never restyled. */
.brand-mark { width: 30px; height: 30px; flex: none; display: block; }
.brand small {
  display: block; font-size: .64rem; letter-spacing: .2em;
  color: var(--text-mute); font-weight: 500;
}
/* The Chinese company name needs less tracking than a Latin subline. */
html[data-lang="tc"] .brand small,
html[data-lang="sc"] .brand small { letter-spacing: .13em; font-size: .68rem; }

.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--text-dim); font-size: .91rem; padding: 8px 13px;
  border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-links a.active { color: var(--accent); background: var(--accent-dim); }

.nav-toggle {
  display: none; margin-left: auto; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #041109; }
.btn-primary:hover { background: #29f2a4; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 86px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 620px;
  background: radial-gradient(ellipse at 30% 30%, rgba(0,229,140,.16), transparent 62%),
              radial-gradient(ellipse at 78% 20%, rgba(78,168,255,.12), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(0,229,140,.28); padding: 5px 13px; border-radius: 999px;
  margin-bottom: 20px; font-weight: 600;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card--hover { transition: .18s ease; }
.card--hover:hover { border-color: var(--border-2); transform: translateY(-3px); }
/* Drawn marks rather than emoji: emoji render as a different typeface on
   every platform and sat oddly against the display serif. These are our own
   line drawings in the brand gold. */
.card-icon { display: block; margin-bottom: 14px; line-height: 0; }
.card-icon img { width: 30px; height: 30px; }

/* ---------- Product cards ---------- */
.product-card { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.product-card.featured { border-color: rgba(0,229,140,.42); box-shadow: 0 0 0 1px rgba(0,229,140,.1), 0 18px 50px -28px rgba(0,229,140,.5); }
.ribbon {
  position: absolute; top: 16px; right: -34px; transform: rotate(38deg);
  background: var(--accent); color: #041109; font-size: .64rem; font-weight: 800;
  letter-spacing: .12em; padding: 5px 40px;
}
.product-visual {
  height: 132px; border-radius: var(--radius-sm); margin-bottom: 18px;
  background:
    repeating-linear-gradient(90deg, var(--surface-2) 0 22px, #1d2531 22px 26px),
    linear-gradient(160deg, #1a2230, #0f141c);
  border: 1px solid var(--border); display: grid; place-items: center;
  color: var(--text-mute); font-family: var(--mono); font-size: .72rem; letter-spacing: .2em;
}
/* Photo variant of the same box. The striped fill is a stand-in for a product
   shot; where a real photograph exists, drop it in here instead. The spec
   caption survives on a scrim so the box still says what it is showing. */
.product-visual.has-photo {
  position: relative; overflow: hidden; padding: 0;
  display: block; background: var(--surface-2);
  /* The rig photographs are portrait but this box is wide, so a short box
     crops away the frame and leaves an unreadable band of cards. Height
     scales with the viewport to keep enough of the rig in shot. */
  height: clamp(240px, 40vw, 400px);
}
.product-visual.has-photo img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center 38%;
}
.product-visual .pv-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 14px 11px; text-align: center;
  background: linear-gradient(to top, rgba(6,8,11,.88), rgba(6,8,11,.45) 55%, rgba(6,8,11,0));
  color: var(--text-dim); font-family: var(--mono);
  font-size: .72rem; letter-spacing: .2em;
}
.price { font-family: var(--mono); font-size: 1.75rem; font-weight: 700; color: var(--text); margin: 6px 0 2px; }
.price small { font-size: .78rem; color: var(--text-mute); font-weight: 400; letter-spacing: .04em; }
.spec-list { list-style: none; padding: 0; margin: 16px 0; font-size: .9rem; }
.spec-list li { padding: 7px 0; border-bottom: 1px dashed var(--border); color: var(--text-dim); display: flex; justify-content: space-between; gap: 14px; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list b { color: var(--text); font-weight: 600; font-family: var(--mono); font-size: .86rem; text-align: right; }
.product-card .btn { margin-top: auto; }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; }
.stat-val { font-family: var(--mono); font-size: 1.55rem; font-weight: 700; color: var(--accent); line-height: 1.15; }
.stat-val.neutral { color: var(--text); }
.stat-val.warn { color: var(--warn); }
.stat-val.danger { color: var(--danger); }
.stat-label { font-size: .78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
td { color: var(--text-dim); }
td b, td strong { color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.017); }
td.num, th.num { font-family: var(--mono); text-align: right; }

/* ---------- Badges / notes ---------- */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
}
.badge-ok   { background: var(--accent-dim); color: var(--accent); }
.badge-warn { background: var(--warn-dim); color: var(--warn); }
.badge-risk { background: var(--danger-dim); color: var(--danger); }
.badge-info { background: rgba(78,168,255,.13); color: var(--info); }

.note {
  border-left: 3px solid var(--warn); background: var(--warn-dim);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0;
}
.note.info { border-left-color: var(--info); background: rgba(78,168,255,.08); }
.note.ok { border-left-color: var(--accent); background: var(--accent-dim); }
/* Strongest level: the reader is about to act on something that will not
   work. Used where ASICs have made a coin pointless to mine on a card. */
.note.stop { border-left-color: var(--danger); background: rgba(229,86,75,.09); }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--text); }

/* ---------- Long-form reading ----------
   The market briefing is read by people deciding whether to spend real
   money, so these favour legibility over density: generous line height,
   a measure that stays readable, and definitions that get their own line
   rather than being squeezed to the right like .spec-list does. */
.plain-list { list-style: none; padding: 0; margin: 14px 0 0; }
.plain-list li {
  position: relative; padding: 0 0 0 22px; margin-bottom: 12px;
  color: var(--text-dim); line-height: 1.65;
}
.plain-list li::before {
  content: ''; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.plain-list li:last-child { margin-bottom: 0; }
.plain-list b { color: var(--text); font-weight: 600; }

/* ---------- Full-width photo band ----------
   A breather between two dense sections. The source photographs are portrait
   and this frame is wide, so the crop is deliberate: object-position holds
   the middle of the rack, and the height scales rather than being fixed so
   a phone still gets a usable slice rather than a letterbox sliver. */
.photo-band {
  position: relative; overflow: hidden;
  height: clamp(240px, 34vw, 420px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.photo-band img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
}
.photo-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(6,8,11,.93) 0%, rgba(6,8,11,.72) 30%, rgba(6,8,11,.30) 62%, rgba(6,8,11,.10) 100%);
}
.photo-band-copy {
  position: absolute; inset: 0; display: flex; align-items: center; z-index: 1;
}
.photo-band-copy .wrap { width: 100%; }
.photo-band-copy p {
  max-width: 34ch; margin: 0; color: var(--text);
  font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}
html[data-lang="tc"] .photo-band-copy p,
html[data-lang="sc"] .photo-band-copy p { font-family: var(--font); font-weight: 600; }
@media (max-width: 620px) {
  .photo-band::after {
    background: linear-gradient(to top, rgba(6,8,11,.92) 8%, rgba(6,8,11,.35) 70%);
  }
  .photo-band-copy { align-items: flex-end; padding-bottom: 22px; }
  .photo-band-copy p { max-width: none; }
}

/* ---------- Break-even chart ----------
   Horizontal bars, because the tariff names are long and horizontal rows
   keep them readable down to a phone. The break-even marker repeats inside
   every track; because each sits at the same percentage they line up into
   one continuous rule without needing to measure the grid. */
.chart { margin-top: 30px; }
.chart-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 10px 22px; margin-bottom: 26px;
}
.chart-title { margin: 0; font-size: 1.06rem; }
.chart-legend {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0;
  font-size: .78rem; color: var(--text-mute);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.key { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.key--over  { background: var(--danger); }
.key--under { background: var(--accent); }

.chart-rows { list-style: none; padding: 0; margin: 0; }
.chart-row {
  display: grid; grid-template-columns: minmax(0,1fr) 2.1fr auto;
  align-items: center; gap: 16px; padding: 7px 0;
}
.chart-label {
  font-size: .84rem; color: var(--text-dim); line-height: 1.35;
  overflow-wrap: anywhere;
}
.chart-track {
  position: relative; height: 30px; border-radius: var(--radius-sm);
  background: var(--surface-2); overflow: hidden;
}
/* Two segments per bar: what the mining income absorbs, then the shortfall
   the owner pays. Both grow from zero so the split is watched, not just read. */
.chart-seg {
  position: absolute; top: 0; bottom: 0; width: 0;
  transition: width .9s cubic-bezier(.22,.75,.28,1);
}
.chart-seg--under {
  left: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: linear-gradient(90deg, rgba(217,180,91,.5), var(--accent));
}
.chart-seg--over {
  left: var(--l); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(90deg, rgba(229,86,75,.55), var(--danger));
  transition-delay: .22s;
}
.is-drawn .chart-seg { width: var(--w); }
/* The marker sits above the bar so the crossing point stays visible. */
.chart-mark {
  position: absolute; top: -2px; bottom: -2px; width: 0;
  border-left: 2px dashed rgba(255,255,255,.62);
}
.chart-val {
  font-family: var(--mono); font-size: .84rem; color: var(--text);
  white-space: nowrap; text-align: right;
}

/* Row that carries only the break-even caption, aligned to the same %. */
.chart-belabel {
  display: grid; grid-template-columns: minmax(0,1fr) 2.1fr auto;
  gap: 16px; margin-bottom: 2px;
}
.chart-belabel::before { content: ''; }
.chart-belabel-txt {
  grid-column: 2; position: relative; left: var(--be);
  display: inline-block; transform: translateX(-6px);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em;
  color: var(--text-mute); white-space: nowrap;
}
.chart-caption { margin: 20px 0 0; line-height: 1.6; }

@media (max-width: 620px) {
  .chart-row, .chart-belabel { grid-template-columns: 1fr; gap: 5px; }
  .chart-row { padding: 11px 0; }
  .chart-belabel-txt { grid-column: 1; left: 0; transform: none; }
  .chart-val { text-align: left; }
  .chart-track { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .chart-seg { transition: none; }
}

.glossary { margin: 0; }
.glossary dt {
  font-weight: 700; color: var(--text); margin-top: 22px;
  font-size: 1.02rem; letter-spacing: .01em;
}
.glossary dt:first-of-type { margin-top: 0; }
.glossary dd {
  margin: 6px 0 0; padding: 0 0 18px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-dim); line-height: 1.7;
}
.glossary dd:last-of-type { border-bottom: 0; }

/* Three-step history. The year sits in its own column so the dates can be
   scanned without reading the prose. */
.timeline { border-left: 2px solid var(--border); padding-left: 0; }
.timeline-item {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px;
  padding: 0 0 30px 24px; position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}
.timeline-year {
  font-family: var(--mono); font-size: .82rem; font-weight: 700;
  color: var(--accent); letter-spacing: .06em; line-height: 1.35; padding-top: 2px;
}
@media (max-width: 640px) {
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Calculator ---------- */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.calc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.calc-panel.sticky { position: sticky; top: 88px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .82rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.field .hint { font-size: .74rem; color: var(--text-mute); margin-top: 5px; }
input[type="number"], input[type="text"], select {
  width: 100%; padding: 11px 13px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: .95rem;
}
input:focus, select:focus { outline: 2px solid rgba(0,229,140,.45); outline-offset: 1px; border-color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.fieldset-title {
  font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-mute);
  margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-weight: 700;
}
.fieldset-title:first-child { margin-top: 0; }

.result-hero { text-align: center; padding: 22px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.result-hero .big { font-family: var(--mono); font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 700; line-height: 1.1; }
.result-hero .big.pos { color: var(--accent); }
.result-hero .big.neg { color: var(--danger); }
.result-hero .cap { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin-top: 8px; }

.result-list { list-style: none; margin: 0; padding: 0; }
.result-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; color: var(--text-dim); }
.result-list li:last-child { border-bottom: 0; }
.result-list b { font-family: var(--mono); color: var(--text); font-weight: 600; }
.result-list b.pos { color: var(--accent); }
.result-list b.neg { color: var(--danger); }

.bar-chart { margin-top: 6px; }
.bar-item { margin-bottom: 13px; }
.bar-head { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 5px; color: var(--text-dim); }
.bar-head b { font-family: var(--mono); color: var(--text); }
.bar-track { height: 9px; background: var(--bg-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.bar-fill { height: 100%; border-radius: 999px; transition: width .35s ease; }
.bar-fill.pos { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.bar-fill.neg { background: linear-gradient(90deg, #b93b34, var(--danger)); }

/* ---------- Coin cards ---------- */
.coin-card { display: flex; flex-direction: column; gap: 4px; }
.coin-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.coin-sym {
  width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 800; font-size: .82rem;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text);
}
.coin-head h3 { margin: 0; }
.coin-head .algo { font-size: .76rem; color: var(--text-mute); font-family: var(--mono); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .86rem; margin: 12px 0; }
.kv dt { color: var(--text-mute); }
.kv dd { margin: 0; color: var(--text); font-family: var(--mono); text-align: right; }

.thesis { font-size: .89rem; }
.thesis strong { color: var(--text); }
.thesis .risk { color: var(--warn); }

/* ---------- Timeline / steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; }
.step-num {
  counter-increment: step; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(0,229,140,.3); color: var(--accent);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: .25rem; }
.step p { margin-bottom: 0; font-size: .93rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 52px 0 30px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.footer-grid h4 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-dim); font-size: .89rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; font-size: .8rem; color: var(--text-mute); }
.footer-bottom p { font-size: .8rem; color: var(--text-mute); }

/* ---------- Page header ---------- */
.page-head { padding: 62px 0 34px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.page-head h1 { margin-bottom: .35em; }
.page-head .lead { margin-bottom: 0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.text-mute { color: var(--text-mute); }
.small { font-size: .84rem; }
.divider { height: 1px; background: var(--border); border: 0; margin: 42px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .calc-layout, .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .calc-panel.sticky { position: static; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 16px 18px;
  }
  .nav-links.open { display: flex; }
  .section { padding: 58px 0; }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
}

/* ==========================================================================
   COIN IDENTITY
   Each coin carries its own brand colour through a --coin custom property
   set inline on the tile, so one rule set styles all six.
   ========================================================================== */

.coin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.coin-tile {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px 24px 22px;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.coin-tile::before {
  content: ""; position: absolute; inset: -60% -30% auto; height: 190px;
  background: radial-gradient(ellipse at 50% 100%, var(--coin), transparent 70%);
  opacity: .13; pointer-events: none; transition: opacity .2s ease;
}
.coin-tile:hover {
  transform: translateY(-4px); text-decoration: none;
  border-color: var(--coin);
  box-shadow: 0 22px 50px -30px var(--coin);
}
.coin-tile:hover::before { opacity: .24; }
.coin-tile > * { position: relative; }

.coin-logo {
  width: 60px; height: 60px; flex: none; margin-bottom: 16px;
  display: grid; place-items: center;
  /* Fallbacks first for browsers without color-mix() support. */
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border-2);
  background: color-mix(in srgb, var(--coin) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--coin) 32%, transparent);
  border-radius: 16px;
}
.coin-logo img { width: 34px; height: 34px; }
.coin-logo--lg { width: 92px; height: 92px; border-radius: 24px; }
.coin-logo--lg img { width: 54px; height: 54px; }
.coin-logo--sm { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }
.coin-logo--sm img { width: 26px; height: 26px; }

.coin-name { display: flex; align-items: baseline; gap: 9px; margin-bottom: 2px; }
.coin-name h3 { margin: 0; font-size: 1.28rem; }
.coin-name .tk {
  font-family: var(--mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; color: var(--coin);
  background: color-mix(in srgb, var(--coin) 14%, transparent);
  padding: 2px 8px; border-radius: 6px;
}
.coin-algo { font-family: var(--mono); font-size: .76rem; color: var(--text-mute); margin-bottom: 14px; }
.coin-tile p { font-size: .93rem; margin-bottom: 16px; }

.coin-metrics {
  display: flex; gap: 22px; margin-top: auto;
  padding-top: 15px; border-top: 1px solid var(--border);
}
.coin-metrics div { line-height: 1.3; }
.coin-metrics .v { font-family: var(--mono); font-weight: 700; font-size: 1.02rem; color: var(--text); }
.coin-metrics .k { font-size: .72rem; color: var(--text-mute); }

/* Suitability meter */
.fit-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fit-row .lbl { font-size: .78rem; color: var(--text-mute); }
.fit-dots { display: inline-flex; gap: 5px; }
.fit-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-2); display: block;
}

/* Ribbon for the recommended coin */
.coin-tile .pick {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-size: .66rem; font-weight: 800; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--coin); color: #06120d;
}

/* Featured coin panel */
.coin-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--coin) 38%, var(--border));
  border-radius: 22px; padding: 32px; position: relative; overflow: hidden;
}
.coin-hero::before {
  content: ""; position: absolute; inset: -50% 40% auto -20%; height: 320px;
  background: radial-gradient(ellipse at 30% 60%, var(--coin), transparent 68%);
  opacity: .16; pointer-events: none;
}
.coin-hero > * { position: relative; }
.coin-hero h2 { margin-bottom: .3em; }
.coin-hero .why { font-size: 1.02rem; }

/* ==========================================================================
   ACCORDION — keeps the deep detail available without making pages long
   ========================================================================== */
.acc {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 12px; overflow: hidden;
}
.acc > summary {
  cursor: pointer; list-style: none; padding: 17px 22px;
  font-weight: 600; font-size: 1rem; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: background .15s ease;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { background: var(--surface-2); }
.acc > summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.3rem; line-height: 1;
  color: var(--accent); flex: none; transition: transform .2s ease;
}
.acc[open] > summary { border-bottom: 1px solid var(--border); }
.acc[open] > summary::after { content: "−"; }
.acc-body { padding: 20px 22px 22px; }
.acc-body > :last-child { margin-bottom: 0; }
.acc-body .table-scroll { border: 0; border-radius: 0; }

/* ==========================================================================
   POLISH
   ========================================================================== */
.card, .stat, .calc-panel { box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; }
.card--hover:hover { border-color: var(--border-2); box-shadow: 0 20px 44px -32px rgba(0,0,0,.9); }

.btn-primary { box-shadow: 0 10px 26px -14px rgba(0,229,140,.8); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; border-radius: 12px; }

/* Simple three-step strip used on the home page */
.how-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-item { text-align: center; padding: 26px 20px; }
.how-item .n {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(0,229,140,.3); font-size: 1.05rem;
}
.how-item h3 { margin-bottom: .3rem; }
.how-item p { font-size: .92rem; margin-bottom: 0; }

/* Quick-answer band */
.answer-band {
  background: linear-gradient(135deg, rgba(0,229,140,.09), rgba(78,168,255,.06));
  border: 1px solid var(--border); border-radius: 20px; padding: 34px;
}
.answer-band h2 { margin-bottom: .4em; }

/* ==========================================================================
   GPU BOARD BRANDS
   A monochrome wordmark strip. Deliberately understated — this states which
   cards we build with, it does not claim endorsement.
   ========================================================================== */
.brand-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.brand-chip {
  display: grid; place-items: center; padding: 20px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; min-height: 76px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.brand-chip:hover {
  border-color: var(--border-2); background: var(--surface-2);
  transform: translateY(-2px);
}
.brand-chip img {
  width: 100%; max-width: 138px; height: auto;
  opacity: .62; transition: opacity .18s ease;
}
.brand-chip:hover img { opacity: 1; }

.brand-note {
  font-size: .82rem; color: var(--text-mute); margin-top: 20px;
  text-align: center; max-width: 74ch; margin-inline: auto;
}

@media (max-width: 980px) {
  .coin-grid { grid-template-columns: repeat(2, 1fr); }
  .how-strip { grid-template-columns: 1fr; }
  .coin-hero { grid-template-columns: 1fr; text-align: left; }
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .coin-grid { grid-template-columns: 1fr; }
  .answer-band { padding: 24px; }
}

/* ==========================================================================
   LUXURY LAYER
   Loaded last so it refines the base rules above. Principle: the premium
   signal comes from material, type and restraint — never from implying
   returns. Green and red stay reserved for genuine profit and loss.
   ========================================================================== */

/* --- Paper: a barely-there grain stops large dark fields going flat ------ */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

/* --- Display typography -------------------------------------------------- */
h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.14; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
html[data-lang="tc"] h1, html[data-lang="sc"] h1,
html[data-lang="tc"] h2, html[data-lang="sc"] h2 { font-weight: 600; letter-spacing: .01em; }

.price { font-family: var(--display); font-weight: 500; font-size: 2rem; letter-spacing: .01em; }
.price small { font-family: var(--font); }

/* Small caps labels — the detail that reads as considered rather than cheap */
.eyebrow, .fieldset-title, .stat-label, .footer-grid h4, .result-hero .cap {
  font-family: var(--font);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow {
  background: transparent;
  border: 1px solid rgba(217,180,91,.34);
  color: var(--accent-hi);
}

/* --- Hairlines ----------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(217,180,91,.08); }
.section--alt { position: relative; }
.section--alt::before,
.section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--gold-line); opacity: .5;
}
.section--alt::before { top: -1px; }
.section--alt::after  { bottom: -1px; }
.divider { background: var(--gold-line); }

/* --- Surfaces ------------------------------------------------------------ */
.card, .calc-panel, .stat, .acc, .coin-tile, .brand-chip, .table-scroll {
  background:
    linear-gradient(180deg, rgba(255,255,255,.022), transparent 42%),
    var(--surface);
}
.card--hover:hover {
  border-color: rgba(217,180,91,.4);
  box-shadow: 0 26px 60px -34px rgba(0,0,0,.95), 0 0 0 1px rgba(217,180,91,.1);
}

/* --- Buttons ------------------------------------------------------------- */
.btn-primary {
  background: linear-gradient(160deg, var(--accent-hi), var(--accent) 46%, var(--accent-2));
  color: #17120A;
  border: 1px solid rgba(242,219,154,.5);
  box-shadow: 0 12px 30px -14px rgba(217,180,91,.6),
              inset 0 1px 0 rgba(255,255,255,.42);
  letter-spacing: .04em;
}
.btn-primary:hover {
  background: linear-gradient(160deg, #FBEBBE, var(--accent-hi) 46%, var(--accent));
  box-shadow: 0 16px 38px -14px rgba(217,180,91,.75),
              inset 0 1px 0 rgba(255,255,255,.55);
}
.btn-ghost { border-color: var(--border-2); letter-spacing: .04em; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); }

/* --- Header / brand ------------------------------------------------------ */
.brand span { letter-spacing: .13em; }
.brand-mark { width: 32px; height: 32px; }

/* --- Hero glow: warm, not neon ------------------------------------------ */
.hero::before {
  background: radial-gradient(ellipse at 28% 26%, rgba(217,180,91,.15), transparent 62%),
              radial-gradient(ellipse at 80% 16%, rgba(184,145,47,.10), transparent 60%);
}

/* --- Semantics: gains green, losses red. Never decorative. -------------- */
.result-hero .big.pos, .result-list b.pos, .stat-val.pos { color: var(--gain); }
.result-hero .big.neg, .result-list b.neg, .stat-val.neg { color: var(--loss); }
.result-hero .big { font-family: var(--mono); font-weight: 600; letter-spacing: -.01em; }
.bar-fill.pos { background: linear-gradient(90deg, #2E9E62, var(--gain)); }
.bar-fill.neg { background: linear-gradient(90deg, #A23B33, var(--loss)); }

/* --- Tables: ledger-like -------------------------------------------------- */
th { background: var(--surface-2); color: var(--accent-hi); letter-spacing: .14em; }
tbody tr:hover td { background: rgba(217,180,91,.035); }

/* --- Accordion ------------------------------------------------------------ */
.acc > summary::after { color: var(--accent); }
.acc > summary:hover { background: rgba(217,180,91,.05); }

/* --- Product cards -------------------------------------------------------- */
.product-card.featured {
  border-color: rgba(217,180,91,.45);
  box-shadow: 0 0 0 1px rgba(217,180,91,.12), 0 24px 60px -32px rgba(217,180,91,.45);
}
.ribbon { background: linear-gradient(135deg, var(--accent-hi), var(--accent-2)); color: #17120A; }
.product-visual {
  background:
    repeating-linear-gradient(90deg, #1A1610 0 22px, #221C14 22px 26px),
    linear-gradient(160deg, #221C14, #100D0A);
}

/* --- Brand strip ---------------------------------------------------------- */
.brand-chip:hover { border-color: rgba(217,180,91,.34); }

/* --- Answer band ---------------------------------------------------------- */
.answer-band {
  background: linear-gradient(135deg, rgba(217,180,91,.10), rgba(184,145,47,.04));
  border-color: rgba(217,180,91,.24);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); box-shadow: 0 -1px 0 rgba(217,180,91,.08); }

/* Header tint was hardcoded cool-black in the base rules — warm it to match. */
.site-header { background: rgba(10, 9, 8, 0.88); }
.nav-links a.active { color: var(--accent-hi); }
.nav-toggle { background: var(--surface); border-color: var(--border-2); }

/* ==========================================================================
   LANGUAGE SWITCHER  繁 | 簡 | EN
   ========================================================================== */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: 3px; margin-left: 18px; flex: none;
  background: rgba(0,0,0,.28);
}
.lang-opt {
  display: inline-grid; place-items: center; min-width: 34px; height: 26px;
  padding: 0 9px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; color: var(--text-dim); text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
a.lang-opt:hover { color: var(--accent-hi); background: rgba(217,180,91,.1); text-decoration: none; }
.lang-opt.is-on {
  background: linear-gradient(160deg, var(--accent-hi), var(--accent-2));
  color: #17120A; box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.lang-opt.is-off { color: var(--text-mute); opacity: .38; cursor: not-allowed; }

/* On mobile the switcher sits beside the burger, outside the collapsed menu,
   so language is always reachable without opening the nav. */
@media (max-width: 980px) {
  .nav { gap: 10px; }
  /* Reorder so it reads: brand … 繁簡EN … burger */
  .lang-switch { order: 2; margin-left: auto; }
  .nav-toggle  { order: 3; margin-left: 0; }
}
@media (max-width: 380px) {
  .lang-opt { min-width: 28px; padding: 0 6px; font-size: .72rem; }
}

/* ==========================================================================
   ACCESS GATE (calculator)
   ========================================================================== */
.gate { padding: 90px 0 110px; }
.gate-card {
  max-width: 520px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 46px 38px;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.95);
}
.gate-lock { font-size: 2rem; margin-bottom: 14px; }
.gate-card h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: .5em; }
.gate-card .lead { margin: 0 auto 26px; }
.gate-label {
  display: block; text-align: left; font-size: .82rem;
  color: var(--text-dim); margin-bottom: 6px;
}
.gate-card input[type="password"] {
  text-align: center; letter-spacing: .5em; font-size: 1.2rem; padding: 14px;
}
.gate-card .btn { width: 100%; margin-top: 16px; }
.gate-error { color: var(--loss); font-size: .88rem; margin: 12px 0 0; text-align: left; }

/* Brand chips carry an emblem beside the company name. Each chip takes the
   maker's colour through --bc, applied only to the emblem tile. */
.brand-chip {
  /* base rule sets display:grid — switch to flex so the row layout applies */
  display: flex; flex-direction: row; align-items: center;
  justify-content: flex-start;
  gap: 13px; padding: 18px 18px; text-align: left;
}
/* Needs .brand-chip prefix to outrank the earlier `.brand-chip img` rule. */
.brand-chip .brand-emblem {
  width: 34px; height: 34px; max-width: 34px; flex: none; opacity: .95;
  padding: 5px; border-radius: 9px;
  background: color-mix(in srgb, var(--bc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--bc) 30%, transparent);
  transition: transform .18s ease;
}
.brand-chip:hover .brand-emblem { transform: scale(1.06); opacity: 1; }
.brand-name {
  font-size: .95rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text-dim); transition: color .18s ease;
  line-height: 1.2;
}
.brand-chip:hover .brand-name { color: var(--text); }
@media (max-width: 560px) {
  .brand-chip { padding: 14px 12px; gap: 10px; }
  .brand-name { font-size: .84rem; letter-spacing: .03em; }
  .brand-chip .brand-emblem { width: 30px; height: 30px; max-width: 30px; }
}
