/* BRRR · design system: a US-banknote look. Note paper, one green ink, black engraving ink, guilloche, serial numbers,
 * tabular numbers, system CJK fonts (no web fonts: Google Fonts is unreachable for much of the audience). */
:root {
  --bg: #f2eee1;            /* note paper */
  --bg-2: #ebe6d5;
  --bg-3: #fbf9f2;
  --paper: #fbf9f2;          /* raised paper: cards, modal, inputs */
  --panel: #fbf9f2;
  --panel-2: #f1ede0;
  --line: rgba(31, 58, 45, 0.13);
  --line-2: rgba(31, 58, 45, 0.24);
  --text: #18211c;           /* engraving ink */
  --muted: #56615a;
  --dim: #87908a;
  --accent: #2c6a4c;         /* greenback ink */
  --accent-2: #1f5139;       /* green for text on paper */
  --accent-3: #6fa585;
  --hot: #143826;
  --accent-soft: rgba(44, 106, 76, 0.08);
  --accent-line: rgba(44, 106, 76, 0.36);
  --good: #23784f;
  --bad: #b0322b;            /* the red seal */
  --warn: #9a6614;
  --radius: 14px;
  --radius-sm: 10px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --shadow: 0 1px 0 rgba(31, 58, 45, .04), 0 12px 32px -20px rgba(31, 58, 45, .30);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(0deg, rgba(31, 58, 45, .016) 0 1px, transparent 1px 3px); /* paper grain */
}
body::before { /* ledger grid */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .6;
  background-image: linear-gradient(rgba(31,58,45,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(31,58,45,.04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
body::after { /* green ink wash */
  content: ""; position: fixed; left: 50%; top: -30vh; width: 120vw; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(44, 106, 76, .08), transparent 60%); pointer-events: none; z-index: 0;
}
a { color: inherit; text-decoration: none; }
a.link { color: var(--accent-2); border-bottom: 1px dashed var(--accent-line); }
a.link:hover { color: var(--hot); border-bottom-style: solid; }
button { font: inherit; color: inherit; }
::selection { background: rgba(44, 106, 76, .22); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.accent { color: var(--accent-2); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------------ header */
.hd {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(242, 238, 225, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.hd .wrap { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; flex-shrink: 0; }
.brand .brand-mark { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.brand b { font: 700 22px/1 var(--serif); letter-spacing: .06em; color: var(--text); }
.brand small { font: 600 10px/1 var(--mono); color: var(--accent); letter-spacing: .14em; margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.on { color: var(--accent-2); background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); font-weight: 600; }
.hd-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang { font: 600 12px var(--mono); color: var(--muted); padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; }
.lang:hover { color: var(--text); border-color: var(--accent-line); }
.hd .menu-btn { display: none; }
.hd .x-link { width: 34px; padding: 0; color: var(--text); }
@media (max-width: 560px) { .hd .x-link { display: none; } }
@media (max-width: 980px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 12px 14px;
    background: rgba(242, 238, 225, .98); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(31,58,45,.35); transform: translateY(-120%); transition: transform .2s; }
  .nav.open { transform: none; }
  .nav a { padding: 12px; font-size: 15px; }
  .hd .menu-btn { display: inline-flex; }
}

/* ------------------------------------------------------------------ buttons, inputs */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--b); background: var(--paper); color: var(--text); cursor: pointer; font-weight: 600; font-size: 14px;
  white-space: nowrap; transition: transform .08s, border-color .15s, background .15s, box-shadow .2s, opacity .15s; user-select: none;
}
.btn:hover { border-color: rgba(31, 58, 45, .42); background: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .45; cursor: not-allowed; }
.btn.primary {
  border: 0; color: #f7f4ea; background: linear-gradient(180deg, #357a5a 0%, #24583f 100%);
  box-shadow: 0 0 0 1px #1f4d37, 0 10px 24px -12px rgba(31, 77, 55, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn.primary:hover { background: linear-gradient(180deg, #3c8564 0%, #285f45 100%); box-shadow: 0 0 0 1px #1f4d37, 0 14px 30px -12px rgba(31, 77, 55, .85), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.primary[disabled] { background: var(--panel-2); color: var(--dim); box-shadow: none; border: 1px solid var(--line-2); opacity: 1; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.danger { --b: rgba(176, 50, 43, .45); color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: rgba(176, 50, 43, .05); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(35, 120, 79, .15); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.input {
  display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 12px 0 14px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(44, 106, 76, .14); }
.input input, .input select, textarea.input-area {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: var(--text);
  font: 600 18px var(--mono); font-variant-numeric: tabular-nums;
}
.input input::placeholder, textarea.input-area::placeholder { color: var(--dim); }
.input .unit { font: 600 13px var(--mono); color: var(--muted); }
.input .max { font: 600 11px var(--mono); color: var(--accent-2); border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 6px; padding: 3px 7px; cursor: pointer; }
.input.text input { font: 500 15px var(--sans); }
textarea.input-area { width: 100%; min-height: 90px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font: 15px/1.55 var(--sans); resize: vertical; }
textarea.input-area:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(44, 106, 76, .14); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.check input, label.inline input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-2); background: #fff; display: grid; place-content: center; margin: 0; cursor: pointer; }
.check input:checked, label.inline input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after, label.inline input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #f7f4ea; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
select.sel { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font: 600 13px var(--sans); cursor: pointer; }
select.sel:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(44, 106, 76, .14); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button.on { background: #fff; color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(31, 58, 45, .08); }

/* ------------------------------------------------------------------ cards, kpis, tables */
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.glow { /* banknote double frame */
  background: linear-gradient(180deg, rgba(44, 106, 76, .06), var(--paper) 46%);
  border-color: var(--accent-line);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(44, 106, 76, .2), var(--shadow);
}
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card .sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.kicker { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; margin: 12px 0 10px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.lead { color: var(--muted); font-size: 16px; max-width: 720px; margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1080px) { .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .g3, .g2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .g6, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4.cards { grid-template-columns: minmax(0, 1fr); }
  .sec { padding: 48px 0; }
  .card { padding: 18px; }
  .kpi .v { font-size: 18px; }
}
/* data cells: a ledger line of green ink on top, small green label, big ink figure */
.kpi { position: relative; padding: 16px 18px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); min-width: 0; box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), rgba(44, 106, 76, 0)); opacity: .7; }
.kpi .l { font-size: 12px; font-weight: 600; color: var(--accent-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font: 700 22px/1.25 var(--mono); font-variant-numeric: tabular-nums; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.kpi .s { font-size: 12px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g6 .kpi { padding: 15px 14px 13px; }
.g6 .kpi::before { left: 14px; right: 14px; }
.g6 .kpi .v { font-size: 19px; }
.kpi.hot { background: linear-gradient(180deg, rgba(44, 106, 76, .09), var(--paper) 72%); border-color: var(--accent-line); }
.kpi.hot .v { color: var(--accent-2); }
.kpi .v .dim, .kpi .v .bad { font: 600 15px/1.9 var(--sans); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row > span:first-child { color: var(--muted); }
.row > b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.row > span:last-child:not(:first-child) { text-align: right; color: var(--text); overflow-wrap: anywhere; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--accent-2); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t td > b { white-space: nowrap; }
table.t td.n, table.t th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.t tr:hover td { background: rgba(44, 106, 76, .035); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font: 600 11.5px var(--mono); border: 1px solid var(--line-2); color: var(--muted); background: var(--paper); white-space: nowrap; }
.badge.live { color: var(--good); border-color: rgba(35, 120, 79, .35); background: rgba(35, 120, 79, .07); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(35, 120, 79, .15); animation: pulse 1.6s infinite; }
.badge.pre { color: var(--warn); border-color: rgba(154, 102, 20, .35); background: rgba(154, 102, 20, .07); }
.badge.hot { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }
.badge.bad { color: var(--bad); border-color: rgba(176, 50, 43, .35); background: rgba(176, 50, 43, .06); }
@keyframes pulse { 50% { opacity: .35; } }
.note { font-size: 13px; color: var(--muted); padding: 12px 14px; border-radius: 10px; background: rgba(44, 106, 76, .04); border: 1px dashed var(--line-2); }
.note.warn { border-color: rgba(154, 102, 20, .4); color: #6e4a0e; background: rgba(154, 102, 20, .06); }
.skel { display: inline-block; min-width: 4ch; height: 1em; border-radius: 4px; background: linear-gradient(90deg, rgba(31,58,45,.06), rgba(31,58,45,.13), rgba(31,58,45,.06)); background-size: 200% 100%; animation: sk 1.2s infinite; vertical-align: -2px; }
@keyframes sk { to { background-position: -200% 0; } }
.addr { font: 500 12.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.copy { cursor: pointer; border: 0; background: transparent; color: var(--dim); padding: 2px 4px; border-radius: 5px; }
.copy:hover { color: var(--accent-2); background: var(--accent-soft); }

/* ------------------------------------------------------------------ sections */
.sec { position: relative; z-index: 1; padding: 72px 0; }
.sec.tight { padding: 40px 0; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-hd { padding: 44px 0 8px; }
.page-hd .h2 { margin-top: 10px; }
.divider { /* guilloche band */
  height: 14px; margin: 0; border: 0; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14'%3E%3Cpath d='M0 7 Q10 0 20 7 T40 7' fill='none' stroke='%232c6a4c' stroke-width='.8'/%3E%3Cpath d='M0 7 Q10 14 20 7 T40 7' fill='none' stroke='%232c6a4c' stroke-width='.8' opacity='.55'/%3E%3C/svg%3E") repeat-x center / 40px 14px;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* ------------------------------------------------------------------ BRRR brand artwork */
.brand-banner { position: relative; z-index: 1; padding-top: 24px; }
.brand-banner-panel {
  max-width: 960px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(31, 77, 55, .38); border-radius: 18px;
  background: #1b503b; box-shadow: 0 20px 44px -30px rgba(31, 58, 45, .55);
}
.brand-banner-panel img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
/* printer animation over the right half of the banner (stage = inside the frame, right of the lettering) */
.brand-banner-panel .pb { position: relative; aspect-ratio: 3 / 1; }
.brand-banner-panel .pb > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.pb-stage {
  position: absolute; left: 43.05%; top: 5.25%; right: 1.75%; bottom: 5.25%;
  background: radial-gradient(ellipse at 34% 55%, #1a4630 0%, #153f29 55%, #123b26 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4.6%), radial-gradient(circle at 100% 0, transparent 0 3.4%, #000 4.6%), radial-gradient(circle at 100% 100%, transparent 0 3.4%, #000 4.6%);
  -webkit-mask-composite: source-in, source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 4.6%), radial-gradient(circle at 100% 0, transparent 0 3.4%, #000 4.6%), radial-gradient(circle at 100% 100%, transparent 0 3.4%, #000 4.6%);
  mask-composite: intersect;
}
.pb-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pb-patch { position: absolute; left: 67.68%; top: 3.73%; width: 1.38%; height: 1.52%; /* only between and under the lines */
  background: linear-gradient(to bottom, #0b4428 0 54.5%, #ead9b3 54.5% 77%, #0b4428 77%); }
.pb-ros path { fill: none; stroke: rgba(170, 214, 184, .17); stroke-width: 1.2; }
.pb-ros { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
.pb-ros.rev { animation-duration: 130s; animation-direction: reverse; }
.pb-machine { animation: pbBrrr .14s steps(2) infinite; }
@keyframes pbBrrr { 0% { transform: translate(0, 0); } 50% { transform: translate(.35px, -.3px); } }
.pb-kick { transform-box: fill-box; transform-origin: 50% 100%; }
.pb-kick.kick { animation: pbKick .28s ease-out; }
@keyframes pbKick { 35% { transform: scale(1.035, .965); } 100% { transform: none; } }
.pb-led { animation: pbLed 1s steps(2) infinite; }
.pb-roll { animation: pbLed .5s steps(2) infinite; }
@keyframes pbLed { 50% { fill: #e9c46a; } }
.pb-brrr { animation: pbBrrrTxt 1.2s ease-in-out infinite; }
@keyframes pbBrrrTxt { 0%, 100% { opacity: .5; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
@media (max-width: 640px) {
  .brand-banner { padding-top: 16px; }
  .brand-banner-panel { border-radius: 12px; }
}

/* ------------------------------------------------------------------ hero: one big banknote */
.hero { position: relative; z-index: 1; padding: 28px 0 20px; }
.hero .bill {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center;
  min-height: min(74vh, 680px); padding: 64px 56px 60px; border-radius: 22px; border: 1px solid rgba(31, 77, 55, .38);
  background:
    radial-gradient(ellipse at 76% 50%, rgba(44, 106, 76, .10), transparent 58%),
    repeating-radial-gradient(circle at 76% 50%, rgba(44, 106, 76, .045) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(115deg, rgba(31, 77, 55, .022) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #fcfaf3, #f3efe1);
  box-shadow: inset 0 0 0 6px #faf8f0, inset 0 0 0 7px rgba(31, 77, 55, .32), inset 0 0 0 10px #faf8f0, inset 0 0 0 11px rgba(31, 77, 55, .14),
    0 40px 70px -44px rgba(31, 58, 45, .55);
}
.hero .bill > .note-body, .hero .bill > .vis { position: relative; z-index: 1; }
.hero .bill .denom { position: absolute; z-index: 1; font: 700 44px/1 var(--serif); color: rgba(31, 77, 55, .62); pointer-events: none; }
.hero .bill .denom.tl { top: 18px; left: 26px; }
.hero .bill .denom.tr { top: 18px; right: 26px; }
.hero .bill .denom.bl { bottom: 14px; left: 26px; }
.hero .bill .denom.br { bottom: 14px; right: 26px; }
.hero .bill .serial { position: absolute; z-index: 1; font: 700 12.5px/1 var(--mono); letter-spacing: .2em; color: var(--accent); pointer-events: none; }
.hero .bill .serial.s1 { top: 30px; left: 78px; }
.hero .bill .serial.s2 { bottom: 26px; right: 78px; }
.hero .bill .series { position: absolute; z-index: 1; bottom: 26px; left: 78px; font: 600 10.5px/1 var(--mono); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.hero h1 { font-size: clamp(32px, 4vw, 58px); line-height: 1.06; margin: 18px 0 18px; font-weight: 900; letter-spacing: -0.02em; color: var(--text); }
.hero h1 .fire { background: linear-gradient(100deg, #1f4d37 0%, #2f7553 55%, #4f9270 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="en"] .hero h1, html[lang="en"] .h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
html[lang="en"] .hero h1 { font-size: clamp(28px, 3.25vw, 46px); line-height: 1.08; text-wrap: balance; }
@media (max-width: 900px) { .hero h1 { font-size: clamp(28px, 8.8vw, 44px); } html[lang="en"] .hero h1 { font-size: clamp(28px, 8.4vw, 54px); } }
.hero p.lead { font-size: 17px; max-width: 560px; color: #3f4a43; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero .ca { margin-top: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.embers { position: absolute; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
/* the printer's seal (auction clock) */
.vault-dial { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; }
.vault-dial .core {
  position: absolute; inset: 13%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, rgba(252, 250, 243, .98) 0 40%, rgba(252, 250, 243, .7) 56%, rgba(252, 250, 243, 0) 74%),
    repeating-radial-gradient(circle, rgba(44, 106, 76, .10) 0 1px, transparent 1px 5px),
    radial-gradient(circle, #f7f3e6, #e8e1ca);
  box-shadow: inset 0 0 0 1px rgba(31, 77, 55, .35), inset 0 0 0 7px rgba(252, 250, 243, .9), inset 0 0 0 8px rgba(31, 77, 55, .22), 0 24px 50px -30px rgba(31, 58, 45, .55);
}
.vault-dial svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vault-dial .center { position: absolute; inset: 24%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.vault-dial .center .lot { font: 700 11px var(--mono); letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
.vault-dial .center .px { font: 800 clamp(26px, 4.2vw, 46px)/1.05 var(--mono); color: var(--text); margin-top: 6px; }
.vault-dial .center .unit { font: 700 12px var(--mono); color: var(--muted); }
.vault-dial .center .usd { font: 700 13px var(--mono); color: var(--accent-2); margin-top: 6px; }
.vault-dial .center .cd { margin-top: 10px; font: 700 13px var(--mono); color: #f7f4ea; background: var(--accent); padding: 4px 11px; border-radius: 999px; }
.ring .tick { stroke: rgba(31, 58, 45, .24); stroke-width: 1.4; }
.ring .tick.major { stroke: var(--accent); stroke-width: 2.2; }
.ring .tick.past { stroke: var(--accent); }
.ring .track { fill: none; stroke: rgba(31, 58, 45, .08); stroke-width: 3; }
.ring .arc { fill: none; stroke: url(#arcGrad); stroke-width: 3.4; stroke-linecap: round; }
.ring .lbl { font: 700 12px var(--mono); fill: var(--accent-2); text-anchor: middle; dominant-baseline: middle; }
.ring .lbl.now { fill: var(--text); }
.ring .head { fill: var(--paper); stroke: var(--accent); stroke-width: 2.6; }
.ring .guilloche { fill: none; stroke: rgba(44, 106, 76, .30); stroke-width: .55; transform-origin: 200px 200px; animation: spin 160s linear infinite; }
.ring .guilloche.rev { stroke: rgba(31, 77, 55, .20); animation-duration: 230s; animation-direction: reverse; }
.ring .bezel { fill: none; stroke: rgba(31, 77, 55, .38); stroke-width: 1.2; }
.ring .bezel.thin { stroke: rgba(31, 77, 55, .2); stroke-width: .8; }
.ring .bolt { fill: var(--accent); stroke: var(--paper); stroke-width: 1.2; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .hero .bill { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 8px; padding: 56px 20px 56px; border-radius: 18px; }
  .hero .vis { order: -1; }
  .vault-dial { width: min(84vw, 420px); }
  .hero h1 { margin-top: 8px; }
  .hero .bill .denom { font-size: 28px; }
  .hero .bill .denom.tl, .hero .bill .denom.bl { left: 18px; }
  .hero .bill .denom.tr, .hero .bill .denom.br { right: 18px; }
  .hero .bill .serial { font-size: 10.5px; letter-spacing: .14em; }
  .hero .bill .serial.s1 { top: 25px; left: 52px; }
  .hero .bill .serial.s2 { bottom: 21px; right: 52px; }
  .hero .bill .series { display: none; }
}

/* ------------------------------------------------------------------ flow diagram */
.flow { position: relative; }
.flow svg { width: 100%; height: auto; display: block; }
.flow .node rect { fill: var(--paper); stroke: rgba(31, 58, 45, .24); }
.flow .node.hot rect { fill: rgba(44, 106, 76, .07); stroke: var(--accent-line); }
.flow .node text { fill: var(--text); font: 700 15px var(--sans); }
.flow .node text.s { fill: var(--muted); font: 500 12px var(--sans); }
.flow .node text.v { fill: var(--accent-2); font: 700 13px var(--mono); }
.flow path.pipe { fill: none; stroke: rgba(31, 58, 45, .18); stroke-width: 2; }
.flow path.pulse { fill: none; stroke: url(#pipeGrad); stroke-width: 2.5; stroke-dasharray: 10 18; animation: flowdash 1.4s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -28; } }

/* ------------------------------------------------------------------ steps */
.steps { counter-reset: st; }
.step { position: relative; padding: 22px 22px 22px 66px; }
.step::before { counter-increment: st; content: counter(st, decimal-leading-zero); position: absolute; left: 20px; top: 22px; font: 700 13px var(--mono); color: var(--accent-2); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.step h4 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ activity */
.feed { display: flex; flex-direction: column; }
.feed .it { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed .it:last-child { border-bottom: 0; }
.feed .ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; background: var(--accent-soft); color: var(--accent-2); }
.feed .t { color: var(--dim); font: 500 12px var(--mono); white-space: nowrap; }
.empty { color: var(--dim); font-size: 13.5px; padding: 22px 0; text-align: center; }

/* ------------------------------------------------------------------ chart */
.chart { width: 100%; height: 260px; display: block; }
.chart .axis { stroke: rgba(31, 58, 45, .16); }
.chart .grid-l { stroke: rgba(31, 58, 45, .08); stroke-dasharray: 2 4; }
.chart .curve { fill: none; stroke: url(#curveGrad); stroke-width: 2.5; }
.chart .area { fill: url(#areaGrad); }
.chart .now-l { stroke: rgba(31, 58, 45, .45); stroke-dasharray: 3 3; }
.chart .now-d { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
.chart text { fill: var(--dim); font: 500 11px var(--mono); }
.chart text.hl { fill: var(--accent-2); font-weight: 700; }

/* ------------------------------------------------------------------ tx progress + toasts + modal */
.txbox { margin-top: 12px; display: none; }
.txbox.show { display: block; }
.txbars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.txbars i { height: 4px; border-radius: 3px; background: var(--line-2); }
.txbars i.on { background: linear-gradient(90deg, var(--accent), var(--accent-3)); animation: pulse 1.2s infinite; }
.txbars i.done { background: var(--good); }
.txbars i.err { background: var(--bad); }
.txmsg { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--paper); border: 1px solid var(--line-2); border-left-width: 3px; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; box-shadow: 0 18px 40px -16px rgba(31, 58, 45, .45); display: flex; gap: 10px; align-items: flex-start; animation: tin .2s ease-out; }
.toast.ok { border-left-color: var(--good); }
.toast.err { border-left-color: var(--bad); }
.toast.warn { border-left-color: var(--warn); }
.toast a { color: var(--accent-2); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(24, 33, 28, .38); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: tin .15s; }
.modal { width: min(460px, 100%); max-height: 90vh; overflow: auto; background: var(--paper); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(44, 106, 76, .16), 0 30px 80px -20px rgba(24, 33, 28, .5); }
.modal h3 { margin: 0 0 14px; }
.wallets { display: flex; flex-direction: column; gap: 8px; }
.wallets button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; text-align: left; font-weight: 600; }
.wallets button:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.wallets img, .wallets .wi { width: 28px; height: 28px; border-radius: 7px; background: var(--panel-2); }

/* ------------------------------------------------------------------ console / playground */
.chatbox { display: flex; flex-direction: column; height: min(68vh, 680px); }
.chat-log { flex: 1; overflow-y: auto; padding: 4px 2px 12px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: rgba(44, 106, 76, .09); border: 1px solid var(--accent-line); }
.msg.ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.msg .meta { display: block; margin-top: 8px; font: 500 11px var(--mono); color: var(--dim); }
.chat-in { display: flex; gap: 8px; align-items: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
.chat-in textarea { flex: 1; min-height: 48px; max-height: 180px; }
.keyshow { font: 600 13px var(--mono); padding: 12px; border-radius: 10px; background: #fff; border: 1px solid var(--accent-line); overflow-wrap: anywhere; color: var(--hot); }
pre.code { /* an engraving plate */
  margin: 0; padding: 14px 16px; border-radius: 12px; background: #16211b; border: 1px solid rgba(31, 58, 45, .5); overflow-x: auto;
  font: 12.5px/1.6 var(--mono); color: #e9e4d4; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
pre.code .c { color: #7f978a; }
pre.code .s { color: #d9c58b; }

/* ------------------------------------------------------------------ footer */
.ft { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 60px; color: var(--muted); font-size: 13px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.ft .risk { max-width: 860px; line-height: 1.75; }
.ft .risk b { color: var(--text); }
.ft .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
@media (max-width: 860px) { .ft .cols { grid-template-columns: minmax(0, 1fr); } }
.ca-list { display: flex; flex-direction: column; gap: 6px; }
.ca-list div { display: flex; justify-content: space-between; gap: 10px; }
.ca-list span:first-child { color: var(--dim); white-space: nowrap; }

/* ------------------------------------------------------------------ misc */
.prebar { position: relative; z-index: 2; background: rgba(44, 106, 76, .09); border-bottom: 1px solid var(--accent-line); font-size: 13px; color: var(--accent-2); text-align: center; padding: 8px 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 14px; }
.auction-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); grid-template-areas: "chart panel" "stats panel" "recent panel"; gap: 16px 20px; align-items: start; }
.auction-grid .a-chart { grid-area: chart; }
.auction-grid .a-panel { grid-area: panel; position: sticky; top: calc(var(--header-h) + 16px); }
.auction-grid .a-stats { grid-area: stats; }
.auction-grid .a-recent { grid-area: recent; }
@media (max-width: 980px) {
  .auction-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chart" "panel" "stats" "recent"; }
  .auction-grid .a-panel { position: static; }
  .split.panel-first > :last-child { order: -1; }
}
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.big-num { font: 800 clamp(30px, 4vw, 44px)/1.1 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-3)); border-radius: 6px; transition: width .4s; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font: 700 18px var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 14.5px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ------------------------------------------------------------------ audit band */
.audit-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; background:
  linear-gradient(120deg, rgba(44, 106, 76, .09), var(--paper) 55%), repeating-linear-gradient(45deg, rgba(44, 106, 76, .04) 0 1px, transparent 1px 7px);
  border-color: var(--accent-line); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(44, 106, 76, .2), var(--shadow); }
.audit-band .h2 { font-size: clamp(22px, 2.6vw, 32px); }
@media (max-width: 860px) { .audit-band { flex-direction: column; align-items: flex-start; } }
