/* ==========================================================
   SEAL for platforms: a product page in a centred, structured
   layout. No hairlines and no glows: structure comes from
   spacing and quiet surfaces. One picture (the imprint) behind
   the hero, and one ASCII seal that writes itself on arrival.
   ========================================================== */

body.pfx { background: #050506; }
body.pfx .nav { background: rgba(5, 5, 6, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

:root { --wrap: 1140px; --surf: #0d0e10; --surf-2: #08090a; --txt: #a3a7b0; --txt-2: #7c818b; }

/* ---------- the picture: three quarters of its old height ---------- */
.px-bg { position: absolute; top: -56px; left: 0; right: 0; height: min(88vh, 885px); z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.6) 0%, rgba(5, 5, 6, 0.7) 45%, #050506 94%), url("brand/imprint-web.jpg") center 38% / cover no-repeat; opacity: 0.9; }
.px-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(5, 5, 6, 0.75) 100%); }

/* ---------- buttons ---------- */
.px-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 8px; background: #fff; color: #050506; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; transition: background 0.2s; white-space: nowrap; }
.px-btn:hover { background: #dfe3ea; }
.px-btn--lg { height: 44px; padding: 0 22px; font-size: 14.5px; border-radius: 9px; }
.px-ghost { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 9px; color: #fff; font-size: 14.5px; font-weight: 500; background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background 0.2s; }
.px-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- the column ---------- */
.px { position: relative; z-index: 1; max-width: calc(var(--wrap) + 2 * var(--g)); margin: 0 auto; padding: 0 var(--g); }
.px a:not(.px-btn):not(.px-ghost) { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.25s; }
.px a:not(.px-btn):not(.px-ghost):hover { text-decoration-color: #fff; }

/* ---------- hero ---------- */
.px-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(70px + clamp(36px, 7vh, 72px)) 0 clamp(64px, 10vh, 104px); }
.px-mark { position: relative; width: clamp(190px, 30vh, 290px); aspect-ratio: 1; margin-bottom: clamp(18px, 3.4vh, 34px); }
.px-mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#px-glow { opacity: 0; transition: opacity 1.4s ease; }
.px-mark.lit #px-glow { opacity: 1; }
.px-kicker { margin: 0 0 16px; font-size: 13.5px; font-weight: 500; color: #c9ccd3; }
.px-hero h1 { font-size: clamp(36px, 4.3vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.03; color: #fff; }
.px-lede { margin: 22px auto 0; max-width: 34em; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: #b9bdc5; }
.px-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.px-fine { margin-top: 22px; font-size: 13px; color: var(--txt-2); }

/* the text arrives while the seal is being written */
.px-in { opacity: 0; transform: translateY(12px); transition: opacity 0.9s ease, transform 1.1s var(--ease); }
body.ready .px-in { opacity: 1; transform: none; }
body.ready .px-kicker { transition-delay: 0.55s; }
body.ready .px-hero h1 { transition-delay: 0.65s; }
body.ready .px-lede { transition-delay: 0.78s; }
body.ready .px-actions { transition-delay: 0.9s; }
body.ready .px-fine { transition-delay: 1.02s; }

/* ---------- numbers ---------- */
.px-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.px-num { padding: 24px 22px 22px; border-radius: 12px; background: var(--surf); }
.px-num[hidden] { display: none; }
.px-num b { display: block; font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.px-num span { display: block; margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--txt-2); }

/* ---------- sections ---------- */
.px-sec { padding-top: clamp(88px, 13vh, 132px); }
.px-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--accent-2); letter-spacing: -0.005em; }
.px-sec h2 { font-size: clamp(26px, 2.5vw, 38px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.1; color: #fff; }
.px-head > p:not(.px-eyebrow) { margin-top: 16px; font-size: 15.5px; line-height: 1.65; color: var(--txt); }
.px-head--wide { max-width: 640px; margin-bottom: 36px; }
.px-note { margin-top: 14px; font-size: 12.5px; color: #5d626b; }

/* heading left, text right */
.px-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.px-split h2 { max-width: 13em; }
.px-body p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.7; color: var(--txt); }
.px-body p:first-child { margin-top: 30px; }

/* ---------- tiles: quiet surfaces, no borders ---------- */
.px-tiles { display: grid; gap: 12px; }
.px-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.px-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.px-tile { padding: 26px 26px 28px; border-radius: 14px; background: var(--surf); }
.px-tile h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.025em; color: #fff; }
.px-tile p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--txt); }
.px-tile .pf-badge { margin-bottom: 16px; }
.px-tiles--text .px-tile { padding: 24px 24px 26px; }

/* small ASCII diagrams in the how-it-works tiles */
.px-art { display: block; width: 100%; height: 136px; margin: 0 0 24px; border-radius: 10px; background: var(--surf-2); }

/* ---------- the API ---------- */
.px-api { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.px-api-text > p:not(.px-eyebrow) { margin: 16px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--txt); }
.px-fields { display: grid; gap: 18px; margin: 32px 0 0; }
.px-fields dt { font: 500 13px var(--mono); color: #fff; }
.px-api-more { margin: 28px 0 0; font-size: 14.5px; font-weight: 500; }
.px-fields dd { margin: 5px 0 0; font-size: 14px; line-height: 1.55; color: var(--txt-2); }

.px-code { border-radius: 14px; background: var(--surf); overflow: hidden; }
.px-code-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: #121316; }
.px-verb { flex: none; font: 600 12.5px var(--mono); color: var(--accent-2); }
.px-code-top code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px var(--mono); color: #e4e6ea; }
.px-code pre { margin: 0; padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 12.5px/1.75 var(--mono); color: #c9ccd3; -webkit-user-select: text; user-select: text; }
.px-code .c { color: #5d626b; }
.px-code .k { color: #9fb6ff; }
.px-code .s { color: #e4e6ea; }
.px-code .n { color: #f2c66d; }
.px-code-note { margin: 0; padding: 0 20px 16px; font-size: 12px; color: #5d626b; }

/* ---------- the label in a product ---------- */
.px-show .px-ui { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 156px; margin-bottom: 22px; padding: 18px; border-radius: 10px; background: var(--surf-2); }
.px-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; background: #111215; }
.px-row b { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.px-row small { font-size: 12.5px; color: var(--txt-2); }
.px-row .pf-badge { margin: 0 0 0 auto; }
.px-row--big { padding: 14px 14px; }
.px-row--big b { font-size: 18px; }
.px-coin { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #3d5bd9, #121a45); font-size: 11.5px; font-weight: 700; color: #fff; }
.px-row--big .px-coin { width: 34px; height: 34px; font-size: 14px; }
.px-coin--dim { background: #24262b; color: #8b9099; }
.px-warn { padding: 16px 18px; border-radius: 10px; background: rgba(255, 77, 94, 0.08); }
.px-warn b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; color: #ff7d8a; }
.px-warn span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--txt); }

/* ---------- in your product: four points of decision, one product frame ---------- */
.px-flow { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7fr); gap: 12px; align-items: stretch; }
.px-flow-list { display: flex; flex-direction: column; gap: 6px; }
.px-flow-list button { display: block; width: 100%; padding: 18px 22px 18px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 0.35s; }
.px-flow-list button:hover { background: rgba(255, 255, 255, 0.025); }
.px-flow-list button[aria-selected="true"] { background: var(--surf); }
.px-flow-list b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.025em; color: #8b9099; transition: color 0.35s; }
.px-flow-list span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--txt-2); }
.px-flow-list button[aria-selected="true"] b { color: #fff; }
.px-flow-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.px-flow-more > div { overflow: hidden; }
.px-flow-list button[aria-selected="true"] .px-flow-more { grid-template-rows: 1fr; }
.px-flow-more p { margin: 14px 0 0; font-size: 14px; line-height: 1.62; color: var(--txt); }
.px-flow-more code { display: inline-block; margin-top: 14px; padding: 5px 9px; border-radius: 6px; background: #15161a; font: 400 12px var(--mono); color: #9fb6ff; }

.px-flow-stage { position: relative; min-height: 480px; border-radius: 14px; background: var(--surf); overflow: hidden; }
.px-scene { position: absolute; inset: clamp(18px, 2.4vw, 32px); margin: 0; opacity: 0; transform: translateY(10px) scale(0.99); transition: opacity 0.55s ease, transform 0.75s var(--ease); pointer-events: none; }
.px-scene.is-on { opacity: 1; transform: none; }

/* a generic trading app, drawn quietly */
.px-app { display: flex; flex-direction: column; height: 100%; border-radius: 12px; background: var(--surf-2); overflow: hidden; }
.px-app-bar { display: flex; flex: none; align-items: center; gap: 12px; height: 46px; padding: 0 16px; background: #101114; }
.px-app-brand { width: 18px; height: 18px; border-radius: 5px; background: #23252a; }
.px-app-search { display: flex; align-items: center; width: min(260px, 60%); height: 28px; padding: 0 12px; border-radius: 7px; background: #17181c; font-size: 12.5px; color: #5d626b; }
.px-app-search.is-typed { color: #e4e6ea; }
.ps-caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 2px; background: #9fb6ff; animation: ps-blink 1.1s steps(1) infinite; }
@keyframes ps-blink { 50% { opacity: 0; } }
.px-app-me { width: 24px; height: 24px; margin-left: auto; border-radius: 50%; background: #1d1f24; }
.px-app-body { flex: 1; min-height: 0; padding: clamp(16px, 2vw, 24px); }

.px-coin--lg { width: 40px; height: 40px; font-size: 16px; }
.px-coin--hype { background: linear-gradient(135deg, #3fd1b0, #0f4a40); }

/* token page */
.ps-page { display: flex; flex-direction: column; gap: 16px; }
.ps-head { display: flex; align-items: center; gap: 12px; }
.ps-head b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.035em; color: #fff; }
.ps-head small { display: block; margin-top: 2px; font: 400 12px var(--mono); color: var(--txt-2); }
.ps-head .pf-badge { margin-left: auto; }
.ps-chart { position: relative; flex: 1; min-height: 140px; border-radius: 10px; background: #0f1013; }
.ps-chart svg { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 62%; }
.ps-pop { position: absolute; top: 14px; right: 14px; width: min(250px, 70%); padding: 14px 16px; border-radius: 10px; background: #17181c; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.ps-pop b { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.ps-pop span { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.5; color: var(--txt); }
.ps-pop em { display: block; margin-top: 9px; font-size: 12.5px; font-style: normal; font-weight: 600; color: #9fb6ff; }
.ps-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ps-meta div { padding: 11px 13px; border-radius: 8px; background: #111215; }
.ps-meta dt { font-size: 11.5px; color: var(--txt-2); }
.ps-meta dd { margin: 4px 0 0; font-size: 13px; font-weight: 500; color: #e4e6ea; }

/* search */
.ps-search { display: flex; flex-direction: column; gap: 6px; }
.ps-foot { margin: auto 0 0; padding-top: 10px; font-size: 12.5px; color: var(--txt-2); }

/* order entry */
.ps-trade { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 0 auto; width: 100%; }
.ps-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 9px; background: #111215; }
.ps-tabs span { padding: 7px 0; border-radius: 6px; text-align: center; font-size: 13px; font-weight: 600; color: var(--txt-2); }
.ps-tabs .on { background: #1c1e23; color: #fff; }
.ps-field { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 9px; background: #111215; }
.ps-field small { flex: none; width: 82px; font-size: 12px; color: var(--txt-2); }
.ps-field b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.ps-field > span:not(.pf-badge) { font-size: 13px; color: var(--txt); }
.ps-field .pf-badge { margin-left: auto; }
.ps-actions { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.ps-primary { padding: 10px 14px; border-radius: 8px; background: #fff; color: #050506; font-size: 13px; font-weight: 600; }
.ps-link { font-size: 13px; color: var(--txt-2); }

/* wallet */
.ps-wallet { display: flex; flex-direction: column; gap: 6px; }
.ps-wallet .px-row small { margin-left: auto; font-variant-numeric: tabular-nums; }
.ps-wallet .px-row .pf-badge { margin-left: 12px; }
.ps-flag { background: rgba(255, 77, 94, 0.07); }
.ps-why { margin: 0 0 4px; padding: 0 12px; font-size: 12.5px; line-height: 1.5; color: #ff9aa4; }

/* the badge, as the docs define it */
.pf-badge { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.pf-badge svg { width: 17px; height: 17px; }
.pf-badge--orig { color: #fff; background: var(--accent); }
.pf-badge--first { color: #d5d8de; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.pf-badge--copy { padding-left: 12px; color: #ff5c6c; background: rgba(255, 77, 94, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 77, 94, 0.34); }
.pf-badge--sm { height: 24px; gap: 5px; padding: 0 9px 0 7px; border-radius: 6px; font-size: 12px; }
.pf-badge--sm svg { width: 13px; height: 13px; }
.pf-badge--sm.pf-badge--copy { padding-left: 9px; }

/* ---------- request access ---------- */
.px-who dl { display: grid; gap: 20px; margin: 20px 0 0; }
.px-who dt { font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; color: #e4e6ea; }
.px-who dd { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--txt-2); }
.px-steps ol { display: grid; gap: 20px; margin: 20px 0 0; padding: 0; list-style: none; }
.px-steps b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; color: #e4e6ea; }
.px-steps span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--txt-2); }

.px-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; padding: clamp(28px, 4vw, 44px); border-radius: 14px; overflow: hidden;
  background: linear-gradient(90deg, rgba(8, 9, 12, 0.9) 0%, rgba(8, 9, 12, 0.55) 60%, rgba(8, 9, 12, 0.35) 100%), url("brand/imprint-web.jpg") center 42% / cover no-repeat; }
.px-cta h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.04em; color: #fff; }
.px-cta p { margin: 8px 0 0; font-size: 14.5px; color: #c3c6cd; }

/* ---------- questions ---------- */
.px-faq { display: grid; gap: 8px; }
.px-faq details { border-radius: 12px; background: var(--surf); }
.px-faq summary { position: relative; display: block; padding: 18px 52px 18px 22px; font-size: 15px; font-weight: 500; letter-spacing: -0.015em; color: #fff; cursor: pointer; list-style: none; }
.px-faq summary::-webkit-details-marker { display: none; }
.px-faq summary::before, .px-faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 11px; height: 1.5px; background: #8b9099; transition: transform 0.3s var(--ease); }
.px-faq summary::after { transform: rotate(90deg); }
.px-faq details[open] summary::after { transform: rotate(0deg); }
.px-faq details p { margin: 0; padding: 0 22px 20px; max-width: 40em; font-size: 14px; line-height: 1.65; color: var(--txt); }

/* the footer starts a little further down */
body.pfx .ft { position: relative; z-index: 1; margin-top: clamp(96px, 14vh, 150px); background: #050506; }
body.pfx .ft-in { max-width: calc(var(--wrap) + 2 * var(--g)); margin: 0 auto; }
body.pfx .ft-cta, body.pfx .ft-base { border: 0; }
body.pfx .ft-cta h2 { font-size: clamp(32px, 3.6vw, 56px); }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .px-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-tiles--3 { grid-template-columns: minmax(0, 1fr); }
  .px-api { grid-template-columns: minmax(0, 1fr); }
  .px-flow { grid-template-columns: minmax(0, 1fr); }
  .px-flow-stage { min-height: 440px; order: -1; }
}
@media (max-width: 760px) {
  .px-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .px-body p:first-child { margin-top: 20px; }
  .px-tiles--2 { grid-template-columns: minmax(0, 1fr); }
  .px-cta { flex-direction: column; align-items: flex-start; }
  .px-hero h1 br { display: none; }
}
@media (max-width: 460px) {
  .px-band { grid-template-columns: minmax(0, 1fr); }
  .px-row small { display: none; }
}

/* ---------- inner pages in the same language (about) ---------- */
.px-bg--about { height: min(70vh, 700px); background-position: center, center 62%; opacity: 0.75; }
.px-hero--page { padding-bottom: clamp(56px, 8vh, 88px); }
