/* THORWALLET - Pro Desk (foldables). Scroll-scrubbed hero: a closed
   foldable opens into the perps desk, then the chart goes full screen.
   Device and screens are drawn in code (pro.js), never images.
   The hero is always dark: it is a device showcase, so it does not
   follow the light theme. */

@font-face { font-family: "Montserrat"; src: url("fonts/MontserratMedium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/MontserratSemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/MontserratBold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ============ STAGE ============ */
.pd-hero { position: relative; height: 640vh; background: #0A1A2B; color: #FFFFFF; }
.pd-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 88px 16px 18px;
}
.pd-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42% 38% at 50% 58%, rgba(0, 204, 255, 0.13), transparent 70%),
    radial-gradient(30% 30% at 62% 64%, rgba(51, 255, 153, 0.08), transparent 70%);
  opacity: var(--glow, 0.6);
}

.pd-copy { position: relative; width: 100%; max-width: 860px; margin: 0 auto; height: clamp(118px, 19vh, 178px); text-align: center; }
.pd-cap { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); will-change: opacity, transform; }
.pd-cap .pd-eyebrow { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #1FD9A6; margin-bottom: 10px; }
.pd-cap h1, .pd-cap h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; color: #FFFFFF; margin: 0; }
.pd-cap h1 { font-size: clamp(30px, 4.4vw, 60px); }
.pd-cap h2 { font-size: clamp(26px, 3.4vw, 46px); }
.pd-grad { background: linear-gradient(120deg, #00CCFF 0%, #19DAC8 52%, #33FF99 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-cap p { font-family: var(--font-body); font-size: clamp(14px, 1.25vw, 17px); line-height: 1.5; color: #C5D2DE; max-width: 620px; margin: 12px auto 0; }

.pd-viewport { position: relative; min-height: 0; perspective: 2600px; perspective-origin: 50% 42%; }
.pd-floor {
  position: absolute; left: 50%; height: 44px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  filter: blur(6px); transform: translateX(-50%); pointer-events: none;
}

.pd-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(28px, 5vh, 56px); }
.pd-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.pd-seg button {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: #C5D2DE;
  background: transparent; border: 0; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.pd-seg button[aria-pressed="true"] { background: #FFFFFF; color: #0A1A2B; }
.pd-seg button:focus-visible { outline: 2px solid #00CCFF; outline-offset: 2px; }
.pd-hint { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8A9DB0; display: flex; align-items: center; gap: 8px; }
.pd-hint svg { width: 14px; height: 14px; animation: pd-bob 1.6s ease-in-out infinite; }
@keyframes pd-bob { 50% { transform: translateY(3px); } }

/* ============ DEVICE ============ */
.fd { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; transform-style: preserve-3d; }
/* flat on purpose: the halves paint in DOM order (back, then the swinging half), see pro.js render() */
.fd-body { position: absolute; left: 0; top: 0; transform-style: flat; }
.fd-panel { position: absolute; top: 0; transform-style: preserve-3d; }
.fd-front { transform-origin: 0 50%; }
.fd-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fd-innerl { transform: rotateY(180deg); }
.fd-flat { position: absolute; top: 0; left: 0; visibility: hidden; }
.fd-spine { position: absolute; top: 1.5%; height: 97%; background: linear-gradient(90deg, #1a1c20, #5b6068 50%, #1a1c20); opacity: 0; }

.fd-shell { position: absolute; inset: 0; background: var(--fd-metal); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.fd-bezel { position: absolute; background: #050608; }
.fd-glass { position: absolute; overflow: hidden; background: #121A2B; }
.fd-dim { position: absolute; inset: 0; background: #000000; opacity: 0; pointer-events: none; }
.fd-crease {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.09) 44%, rgba(255, 255, 255, 0.022) 56%, transparent);
}
.fd-sweep {
  position: absolute; inset: -20% -40%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.10) 48%, rgba(255, 255, 255, 0.02) 55%, transparent 62%);
}
.fd-cam { position: absolute; background: #000000; z-index: 3; }

[data-device="duo"]  { --fd-metal: linear-gradient(145deg, #e3e6ea 0%, #9ea4ac 38%, #eef0f2 62%, #8a9098 100%); }
[data-device="fold"] { --fd-metal: linear-gradient(145deg, #4c515a 0%, #1f2227 45%, #3d4148 70%, #1a1c20 100%); }

/* ============ APP SCREENS (logical px, scaled by pro.js) ============ */
.ap {
  --a-bg: #121A2B; --a-panel: #1A2438; --a-panel-2: #1F2B42; --a-line: rgba(255, 255, 255, 0.07);
  --a-dim: #8E9BB0; --a-dim-2: #6F7C92; --a-blue: #2A6BF2; --a-blue-text: #4C8DFF; --a-blue-soft: #1B2C4F;
  --a-green: #2EE6A6; --a-red: #F26B56;
  position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden;
  background: var(--a-bg); color: #FFFFFF; font-family: "Montserrat", -apple-system, sans-serif; font-weight: 500;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
.ap svg { display: block; }
.ap .pos { color: var(--a-green); }
.ap .neg { color: var(--a-red); }
.ap .dim { color: var(--a-dim); }
.ap-status { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; z-index: 2; }
.ap-status i { display: flex; gap: 5px; align-items: center; font-style: normal; }
.ap-status svg { height: 11px; width: auto; }
.ap-home { position: absolute; left: 50%; bottom: 6px; width: 124px; height: 4px; margin-left: -62px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); z-index: 5; }
.ap-coin { flex-shrink: 0; border-radius: 50%; }
.ap-lev { font-size: 10px; font-weight: 700; color: #7FA6FF; background: #1C2A4B; padding: 2px 6px; border-radius: 7px; }
.ap-chip { font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: 999px; background: #1E2A40; color: #D6DEEA; white-space: nowrap; }
.ap-chip.on { background: var(--a-blue); color: #FFFFFF; font-weight: 600; }
.ap-tf { display: flex; align-items: center; gap: 3px; font-size: 12.5px; color: #C9D3E0; }
.ap-tf > span { padding: 6px 10px; border-radius: 999px; }
.ap-tf > span.on { background: var(--a-blue-soft); color: var(--a-blue-text); font-weight: 600; }
.ap-tf .ap-round { width: 30px; height: 30px; border-radius: 50%; background: #1C2538; display: grid; place-items: center; padding: 0; }
.ap-tf .ap-round svg { width: 13px; height: 13px; }
.ap-tf .ap-sp { flex: 1; }
.ap-pill { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #1C2538; color: #C9D3E0; }
.ap canvas { display: block; width: 100%; min-height: 0; }

/* cover: BTC perp detail (phone) */
.apc { display: flex; flex-direction: column; padding: 0 18px; }
.apc-head { display: flex; align-items: center; gap: 10px; margin-top: 4px; height: 44px; }
.apc-head .back { width: 20px; height: 20px; color: #FFFFFF; }
.apc-head b { font-size: 23px; font-weight: 700; }
.apc-head .star { margin-left: auto; width: 22px; height: 22px; color: #7E9EA8; }
.apc-price { font-size: 44px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; margin-top: 6px; }
.apc-sub { display: flex; align-items: center; gap: 12px; font-size: 13px; margin-top: 8px; white-space: nowrap; }
.apc-sub .ap-pill { font-weight: 500; }
.apc-tabs { display: flex; gap: 22px; font-size: 16px; font-weight: 600; margin-top: 14px; }
.apc-tabs span { color: var(--a-dim); padding-bottom: 7px; }
.apc-tabs span.on { color: #FFFFFF; box-shadow: inset 0 -2px 0 #FFFFFF; }
.apc .ap-tf { margin-top: 10px; }
.apc-chart { flex: 1; min-height: 0; margin: 6px 0 8px; }
.apc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.apc-stats div { border: 1px solid #26324A; border-radius: 14px; padding: 8px 10px; }
.apc-stats small { display: block; font-size: 9px; font-weight: 600; letter-spacing: 0.06em; color: var(--a-dim); text-transform: uppercase; }
.apc-stats b { display: block; font-size: 13.5px; font-weight: 700; margin-top: 3px; }
.apc-book { margin-top: 8px; background: var(--a-panel); border-radius: 18px 18px 0 0; padding: 11px 12px 64px; }
.apc-book .tabs { display: flex; gap: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--a-dim); }
.apc-book .tabs .on { color: #FFFFFF; }
.apc-book .tabs em { margin-left: auto; font-style: normal; font-weight: 500; letter-spacing: 0; }
.apc-book .row { display: flex; justify-content: space-between; font-size: 13px; margin-top: 7px; padding: 2px 4px; color: var(--a-red); background: linear-gradient(90deg, rgba(242, 107, 86, 0.14) var(--w, 60%), transparent 0); border-radius: 3px; }
.apc-book .row span:last-child { color: #D6DEEA; }
.apc-cta { position: absolute; left: 16px; right: 16px; bottom: 22px; height: 52px; border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; font-size: 18px; font-weight: 700; box-shadow: 0 -10px 30px rgba(10, 14, 24, 0.6); }
.apc-cta span { display: grid; place-items: center; }
.apc-cta .l { background: #1C4A46; color: var(--a-green); }
.apc-cta .s { background: #3A2E3B; color: var(--a-red); }

/* inner: perps desk */
.apd-grid {
  position: absolute; left: 0; right: 0; top: 26px; bottom: 14px;
  display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 57fr) 68px; grid-template-rows: 56px minmax(0, 1fr);
}
.apd-head { grid-column: 1 / 3; grid-row: 1; display: flex; align-items: center; gap: 17px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--a-line); min-width: 0; overflow: hidden; }
.apd-sym { display: flex; align-items: center; gap: 8px; }
.apd-sym b { font-size: 18px; font-weight: 700; }
.apd-st { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.apd-st small { font-size: 8.5px; font-weight: 600; letter-spacing: 0.05em; color: var(--a-dim); text-transform: uppercase; }
.apd-st b { font-size: 13px; font-weight: 600; }
.apd-st b .dim { font-weight: 500; }
.apd-head .ap-pill { margin-left: auto; padding: 8px 14px; }
.apd-way { grid-column: 3; grid-row: 1; display: grid; place-items: center; }
.ap-x { width: 38px; height: 38px; border-radius: 50%; background: #1C2538; display: grid; place-items: center; }
.ap-x svg { width: 15px; height: 15px; }
.apd-left { grid-column: 1; grid-row: 2; border-right: 1px solid var(--a-line); padding: 10px 12px 0; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; }
.apd-seg { display: flex; gap: 2px; font-size: 12px; font-weight: 600; color: #D6DEEA; }
.apd-seg span { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.apd-seg span.on { background: var(--a-blue); color: #FFFFFF; }
.apd-seg svg { width: 13px; height: 13px; }
.apd-chips { display: flex; gap: 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.apd-search { display: flex; align-items: center; gap: 9px; height: 36px; border: 1px solid #2A3650; border-radius: 12px; padding: 0 12px; font-size: 12.5px; color: var(--a-dim); }
.apd-search svg { width: 15px; height: 15px; }
.apd-rows { display: flex; flex-direction: column; }
.apd-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--a-line); }
.apd-row.on { border: 1.5px solid var(--a-blue); border-radius: 13px; background: #152038; }
.apd-row .n { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; }
.apd-row .m { font-size: 10px; color: var(--a-dim); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apd-row .p { text-align: right; font-size: 14.5px; font-weight: 600; }
.apd-row .p small { display: block; font-size: 12px; font-weight: 600; margin-top: 3px; }
.apd-right { grid-column: 2; grid-row: 2; padding: 8px 14px 8px; display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; }
.apd-tabs { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.apd-tabs > span { color: var(--a-dim); padding: 6px 0; }
.apd-tabs > span.on { color: #FFFFFF; box-shadow: inset 0 -2px 0 #FFFFFF; }
.apd-tabs .ls { margin-left: auto; display: flex; gap: 8px; }
.apd-tabs .ls b { font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 999px; }
.apd-tabs .ls .l { background: var(--a-green); color: #06231A; }
.apd-tabs .ls .s { background: var(--a-red); color: #2A0D07; }
.apd-chartwrap { flex: 1; min-height: 0; display: flex; }
.apd-chartwrap canvas { height: 100%; }
.apd-depth { height: 33%; min-height: 96px; background: var(--a-panel); border-radius: 16px; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.apd-depth .tabs { display: flex; align-items: center; gap: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--a-dim); }
.apd-depth .tabs .on { color: #FFFFFF; box-shadow: inset 0 -2px 0 #FFFFFF; padding-bottom: 5px; }
.apd-depth .tabs em { margin-left: auto; font-style: normal; font-weight: 500; letter-spacing: 0; font-size: 10px; }
.apd-depth canvas { flex: 1; }
.apd-depth .ax { display: flex; justify-content: space-between; font-size: 10px; color: var(--a-dim); }
.apd-rail { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 4px; }
.ap-rail { width: 58px; border-radius: 29px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); padding: 6px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ap-rail span { width: 50px; height: 50px; border-radius: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 9.5px; color: #AEB9C9; }
.ap-rail span svg { width: 19px; height: 19px; }
.ap-rail span.on { background: var(--a-blue-soft); color: var(--a-blue-text); }

.pd-focus {
  position: absolute; border-radius: 16px; border: 2px solid #57A4FF; pointer-events: none; opacity: 0; z-index: 6;
  box-shadow: 0 0 0 2400px rgba(5, 9, 18, 0.58), 0 0 28px rgba(87, 164, 255, 0.45);
}

/* inner: pro chart workspace */
.pc { position: absolute; left: 0; top: 26px; right: 0; bottom: 0; background: var(--a-bg); display: flex; flex-direction: column; transform-origin: 0 0; opacity: 0; z-index: 7; }
.pc-head { height: 54px; flex-shrink: 0; display: flex; align-items: center; gap: 17px; padding: 0 16px; overflow: hidden; }
.pc-head .ap-x { margin-left: auto; }
.pc-bar { height: 40px; flex-shrink: 0; display: flex; align-items: center; gap: 4px; padding: 0 12px; font-size: 12.5px; color: #C9D3E0; white-space: nowrap; overflow: hidden; }
.pc-bar > span { padding: 7px 10px; border-radius: 999px; }
.pc-bar > span.on { background: var(--a-blue-soft); color: var(--a-blue-text); font-weight: 600; }
.pc-bar .time { background: #1C2538; display: flex; align-items: center; gap: 4px; }
.pc-bar .time svg { width: 11px; height: 11px; }
.pc-bar i { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.12); margin: 0 6px; }
.pc-bar .pill { background: var(--a-blue-soft); color: #6FA0FF; font-weight: 600; transform: scale(0.6); opacity: 0; transform-origin: 0 50%; }
.pc-main { flex: 1; min-height: 0; display: flex; gap: 8px; padding: 6px 12px 0 10px; }
.pc-tools { width: 40px; flex-shrink: 0; background: #172033; border-radius: 12px; display: flex; flex-direction: column; align-items: center; padding: 6px 0; gap: 4px; }
.pc-tools span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #AEB9C9; }
.pc-tools span svg { width: 17px; height: 17px; }
.pc-tools span.on { background: var(--a-blue-soft); color: var(--a-blue-text); }
.pc-tools hr { width: 22px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 2px 0; }
.pc-panes { flex: 1; min-width: 0; display: flex; gap: 10px; }
.pc-pane { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pc-pane[data-pane="btc"] { flex: 1 1 auto; }
.pc-body { position: relative; flex: 1; min-height: 0; display: flex; }
.pc-body canvas { width: 100%; height: 100%; }
.pc-ph { height: 0; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 11px; background: #1A2438; font-size: 12.5px; font-weight: 600; }
.pc-ph svg { width: 11px; height: 11px; color: var(--a-dim); }
.pc-ph .px { margin-left: auto; }
.pc-ph.act { background: #1D2F55; color: #8FB4FF; }
.pc-ph.act .px { color: #FFFFFF; }
.pc-ph .x { width: 13px; height: 13px; margin-left: 10px; color: #FFFFFF; }
.pc-legend { position: absolute; left: 10px; top: 6px; font-size: 11px; font-weight: 600; line-height: 1.55; pointer-events: none; white-space: nowrap; }
.pc-legend .l1 { color: #E6ECF4; }
.pc-legend .l1 .live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--a-green); margin: 0 6px 1px 4px; }
.pc-legend .l1 em { font-style: normal; color: var(--a-dim); font-weight: 500; margin-left: 6px; }
.pc-legend .ind span { opacity: 0; margin-right: 14px; }
.pc-foot { height: 32px; flex-shrink: 0; display: flex; align-items: center; gap: 15px; padding: 0 16px 0 22px; font-size: 12px; color: #C9D3E0; white-space: nowrap; overflow: hidden; }
.pc-foot .r { margin-left: auto; display: flex; align-items: center; gap: 15px; color: var(--a-dim); }
.pc.static { opacity: 1; visibility: visible; transform: none; }
.pc.static .pill { opacity: 1; transform: none; }
.pc.static .pc-legend .ind span { opacity: 1; }
.pc-foot .auto { background: var(--a-blue-soft); color: var(--a-blue-text); padding: 5px 12px; border-radius: 999px; font-weight: 600; }

/* ============ BELOW THE HERO (always dark, like the hero) ============ */
.pd-sec { background: #0A1A2B; color: #FFFFFF; position: relative; }
.pd-sec-head { max-width: 760px; margin: 0 auto; text-align: center; }
.pd-sec-head .pd-eyebrow { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #1FD9A6; margin-bottom: 14px; }
.pd-sec-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.025em; color: #FFFFFF; margin: 0; }
.pd-sec-head p, .pd-lead { font-family: var(--font-body); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.55; color: #C5D2DE; max-width: 600px; margin: 18px auto 0; }

/* 1. numbers */
.pd-stats { padding: 100px 0 40px; }
.pd-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid rgba(255, 255, 255, 0.08); }
.pd-stat { padding: 40px 18px 36px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.pd-stat:last-child { border-right: 0; }
.pd-stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(42px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.pd-stat span { display: block; margin-top: 14px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; color: #C5D2DE; }
@media (max-width: 760px) {
  .pd-stats-grid { grid-template-columns: 1fr 1fr; }
  .pd-stat:nth-child(2) { border-right: 0; }
  .pd-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
}

/* 2. compare */
.pd-compare { padding: 110px 0 60px; }
.pd-cmp { position: relative; max-width: 1080px; margin: 52px auto 0; }
.pd-cmp-dev, .pd-gal-dev { position: relative; width: 100%; }
.pd-cmp-a, .pd-cmp-b { position: absolute; inset: 0; }
.pd-cmp-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #FFFFFF; box-shadow: 0 0 18px rgba(0, 204, 255, 0.7); z-index: 8; pointer-events: none; }
.pd-cmp-knob {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: #FFFFFF; color: #0A1A2B; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.pd-cmp-knob svg { width: 22px; height: 22px; }
.pd-cmp-tag {
  position: absolute; bottom: calc(100% + 14px); z-index: 8; pointer-events: none; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; padding: 7px 12px; border-radius: 999px; background: rgba(8, 16, 28, 0.82); border: 1px solid rgba(255, 255, 255, 0.14); color: #C5D2DE; white-space: nowrap;
}
.pd-cmp-tag.l { left: 4px; }
.pd-cmp-tag.r { right: 4px; color: #33FF99; border-color: rgba(51, 255, 153, 0.35); }
.pd-cmp-frame { position: relative; touch-action: pan-y; cursor: ew-resize; }
.pd-cmp:has(.pd-cmp-range:focus-visible) .pd-cmp-frame { outline: 2px solid #00CCFF; outline-offset: 8px; border-radius: 14px; }
.pd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pd-cmp-hint { text-align: center; margin-top: 22px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #8A9DB0; }

/* 3. gallery */
.pd-gal { padding: 110px 0 60px; }
.pd-gal-tabs { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 40px 0 34px; }
.pd-gal-seg button { position: relative; overflow: hidden; }
.pd-gal-seg button i { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 1px; background: rgba(10, 26, 43, 0.25); transform-origin: 0 50%; transform: scaleX(0); }
.pd-gal-seg button[aria-pressed="true"] i.run { animation: pd-fill var(--gal-ms, 5200ms) linear forwards; }
@keyframes pd-fill { to { transform: scaleX(1); } }
.pd-gal-seg.paused i.run { animation-play-state: paused; }
.pd-gal-cap { font-family: var(--font-body); font-size: 16px; color: #C5D2DE; min-height: 1.5em; margin: 0; text-align: center; transition: opacity 0.3s; }
.pd-gal-dev { max-width: 1080px; margin: 0 auto; }
.pd-gal-dev .fd-glass > .ap { opacity: 0; transition: opacity 0.55s ease; }
.pd-gal-dev .fd-glass > .ap.on { opacity: 1; }

/* 4. launch */
.pd-launch { padding: 130px 0 120px; text-align: center; overflow: hidden; }
.pd-launch::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 55% at 50% 45%, rgba(0, 204, 255, 0.12), transparent 70%), radial-gradient(35% 40% at 58% 55%, rgba(51, 255, 153, 0.08), transparent 70%); }
.pd-launch .container { position: relative; }
.pd-count { display: flex; justify-content: center; gap: clamp(8px, 2vw, 20px); margin: 44px auto 34px; }
.pd-count div { min-width: clamp(68px, 11vw, 140px); padding: 20px 8px 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.pd-count b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 6vw, 80px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pd-count b.tick { animation: pd-tick 0.35s ease; }
@keyframes pd-tick { 40% { transform: translateY(-3px); opacity: 0.75; } }
.pd-count small { display: block; margin-top: 12px; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #8A9DB0; }
.pd-launch .pd-ctas { display: flex; gap: 12px; justify-content: center; margin: 30px 0 22px; flex-wrap: wrap; }
.pd-launch .store-badges { margin-top: 6px; }
.pd-post, .pd-launch .pd-post-h { display: none; }
.pd-launch.is-live .pd-pre, .pd-launch.is-live .pd-pre-h, .pd-launch.is-live .pd-count { display: none; }
.pd-launch.is-live .pd-post, .pd-launch.is-live .pd-post-h { display: block; }
.pd-fine { font-family: var(--font-body); font-size: 12px; color: #8A9DB0; max-width: 640px; margin: 52px auto 0; line-height: 1.6; }

/* ============ SPLIT SCREENS for the gallery (logical px) ============ */
.aps-grid { position: absolute; left: 0; right: 0; top: 26px; bottom: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 68px; column-gap: 22px; padding-left: 16px; }
.aps-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; padding-top: 10px; }
.aps-rail { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 10px 0 4px; }
.aps-rail > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ap-rail.acts span { height: 66px; gap: 4px; }
.ap-rail.acts span i { width: 38px; height: 38px; border-radius: 50%; background: #1E2A40; display: grid; place-items: center; font-style: normal; color: #D6DEEA; }
.ap-rail.acts span i svg { width: 17px; height: 17px; }
.ap-dots { display: flex; gap: 5px; }
.ap-dots i { width: 5px; height: 5px; border-radius: 50%; background: #3A4760; }
.ap-dots i.on { background: var(--a-blue-text); }
.ap-cw { position: relative; flex-shrink: 0; display: inline-block; }
.ap-cw .ap-net { position: absolute; right: -3px; bottom: -3px; border-radius: 50%; box-shadow: 0 0 0 2px var(--a-bg); display: flex; }
.ap-ver { width: 15px; height: 15px; flex-shrink: 0; }
.ap-h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.ap-card { background: var(--a-panel); border-radius: 18px; padding: 14px 16px; }
.ap-card h4 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.ap-kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--a-line); white-space: nowrap; }
.ap-kv:last-child { border-bottom: 0; }
.ap-kv > span:first-child { color: var(--a-dim); display: flex; align-items: center; gap: 7px; }
.ap-kv b { font-weight: 600; }
.ap-seg6 { display: flex; background: #1B2438; border-radius: 999px; padding: 4px; font-size: 13.5px; font-weight: 600; color: #C9D3E0; }
.ap-seg6 span { flex: 1; text-align: center; padding: 8px 0; border-radius: 999px; }
.ap-seg6 span.on { background: var(--a-blue); color: #FFFFFF; }
.ap-sq { width: 38px; height: 38px; border-radius: 12px; background: #1C2538; display: grid; place-items: center; flex-shrink: 0; }
.ap-sq svg { width: 18px; height: 18px; }
.ap-list-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--a-line); }
.ap-list-row.on { border: 1.5px solid var(--a-blue); border-radius: 13px; background: #152038; }
.ap-list-row .n { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.ap-list-row .m { font-size: 12px; color: var(--a-dim); margin-top: 3px; white-space: nowrap; }
.ap-list-row .v { text-align: right; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.ap-list-row .v small { display: block; font-size: 12.5px; font-weight: 500; color: var(--a-dim); margin-top: 3px; }
.ap-mono { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #FFFFFF; letter-spacing: -0.02em; }
.ap-line { flex: 1; min-height: 0; }
.ap-line canvas { height: 100%; }
.ap-caps { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--a-dim); text-transform: uppercase; }

/* wallet */
.apw-search { height: 38px; border-radius: 12px; background: #1B2438; display: flex; align-items: center; gap: 9px; padding: 0 14px; font-size: 13px; color: var(--a-dim); flex-shrink: 0; }
.apw-search svg { width: 15px; height: 15px; }
.apw-name { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 15px; color: #C9D3E0; margin-top: 6px; }
.apw-name svg { width: 14px; height: 14px; }
.apw-bal { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 44px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.apw-bal small { font-size: 22px; }
.apw-bal svg { width: 24px; height: 24px; color: var(--a-dim); }
.apw-tabs { display: flex; align-items: center; gap: 8px; }
.apw-tabs .ap-seg6 { flex: 0 0 auto; }
.apw-tabs .ap-seg6 span { padding: 7px 14px; }
.apw-tabs .sp { flex: 1; }
.apx-head { position: relative; }
.apx-head .t { font-size: 15px; font-weight: 600; }
.apx-head .big { display: flex; align-items: baseline; gap: 10px; font-size: 34px; font-weight: 700; margin-top: 4px; }
.apx-head .big small { font-size: 14px; font-weight: 600; }
.apx-head .sub { font-size: 15px; color: #C9D3E0; margin-top: 4px; }
.apx-head .btns { position: absolute; right: 0; top: 4px; display: flex; gap: 8px; }
.ap-circ { width: 40px; height: 40px; border-radius: 50%; background: #1C2538; display: grid; place-items: center; color: #D6DEEA; }
.ap-circ svg { width: 18px; height: 18px; }
.ap-circ.on { background: var(--a-blue); color: #FFFFFF; }

/* swap */
.apsw-route { border: 1.5px solid var(--a-blue); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #16213A; }
.apsw-route .n { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apsw-route .m { font-size: 11.5px; color: var(--a-dim); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.apsw-route .m svg { width: 12px; height: 12px; }
.apsw-route .v { text-align: right; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.apsw-route .v small { display: block; font-size: 11.5px; color: var(--a-dim); font-weight: 500; margin-top: 3px; }
.apsw-more { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; margin-top: 12px; padding: 0 4px; }
.apsw-more svg { width: 14px; height: 14px; color: var(--a-dim); }
.apsw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a-green); display: inline-block; }
.apsw-box { background: var(--a-panel); border-radius: 18px; padding: 16px 18px 14px; }
.apsw-box .r1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.apsw-box .amt { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.apsw-tok { display: flex; align-items: center; gap: 8px; background: #243049; border-radius: 16px; padding: 6px 12px 6px 6px; font-size: 20px; font-weight: 700; }
.apsw-tok svg.chev { width: 14px; height: 14px; color: var(--a-dim); }
.apsw-box .r2 { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 15px; color: var(--a-dim); }
.apsw-box .r2 span:last-child { display: flex; align-items: center; gap: 7px; }
.apsw-box .r2 svg { width: 16px; height: 16px; }
.apsw-flip { height: 0; position: relative; z-index: 2; display: flex; justify-content: center; }
.apsw-flip span { width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: var(--a-bg); border: 4px solid var(--a-bg); box-shadow: 0 0 0 1px #2A3650 inset; display: grid; place-items: center; }
.apsw-flip svg { width: 16px; height: 16px; }
.apsw-rate { background: var(--a-panel); border-radius: 18px; padding: 4px 16px; }
.apsw-rate .ap-kv { font-size: 14px; padding: 12px 0; }
.apsw-rate .ap-kv > span:first-child { color: #FFFFFF; }
.apsw-rate svg { width: 16px; height: 16px; }
.ap-tog { width: 34px; height: 20px; border-radius: 10px; background: #34405A; position: relative; }
.ap-tog::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; }
.apsw-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.apsw-bal { display: flex; justify-content: space-between; align-items: flex-end; }
.apsw-bal small { display: block; font-size: 12px; color: var(--a-dim); }
.apsw-bal b { display: block; font-size: 15px; font-weight: 600; margin-top: 4px; }
.ap-btn { height: 46px; border-radius: 14px; background: var(--a-blue); display: grid; place-items: center; font-size: 17px; font-weight: 600; }

/* stocks */
.apk-mo { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--a-dim); }
.apk-mo i { width: 7px; height: 7px; border-radius: 50%; background: var(--a-green); }
.apk-chips { display: flex; gap: 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); flex-shrink: 0; }
.apk-leg { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #C9D3E0; }
.apk-leg i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.apk-leg em { margin-left: auto; font-style: normal; }

/* card */
.apcd-all { align-self: flex-start; font-size: 14px; background: #1C2538; border-radius: 12px; padding: 10px 16px; }
.apcd-card {
  flex: 0 0 auto; width: 100%; aspect-ratio: 1.586; border-radius: 20px; padding: 22px 24px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 0% 0%, rgba(24, 78, 70, 0.9) 0%, rgba(24, 78, 70, 0) 62%), linear-gradient(150deg, #0F3833 0%, #0B2627 55%, #09191F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.apcd-card .t { display: flex; justify-content: space-between; align-items: baseline; }
.apcd-card .t b { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.apcd-card .t span { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; }
.apcd-card .b { display: flex; justify-content: space-between; align-items: flex-end; }
.apcd-card .b small { display: block; font-size: 14px; color: #E6ECF4; }
.apcd-card .b strong { display: flex; align-items: baseline; gap: 6px; font-size: 36px; font-weight: 700; letter-spacing: -0.01em; margin: 6px 0 4px; }
.apcd-card .b strong em { font-style: normal; font-size: 28px; font-weight: 500; color: #AEB9C9; }
.apcd-mc { display: block; width: 50px; height: 32px; }
.apcd-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.apcd-acts span { background: var(--a-panel); border-radius: 14px; height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; }
.apcd-acts svg { width: 20px; height: 20px; color: var(--a-blue-text); }
.apcd-cb { background: var(--a-panel); border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.apcd-cb .pct { background: #243049; border-radius: 12px; padding: 7px 9px; font-size: 13.5px; font-weight: 700; }
.apcd-cb .l small { display: block; font-size: 10.5px; letter-spacing: 0.14em; color: var(--a-dim); }
/* wraps rather than running under the amount when a language needs more room */
.apcd-cb .l span { display: block; font-size: 12.5px; line-height: 1.3; }
.apcd-cb .amt { font-size: 21px; font-weight: 700; color: var(--a-green); }
.apcd-cb .bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--a-dim); margin-top: 6px; }
.apcd-cb .bar i { flex: 1; height: 4px; border-radius: 2px; background: #26324A; position: relative; overflow: hidden; }
.apcd-cb .bar i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 29.3%; background: var(--a-blue); }
.apcd-hd { display: flex; align-items: flex-start; justify-content: space-between; }
.apcd-hd .t { font-size: 24px; font-weight: 600; }
.apcd-hd small { display: block; font-size: 13px; color: var(--a-dim); letter-spacing: 0.04em; margin-top: 4px; }
.apcd-hd .btns { display: flex; gap: 8px; }
.apcd-hd .ap-sq { background: #1C2538; }
.apcd-tx { background: var(--a-panel); border-radius: 14px; padding: 10px 14px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; flex-shrink: 0; }
.apcd-tx .ico { width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; color: #0B0F17; display: grid; place-items: center; }
.apcd-tx .ico svg { width: 19px; height: 19px; }
.apcd-tx .n { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apcd-tx .m { font-size: 12px; color: var(--a-dim); margin-top: 3px; }
.apcd-tx .v { text-align: right; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.apcd-tx .v small { display: block; font-size: 12px; color: var(--a-dim); font-weight: 500; margin-top: 3px; }


/* ============ PHONES: zoom and swipe instead of shrinking ============ */
.pd-gal-frame { position: relative; }
.pd-gal-pager { display: none; justify-content: center; align-items: center; gap: 7px; margin-top: 18px; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8A9DB0; }
.pd-gal-pager i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); transition: width 0.3s, background-color 0.3s; }
.pd-gal-pager i.on { width: 18px; background: #FFFFFF; }
.pd-gal-pager span { margin-left: 8px; }
.pd-snap { position: absolute; top: 0; left: 0; width: 50%; height: 100%; scroll-snap-align: start; pointer-events: none; }
@media (max-width: 719px) {
  .pd-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }
  .pd-cmp-frame { overflow: hidden; border-radius: 26px; }
  .pd-gal-frame { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 26px; }
  .pd-gal-frame::-webkit-scrollbar { display: none; }
  .pd-gal-pager { display: flex; }
  .pd-gal-seg button { padding: 9px 11px; font-size: 12.5px; }
}

/* ============ HOMEPAGE TEASER (follows the site theme; the device stays dark) ============ */
.pro-teaser { position: relative; overflow: hidden; }
.pro-teaser::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 40% at 50% 70%, rgba(0, 204, 255, 0.10), transparent 70%), radial-gradient(30% 30% at 60% 75%, rgba(51, 255, 153, 0.07), transparent 70%); }
.pro-teaser .container { position: relative; }
.pt-head { max-width: 800px; margin: 0 auto; text-align: center; }
.pt-head .eyebrow { display: block; margin-bottom: 18px; }
.pt-head .lead { margin: 20px auto 0; max-width: 640px; }
.pt-launch { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--accent-line); background: rgba(0, 204, 255, 0.06); font-size: 14px; color: var(--text-hi); }
.pt-dot { width: 8px; height: 8px; border-radius: 50%; background: #33FF99; animation: pt-pulse 2s ease-out infinite; }
@keyframes pt-pulse { 0% { box-shadow: 0 0 0 0 rgba(51, 255, 153, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(51, 255, 153, 0); } }
.pt-cd { font-variant-numeric: tabular-nums; color: var(--text-mid); }
.pt-cd:not(:empty)::before { content: "·"; margin-right: 10px; color: var(--text-low); }
.pt-post { display: none; }
.pro-teaser.is-live .pt-pre, .pro-teaser.is-live .pt-cd { display: none; }
.pro-teaser.is-live .pt-post { display: inline; }
.pt-ctas { margin-top: 24px; }
.pt-frame { position: relative; max-width: 1040px; margin: 56px auto 0; transform-origin: 50% 100%; will-change: transform; }
.pt-dev { position: relative; width: 100%; }
@keyframes pt-drift { 0%, 14% { transform: translateX(0); } 86%, 100% { transform: translateX(var(--pan, 0px)); } }
@media (max-width: 719px) {
  .pt-frame { overflow: hidden; border-radius: 26px; margin-top: 40px; }
  .pt-frame.drift .pt-dev { animation: pt-drift 11s ease-in-out infinite alternate; }
  .pt-launch { font-size: 13px; }
}

/* ============ REDUCED MOTION: the open desk, still ============ */
@media (prefers-reduced-motion: reduce) {
  .pd-hero { height: auto; }
  .pd-stage { position: relative; height: 100vh; min-height: 640px; }
  .pd-hint { display: none; }
}
