/* ============================================================
   QuantumRoundup — quantum-themed design system
   Dark deep-space UI · glassmorphism · glow gradients
   ============================================================ */

:root {
  --bg: #04060e;
  --bg-2: #070b18;
  --panel: rgba(13, 20, 40, 0.55);
  --panel-2: rgba(18, 27, 52, 0.72);
  --line: rgba(124, 145, 255, 0.14);
  --line-strong: rgba(124, 145, 255, 0.28);
  --text: #e9edff;
  --dim: #8b93b8;
  --faint: #5b6284;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --amber: #fbbf24;
  --green: #34d399;
  --blue: #60a5fa;
  --red: #f87171;
  --grad: linear-gradient(100deg, #22d3ee, #8b5cf6 55%, #ec4899);
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  /* Latin faces resolve first; CJK glyphs fall through to platform Chinese fonts.
     This keeps the brand wordmark unchanged while making /zh/ pages read natively. */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(1000px 500px at -10% 10%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: rgba(34, 211, 238, 0.5); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
img, svg { vertical-align: middle; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--violet); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
main { min-height: 60vh; }

/* ------------------------------- nav ------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 26px;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 1.06rem; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand b {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}
.logo { filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6)); }
.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  color: var(--dim); padding: 7px 13px; border-radius: 10px; font-size: .92rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(124, 145, 255, 0.08); text-decoration: none; }
.nav-links a.active { color: var(--text); background: rgba(139, 92, 246, 0.16); }
/* Language switcher: a real, always-visible anchor. Distinct outline keeps it
   discoverable on mobile where the nav scrolls horizontally. */
.nav-links a.lang-switch {
  margin-left: 6px; padding: 6px 12px; white-space: nowrap;
  border: 1px solid rgba(34, 211, 238, 0.32); border-radius: 999px;
  background: rgba(34, 211, 238, 0.06); color: var(--cyan);
  font-size: .86rem; font-weight: 600;
}
.nav-links a.lang-switch:hover { color: var(--text); background: rgba(34, 211, 238, 0.14); text-decoration: none; }
.nav-cta { display: flex; }
@media (max-width: 760px) { .nav-cta { display: none; } .nav { padding: 10px 14px; gap: 10px; } .nav-links { gap: 0; overflow-x: auto; scrollbar-width: none; } .nav-links::-webkit-scrollbar { display: none; } }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 12px; font-weight: 700; font-size: .95rem;
  background: var(--grad); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(124, 145, 255, 0.08); box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: .85rem; border-radius: 10px; }

/* ------------------------------- hero ------------------------------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 60px; }
#quantumCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .85; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 0 22px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: .82rem; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.07);
  margin-bottom: 22px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
h1.hero-title { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.08rem; color: var(--dim); max-width: 640px; margin: 0 auto 30px; }
.updated-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--dim);
  border: 1px dashed var(--line-strong); padding: 7px 14px; border-radius: 999px; margin-top: 20px;
}
.updated-pill b { color: var(--green); font-family: var(--mono); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 920px; margin: 44px auto 0; padding: 0 22px;
}
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; position: relative; overflow: hidden;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stat::before {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
}
.stat-num {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 800; font-family: var(--mono);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--dim); font-size: .82rem; margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------ sections ------------------------------ */
section.block { padding: 64px 0 20px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.sec-head .more { color: var(--dim); font-size: .9rem; }

.page-hero { padding: 64px 0 28px; max-width: 1000px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; }
.lead { color: var(--dim); font-size: 1.02rem; max-width: 780px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.stat-chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: .86rem; color: var(--dim);
  background: var(--panel);
}
.stat-chip b { color: var(--text); font-family: var(--mono); }
.cross-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }

/* ------------------------------- chips ------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap;
}
.chip.region.r-china  { color: var(--red);    border-color: rgba(248,113,113,.35);  background: rgba(248,113,113,.09); }
.chip.region.r-us    { color: var(--blue);   border-color: rgba(96,165,250,.35);   background: rgba(96,165,250,.09); }
.chip.region.r-europe{ color: var(--violet); border-color: rgba(167,139,250,.35);  background: rgba(167,139,250,.09); }
.chip.region.r-na    { color: var(--amber);  border-color: rgba(251,191,36,.35);   background: rgba(251,191,36,.09); }
.chip.region.r-apac  { color: var(--green);  border-color: rgba(52,211,153,.35);   background: rgba(52,211,153,.09); }
.chip.region.r-me    { color: var(--pink);   border-color: rgba(236,72,153,.35);   background: rgba(236,72,153,.09); }
.chip.tech.t-qc      { color: var(--cyan);   border-color: rgba(34,211,238,.35);   background: rgba(34,211,238,.09); }
.chip.tech.t-qcomm   { color: var(--violet); border-color: rgba(139,92,246,.35);   background: rgba(139,92,246,.09); }
.chip.tech.t-qs      { color: var(--green);  border-color: rgba(52,211,153,.35);   background: rgba(52,211,153,.09); }
.chip.auto           { color: var(--amber);  border-color: rgba(251,191,36,.4);    background: rgba(251,191,36,.08); cursor: help; }

.tier { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.tier-giga   { background: linear-gradient(100deg, #fbbf24, #ec4899); color: #180a02; }
.tier-mega   { background: rgba(139,92,246,.2); color: #c4b5fd; border: 1px solid rgba(139,92,246,.4); }
.tier-major  { background: rgba(34,211,238,.15); color: #67e8f9; border: 1px solid rgba(34,211,238,.35); }
.tier-growth { background: rgba(96,165,250,.15); color: #93c5fd; border: 1px solid rgba(96,165,250,.35); }
.tier-early  { background: rgba(139,147,184,.12); color: var(--dim); border: 1px solid rgba(139,147,184,.25); }

.amt { font-family: var(--mono); font-weight: 700; color: var(--text); font-size: 1.02rem; }
.amt-unk { color: var(--faint); font-weight: 500; }
.c-sub { display: block; font-size: .74rem; color: var(--faint); margin-top: 2px; }
.c-hq { display: block; font-size: .74rem; font-weight: 400; color: var(--faint); margin-top: 2px; }

/* --------------------------- event cards grid --------------------------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1020px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-cards { grid-template-columns: 1fr; } }

.ev-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; position: relative; overflow: hidden;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.ev-card:hover {
  transform: translateY(-4px); border-color: var(--line-strong);
  box-shadow: 0 14px 40px rgba(80, 70, 229, 0.18);
}
.ev-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .25s;
}
.ev-card:hover::after { opacity: 1; }
.ev-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ev-top time { margin-left: auto; font-size: .74rem; color: var(--faint); font-family: var(--mono); }
.ev-company { font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; }
.ev-round { display: block; font-size: .78rem; color: var(--dim); font-weight: 500; }
.ev-amount {
  font-family: var(--mono); font-size: 1.7rem; font-weight: 800; margin: 8px 0 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ev-amount-unk { font-size: 1.1rem; color: var(--faint); -webkit-text-fill-color: currentColor; }
.ev-summary { font-size: .86rem; color: var(--dim); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.ev-src { font-size: .78rem; color: var(--cyan); }
.ev-inv { font-size: .74rem; color: var(--faint); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------- leaderboard ---------------------------- */
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lb-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
  transition: border-color .2s, transform .2s;
}
.lb-row:hover { border-color: var(--line-strong); transform: translateX(4px); }
.lb-main { min-width: 0; flex: 1; }
.lb-name { font-weight: 700; display: block; }
.lb-right { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; font-weight: 800; font-family: var(--mono); font-size: .9rem;
  background: rgba(124, 145, 255, 0.1); color: var(--dim); border: 1px solid var(--line);
  flex: none;
}
.rb-1 { background: linear-gradient(135deg, rgba(251,191,36,.25), rgba(236,72,153,.25)); color: var(--amber); border-color: rgba(251,191,36,.5); box-shadow: 0 0 14px rgba(251,191,36,.25); }
.rb-2 { background: rgba(167,139,250,.18); color: #c4b5fd; border-color: rgba(139,92,246,.45); }
.rb-3 { background: rgba(34,211,238,.14); color: #67e8f9; border-color: rgba(34,211,238,.4); }

/* --------------------------- region / tech cards --------------------------- */
.snap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .snap-grid { grid-template-columns: 1fr; } }
.region-card, .tech-card {
  display: block; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.region-card:hover, .tech-card:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.rc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.rc-name { font-weight: 700; font-size: 1.02rem; }
.rc-count, .rc-sub { font-size: .78rem; color: var(--faint); }
.rc-num, .tc-num { font-family: var(--mono); font-size: 1.9rem; font-weight: 800; margin: 6px 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-bar, .tc-bar { height: 5px; border-radius: 99px; background: rgba(124, 145, 255, 0.1); overflow: hidden; margin-top: 12px; }
.rc-bar i, .tc-bar i {
  display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
  transition: width 1.2s cubic-bezier(.22, 1, .36, 1) .2s;
}
.in .rc-bar i, .in .tc-bar i { width: var(--w, 50%); }
.tech-card { display: flex; align-items: center; gap: 16px; }
.tc-icon { font-size: 1.8rem; filter: drop-shadow(0 0 8px rgba(34,211,238,.4)); }
.tc-body { flex: 1; }
.tc-body h3 { font-size: 1.05rem; margin: 0 0 2px; }
.tc-body p { font-size: .8rem; color: var(--faint); margin: 0; }
.tc-num { font-size: 1.35rem; margin: 0; }
.tech-card .tc-bar { flex-basis: 100%; margin-top: 4px; }

/* ------------------------------ filters ------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters label { font-size: .8rem; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.filters select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 9px 12px; font-family: var(--font); font-size: .9rem; cursor: pointer;
  outline: none; transition: border-color .2s;
}
.filters select:hover, .filters select:focus { border-color: var(--cyan); }
.filter-count { font-size: .84rem; color: var(--dim); margin-left: auto; }
.filter-count b { color: var(--cyan); font-family: var(--mono); }

/* ------------------------------ tables ------------------------------ */
.table-wrap {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: auto;
  background: var(--panel); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  max-height: 860px; position: relative;
}
.rank-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.rank-table thead th {
  position: sticky; top: 0; z-index: 5;
  background: rgba(7, 11, 24, 0.96);
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--dim); padding: 13px 14px; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap; cursor: default; user-select: none;
}
.rank-table thead th.sortable { cursor: pointer; }
.rank-table thead th.sortable:hover { color: var(--text); }
th.sorted-asc::after { content: " ▲"; color: var(--cyan); }
th.sorted-desc::after { content: " ▼"; color: var(--cyan); }
.rank-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rank-table tbody tr { transition: background .15s; }
.rank-table tbody tr:hover { background: rgba(124, 145, 255, 0.05); }
.rank-table tbody tr:last-child td { border-bottom: 0; }
.cell-name { font-weight: 600; }
.cell-name a { color: var(--text); }
.cell-name a:hover { color: var(--cyan); }
.cell-amount { white-space: nowrap; }
.cell-amount .tier { margin-left: 8px; }
.cell-last { color: var(--dim); font-size: .88rem; white-space: nowrap; }
.co-status { margin-left: 8px; font-size: .68rem; font-family: var(--mono); color: var(--green); border: 1px solid rgba(52,211,153,.35); padding: 1px 7px; border-radius: 6px; background: rgba(52,211,153,.07); white-space: nowrap; }
.table-note { color: var(--faint); font-size: .8rem; margin-top: 12px; }

tr.row-hidden { display: none; }

/* ----------------------------- company grid ----------------------------- */
.co-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1020px) { .co-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px)  { .co-grid { grid-template-columns: 1fr; } }
.co-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.co-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.co-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.co-head h3 { font-size: 1.05rem; margin: 0; }
.co-head a { color: var(--text); }
.co-desc { font-size: .86rem; color: var(--dim); margin: 0; flex: 1; }
.co-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.co-fund { display: flex; align-items: baseline; gap: 8px; }
.co-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .78rem; }
.co-site { color: var(--cyan); }

/* ------------------------------ timeline ------------------------------ */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet) 50%, var(--pink));
  opacity: .5;
}
.tl-item { position: relative; padding: 0 0 22px; }
.tl-dot {
  position: absolute; left: -26px; top: 16px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}
.tl-item:nth-child(3n+2) .tl-dot { border-color: var(--violet); box-shadow: 0 0 10px rgba(139,92,246,.5); }
.tl-item:nth-child(3n+3) .tl-dot { border-color: var(--pink); box-shadow: 0 0 10px rgba(236,72,153,.5); }
.tl-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  transition: border-color .2s;
}
.tl-card:hover { border-color: var(--line-strong); }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tl-company { font-weight: 700; font-size: 1rem; }
.tl-round { font-size: .78rem; color: var(--dim); }
.tl-head .amt { margin-left: auto; }
.tl-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: .78rem; color: var(--faint); }
.tl-meta a, .tl-meta span { color: var(--cyan); }

/* ------------------------------ reveal ------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .pulse-dot { animation: none; }
}

/* ------------------------------ misc pages ------------------------------ */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.08rem; }
.prose ul, .prose ol { color: var(--dim); padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--text); }
.notice {
  border: 1px solid rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07);
  border-radius: 12px; padding: 14px 18px; font-size: .9rem; color: #fde68a; margin: 18px 0;
}
.info-box { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 12px; padding: 14px 18px; font-size: .9rem; color: var(--dim); margin: 18px 0; }
.prose h2 { border-bottom: 1px solid var(--line); padding-bottom: .35em; }
.prose .lead { color: var(--dim); font-size: 1.02rem; }
/* Accountability byline: visible on every indexable page, not hidden in JSON-LD. */
.editorial-meta {
  max-width: 1180px; margin: 46px auto 0; padding: 18px 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(13, 20, 40, .35); color: var(--dim); font-size: .84rem;
}
.editorial-meta p { margin: 0 0 .4em; }
.editorial-meta p:last-child { margin-bottom: 0; }
.editorial-meta strong { color: var(--text); }
.editorial-meta b { color: var(--text); font-variant-numeric: tabular-nums; }
.editorial-meta a { color: var(--cyan); }
/* Long-form article helpers */
.toc { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 12px; padding: 14px 18px; margin: 18px 0 28px; font-size: .9rem; }
.toc strong { display: block; color: var(--text); margin-bottom: 8px; }
.toc a { display: inline-block; margin: 0 14px 6px 0; color: var(--dim); }
.kv-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .9rem; }
.kv-table th, .kv-table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.kv-table th { color: var(--text); width: 34%; font-weight: 600; }
.kv-table td { color: var(--dim); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.pill-row a { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 999px; padding: 6px 14px; font-size: .86rem; color: var(--dim); }
.pill-row a:hover { color: var(--cyan); text-decoration: none; }
.source-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.source-list a { color: var(--dim); font-size: .9rem; }
.source-list a:hover { color: var(--cyan); }
@media (max-width: 700px) { .source-list { grid-template-columns: 1fr; } }

/* Data-only fallback for an event with no hand-written note yet. */
.ev-facts { color: var(--faint); font-size: .88rem; font-family: var(--mono); line-height: 1.6; }
.ev-verify { color: var(--faint); font-size: .8rem; margin-left: 10px; border-bottom: 1px dotted var(--line-strong); }
.ev-verify:hover { color: var(--cyan); text-decoration: none; }

/* Company funding profiles */
.profile-event { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 18px 20px; margin-bottom: 14px; }
.profile-event .pe-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; font-size: .86rem; color: var(--faint); }
.profile-event .pe-head time { font-family: var(--mono); }
.profile-event .pe-head .amt { color: var(--text); font-weight: 700; font-size: 1.05rem; }
.profile-event .pe-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .82rem; }
.profile-event .ev-summary { color: var(--dim); font-size: .92rem; margin: 0; }
.profile-event .ev-facts { margin: 0; }
#h-desk + .c-sub { margin-bottom: 18px; }

.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; color: var(--cyan); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 18px 14px; color: var(--dim); font-size: .92rem; }

/* ------------------------------ footer ------------------------------ */
.footer { border-top: 1px solid var(--line); margin-top: 70px; background: rgba(4, 6, 14, 0.6); }
.footer-grid {
  max-width: 1180px; margin: 0 auto; padding: 44px 22px 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; }
.footer a { display: block; color: var(--dim); font-size: .88rem; padding: 3px 0; }
.footer a:hover { color: var(--cyan); }
.footer-tag { color: var(--dim); font-size: .88rem; max-width: 320px; margin-top: 12px; }
.footer-note { color: var(--faint); font-size: .78rem; max-width: 340px; }
.footer-bottom {
  max-width: 1180px; margin: 0 auto; padding: 16px 22px 30px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--faint); font-size: .78rem; border-top: 1px solid var(--line);
}
.footer-bottom a { display: inline; }
.footer-langs { white-space: nowrap; }
.footer-langs a[hreflang="zh-CN"] { color: var(--dim); }

/* ------------------------------ 404 ------------------------------ */
.err-wrap { text-align: center; padding: 110px 22px 60px; }
.err-code { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; font-family: var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 20px rgba(139,92,246,.35)); }

/* -------------------- Simplified Chinese typography -------------------- */
/* CJK glyphs are full-width and denser than Latin: tighter letter-spacing and
   the default 1.6 line-height make Chinese prose look cramped. These rules only
   apply to /zh/ pages (html lang="zh-CN"); English rendering is untouched. */
html[lang="zh-CN"] body { line-height: 1.78; }
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4 { letter-spacing: 0; line-height: 1.4; }
html[lang="zh-CN"] p,
html[lang="zh-CN"] li,
html[lang="zh-CN"] .faq-a,
html[lang="zh-CN"] .table-note { letter-spacing: .01em; overflow-wrap: break-word; }
html[lang="zh-CN"] .prose { line-height: 1.85; }
html[lang="zh-CN"] .prose p,
html[lang="zh-CN"] .prose li { margin-bottom: .9em; }
html[lang="zh-CN"] .hero-title { letter-spacing: 0; }
html[lang="zh-CN"] .footer h4 { letter-spacing: 0; text-transform: none; }
html[lang="zh-CN"] .chip { letter-spacing: 0; }
/* Chinese company names + English names in parentheses are longer than EN ones. */
html[lang="zh-CN"] .cell-name a,
html[lang="zh-CN"] .co-head h3 a { overflow-wrap: anywhere; }
html[lang="zh-CN"] .rank-table { min-width: 880px; }
@media (max-width: 540px) {
  html[lang="zh-CN"] .rank-table { min-width: 760px; }
  html[lang="zh-CN"] .nav-links a { padding: 7px 9px; font-size: .88rem; }
}
