/* Navy + orange palette. Navy is the default for every visitor; light is opt-in via the toggle.
   Green is reserved for gains and success states (blueprint §14.2). */
:root {
  --bg: #1B2A55;
  --bg-alt: #172449;
  --surface: #1F305F;
  --surface-2: #2A3D70;
  --border: #33477D;
  --header: #24365F;
  --text: #FFFFFF;
  --text-2: #B3BEDA;
  --accent: #E5803E;
  --accent-ink: #13203F;
  --accent-text: #F59D62;
  --accent-soft: rgba(229, 128, 62, 0.14);
  --success: #3DD68C;
  --info: #6EA8FF;
  --warn: #F5B83D;
  --warn-soft: rgba(245, 184, 61, 0.14);
  --danger: #FF6B6B;
  --danger-soft: rgba(255, 107, 107, 0.14);
  --shadow: 0 20px 50px -20px rgba(5, 10, 30, 0.7);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-xl: 30px;
  --closing-art-fill: rgba(255, 255, 255, 0.90);
  --coin-hi: #FBF0CC;
  --coin-mid: #ECC978;
  --coin-lo: #C2922F;
  --coin-edge: #9A6E22;
  --coin-rim: #16233F;
  --coin-rim-hi: #35497F;
  --coin-shine: rgba(255, 255, 255, 0.75);
  --coin-shadow: rgba(6, 12, 34, 0.38);
  --wrap: 1160px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F5F7FC; --bg-alt: #EAEFF8; --surface: #FFFFFF; --surface-2: #EEF2FA; --border: #D5DCEB; --header: #FFFFFF;
  --text: #13203F; --text-2: #4A5878; --accent: #E5803E; --accent-ink: #13203F; --accent-text: #B4561A;
  --accent-soft: rgba(229, 128, 62, 0.12); --success: #13824A; --info: #2563EB; --warn: #B45309; --warn-soft: rgba(245, 158, 11, 0.14);
  --danger: #C81E1E; --danger-soft: rgba(239, 68, 68, 0.1); --shadow: 0 20px 50px -24px rgba(19, 32, 63, 0.25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; }
h3, .h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 5px; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.block { display: block; }
.right { text-align: right; }
.center { text-align: center; }
.accent { color: var(--accent-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.gtm-noscript { display: none; visibility: hidden; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon--xs { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; margin-right: 0.35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Permanent anti-phishing bar */
.notice { background: var(--accent-soft); border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.notice__inner { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.notice .icon { color: var(--accent-text); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--header) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo__mark { width: 30px; height: 30px; }
.logo__img { width: auto; height: 30px; display: block; }
.logo__bg { fill: var(--accent); }
.logo__stroke { fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; color: var(--text-2); text-decoration: none; border-radius: 8px; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface); }
.theme-icon--light { display: none; }
:root[data-theme="light"] .theme-icon--light { display: block; }
:root[data-theme="light"] .theme-icon--dark { display: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); display: none; margin: 0; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px; }
  .site-header__actions { margin-left: auto; }
}
@media (max-width: 420px) { .site-header__actions .btn--sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform 0.12s ease, background 0.12s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn--ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn--ghost:hover { border-color: var(--text-2); }
.btn--sm { padding: 8px 14px; font-size: 0.875rem; }
.btn--lg { padding: 14px 22px; font-size: 1rem; }
.btn--disabled { background: var(--surface-2); color: var(--text-2); cursor: not-allowed; border-color: var(--border); }
.btn .icon { width: 1.1em; height: 1.1em; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 1em; height: 1em; transition: transform 0.15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Hero */
.hero { padding: 64px 0 72px; background: radial-gradient(900px 420px at 85% 10%, var(--surface-2), transparent 70%); }
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 0.9fr 1.1fr; gap: 32px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 62ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--text-2); font-size: 0.925rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero__facts .icon { color: var(--accent-text); width: 1.05em; height: 1.05em; }

/* Coin icons (colour comes from /css/assets.css) */
.coin { --coin: var(--info); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--coin); color: #fff; font-weight: 700; font-size: 0.95rem; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }

/* Sections */
.section { padding: 80px 0; }
.section--tight { padding: 40px 0 72px; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { margin-bottom: 36px; max-width: 760px; }
.section__head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; max-width: none; }
.page-hero { padding: 64px 0 24px; }
.page-hero h1 { max-width: 20ch; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card--link { color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.15s ease, transform 0.15s ease; }
.card--link:hover { border-color: var(--accent); transform: translateY(-2px); }
.card--link h2, .card--link h3 { margin: 6px 0 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--text-2); }

.asset-strip { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.asset-chip { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.asset-chip > span:last-child { display: grid; line-height: 1.3; }

.split { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.feature-list li { display: flex; gap: 16px; padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.feature-list .icon { color: var(--accent-text); width: 24px; height: 24px; margin-top: 2px; }
.feature-list div { display: grid; }

.cards-3, .cards-2 { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 40px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(120deg, var(--surface), var(--accent-soft)); }
.cta-band > div { max-width: 640px; }
.cta-band p { margin: 0; }
@media (max-width: 719px) { .cta-band { margin: 0 16px; padding: 28px 20px; } }

/* Features */
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature h2 { font-size: 1.25rem; }
.feature__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px; }
.feature__icon .icon { width: 22px; height: 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--accent-text); width: 1.1em; height: 1.1em; margin-top: 0.25em; }
.ticks--no .icon { color: var(--danger); }


/* Security */
.layers { display: grid; gap: 16px; }
@media (min-width: 820px) { .layers { grid-template-columns: repeat(3, 1fr); } }
.layer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.layer h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.layer p { color: var(--text-2); margin: 0 0 8px; }
.layer--key { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.layer--key h2 .icon { color: var(--accent-text); }
.badge { justify-self: start; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.badge--ok { background: var(--accent-soft); color: var(--accent-text); }
.chain { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; }
.chain li { position: relative; display: grid; padding: 12px 0 12px 32px; border-left: 2px solid var(--border); margin-left: 8px; }
.chain li::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.chain li:last-child { border-left-color: transparent; }
.chain li:last-child::before { background: var(--accent); }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); font-weight: 600; background: var(--surface-2); }
.table tbody th { color: var(--text-2); font-weight: 500; width: 38%; }
.split .table, .legal .table { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.table--assets { min-width: 760px; }
.table--assets td { vertical-align: middle; }
.table--threats { min-width: 620px; }
.asset-cell { display: flex; align-items: center; gap: 12px; }
.asset-cell > span:last-child { display: grid; line-height: 1.3; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.status .icon { width: 1.05em; height: 1.05em; }
.status--ok { color: var(--success); }
.status--warn { color: var(--warn); }
.status--bad { color: var(--danger); }
.status--muted { color: var(--text-2); font-weight: 500; }

/* Asset filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); width: 18px; height: 18px; }
.search input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.search input::placeholder { color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.empty { padding: 32px; text-align: center; color: var(--text-2); border: 1px dashed var(--border); border-radius: var(--radius); margin-top: 12px; }

.note { display: flex; gap: 14px; align-items: flex-start; margin: 24px 0 12px; padding: 16px 18px; border-radius: 12px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.note .icon { color: var(--warn); margin-top: 2px; }
.note p { margin: 0; }
.note--inline { margin: 0 0 28px; font-size: 0.925rem; }

/* Download */
.downloads { display: grid; gap: 12px; }
@media (min-width: 720px) { .downloads { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .downloads { grid-template-columns: repeat(3, 1fr); } }
.download { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.download h2 { margin: 0 0 2px; }
.download p { margin: 0; }
.numbered { padding-left: 1.3em; display: grid; gap: 10px; }
.code { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; overflow-x: auto; font-size: 0.875rem; }
.code code { background: none; padding: 0; white-space: pre; }

/* Articles */
.prose-wrap { max-width: 760px; }
.breadcrumb { font-size: 0.875rem; color: var(--text-2); margin-bottom: 20px; display: flex; gap: 8px; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.prose thead th { color: var(--text-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.callout { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; font-weight: 500; }
.more { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.more ul { padding-left: 1.2em; }

.legal { max-width: 860px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 36px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--text-2); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg-alt); }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer__grid > div:first-child { grid-column: 1 / -1; max-width: 340px; }
@media (min-width: 820px) { .site-footer__grid > div:first-child { grid-column: auto; } }
.site-footer__grid .logo { margin-bottom: 12px; }
.footer-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--accent-text); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-2); }

/* Live market table (top of home), compact */
.market-section { padding: 20px 0 4px; }
.market { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.market__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.market__title { margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.market__meta { margin: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; color: var(--text-2); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: live-pulse 2s infinite; }
.live-dot--stale { background: var(--warn); animation: none; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.5); } 70% { box-shadow: 0 0 0 6px rgba(61, 214, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.market__scroll { overflow-x: auto; }
.market__table { width: 100%; border-collapse: collapse; }
.market__table th { padding: 6px 14px; font-weight: 500; font-size: 0.7rem; color: var(--text-2); text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; }
.market__table td { padding: 5px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 0.82rem; line-height: 1.3; }
.market__table tbody tr:last-child td { border-bottom: 0; }
.market__table tbody tr:hover { background: var(--surface-2); }
.market__table .m-num { text-align: right; }
.market__table .m-rank { width: 1%; color: var(--text-2); padding-right: 4px; font-size: 0.75rem; }
.market__table .m-unit { text-transform: none; letter-spacing: 0; }
.market__table .asset-cell { gap: 8px; }
.market__table .coin { width: 22px; height: 22px; font-size: 0.65rem; }
.market__table .m-label { display: inline-flex !important; align-items: baseline; gap: 6px; }
.market__table .m-label strong { font-size: 0.82rem; }
.market__table .m-label .muted { font-size: 0.75rem; }
.market__table .up { color: var(--success); }
.market__table .down { color: var(--danger); }
.market__table td.flash { animation: cell-flash 1s ease; }
@keyframes cell-flash { from { background: var(--accent-soft); } to { background: transparent; } }
.market__table tbody .m-hide { display: none; }
.market__empty { text-align: center; color: var(--text-2); padding: 20px 14px !important; white-space: normal !important; }
.market__pager { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 10px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pager-btn { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 7px; color: var(--text-2); text-decoration: none; font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager-btn:hover { background: var(--surface-2); color: var(--text); }
.pager-btn[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.pager-btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.pager-btn .icon { width: 14px; height: 14px; }
.icon--flip { transform: scaleX(-1); }
.pager-info { margin-left: 10px; font-size: 0.72rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .market__table .m-opt { display: none; }
  .market__table th, .market__table td { padding-left: 10px; padding-right: 10px; }
  .market__table .m-label .muted { display: none; }
}
.hero { padding-top: 40px; }

/* Original coin icons */
.coin--img { object-fit: cover; background: var(--surface-2); box-shadow: none; }

/* Download table */
.dl-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.dl-version { color: var(--text-2); font-weight: 600; }
.dl-lead { color: var(--text-2); max-width: 90ch; margin-bottom: 28px; }
.dl-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.dl-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.95rem; }
.dl-table thead th { text-align: left; padding: 14px 18px; font-weight: 600; color: var(--text-2); background: var(--surface); border-bottom: 1px solid var(--border); }
.dl-table th + th, .dl-table td + td { border-left: 1px solid var(--border); }
.dl-group th { padding: 10px 18px; background: var(--surface-2); color: var(--text); font-weight: 700; text-align: left; border-left: 0 !important; }
.dl-group .icon { display: inline-block; vertical-align: -0.2em; width: 1.1em; height: 1.1em; margin-right: 8px; }
.dl-group .icon[data-fill], .dl-group svg { stroke: currentColor; }
.dl-row td { padding: 14px 18px; border-top: 1px solid var(--border); vertical-align: middle; background: var(--bg); }
.dl-row.is-recommended td { background: var(--accent-soft); }
.dl-arch { display: flex; justify-content: space-between; gap: 24px; color: var(--text-2); min-width: 200px; }
.dl-type { color: var(--text); }
.dl-chip { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.dl-chip code { background: var(--surface-2); border: 1px solid var(--border); padding: 4px 8px; border-radius: 6px; font-size: 0.82rem; }
.dl-chip .icon { width: 18px; height: 18px; color: var(--text); }
.dl-chip:hover code { border-color: var(--accent); }
.dl-chip:hover .icon { color: var(--accent-text); }
.dl-badge { margin-left: 12px; padding: 3px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: middle; }
.dl-file { white-space: nowrap; }
.dl-sig a { color: var(--info); text-decoration: none; }
.dl-hash { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--info); font: inherit; cursor: pointer; }
.dl-hash code { background: none; padding: 0; color: inherit; }
.dl-hash.is-copied { color: var(--success); }
.dl-size { white-space: nowrap; width: 1%; }
.dl-note { margin-top: 14px; }

/* Trade / Deposit actions in the market table */
.market__table .m-name .asset-cell { display: flex; width: 100%; }
.market__table .asset-cell > .m-actions { display: inline-flex; gap: 6px; margin-left: auto; padding-left: 16px; }
.m-act { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--surface-2); transition: background 0.15s ease, border-color 0.15s ease; }
.m-act .icon { width: 12px; height: 12px; flex-shrink: 0; }
.m-act:hover { border-color: var(--accent); }
.m-act[data-intent="trade"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.m-act[data-intent="trade"]:hover { background: color-mix(in srgb, var(--accent) 85%, var(--text)); }
@media (max-width: 420px) { .m-act { padding: 0 7px; } .m-actions { padding-left: 8px; gap: 4px; } }

/* App launch dialog */
.app-dialog { width: min(440px, calc(100vw - 32px)); padding: 44px 32px 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); text-align: center; box-shadow: var(--shadow); }
.app-dialog::backdrop { background: rgba(8, 14, 32, 0.6); backdrop-filter: blur(6px); }
.app-dialog[open] { animation: dialog-in 0.18s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.app-dialog__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; }
.app-dialog__close:hover { background: var(--surface-2); color: var(--text); }
.app-dialog__title { font-size: 1.45rem; margin: 18px 0 10px; letter-spacing: -0.02em; }
.app-dialog__text { color: var(--text-2); margin: 0 auto 26px; max-width: 34ch; }
.app-dialog__art { width: 104px; height: auto; margin: 0 auto; }
.art-frame { fill: none; stroke: var(--text-2); stroke-width: 3; stroke-linejoin: round; }
.art-dot { fill: var(--text-2); }
.art-alert { fill: var(--surface); stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.art-alert-dot { fill: var(--accent); }
.app-dialog__retry { min-width: 200px; }
.app-dialog__retry .icon { width: 1.1em; height: 1.1em; }
.app-dialog__foot { margin: 22px 0 0; color: var(--text-2); font-size: 0.925rem; }
.app-dialog__foot a { display: block; width: fit-content; margin: 6px auto 0; color: var(--accent-text); text-decoration-thickness: 1px; }
.app-spinner { display: block; width: 52px; height: 52px; margin: 6px auto 0; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .app-spinner { animation-duration: 2.4s; } .app-dialog[open] { animation: none; } }
.app-dialog [data-state="loading"] .app-dialog__text { margin-bottom: 4px; }

/* Market table animation */
.market__table .m-spark { width: 110px; padding-top: 3px; padding-bottom: 3px; }
.spark { display: block; width: 96px; height: 28px; overflow: visible; }
.spark path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark.up path { stroke: var(--success); }
.spark.down path { stroke: var(--danger); }

/* Entrance: rows rise in one after another; the sparkline draws itself (JS adds .m-enter and --i) */
.market__table tr.m-enter { animation: row-in 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
.market__table tr.m-enter .spark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: spark-draw 0.9s ease-out forwards; animation-delay: calc(var(--i, 0) * 55ms + 0.15s); }
.market__table tr.m-enter .coin { animation: coin-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 0.05s); }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spark-draw { to { stroke-dashoffset: 0; } }
@keyframes coin-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Live ticks: price flashes green or red with the direction of the move */
.market__table td.tick-up { animation: tick-up 1.4s ease-out; }
.market__table td.tick-down { animation: tick-down 1.4s ease-out; }
@keyframes tick-up { 0% { background: rgba(61, 214, 140, 0.22); color: var(--success); } 100% { background: transparent; } }
@keyframes tick-down { 0% { background: rgba(255, 107, 107, 0.22); color: var(--danger); } 100% { background: transparent; } }

/* Hover: the row lights up and the icon lifts */
.market__table tbody tr { transition: background 0.2s ease; }
.market__table .coin { transition: transform 0.2s ease; }
.market__table tbody tr:hover .coin { transform: scale(1.15) rotate(-6deg); }
.market__table tbody tr:hover .m-label strong { color: var(--accent-text); }

/* Pager: the active page slides in */
.pager-btn[aria-current="page"] { animation: pager-pop 0.25s ease-out; }
@keyframes pager-pop { from { transform: scale(0.8); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .market__table tr.m-enter, .market__table tr.m-enter .coin, .pager-btn[aria-current="page"] { animation: none; }
  .market__table tr.m-enter .spark path { animation: none; stroke-dashoffset: 0; }
  .market__table td.tick-up, .market__table td.tick-down { animation-duration: 0.01s; }
  .market__table tbody tr:hover .coin { transform: none; }
}

/* Download hero: 3D laptop running the desktop app (pure CSS 3D, no images) */
:root {
  --lt-metal-hi: #3A4C80; --lt-metal: #2A3A66; --lt-metal-lo: #18244A; --lt-edge: #101A38;
  --lt-bezel: #0A1128; --lt-key: #0E1834; --lt-key-gap: #22325E; --lt-glow: rgba(229, 128, 62, 0.22);
  --lt-shadow: rgba(3, 8, 24, 0.55);
}
:root[data-theme="light"] {
  --lt-metal-hi: #F2F4F8; --lt-metal: #D9DEE8; --lt-metal-lo: #B7BFCF; --lt-edge: #9AA4B8;
  --lt-bezel: #0F1733; --lt-key: #2B3344; --lt-key-gap: #C9D0DC; --lt-glow: rgba(229, 128, 62, 0.16);
  --lt-shadow: rgba(19, 32, 63, 0.28);
}
.dl-page { overflow-x: clip; }
.dl-hero { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 24px; margin-bottom: 36px; }
.dl-hero .dl-lead { margin-bottom: 22px; }
.dl-hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) { .dl-hero { grid-template-columns: 1fr; gap: 8px; } }

.lt-stage { position: relative; perspective: 3200px; perspective-origin: 50% 40%; padding: 8% 7% 24%; }
.lt-stage::before { content: ""; position: absolute; inset: 0 5% 10%; background: radial-gradient(closest-side, var(--lt-glow), transparent 75%); filter: blur(10px); pointer-events: none; }
.lt-tilt { --px: 0; --py: 0; transform-style: preserve-3d; transform: rotateY(calc(-14deg + var(--px) * 8deg)) rotateX(calc(-13deg + var(--py) * 4deg)); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lt { position: relative; width: 100%; aspect-ratio: 16 / 10.4; transform-style: preserve-3d; animation: lt-float 7s ease-in-out 2s infinite; }
@keyframes lt-float { 0%, 100% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-12px) rotateY(3deg); } }

/* Lid */
.lt-lid { position: absolute; inset: 0; transform-origin: 50% 100%; transform-style: preserve-3d; transform: rotateX(13deg); animation: lt-open 1.6s cubic-bezier(0.25, 0.9, 0.25, 1) 0.25s both; border-radius: 3.2% 3.2% 0.6% 0.6% / 5% 5% 1% 1%; background: linear-gradient(160deg, var(--lt-metal-hi), var(--lt-metal-lo)); box-shadow: inset 0 0 0 1px var(--lt-edge); }
@keyframes lt-open { from { transform: rotateX(-88deg); } to { transform: rotateX(13deg); } }
.lt-lid__edge { position: absolute; top: 2%; left: 100%; width: 6px; height: 97%; transform-origin: 0 50%; transform: rotateY(90deg); background: linear-gradient(var(--lt-metal), var(--lt-edge)); border-radius: 0 3px 3px 0; }
.lt-bezel { position: absolute; inset: 1.1%; border-radius: 2.6% 2.6% 0.4% 0.4% / 4% 4% 0.7% 0.7%; background: var(--lt-bezel); padding: 2.6% 2.2% 4.6%; overflow: hidden; }
.lt-cam { position: absolute; top: 1.1%; left: 50%; width: 0.7%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3B4A7A, #050914 70%); transform: translateX(-50%); }
.lt-brand { position: absolute; bottom: 1.6%; left: 50%; transform: translateX(-50%); font-size: clamp(6px, 0.9vw, 10px); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); opacity: 0.55; }
.lt-glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 32%, transparent 33%, transparent 100%); pointer-events: none; }
.lt-screen { position: relative; height: 100%; border-radius: 4px; overflow: hidden; background: var(--bg-alt); container-type: inline-size; }

/* Base */
.lt-base { position: absolute; top: 100%; left: -4.5%; width: 109%; aspect-ratio: 1.62; transform-origin: 50% 0; transform: rotateX(90deg); transform-style: preserve-3d; border-radius: 0.5% 0.5% 4% 4% / 0.8% 0.8% 6% 6%; background: linear-gradient(180deg, var(--lt-metal-lo), var(--lt-metal) 18%, var(--lt-metal-hi)); box-shadow: inset 0 0 0 1px var(--lt-edge); }
.lt-keys { position: absolute; top: 9%; left: 11%; right: 11%; height: 44%; border-radius: 3px; background-color: var(--lt-key-gap);
  background-image: repeating-linear-gradient(90deg, var(--lt-key) 0 calc(100% / 14 - 2px), transparent calc(100% / 14 - 2px) calc(100% / 14)),
    repeating-linear-gradient(180deg, transparent 0 calc(100% / 6 - 2px), var(--lt-key-gap) calc(100% / 6 - 2px) calc(100% / 6));
  background-blend-mode: normal; box-shadow: inset 0 0 0 2px var(--lt-key-gap); opacity: 0.95; }
.lt-pad { position: absolute; top: 59%; left: 33%; width: 34%; height: 30%; border-radius: 6px; background: linear-gradient(160deg, var(--lt-metal-hi), var(--lt-metal)); box-shadow: inset 0 0 0 1px var(--lt-edge); }
.lt-notch { position: absolute; bottom: 0; left: 43%; width: 14%; height: 1.6%; border-radius: 6px 6px 0 0; background: var(--lt-edge); }
.lt-base__lip { position: absolute; top: 100%; left: 2%; width: 96%; height: 9px; transform-origin: 50% 0; transform: rotateX(-90deg); background: linear-gradient(var(--lt-metal), var(--lt-edge)); border-radius: 0 0 10px 10px; }
.lt-base__side { position: absolute; top: 1%; left: 100%; width: 9px; height: 96%; transform-origin: 0 50%; transform: rotateY(90deg); background: linear-gradient(90deg, var(--lt-metal), var(--lt-edge)); border-radius: 0 6px 6px 0; }
.lt-shadow { position: absolute; left: 10%; right: 4%; bottom: 7%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, var(--lt-shadow), transparent); filter: blur(6px); animation: lt-shadow 7s ease-in-out 2s infinite; }
@keyframes lt-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.92); opacity: 0.75; } }

/* App UI on the screen (sized in container units so it scales with the laptop) */
.lt-ui { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 1.62cqw; line-height: 1.35; color: var(--text); animation: lt-boot 0.7s ease-out 1.5s both; }
@keyframes lt-boot { from { opacity: 0; filter: brightness(2.2) blur(2px); } to { opacity: 1; filter: none; } }
.lt-ui svg.icon { width: 1.2em; height: 1.2em; }
.lt-ui small { display: block; font-size: 0.82em; color: var(--text-2); }
.lt-ui b { font-weight: 650; }
.lt-bar { display: flex; align-items: center; gap: 0.45em; height: 2.1em; padding: 0 0.9em; background: var(--header); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.lt-bar i { width: 0.65em; height: 0.65em; border-radius: 50%; background: var(--danger); }
.lt-bar i:nth-child(2) { background: var(--warn); }
.lt-bar i:nth-child(3) { background: var(--success); }
.lt-bar span { margin: 0 auto; padding-right: 3em; font-size: 0.85em; color: var(--text-2); }
.lt-body { flex: 1; display: grid; grid-template-columns: 10.5em 1fr; min-height: 0; }
.lt-side { display: flex; flex-direction: column; gap: 0.25em; padding: 0.9em 0.7em; background: var(--bg); border-right: 1px solid var(--border); }
.lt-logo { display: flex; align-items: center; gap: 0.45em; font-weight: 700; margin-bottom: 0.7em; }
.lt-logo svg { width: 1.5em; height: 1.5em; }
.lt-logo img { height: 1.4em; width: auto; }
.lt-nav { display: flex; align-items: center; gap: 0.55em; padding: 0.42em 0.6em; border-radius: 0.45em; color: var(--text-2); font-size: 0.92em; }
.lt-nav.is-active { background: var(--accent-soft); color: var(--accent-text); }
.lt-side__foot { margin-top: auto; display: flex; gap: 0.4em; align-items: flex-start; font-size: 0.72em; color: var(--text-2); }
.lt-side__foot .icon { color: var(--success); }
.lt-main { display: flex; flex-direction: column; gap: 0.75em; padding: 0.95em 1.1em; min-width: 0; }
.lt-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; }
.lt-label { display: block; font-size: 0.8em; color: var(--text-2); }
.lt-total { display: block; font-size: 2.05em; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.lt-chg { display: inline-block; margin-top: 0.2em; padding: 0.1em 0.5em; border-radius: 99px; font-size: 0.78em; font-weight: 600; }
.lt-chg.up, .lt-ui .up { color: var(--success); }
.lt-chg.down, .lt-ui .down { color: var(--danger); }
.lt-chg.up { background: color-mix(in srgb, var(--success) 14%, transparent); }
.lt-chg.down { background: var(--danger-soft); }
.lt-actions { display: flex; gap: 0.4em; }
.lt-btn { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.42em 0.75em; border-radius: 0.5em; background: var(--surface-2); font-size: 0.85em; font-weight: 600; }
.lt-btn--accent { background: var(--accent); color: var(--accent-ink); }
.lt-chart { position: relative; height: 7.2em; border-radius: 0.7em; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.lt-chart svg { position: absolute; inset: 1.6em 0 0; width: 100%; height: calc(100% - 1.6em); }
.lt-range { position: absolute; top: 0.4em; right: 0.6em; display: flex; gap: 0.2em; font-size: 0.72em; color: var(--text-2); z-index: 1; }
.lt-range b { padding: 0.1em 0.5em; border-radius: 0.4em; font-weight: 600; }
.lt-range b.is-on { background: var(--surface-2); color: var(--text); }
.lt-grad-a { stop-color: var(--accent); stop-opacity: 0.35; }
.lt-grad-b { stop-color: var(--accent); stop-opacity: 0; }
.lt-area { fill: url(#lt-grad); animation: lt-fade 1s ease-out 2.3s both; }
.lt-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: spark-draw 1.4s ease-out 1.9s forwards; }
@keyframes lt-fade { from { opacity: 0; } to { opacity: 1; } }
.lt-list { display: flex; flex-direction: column; border-radius: 0.7em; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.lt-row { display: flex; align-items: center; gap: 0.7em; padding: 0.42em 0.8em; animation: row-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.lt-row + .lt-row { border-top: 1px solid var(--border); }
.lt-row[data-i="0"] { animation-delay: 2s; } .lt-row[data-i="1"] { animation-delay: 2.08s; } .lt-row[data-i="2"] { animation-delay: 2.16s; } .lt-row[data-i="3"] { animation-delay: 2.24s; } .lt-row[data-i="4"] { animation-delay: 2.32s; }
.lt-row .coin { width: 1.8em; height: 1.8em; font-size: 0.8em; }
.lt-name { flex: 1; min-width: 0; font-size: 0.92em; }
.lt-val { text-align: right; font-size: 0.92em; font-variant-numeric: tabular-nums; }
.lt-toast { position: absolute; right: 1.1em; bottom: 1.1em; display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.9em; border-radius: 0.7em; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 0.9em; opacity: 0; animation: lt-toast 9s ease-in-out 3.5s infinite; }
.lt-toast__ico { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
@keyframes lt-toast { 0%, 100% { opacity: 0; transform: translateY(1.2em); } 6%, 40% { opacity: 1; transform: none; } 48% { opacity: 0; transform: translateY(-0.4em); } }

@media (prefers-reduced-motion: reduce) {
  .lt, .lt-shadow, .lt-toast { animation: none; }
  .lt-lid, .lt-ui, .lt-row, .lt-area { animation: none; }
  .lt-line { animation: none; stroke-dashoffset: 0; }
  .lt-tilt { transition: none; }
}
.lt-main > *, .lt-row { flex-shrink: 0; }
.lt-main { min-height: 0; overflow: hidden; }
.lt-chart { height: 6.4em; }

/* Supported assets: two rows drifting in opposite directions (each track is duplicated for a seamless loop) */
.ac { display: grid; gap: 12px; margin: 0 0 20px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ac__row { display: flex; width: max-content; animation: ac-left 70s linear infinite; }
.ac__row--rev { animation-name: ac-right; animation-duration: 80s; }
.ac:hover .ac__row, .ac:focus-within .ac__row { animation-play-state: paused; }
.ac__track { display: flex; gap: 12px; padding: 4px 12px 4px 0; margin: 0; list-style: none; }
@keyframes ac-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ac-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.ac .asset-chip { min-width: 200px; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s; }
.ac .asset-chip:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.ac .asset-chip .coin { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ac .asset-chip:hover .coin { transform: rotateY(360deg); }
.ac__soon { margin-left: auto; padding: 2px 7px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) {
  .ac { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
  .ac__row { animation: none; }
  .ac__track[aria-hidden="true"] { display: none; }
}
.ac { overflow: hidden; }
.asset-chip > span:nth-child(2) { display: grid; line-height: 1.3; }

/* Scroll reveal (classes added by main.js only when motion is allowed) */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--rv-i, 0) * 70ms); }
.rv.is-in { opacity: 1; transform: none; }
.motion .rv-pop { transform: scale(0.4); opacity: 0; }
.is-in .rv-pop, .rv-seen .rv-pop { animation: rv-pop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) forwards; animation-delay: calc(var(--rv-i, 0) * 70ms + 0.2s); }
@keyframes rv-pop { to { transform: none; opacity: 1; } }

/* Encryption chain: the line draws down and each step's dot pops in turn; the last one keeps a soft pulse */
.chain li { border-left-color: transparent; }
.chain li::after { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--accent), var(--border)); transform-origin: 50% 0; }
.chain li:last-child::after { display: none; }
.chain li::before { z-index: 1; }
.motion .chain li::after { transform: scaleY(0); }
.motion .chain li::before { transform: scale(0); }
.chain li.is-in::after, .chain li.rv-seen::after { animation: chain-line 0.55s ease-out forwards; animation-delay: calc(var(--rv-i, 0) * 70ms + 0.3s); }
.chain li.is-in::before, .chain li.rv-seen::before { animation: rv-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; animation-delay: calc(var(--rv-i, 0) * 70ms + 0.15s); }
.chain li:last-child.is-in::before, .chain li:last-child.rv-seen::before, html:not(.motion) .chain li:last-child::before { animation: rv-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) forwards, dot-glow 2.6s ease-in-out 1.2s infinite; animation-delay: calc(var(--rv-i, 0) * 70ms + 0.15s), 1.4s; }
@keyframes chain-line { to { transform: scaleY(1); } }
@keyframes dot-glow { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); } 50% { box-shadow: 0 0 0 8px var(--accent-soft); } }
.chain li strong { transition: color 0.2s; }
.chain li:hover strong { color: var(--accent-text); }

/* Small touches */
.layer--key { animation: key-glow 3.2s ease-in-out infinite; }
@keyframes key-glow { 0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); } 50% { box-shadow: 0 0 0 7px var(--accent-soft), 0 18px 40px -18px rgba(229, 128, 62, 0.45); } }
.card, .layer, .feature-list li, .flow li { transition: border-color 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rv-seen.card:hover, .rv-seen.layer:hover, .feature-list li.rv-seen:hover, .flow li.rv-seen:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.feature-list li:hover .icon, .card:hover .feature__icon { transform: rotate(-8deg) scale(1.08); }
.feature-list .icon, .feature__icon { transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1); }

@media (prefers-reduced-motion: reduce) {
  .layer--key, .chain li:last-child::before { animation: none !important; }
}

/* Home hero laptop */
.hero { overflow-x: clip; }
.hero__visual--laptop .lt-stage { padding: 4% 4% 22%; }

/* Anatomy of a send: centred step cards joined by a flowing track */
.section__head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.flow-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; padding: 0; margin: 14px 0 0; color: var(--text-2); font-size: 0.875rem; }
.flow-legend li { display: inline-flex; align-items: center; gap: 7px; }
.flow-legend .icon { width: 16px; height: 16px; }
.flow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--info); }
.flow-dot--server { background: var(--text-2); }
.flow-dot--key { background: var(--accent); }

.flow { --gap: 14px; position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); list-style: none; padding: 0; margin: 40px 0 0; }
.flow__step { position: relative; z-index: 1; flex: 0 0 calc((100% - 6 * var(--gap)) / 7); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 14px 22px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s; }
.flow__step:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow); }
.flow__step p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--text); }
.flow__ico { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--info) 28%, transparent); transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.flow__ico > .icon { width: 25px; height: 25px; }
.flow__step:hover .flow__ico { transform: translateY(-2px) rotate(-6deg); }
.flow__n { position: absolute; top: -8px; right: -10px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: var(--bg); border: 1px solid var(--border); color: var(--text-2); font-size: 0.7rem; font-weight: 700; }
.flow__where { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: color-mix(in srgb, var(--info) 12%, transparent); color: var(--info); }
.flow__where .icon { width: 12px; height: 12px; }
.flow__step--server .flow__ico { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); }
.flow__step--server .flow__where { background: var(--surface-2); color: var(--text-2); }
.flow__step--key { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.flow__step--key .flow__ico { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px var(--accent); }
.flow__step--key .flow__where { background: var(--accent-soft); color: var(--accent-text); }
.flow__step--key .flow__n { border-color: var(--accent); color: var(--accent-text); }

/* Track behind the cards (visible in the gaps), with a dot travelling along it */
.flow::before, .flow::after { content: ""; position: absolute; top: 51px; pointer-events: none; }
.flow::before { left: 7%; right: 7%; height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px); background-size: 14px 2px; animation: flow-dash 1.2s linear infinite; }
.flow::after { left: 7%; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px var(--accent); z-index: 2; animation: flow-run 7s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes flow-dash { to { background-position: 14px 0; } }
@keyframes flow-run { 0% { left: 7%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { left: 93%; opacity: 0; } }

@media (max-width: 1099px) {
  .flow::before, .flow::after { display: none; }
  .flow__step { flex-basis: calc((100% - 3 * var(--gap)) / 4); }
}
@media (max-width: 640px) { .flow__step { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (prefers-reduced-motion: reduce) { .flow::before, .flow::after { animation: none; } .flow::after { display: none; } }
.flow__where .icon { margin: 0; }
.flow::after { z-index: 0; }
@media (min-width: 1100px) { .flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* Learn: centred guide cards with a topic icon */
.page-hero--center { text-align: center; }
.page-hero--center .wrap > * { margin-inline: auto; }
.page-hero--center h1 { max-width: 22ch; }
.page-hero--center .lead { max-width: 60ch; }
.guide-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .guide-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card { align-items: center; text-align: center; gap: 10px; padding: 32px 28px 28px; }
.guide-card h2, .guide-card h3 { margin: 4px 0 0; }
.guide-card p { margin: 0; max-width: 46ch; }
.guide-card .link-arrow { margin-top: 8px; color: var(--accent-text); }
.guide-card__ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.2s, color 0.2s; }
.guide-card__ico .icon { width: 26px; height: 26px; }
.guide-card:hover .guide-card__ico { transform: translateY(-2px) rotate(-6deg); background: var(--accent); color: var(--accent-ink); }
.guide-card__meta { display: inline-flex; gap: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.guide-card__meta span:first-child { color: var(--accent-text); }

/* Guide article */
.guide__head { padding: 56px 0 36px; text-align: center; background: radial-gradient(700px 300px at 50% 0, var(--surface-2), transparent 70%); }
.guide__head .breadcrumb { justify-content: center; }
.guide__head h1 { max-width: 22ch; margin-inline: auto; }
.guide__head .lead { max-width: 60ch; margin-inline: auto; }
.guide__ico { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 18px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 16px 34px -14px var(--accent); }
.guide__ico .icon { width: 32px; height: 32px; }
.guide__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; color: var(--text-2); font-size: 0.875rem; }
.guide__meta span + span::before { content: "·"; margin-right: 18px; color: var(--border); }
.guide__layout { display: grid; gap: 28px; padding-bottom: 72px; max-width: 760px; }
@media (min-width: 1100px) { .guide__layout { max-width: none; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: 56px; } }
.guide__toc { align-self: start; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 1100px) { .guide__toc { position: sticky; top: 96px; padding: 4px 0 4px 18px; border: 0; border-left: 1px solid var(--border); border-radius: 0; background: none; } }
.guide__toc-title { margin: 0 0 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.guide__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.guide__toc li { counter-increment: toc; }
.guide__toc a { display: flex; gap: 10px; padding: 5px 0; font-size: 0.9rem; line-height: 1.4; color: var(--text-2); text-decoration: none; transition: color 0.15s; }
.guide__toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; font-size: 0.75rem; padding-top: 2px; color: var(--border); transition: color 0.15s; }
.guide__toc a:hover, .guide__toc a.is-active { color: var(--text); }
.guide__toc a.is-active::before { color: var(--accent-text); }
.guide__body { min-width: 0; }
.guide .prose h2 { scroll-margin-top: 96px; padding-top: 0.4em; }
.guide .prose h2::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 14px; border-radius: 3px; background: var(--accent); }
.guide .prose table { display: block; overflow-x: auto; }
.guide .prose td code, .guide .prose th code { white-space: nowrap; }
.guide .prose p code, .guide .prose li code { overflow-wrap: anywhere; }
.guide .prose ul li::marker { color: var(--accent-text); }
.takeaways { margin-bottom: 12px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.takeaways h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.takeaways h2 .icon { color: var(--success); }
.takeaways ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--text-2); }
.guide__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.guide__cta div { display: grid; gap: 2px; }
.guide__ico { display: grid; margin: 0 auto 18px; }
.guide__head .eyebrow { display: flex; justify-content: center; }

/* Centred cards with an icon tile (About, Support) */
.ic-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 30px 26px 28px; }
.ic-card h2, .ic-card h3 { margin: 4px 0 0; }
.ic-card p { margin: 0; max-width: 40ch; }
.ic-card .link-arrow { margin-top: 6px; color: var(--accent-text); }
.ic-card__ico { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.2s, color 0.2s; }
.ic-card__ico .icon { width: 26px; height: 26px; }
.ic-card:hover .ic-card__ico { transform: translateY(-2px) rotate(-6deg); background: var(--accent); color: var(--accent-ink); }
.ic-card__ico--sm { width: 38px; height: 38px; border-radius: 11px; }
.ic-card__ico--sm .icon { width: 20px; height: 20px; }
.ic-card__count { margin-top: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }

/* Support page */
.support-hero .guide__ico { display: grid; margin: 0 auto 18px; }
.support-hero .eyebrow { display: flex; justify-content: center; }
.support-search { display: flex; max-width: 560px; margin: 26px auto 0; }
.support-search input { font-size: 1rem; }
.support-search__hint { min-height: 1.5em; margin-top: 10px; }
.support-alert { display: flex; gap: 16px; align-items: flex-start; max-width: 860px; margin: 0 auto 22px; padding: 18px 22px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.support-alert__ico { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.support-alert div { display: grid; gap: 2px; }
.support-alert span:not(.support-alert__ico) { color: var(--text-2); }
.support-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 860px; margin: 0 auto; }
.support-status__item { flex: 1 1 220px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.support-status__item > .icon { color: var(--text-2); }
.support-status__item span { display: grid; line-height: 1.35; }
.support-status__item small { color: var(--text-2); font-size: 0.85rem; }
.support-status__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin: 0 4px; }
.support-status__dot--live { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent); animation: dot-live 2.4s ease-in-out infinite; }
.support-status__dot--delayed { background: var(--warn); }
.support-status__dot--down { background: var(--danger); }
@keyframes dot-live { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 8%, transparent); } }
.support-topics-head { margin-top: 56px; }
.support-topics { display: grid; gap: 16px; }
@media (min-width: 640px) { .support-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .support-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.faq-wrap { max-width: 860px; display: grid; gap: 44px; }
.faq-group { scroll-margin-top: 90px; }
.faq-group__title { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.35rem; margin: 0 0 18px; }
.faq-list { display: grid; gap: 10px; }
.faq { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color 0.2s; }
.faq[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq__chev { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s; }
.faq__chev .icon { width: 15px; height: 15px; transform: rotate(90deg); }
.faq[open] .faq__chev { transform: rotate(180deg); background: var(--accent); color: var(--accent-ink); }
.faq__a { padding: 0 20px 18px; font-size: 0.975rem; color: var(--text-2); animation: faq-open 0.3s ease-out; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a .code { margin: 0.5em 0 1em; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-empty { text-align: center; }

.support-contact { margin-bottom: 28px; }
@media (min-width: 900px) { .support-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.support-contact .link-arrow { overflow-wrap: anywhere; }
.support-checklist { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
@media (min-width: 720px) { .support-checklist { grid-template-columns: 1fr 1fr; } }
.support-checklist > div { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.support-checklist h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.support-checklist h3 .icon { color: var(--success); }
.support-checklist__never .icon { color: var(--danger) !important; }
.support-checklist ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .support-status__dot--live, .faq__a { animation: none; } }

/* Themed icons across blocks */
.hero-ico { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 16px 34px -14px var(--accent); animation: hero-ico-in 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.hero-ico .icon { width: 28px; height: 28px; }
.page-hero--center .hero-ico, .center .hero-ico { margin-inline: auto; }
@keyframes hero-ico-in { from { opacity: 0; transform: scale(0.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
.t-ico { display: flex; align-items: center; gap: 12px; }
.t-ico .ic-card__ico { flex-shrink: 0; }
.steps__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.steps__top .steps__n { margin-bottom: 0; }
.cta-band__ico { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.cta-band__ico .icon { width: 26px; height: 26px; }
.chain li strong { display: inline-flex; align-items: center; gap: 2px; }
.chain li strong .icon, .table th .icon, .table--threats td:first-child .icon { color: var(--accent-text); }
.table th .icon--xs, .table--threats td:first-child .icon--xs { margin-right: 8px; }
.eyebrow .icon { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .hero-ico { animation: none; } }
.cta-band > div { flex: 1 1 320px; }

/* ---------- Responsive: phones and small tablets ---------- */
.m-act { gap: 5px; }
.m-act .icon { width: 12px; height: 12px; }

@media (max-width: 600px) {
  /* Long inline code (paths, commands) wraps instead of pushing the page sideways */
  p code, li code, .faq__a code { white-space: normal; overflow-wrap: anywhere; }

  /* Market table: readable sizes, bigger tap targets */
  .market__table td { font-size: 0.9rem; padding-top: 8px; padding-bottom: 8px; }
  .market__table th { font-size: 0.72rem; }
  .market__table .coin { width: 26px; height: 26px; }
  .market__table .m-label strong { font-size: 0.9rem; }
  .market__title { font-size: 0.8rem; }
  .market__meta, .pager-info { font-size: 0.78rem; }
  .pager-btn { min-width: 38px; height: 38px; font-size: 0.85rem; }
  .flow__where { font-size: 0.7rem; }
  .flow__n { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  /* Trade / Deposit become icon buttons under the ticker so price and 24h stay visible */
  .market__table .m-rank { display: none; }
  .market__table .m-name .asset-cell { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 6px; align-items: center; }
  .market__table .asset-cell > .m-actions { grid-column: 2; margin-left: 0; padding-left: 0; gap: 6px; }
  .m-act { width: 34px; height: 30px; padding: 0; border-radius: 8px; }
  .m-act .icon { width: 15px; height: 15px; }
  .m-act__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .market__table th, .market__table td { padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 640px) {
  /* Download table becomes one card per build */
  .dl-scroll { border: 0; overflow: visible; }
  .dl-table { min-width: 0; display: block; }
  .dl-table thead { display: none; }
  .dl-table tbody { display: block; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .dl-table tr { display: block; }
  .dl-group th { display: block; }
  .dl-row { display: grid !important; grid-template-columns: 1fr auto; gap: 12px 10px; padding: 16px; background: var(--bg); }
  .dl-row td { display: block; padding: 0; border: 0 !important; background: none !important; }
  .dl-row.is-recommended { background: var(--accent-soft); }
  .dl-arch { min-width: 0; gap: 10px; justify-content: flex-start; }
  .dl-size { grid-column: 2; grid-row: 1; width: auto; color: var(--text-2); }
  .dl-file, .dl-sig { grid-column: 1 / -1; white-space: normal; }
  .dl-chip { display: flex; justify-content: space-between; width: 100%; }
  .dl-chip code { white-space: normal; overflow-wrap: anywhere; flex: 1; }
  .dl-badge { display: inline-block; margin: 8px 0 0; }

  /* Assets table becomes one card per coin */
  .table-scroll:has(.table--assets) { overflow: visible; border: 0; background: none; }
  .table--assets { min-width: 0; display: block; }
  .table--assets thead { display: none; }
  .table--assets tbody { display: grid; gap: 10px; }
  .table--assets tr { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .table--assets tr[hidden] { display: none; }
  .table--assets td { display: block; padding: 0; border: 0; }
  .table--assets .a-asset { grid-column: 1; }
  .table--assets .a-status { grid-column: 2; grid-row: 1; align-self: center; }
  .table--assets .a-net, .table--assets .a-model, .table--assets .a-path { grid-column: 1 / -1; font-size: 0.9rem; }
  .table--assets td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
  .table--assets code { white-space: normal; overflow-wrap: anywhere; }

  /* Threats table: keep it scrollable but give the first column room */
  .table--threats td:first-child { min-width: 180px; }
}

/* ===== Closing splash (home when the service is wound down) ===== */
.closing { background: var(--bg); padding: clamp(0.75rem, 2vw, 1.5rem); }
.closing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  max-width: var(--wrap);
  margin: 0 auto;
}
.closing__panel {
  border-radius: var(--radius-xl);
  min-height: clamp(380px, 68vh, 640px);
  display: flex;
  padding: clamp(1.75rem, 4vw, 3.5rem);
}
.closing__panel--msg { background: var(--surface-2); align-items: center; }
.closing__panel--brand {
  background: var(--accent);
  color: var(--accent-ink);
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.closing__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2);
  margin: 0 0 0.75rem;
}
.closing__title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1.5rem;
}
.closing__sub {
  color: var(--accent-text);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.45;
  margin: 0 0 1.75rem;
}
.closing__cta { padding-inline: 2rem; }
.closing__art { width: 100%; max-width: 360px; margin: auto; }
.closing__art svg { width: 100%; height: auto; display: block; }
.closing__sign { text-align: center; max-width: 42ch; }
.closing__sign h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--accent-ink);
  margin: 0 0 0.6rem;
}
.closing__sign p {
  color: var(--accent-ink);
  opacity: 0.82;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 860px) {
  .closing__grid { grid-template-columns: 1fr; }
  .closing__panel { min-height: 0; }
  .closing__panel--brand { padding-block: clamp(2rem, 8vw, 3rem); }
}

/* ===== 3D coin stack (closing splash): CSS 3D fallback, CSP-safe ===== */
.coin3d {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 340px;
  margin: 0 auto;
  perspective: 1000px;
}
/* WebGL canvas (progressive enhancement); hidden until /js/coin-scene.js
   confirms WebGL and adds .coin3d--gl, at which point the CSS stack hides. */
.coin3d__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.coin3d__fallback { position: absolute; inset: 0; }
.coin3d--gl .coin3d__gl { display: block; }
.coin3d--gl .coin3d__fallback { display: none; }
.coin3d__tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateY(0) rotateX(62deg);
  animation: coinFloat 4.6s ease-in-out infinite;
}
.coin3d__spin {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: coinSpin 16s linear infinite;
  will-change: transform;
}
.coin3d .coin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 156px;
  height: 156px;
  margin: -78px 0 0 -78px;
  background: none;
  box-shadow: none;
  transform-style: preserve-3d;
  transform: translateZ(var(--z));
}
.coin__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%,
      var(--coin-hi) 0%, var(--coin-mid) 46%, var(--coin-lo) 82%, var(--coin-edge) 100%);
  box-shadow:
    inset 0 0 0 3px var(--coin-rim),
    inset 0 0 0 12px rgba(255, 255, 255, 0.10),
    inset 0 0 18px rgba(154, 110, 34, 0.45);
  backface-visibility: hidden;
}
.coin__face::before { /* embossed inner ring */
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  box-shadow:
    inset 0 2px 5px rgba(154, 110, 34, 0.55),
    inset 0 -2px 4px var(--coin-shine);
  background: radial-gradient(circle at 42% 34%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%);
}
.coin__face::after { /* soft specular glint */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, var(--coin-shine) 0%, rgba(255,255,255,0) 34%);
  mix-blend-mode: screen;
}
.coin__face--top { transform: translateZ(9px); }
.coin__face--bottom { transform: translateZ(-9px) rotateX(180deg); filter: brightness(0.82); }
.coin__seg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;   /* = coin thickness (maps to Z after transform) */
  height: 26px;  /* tangential chord, with overlap */
  margin: -13px 0 0 -9px;
  background: linear-gradient(to right,
    var(--coin-rim) 0%, var(--coin-rim-hi) 42%, var(--coin-rim) 100%);
  transform: rotateZ(var(--a)) translateX(78px) rotateY(90deg);
  backface-visibility: hidden;
}
.coin3d__shadow {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 190px;
  height: 42px;
  margin-left: -95px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--coin-shadow) 0%, rgba(6,12,34,0) 70%);
  filter: blur(3px);
  animation: coinShadow 4.6s ease-in-out infinite;
}
@keyframes coinSpin { from { transform: rotateZ(0); } to { transform: rotateZ(360deg); } }
@keyframes coinFloat {
  0%, 100% { transform: translateY(6px) rotateX(62deg); }
  50%      { transform: translateY(-10px) rotateX(62deg); }
}
@keyframes coinShadow {
  0%, 100% { transform: scaleX(1);    opacity: 0.55; }
  50%      { transform: scaleX(0.82); opacity: 0.38; }
}
@media (prefers-reduced-motion: reduce) {
  .coin3d__tilt { animation: none; transform: rotateX(62deg); }
  .coin3d__spin { animation: none; transform: rotateZ(18deg); }
  .coin3d__shadow { animation: none; }
}

/* Indexed custom-props for the CSS fallback stack (no inline styles -> CSP style-src 'self' clean) */
.coin--0 { --z: -36.0px; }
.coin--1 { --z: -12.0px; }
.coin--2 { --z: 12.0px; }
.coin--3 { --z: 36.0px; }
.coin__seg--0 { --a: 0.00deg; }
.coin__seg--1 { --a: 16.36deg; }
.coin__seg--2 { --a: 32.73deg; }
.coin__seg--3 { --a: 49.09deg; }
.coin__seg--4 { --a: 65.45deg; }
.coin__seg--5 { --a: 81.82deg; }
.coin__seg--6 { --a: 98.18deg; }
.coin__seg--7 { --a: 114.55deg; }
.coin__seg--8 { --a: 130.91deg; }
.coin__seg--9 { --a: 147.27deg; }
.coin__seg--10 { --a: 163.64deg; }
.coin__seg--11 { --a: 180.00deg; }
.coin__seg--12 { --a: 196.36deg; }
.coin__seg--13 { --a: 212.73deg; }
.coin__seg--14 { --a: 229.09deg; }
.coin__seg--15 { --a: 245.45deg; }
.coin__seg--16 { --a: 261.82deg; }
.coin__seg--17 { --a: 278.18deg; }
.coin__seg--18 { --a: 294.55deg; }
.coin__seg--19 { --a: 310.91deg; }
.coin__seg--20 { --a: 327.27deg; }
.coin__seg--21 { --a: 343.64deg; }
