/* ==========================================================================
   DBZ Coin Việt Nam — Design System
   ========================================================================== */
:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --bg-3: #0f172a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7fb;
  --text-soft: #c4cede;
  --muted: #8b9ab2;
  --accent: #25e0b0;
  --emerald: var(--accent);
  --emerald-dark: #0f9e7d;
  --accent-2: #5aa9ff;
  --blue: var(--accent-2);
  --warning: #e9c779;
  --gold: var(--warning);
  --red: #ff6b7a;
  --accent-3: #b388ff;
  --accent-ink: #04120e;
  --gradient: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: var(--font);
  --header-bg: rgba(7, 11, 20, .78);
  --nav-bg: rgba(7, 11, 20, .98);
  --float-bg: rgba(15, 23, 42, .82);
  --white-018: rgba(255, 255, 255, .018);
  --white-02: rgba(255, 255, 255, .02);
  --white-035: rgba(255, 255, 255, .035);
  --white-08: rgba(255, 255, 255, .08);
  --white-09: rgba(255, 255, 255, .09);
  --accent-wash: rgba(37, 224, 176, .06);
  --accent-tint: rgba(37, 224, 176, .12);
  --accent-line: rgba(37, 224, 176, .28);
  --accent-glow: rgba(37, 224, 176, .4);
  --accent-2-tint: rgba(90, 169, 255, .12);
  --accent-2-glow: rgba(90, 169, 255, .2);
  --warning-tint: rgba(233, 199, 121, .06);
  --warning-line: rgba(233, 199, 121, .32);
  --scroll-thumb: #22304a;
  --scroll-thumb-hover: #33445f;
  --chart-1: #25e0b0;
  --chart-2: #5aa9ff;
  --chart-3: #b388ff;
  --chart-4: #e9c779;
  --chart-5: #4d5f7c;
  --hero-glow-1: rgba(37, 224, 176, .13);
  --hero-glow-2: rgba(90, 169, 255, .12);
  --cta-bg: linear-gradient(120deg, var(--accent-tint), var(--accent-2-tint));
  --cta-line: var(--accent-line);
  --cta-glow: rgba(37, 224, 176, .09);
  --selection-bg: rgba(37, 224, 176, .3);
  --selection-text: #fff;
  --grid-opacity: .3;
  --grid-line: var(--white-035);
  /* Backdrop pattern (overridden per theme: grid | dots | hatch | rings | blobs | none) */
  --decor-image: linear-gradient(var(--grid-line, var(--white-035)) 1px, transparent 1px),
                 linear-gradient(90deg, var(--grid-line, var(--white-035)) 1px, transparent 1px);
  --decor-size: 64px 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

::selection { background: var(--selection-bg); color: var(--selection-text); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

/* ---------- Layout ---------- */
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, 860px); margin-inline: auto; }
section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--emerald); }
.section-title {
  font-size: clamp(30px, 4.2vw, 48px); line-height: 1.16; letter-spacing: -.035em;
  font-weight: 800; margin-bottom: 16px;
}
.section-sub { color: var(--muted); font-size: 17px; max-width: 660px; }
.text-gradient {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }
.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: var(--accent-ink); box-shadow: 0 12px 34px var(--accent-line); }
.btn-primary:hover { box-shadow: 0 16px 42px var(--accent-glow); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--emerald); background: var(--accent-tint); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn svg { width: 17px; height: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: var(--header-bg); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--gradient); color: var(--accent-ink); font-size: 16px; font-weight: 900;
  box-shadow: 0 6px 20px var(--accent-line);
}
.brand span small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .12em; line-height: 1; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--text-soft); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--emerald); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 20px; line-height: 1;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 480px at 78% 28%, var(--hero-glow-1), transparent 70%),
    radial-gradient(520px 420px at 18% 70%, var(--hero-glow-2), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: var(--decor-image);
  background-size: var(--decor-size, 64px 64px);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 78%);
  opacity: var(--grid-opacity, .3);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 66px; align-items: center; position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px;
  background: var(--accent-tint); border: 1px solid var(--accent-line);
  color: var(--emerald); font-size: 12px; font-weight: 700; letter-spacing: .03em; margin-bottom: 24px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px var(--accent-tint); }
.hero h1 {
  font-size: clamp(42px, 6vw, 72px); line-height: 1.06; letter-spacing: -.05em;
  font-weight: 850; margin-bottom: 22px;
}
.hero-lead { font-size: 18px; color: var(--text-soft); max-width: 580px; margin-bottom: 30px; }
/* hero markup without .hero-lead (generated pages use a plain <p>) */
.hero-inner > div > p { max-width: 58ch; margin-bottom: 30px; color: var(--text-soft); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 12.5px; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 420px at 76% 24%, var(--hero-glow-1), transparent 70%);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12.5px; }
.hero-note svg { width: 16px; height: 16px; color: var(--emerald); flex: none; }

.hero-visual { position: relative; }
.glow-ring {
  position: absolute; width: 460px; height: 460px; border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%, -50%); border: 1px solid var(--accent-line);
  box-shadow: 0 0 90px var(--accent-wash) inset;
}
.glow-ring::before, .glow-ring::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px dashed var(--white-08);
}
.glow-ring::before { inset: 42px; }
.glow-ring::after { inset: 92px; border-style: solid; border-color: var(--accent-2-tint); }
.diamond-core {
  position: relative; z-index: 2; width: 190px; height: 190px; margin: 60px auto;
  display: grid; place-items: center;
  filter: drop-shadow(0 24px 48px var(--accent-glow));
  animation: float 7s ease-in-out infinite;
}
.diamond-core svg { width: 100%; height: 100%; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.float-card {
  position: absolute; z-index: 3; padding: 14px 18px; border-radius: 14px;
  background: var(--float-bg); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  animation: float 8s ease-in-out infinite;
}
.float-card .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.float-card .value { font-size: 17px; font-weight: 800; margin-top: 3px; }
.float-card.one { top: 8%; left: -2%; animation-delay: -1s; }
.float-card.two { top: 40%; right: -6%; animation-delay: -3s; }
.float-card.three { bottom: 4%; left: 4%; animation-delay: -5s; }
.float-card .up { color: var(--emerald); }

/* ---------- Stats strip ---------- */
.stats-strip { border-block: 1px solid var(--border); background: var(--white-018); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 30px 0; }
.stat { padding: 0 26px; border-right: 1px solid var(--border); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat .num { font-size: 27px; font-weight: 800; letter-spacing: -.03em; }
.stat .lbl { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- Cards / features ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: .28s ease; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--accent-glow); transform: translateY(-4px); background: var(--accent-wash); }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-tint); border: 1px solid var(--accent-line); margin-bottom: 20px;
}
.card-icon svg { width: 23px; height: 23px; color: var(--emerald); }
.card h3 { font-size: 19px; font-weight: 750; margin-bottom: 10px; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .num-tag { position: absolute; top: 22px; right: 26px; font-size: 12px; color: var(--border-strong); font-weight: 800; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-copy .lead { font-size: 19px; color: var(--text-soft); margin-bottom: 18px; }
.split-copy p { color: var(--muted); margin-bottom: 16px; }
.check-list { margin: 24px 0 30px; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); font-size: 15px; }
.check-list svg { width: 20px; height: 20px; color: var(--emerald); flex: none; margin-top: 3px; }
.visual-panel {
  position: relative; border-radius: 26px; padding: 34px;
  background: radial-gradient(circle at 30% 20%, var(--accent-tint), transparent 55%), var(--bg-2);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.visual-panel .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.visual-panel .panel-head strong { font-size: 15px; }
.panel-pill { font-size: 11px; padding: 5px 11px; border-radius: 999px; background: var(--accent-tint); color: var(--emerald); font-weight: 700; }
.mini-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row { gap: 18px; }
.mini-row span { color: var(--muted); flex: none; }
.mini-row b, .mini-row strong { font-weight: 700; text-align: right; min-width: 0; }
.mini-row b, .mini-row strong { overflow-wrap: anywhere; }
.bar-track { height: 6px; border-radius: 99px; background: var(--white-08); overflow: hidden; margin-top: 8px; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--gradient); width: 0; transition: width 1.3s ease; }

/* ---------- Tokenomics ---------- */
.token-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 68px; align-items: center; }
.donut-wrap { display: grid; place-items: center; position: relative; }
.donut {
  width: 300px; height: 300px; border-radius: 50%;
  background: conic-gradient(var(--chart-1) 0 40%, var(--chart-2) 40% 65%, var(--chart-3) 65% 82%, var(--chart-4) 82% 93%, var(--chart-5) 93% 100%);
  display: grid; place-items: center; box-shadow: 0 0 70px var(--accent-tint);
}
.donut::before { content: ""; width: 208px; height: 208px; border-radius: 50%; background: var(--bg); }
.donut-center { position: absolute; text-align: center; z-index: 2; }
.donut-center strong { display: block; font-size: 32px; letter-spacing: -.04em; }
.donut-center span { color: var(--muted); font-size: 12px; }
.legend { display: grid; gap: 14px; }
.legend-row { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.legend-row:last-child { border-bottom: 0; padding-bottom: 0; }
.legend-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.legend-row .name { flex: 1; font-size: 14.5px; }
.legend-row .pct { font-weight: 800; font-size: 15px; }
.legend-row small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 880px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--emerald), var(--blue), transparent); }
.tl-item { display: grid; grid-template-columns: 46px 1fr; gap: 22px; padding-bottom: 36px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border-strong); z-index: 1; }
.tl-dot span { width: 13px; height: 13px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 5px var(--accent-tint); }
.tl-body { padding-top: 5px; }
.tl-body .year { font-size: 12px; font-weight: 800; color: var(--emerald); letter-spacing: .1em; }
.tl-body h3 { font-size: 19px; margin: 4px 0 8px; }
.tl-body p { color: var(--muted); font-size: 14.5px; }
.tl-item.future .tl-dot span { background: var(--blue); box-shadow: 0 0 0 5px var(--accent-2-tint); }
.tl-item.future .year { color: var(--blue); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative; counter-increment: step;
}
.step::before {
  content: "0" counter(step); display: block; font-size: 13px; font-weight: 800;
  color: var(--emerald); letter-spacing: .1em; margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }
.step-arrow { display: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--accent-glow); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 24px; background: none; border: 0; color: var(--text); cursor: pointer;
  font-size: 16px; font-weight: 650; text-align: left;
}
.faq-q .plus { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--emerald); font-size: 17px; transition: transform .25s; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a div { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 28px; padding: 58px 46px; text-align: center; position: relative; overflow: hidden;
  background: var(--cta-bg);
  border: 1px solid var(--cta-line);
}
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; top: -190px; background: var(--cta-glow); filter: blur(20px); }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-band p { color: var(--text-soft); max-width: 620px; margin: 0 auto 26px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 66px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 42px; margin-bottom: 46px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--emerald); }
.disclaimer { font-size: 12px; color: var(--muted); line-height: 1.6; border-left: 2px solid var(--emerald); padding-left: 14px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 78px 0 60px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 320px at 82% 10%, var(--hero-glow-1), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12.5px; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--emerald); }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.045em; line-height: 1.12; margin-bottom: 16px; }
.page-hero p { color: var(--text-soft); font-size: 17px; max-width: 720px; }
.meta-line { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 22px; }
.meta-line span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Article / prose ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 30px; letter-spacing: -.03em; margin: 48px 0 16px; line-height: 1.25; }
.prose h3 { font-size: 21px; margin: 34px 0 12px; }
.prose p { color: var(--text-soft); margin-bottom: 18px; font-size: 16px; }
.prose ul, .prose ol { margin: 0 0 22px 20px; color: var(--text-soft); }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.callout {
  border: 1px solid var(--accent-line); background: var(--accent-wash);
  border-radius: 14px; padding: 20px 22px; margin: 28px 0; color: var(--text-soft); font-size: 14.5px;
}
.callout.warn { border-color: var(--warning-line); background: var(--warning-tint); }
.callout strong { display: block; color: var(--emerald); margin-bottom: 6px; }
.callout.warn strong { color: var(--gold); }
.data-table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 14.5px; }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--emerald); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: var(--white-02); }
.data-table td { color: var(--text-soft); }
.data-table tr:last-child td { border-bottom: 0; }
.toc {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 38px;
}
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.toc ol { margin-left: 18px; counter-reset: toc; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text-soft); font-size: 14.5px; }
.toc a:hover { color: var(--emerald); }

/* ---------- Blog cards ---------- */
.post-card { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: .28s; }
.post-card:hover { transform: translateY(-5px); border-color: var(--accent-glow); }
.post-thumb { height: 168px; display: grid; place-items: center; position: relative; overflow: hidden; }
.post-thumb svg { width: 90px; height: 90px; opacity: .85; }
.post-body { padding: 24px; }
.post-cat { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald); }
.post-body h3 { font-size: 18px; line-height: 1.35; margin: 10px 0 12px; }
.post-body p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.post-meta { color: var(--muted); font-size: 12px; display: flex; gap: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; color: var(--text-soft); cursor: pointer; }
.tag.active, .tag:hover { border-color: var(--emerald); color: var(--emerald); background: var(--accent-tint); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .split, .token-layout { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; background: var(--nav-bg); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 14px; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-actions .btn { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .container, .container-narrow { width: min(100% - 32px, var(--maxw)); }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 16px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat { padding: 0 14px; }
  .stat .num { font-size: 22px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 42px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .donut { width: 250px; height: 250px; }
  .donut::before { width: 172px; height: 172px; }
  .post-thumb { height: 140px; }
  .float-card.one { left: 0; }
  .float-card.two { right: 0; }
}

/* ---------- Long-form article extras ---------- */
.prose blockquote.expert-quote {
  margin: 30px 0; padding: 22px 26px; border-left: 3px solid var(--emerald);
  background: var(--accent-wash); border-radius: 0 14px 14px 0;
}
.prose blockquote.expert-quote p { margin: 0 0 10px; color: var(--text); font-size: 16.5px; line-height: 1.7; }
.prose blockquote.expert-quote cite { color: var(--muted); font-size: 13px; font-style: normal; letter-spacing: .02em; }
.table-wrap { overflow-x: auto; margin: 26px 0; -webkit-overflow-scrolling: touch; }
.table-wrap .data-table { margin: 0; min-width: 520px; }
.prose ul, .prose ol { margin: 0 0 22px 22px; }
.prose li { color: var(--text-soft); font-size: 16px; line-height: 1.75; margin-bottom: 9px; }
.prose li strong { color: var(--text); }
.prose .callout strong { display: block; margin-bottom: 8px; }

details.faq-item { padding: 0; }
details.faq-item > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; padding: 20px 24px; font-size: 16px; font-weight: 650; color: var(--text);
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary .faq-icon {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--emerald); font-size: 17px; transition: transform .25s;
}
details.faq-item[open] > summary .faq-icon { transform: rotate(45deg); }
details.faq-item[open] { border-color: var(--accent-glow); }
.faq-body { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.faq-body p { margin: 0; }

/* ==========================================================================
   Layout families — body[data-layout]
   split (default) | centered | editorial | magazine | poster
   Each family restructures the hero, the article grid and the prose measure,
   so two sites with the same palette still read as different designs.
   ========================================================================== */

/* --- centered: symmetric single column, facts become a chip row --- */
body[data-layout="centered"] .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 46px; }
body[data-layout="centered"] .hero h1 { max-width: 19ch; }
body[data-layout="centered"] .hero-lead { margin-inline: auto; }
body[data-layout="centered"] .hero-cta,
body[data-layout="centered"] .hero-note { justify-content: center; }
body[data-layout="centered"] .badge { margin-inline: auto; }
body[data-layout="centered"] .glow-ring { display: none; }
body[data-layout="centered"] .diamond-core { display: none; }
body[data-layout="centered"] .hero-visual { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; width: 100%; }
body[data-layout="centered"] .float-card { position: static; animation: none; }
body[data-layout="centered"] .visual-panel { max-width: 560px; margin-inline: auto; }
body[data-layout="centered"] .grid-3 { grid-template-columns: repeat(2, 1fr); }
body[data-layout="centered"] .post-body { text-align: center; }
body[data-layout="centered"] .post-meta { justify-content: center; }
body[data-layout="centered"] .prose { margin-inline: auto; }
body[data-layout="centered"] section { padding: 84px 0; }
body[data-layout="centered"] .split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
body[data-layout="centered"] .split .check-list { text-align: left; max-width: 520px; margin-inline: auto; }

/* --- editorial: no artwork, narrow measure, facts as a ruled bottom bar --- */
body[data-layout="editorial"] .hero { padding: 104px 0 0; }
body[data-layout="editorial"] .hero-inner { grid-template-columns: 1fr; gap: 0; }
body[data-layout="editorial"] .hero h1 { max-width: 21ch; }
body[data-layout="editorial"] .hero-lead { max-width: 48ch; font-size: 19px; }
body[data-layout="editorial"] .glow-ring,
body[data-layout="editorial"] .diamond-core { display: none; }
body[data-layout="editorial"] .hero-visual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 54px; border-top: 1px solid var(--border); }
/* single fact panel instead of 3 floating chips: keep it full width */
body[data-layout="editorial"] .hero-visual:has(> .visual-panel) { display: block; padding-top: 22px; }
body[data-layout="editorial"] .hero-visual > .visual-panel { border: 0; background: transparent; padding: 0; box-shadow: none; }
body[data-layout="editorial"] .hero-visual .mini-row { border-bottom: 1px solid var(--border); padding: 14px 0; }
body[data-layout="editorial"] .float-card {
  position: static; animation: none; border: 0; border-right: 1px solid var(--border);
  border-radius: 0; background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding: 24px 24px 30px 0;
}
body[data-layout="editorial"] .float-card:last-child { border-right: 0; }
body[data-layout="editorial"] .grid-3 { grid-template-columns: 1fr; gap: 0; }
body[data-layout="editorial"] .post-card {
  display: grid; grid-template-columns: 216px 1fr; border: 0; border-top: 1px solid var(--border);
  border-radius: 0; background: transparent;
}
body[data-layout="editorial"] .post-card:last-child { border-bottom: 1px solid var(--border); }
body[data-layout="editorial"] .post-card:hover { transform: none; background: var(--white-02); border-color: var(--border); }
body[data-layout="editorial"] .post-thumb { height: auto; min-height: 156px; }
body[data-layout="editorial"] .post-body { padding: 26px 32px; }
body[data-layout="editorial"] .post-body h3 { font-size: 22px; }
body[data-layout="editorial"] .prose { max-width: 700px; }
body[data-layout="editorial"] .prose p { font-size: 17px; line-height: 1.8; }
body[data-layout="editorial"] .prose h2 { font-size: 32px; }

/* --- magazine: asymmetric split, oversized headline, lead story spans the grid --- */
body[data-layout="magazine"] .hero-inner { grid-template-columns: 1.3fr .7fr; gap: 0 36px; align-items: end; }
body[data-layout="magazine"] .hero h1 { font-size: clamp(46px, 7.4vw, 96px); line-height: .96; letter-spacing: -.055em; }
body[data-layout="magazine"] .hero-visual { align-self: center; padding-block: 26px; }
body[data-layout="magazine"] .glow-ring { width: 320px; height: 320px; }
body[data-layout="magazine"] .diamond-core { width: 150px; height: 150px; margin: 30px auto; }
body[data-layout="magazine"] .float-card { padding: 12px 16px; }
body[data-layout="magazine"] .float-card.one { top: -6%; left: -6%; right: auto; bottom: auto; }
body[data-layout="magazine"] .float-card.two { bottom: -6%; right: -6%; top: auto; left: auto; }
body[data-layout="magazine"] .float-card.three { display: none; }
body[data-layout="magazine"] .grid-3 > .post-card:first-child { grid-column: span 3; display: grid; grid-template-columns: 1.15fr .85fr; }
body[data-layout="magazine"] .grid-3 > .post-card:first-child .post-thumb { height: 100%; min-height: 280px; }
body[data-layout="magazine"] .grid-3 > .post-card:first-child .post-thumb svg { width: 152px; height: 152px; }
body[data-layout="magazine"] .grid-3 > .post-card:first-child .post-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
body[data-layout="magazine"] .grid-3 > .post-card:first-child .post-body h3 { font-size: 32px; letter-spacing: -.03em; line-height: 1.2; }
body[data-layout="magazine"] .prose { max-width: 770px; }
body[data-layout="magazine"] .prose blockquote { font-size: 21px; }
body[data-layout="magazine"] .prose h2 { font-size: 34px; letter-spacing: -.035em; }

/* --- poster: full-bleed giant type, wide tiles, generous rhythm --- */
body[data-layout="poster"] .hero { padding: 66px 0 54px; }
body[data-layout="poster"] .hero-inner { grid-template-columns: 1fr; gap: 38px; }
body[data-layout="poster"] .hero h1 {
  font-size: clamp(54px, 10.6vw, 148px); line-height: .88; letter-spacing: -.07em;
  text-transform: uppercase; max-width: none;
}
body[data-layout="poster"] .hero-lead { font-size: 19px; max-width: 54ch; }
body[data-layout="poster"] .glow-ring { display: none; }
body[data-layout="poster"] .hero-visual { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
body[data-layout="poster"] .hero-visual:has(> .visual-panel) { display: block; }
body[data-layout="poster"] .visual-panel {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 26px; padding-top: 22px;
}
body[data-layout="poster"] .visual-panel .panel-head { grid-column: 1 / -1; margin-bottom: 14px; }
body[data-layout="poster"] .visual-panel .mini-row {
  flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px;
  border-bottom: 0; border-left: 1px solid var(--border); padding: 6px 0 6px 18px;
}
body[data-layout="poster"] .visual-panel .mini-row:first-of-type { border-left: 0; padding-left: 0; }
body[data-layout="poster"] .visual-panel .mini-row strong { text-align: left; font-size: 15px; }

body[data-layout="poster"] .diamond-core { width: 110px; height: 110px; margin: 0; animation: none; }
body[data-layout="poster"] .float-card { position: static; animation: none; }
body[data-layout="poster"] .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
body[data-layout="poster"] .post-thumb { height: 250px; }
body[data-layout="poster"] .post-body h3 { font-size: 24px; letter-spacing: -.02em; }
body[data-layout="poster"] .prose { max-width: 900px; }
body[data-layout="poster"] .prose p { font-size: 17.5px; }
body[data-layout="poster"] section { padding: 116px 0; }
body[data-layout="poster"] .nav a { text-transform: uppercase; letter-spacing: .07em; font-size: 12px; }
body[data-layout="poster"] .section-title { font-size: clamp(34px, 5vw, 60px); }

@media (max-width: 900px) {
  body[data-layout="magazine"] .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  body[data-layout="magazine"] .grid-3 > .post-card:first-child { grid-column: span 1; grid-template-columns: 1fr; }
  body[data-layout="editorial"] .grid-3 { grid-template-columns: 1fr; }
  body[data-layout="editorial"] .post-card { grid-template-columns: 130px 1fr; }
  body[data-layout="poster"] .grid-3,
  body[data-layout="centered"] .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body[data-layout="editorial"] .post-card { grid-template-columns: 1fr; }
  body[data-layout="editorial"] .post-thumb { min-height: 120px; }
  body[data-layout="editorial"] .hero-visual { grid-template-columns: 1fr; }
  body[data-layout="editorial"] .float-card { border-right: 0; border-bottom: 1px solid var(--border); padding: 18px 0; }
  body[data-layout="poster"] .hero h1 { font-size: clamp(38px, 12vw, 64px); }
  body[data-layout="magazine"] .hero h1 { font-size: clamp(38px, 10vw, 56px); }
}

/* ==========================================================================
   Icon families — body[data-icons]
   line | solid | duotone | glyph
   The SVG itself is rendered server-side by icons.py; these rules tune the
   container shape and optical size so each family reads differently.
   ========================================================================== */
body[data-icons="line"] .card-icon { border-radius: 14px; }
body[data-icons="line"] .post-thumb svg { width: 96px; height: 96px; }

body[data-icons="solid"] .card-icon { border-radius: 8px; background: var(--accent); border-color: transparent; }
body[data-icons="solid"] .card-icon svg { color: var(--accent-ink); }
body[data-icons="solid"] .post-thumb svg { width: 110px; height: 110px; opacity: .92; }
body[data-icons="solid"] .brand-mark { border-radius: 8px; }

body[data-icons="duotone"] .card-icon { border-radius: 50%; }
body[data-icons="duotone"] .post-thumb svg { width: 102px; height: 102px; }
body[data-icons="duotone"] .brand-mark { border-radius: 50%; }

body[data-icons="glyph"] .card-icon { border-radius: 0; border-width: 2px; }
body[data-icons="glyph"] .post-thumb svg { width: 84px; height: 84px; }
body[data-icons="glyph"] .brand-mark { border-radius: 3px; }
body[data-icons="glyph"] .post-cat { letter-spacing: .16em; }

/* --- article layout: prose + TOC rail, rearranged per family --- */
/* Article pages wrap the body in .split > article.prose + aside.toc */
body[data-layout="editorial"] .split:has(> article.prose),
body[data-layout="poster"] .split:has(> article.prose),
body[data-layout="centered"] .split:has(> article.prose) {
  grid-template-columns: 1fr; gap: 0;
}
body[data-layout="editorial"] .split > aside.toc,
body[data-layout="poster"] .split > aside.toc,
body[data-layout="centered"] .split > aside.toc {
  order: -1; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  background: transparent; padding: 0 0 24px; margin-bottom: 34px;
}
body[data-layout="editorial"] .split > aside.toc ol,
body[data-layout="poster"] .split > aside.toc ol { columns: 2; column-gap: 44px; }
body[data-layout="poster"] .split > aside.toc ol { columns: 3; }
body[data-layout="centered"] .split > aside.toc { text-align: center; }
body[data-layout="centered"] .split > aside.toc ol { margin-inline: auto; max-width: 520px; text-align: left; }
body[data-layout="centered"] .split > article.prose { margin-inline: auto; max-width: 720px; }
body[data-layout="magazine"] .split:has(> article.prose) { grid-template-columns: .34fr .66fr; gap: 56px; }
body[data-layout="magazine"] .split > aside.toc { order: -1; position: sticky; top: 96px; }

@media (max-width: 900px) {
  body[data-layout="magazine"] .split:has(> article.prose) { grid-template-columns: 1fr; gap: 0; }
  body[data-layout="magazine"] .split > aside.toc {
    order: -1; position: static; border: 0; border-bottom: 1px solid var(--border);
    border-radius: 0; background: transparent; padding: 0 0 24px; margin-bottom: 32px;
  }
  body[data-layout="editorial"] .split > aside.toc ol,
  body[data-layout="poster"] .split > aside.toc ol { columns: 1; }
}


/* ============ Theme: tech-neon (Tech Neon · 科技霓虹) ============ */
/* Tech Neon — 近黑底 + 青紫霓虹 + 等宽标题，极客/AI/Web3 向。 */
:root {
  --bg: #05060f; --bg-2: #0a0d1c; --bg-3: #11162b;
  --surface: rgba(20, 26, 50, .55); --surface-2: rgba(28, 36, 68, .62);
  --border: rgba(120, 160, 255, .18); --border-strong: rgba(120, 160, 255, .35);
  --text: #eaf4ff; --text-soft: #b6c6e4; --muted: #8093b8;
  --accent: #22d3ee; --accent-2: #a855f7; --accent-3: #f472b6; --accent-ink: #05060f;
  --gradient: linear-gradient(120deg, #22d3ee, #a855f7 60%, #f472b6);
  --shadow: 0 24px 70px rgba(0, 0, 0, .6);
  --radius: 6px; --radius-sm: 4px;
  --font: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --header-bg: rgba(5, 6, 15, .86); --nav-bg: rgba(5, 6, 15, .98);
  --float-bg: rgba(10, 13, 28, .92);
  --white-018: rgba(140, 180, 255, .02); --white-02: rgba(140, 180, 255, .03);
  --white-035: rgba(140, 180, 255, .05); --white-08: rgba(140, 180, 255, .09);
  --white-09: rgba(140, 180, 255, .12);
  --accent-wash: rgba(34, 211, 238, .05); --accent-tint: rgba(34, 211, 238, .1);
  --accent-line: rgba(34, 211, 238, .3); --accent-glow: rgba(34, 211, 238, .45);
  --accent-2-tint: rgba(168, 85, 247, .14); --accent-2-glow: rgba(168, 85, 247, .25);
  --warning: #fbbf24; --warning-tint: rgba(251, 191, 36, .07);
  --warning-line: rgba(251, 191, 36, .3);
  --scroll-thumb: #243052; --scroll-thumb-hover: #35456f;
  --chart-1: #22d3ee; --chart-2: #a855f7; --chart-3: #f472b6;
  --chart-4: #fbbf24; --chart-5: #35456f;
  --hero-glow-1: rgba(34, 211, 238, .14); --hero-glow-2: rgba(168, 85, 247, .14);
  --cta-bg: linear-gradient(120deg, rgba(34, 211, 238, .11), rgba(168, 85, 247, .11));
  --cta-line: rgba(34, 211, 238, .3); --cta-glow: rgba(168, 85, 247, .09);
  --selection-bg: rgba(34, 211, 238, .3); --selection-text: #05060f;
  --grid-opacity: .42;
}
.hero-grid { background-size: 40px 40px; }
.glow-ring { border-style: dashed; }
.hero h1, .section-title, .page-hero h1, .eyebrow { font-family: var(--font-head); }
.hero h1, .section-title, .page-hero h1 { font-weight: 700; letter-spacing: -.02em; }
.btn { border-radius: 2px; }
.card { backdrop-filter: blur(8px); }
.card:hover, .post-card:hover { box-shadow: 0 0 0 1px var(--accent), 0 16px 40px rgba(34, 211, 238, .12); }
.prose a { text-decoration-thickness: 1px; }


/* --- backdrop: hatch --- */
:root {
  --decor-image: repeating-linear-gradient(45deg, var(--grid-line, var(--white-035)) 0 1px, transparent 1px 13px);
  --decor-size: auto;
}
