/* ==========================================================================
   BitMouse CryptoX — design system
   Brand: logo orange #F9A51A, charcoal #2B2A2E, cream #FFF1D9 (from brand files)
   Display: Sora · Body: Manrope · Numbers: JetBrains Mono
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --orange: #F9A51A;
  --orange-2: #FFB83D;
  --orange-ink: #1A1200;
  --cream: #FFF1D9;
  --peach: #F6C9A4;
  --nose: #F49AB0;
  --char: #2B2A2E;

  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --cut: 22px;                       /* the bevel on every BitMouse card */
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --sec: clamp(88px, 11vw, 148px);

  --f-display: "Sora", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --m-in: 140ms; --m-out: 200ms; --m-press: 90ms; --m-image: 600ms;
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-io: cubic-bezier(.65,0,.35,1);

  --z-bg: -1; --z-nav: 40; --z-dock: 45; --z-chat: 50; --z-menu: 60; --z-loader: 90;
}

/* ---------- Themes ---------- */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #121114;
  --bg-2: #18171B;
  --surface: #1E1D21;
  --surface-2: #2B2A2E;
  --line: rgba(255, 241, 217, .10);
  --line-2: rgba(255, 241, 217, .20);
  --ink: #FFF6E8;
  --muted: #B9B0A3;
  --accent-text: #F9A51A;
  --up: #45DE9C;
  --down: #FF7070;
  --shadow: 0 24px 60px -24px rgba(0,0,0,.6);
  --grid-alpha: .55;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #FFF8EC;
  --bg-2: #FFF1DA;
  --surface: #FFFFFF;
  --surface-2: #FFF4E3;
  --line: rgba(27, 26, 30, .12);
  --line-2: rgba(27, 26, 30, .24);
  --ink: #1B1A1E;
  --muted: #5A544B;
  --accent-text: #9A5A00;
  --up: #0E8150;
  --down: #C8322F;
  --shadow: 0 24px 50px -28px rgba(90, 60, 10, .35);
  --grid-alpha: .7;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.9rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 3.1rem); }
h3 { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
.mono, .num { font-family: var(--f-mono); font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: -.01em; }
.accent { color: var(--accent-text); }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--orange); color: var(--orange-ink); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; transition: outline-offset var(--m-out) var(--ease); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: var(--orange-ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; }
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: calc(var(--sec) * .6); }
.sec--band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-text);
}
.eyebrow::before {
  content: ""; width: 18px; height: 10px; flex: none;
  background:
    radial-gradient(circle at 4px 5px, currentColor 3.2px, transparent 3.6px),
    radial-gradient(circle at 14px 5px, currentColor 3.2px, transparent 3.6px);
}
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.head p { color: var(--muted); font-size: 1.125rem; max-width: 620px; }
.head--split { max-width: none; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px; }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
@media (max-width: 860px) { .head--split { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Buttons: the split pill ---------- */
.btn {
  --b-bg: var(--orange); --b-fg: var(--orange-ink); --b-dot: var(--orange-ink); --b-dot-fg: var(--orange);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 6px 6px 6px 24px;
  border-radius: var(--r-pill);
  background: var(--b-bg); color: var(--b-fg);
  font: 700 .98rem/1 var(--f-body); letter-spacing: -.005em; white-space: nowrap;
  transition: transform var(--m-out) var(--ease), background-color var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease);
  isolation: isolate;
}
.btn__dot {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--b-dot); color: var(--b-dot-fg); overflow: hidden; flex: none;
}
.btn__dot svg { width: 16px; height: 16px; transition: transform var(--m-out) var(--ease); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-dot: var(--surface-2); --b-dot-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ink { --b-bg: var(--ink); --b-fg: var(--bg); --b-dot: var(--orange); --b-dot-fg: var(--orange-ink); }
.btn--sm { min-height: 42px; padding: 4px 4px 4px 18px; font-size: .9rem; gap: 10px; }
.btn--sm .btn__dot { width: 34px; height: 34px; }
.btn--plain { padding: 0 24px; }
.btn--block { width: 100%; justify-content: space-between; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); transition-duration: var(--m-in); background: color-mix(in srgb, var(--b-bg) 86%, var(--ink)); }
  .btn--ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .btn--ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--orange)); }
  .btn:hover .btn__dot svg { animation: arrow-hop .5s var(--ease); }
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
@keyframes arrow-hop { 0% { transform: translateX(0); } 45% { transform: translateX(22px); } 46% { transform: translateX(-22px); } 100% { transform: translateX(0); } }

.link {
  color: var(--ink); font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size var(--m-out) var(--ease);
}
.link:hover { background-size: 100% 1.5px, 100% 1px; }
.link--accent { color: var(--accent-text); }

/* ---------- Chips + badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface);
  font-size: .86rem; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.chip img { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; }
.chip--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 var(--up); animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.up { color: var(--up); } .down { color: var(--down); }

/* ---------- The BitMouse card (bevel + ear dots) ---------- */
.card {
  --c-line: var(--line-2); --c-bg: var(--surface);
  position: relative; isolation: isolate;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--c-line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  border-radius: var(--r-md) 0 var(--r-md) var(--r-md);
  transition: transform var(--m-out) var(--ease), background-color var(--m-out);
}
.card::before {
  content: ""; position: absolute; inset: 1px; z-index: -1;
  background: var(--c-bg);
  clip-path: polygon(0 0, calc(100% - var(--cut) + .4px) 0, 100% calc(var(--cut) - .4px), 100% 100%, 0 100%);
  border-radius: calc(var(--r-md) - 1px) 0 calc(var(--r-md) - 1px) calc(var(--r-md) - 1px);
}
.card::after { /* two "ears" on the cut */
  content: ""; position: absolute; top: 6px; right: 6px; width: 16px; height: 8px;
  background:
    radial-gradient(circle at 3px 4px, var(--orange) 2.6px, transparent 3px),
    radial-gradient(circle at 12px 4px, var(--orange) 2.6px, transparent 3px);
  transform: rotate(45deg) translate(2px, -2px); opacity: .9;
}
a.card, .card--link { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  a.card:hover, .card--link:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--orange) 70%, var(--line-2)); }
}
.card--flat::after { display: none; }
.card--accent { --c-bg: var(--orange); color: var(--orange-ink); }
.card--accent .muted { color: color-mix(in srgb, var(--orange-ink) 72%, transparent); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 14px 14px auto; z-index: var(--z-nav);
  display: flex; align-items: center; gap: 22px;
  height: 64px; padding: 0 10px 0 16px;
  max-width: calc(var(--wrap) - 2 * var(--pad) + 40px); margin-inline: auto;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: transform .35s var(--ease), background-color .3s;
}
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.02rem/1 var(--f-display); letter-spacing: .02em; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand small { display: block; font: 600 .62rem/1 var(--f-mono); letter-spacing: .2em; color: var(--accent-text); margin-top: 4px; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a, .nav__links button {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); font-weight: 600; font-size: .94rem; color: var(--muted);
  transition: color var(--m-out), background-color var(--m-out);
}
.nav__links a:hover, .nav__links button:hover, .nav__links [aria-current="page"], .nav__links [aria-expanded="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav__links [aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--orange); }
.nav__links button svg { width: 12px; transition: transform var(--m-out) var(--ease); }
.nav__links [aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__end { display: flex; align-items: center; gap: 8px; flex: none; }
.nav__login { font-weight: 600; font-size: .94rem; padding: 0 12px; height: 40px; display: inline-flex; align-items: center; }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink); background: var(--surface);
  transition: transform var(--m-out) var(--ease), background-color var(--m-out);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* Mega panel */
.mega {
  position: fixed; top: 86px; left: 50%; z-index: var(--z-nav);
  width: min(920px, calc(100vw - 28px)); translate: -50% 0;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--m-out) var(--ease), transform var(--m-out) var(--ease), visibility 0s linear var(--m-out);
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; }
.mega__item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px; border-radius: var(--r-md); transition: background-color var(--m-out); }
.mega__item:hover { background: var(--surface-2); }
.mega__item b { display: block; font-size: .95rem; }
.mega__item span { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.mega__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--accent-text); }
.mega__ico svg { width: 20px; height: 20px; }
.mega__promo { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--orange); color: var(--orange-ink); padding: 24px; display: grid; align-content: end; gap: 10px; min-height: 240px; }
.mega__promo h3 { font-size: 1.35rem; }
.mega__promo .mascot { position: absolute; top: -10px; right: -10px; width: 150px; opacity: .95; }

.burger { display: none; }
@media (max-width: 1080px) {
  .nav__links, .nav__login, .nav__end .btn { display: none; }
  .burger { display: grid; }
  .nav__end { margin-left: auto; }
}

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); display: grid; grid-template-rows: auto 1fr auto;
  background: var(--bg); padding: 22px var(--pad) 28px;
  clip-path: circle(0 at calc(100% - 44px) 44px); visibility: hidden;
  transition: clip-path .55s var(--ease-io), visibility 0s linear .55s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition-delay: 0s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__list { list-style: none; margin: 0; padding: 32px 0; display: grid; align-content: start; gap: 2px; overflow: auto; }
.menu__list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font: 600 clamp(1.5rem, 6vw, 2.2rem)/1.1 var(--f-display); border-bottom: 1px solid var(--line); }
.menu__list a span { font: 500 .8rem/1 var(--f-mono); color: var(--muted); }
.menu__foot { display: grid; gap: 10px; }

/* Mobile app dock */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    position: fixed; z-index: var(--z-dock); left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; padding: 6px;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow);
  }
  .dock a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--muted); border-radius: 16px; }
  .dock a svg { width: 22px; height: 22px; }
  .dock a[aria-current="page"] { color: var(--orange-ink); background: var(--orange); }
  .dock a.dock__main { color: var(--orange-ink); background: var(--orange); margin: -14px 6px 0; border-radius: 18px; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--orange) 70%, transparent); }
  body { padding-bottom: 88px; }
}

/* ---------- Background motion: woven lattice canvas ---------- */
.bg-weave { position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none; opacity: var(--grid-alpha); }
.bg-glow {
  position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% -10%, color-mix(in srgb, var(--orange) 18%, transparent), transparent 70%),
    radial-gradient(50vw 40vh at -10% 110%, color-mix(in srgb, var(--orange) 10%, transparent), transparent 70%);
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 56px; }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero__copy { display: grid; gap: 26px; align-content: center; }
.hero__copy > p { font-size: clamp(1.06rem, 1.3vw, 1.22rem); color: var(--muted); max-width: 560px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; color: var(--muted); font-size: .92rem; }
.hero__facts b { color: var(--ink); }
.hero__facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 16px; color: var(--accent-text); }

.hero__visual { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 620px; justify-self: end; }
.hero__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__quote { position: absolute; left: -4%; bottom: 6%; width: min(330px, 70%); }
.hero__route {
  position: absolute; right: 2%; top: 8%; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: .84rem; font-weight: 700;
}
.hero__route img { width: 22px; height: 15px; border-radius: 3px; }
.hero__route .mono { color: var(--accent-text); }
@media (max-width: 960px) {
  .hero { padding-top: 110px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 520px; }
  .hero__quote { left: 0; }
}

/* Quote widget (converter) */
.quote { padding: 18px; display: grid; gap: 12px; }
.quote__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.quote__row label { grid-column: 1 / -1; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.quote__row input { width: 100%; background: none; border: 0; outline: 0; font: 600 1.35rem/1.2 var(--f-mono); color: var(--ink); min-width: 0; }
.quote__row select, .quote__cur { appearance: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-pill); padding: 7px 30px 7px 12px; font-weight: 700; font-size: .88rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23F9A51A' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; cursor: pointer; }
.quote__cur { background-image: none; padding-right: 12px; display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.quote__cur img { width: 18px; height: 18px; border-radius: 50%; }
.quote__meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.quote__swap { justify-self: center; margin: -18px 0; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--orange-ink); border: 3px solid var(--surface); transition: transform .4s var(--ease); }
.quote__swap:hover { transform: rotate(180deg); }
.quote__swap svg { width: 14px; }
.rails { display: flex; flex-wrap: wrap; gap: 6px; }
.rails button { height: 30px; padding: 0 12px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; border: 1px solid var(--line-2); color: var(--muted); transition: all var(--m-out) var(--ease); }
.rails button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 80%, transparent); overflow: hidden; position: relative; }
.ticker__track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-right: 1px solid var(--line); font-size: .92rem; white-space: nowrap; }
.ticker__item img { width: 22px; height: 22px; border-radius: 50%; }
.ticker__item b { font-weight: 700; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker__pause { position: absolute; right: 8px; top: 50%; translate: 0 -50%; z-index: 2; }

/* ---------- Markets table ---------- */
.mk-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.seg button { height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: .86rem; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; transition: color var(--m-out), background-color .24s var(--ease); }
.seg button img { width: 18px; height: 12px; border-radius: 2px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); min-width: 240px; }
.search input { border: 0; outline: 0; background: none; width: 100%; }
.search svg { width: 16px; color: var(--muted); }

.mk { width: 100%; border-collapse: separate; border-spacing: 0; }
.mk-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; background: var(--surface); }
.mk th { text-align: right; font: 600 .74rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 18px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mk th:first-child, .mk td:first-child { text-align: left; }
.mk td { text-align: right; padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mk tr:last-child td { border-bottom: 0; }
.mk tbody tr { transition: background-color var(--m-out); }
.mk tbody tr:hover { background: var(--surface-2); }
.mk .coin { display: flex; align-items: center; gap: 12px; }
.mk .coin img { width: 32px; height: 32px; border-radius: 50%; }
.mk .coin b { display: block; font-weight: 700; }
.mk .coin span { font-size: .8rem; color: var(--muted); font-family: var(--f-mono); }
.mk .spark { width: 120px; height: 36px; margin-left: auto; }
.mk .flash-up { animation: flashU .9s var(--ease); } .mk .flash-down { animation: flashD .9s var(--ease); }
@keyframes flashU { from { background: color-mix(in srgb, var(--up) 22%, transparent); } }
@keyframes flashD { from { background: color-mix(in srgb, var(--down) 22%, transparent); } }
.mk-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .mk .hide-sm { display: none; } .mk td, .mk th { padding: 12px 12px; } .mk .spark { width: 72px; } }

/* ---------- Bento of Africa features ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento > * { grid-column: span 4; display: grid; align-content: start; gap: 14px; min-height: 340px; }
.bento > .w-5 { grid-column: span 5; } .bento > .w-7 { grid-column: span 7; } .bento > .w-6 { grid-column: span 6; } .bento > .w-8 { grid-column: span 8; }
.bento .viz { margin-top: auto; }
@media (max-width: 1024px) { .bento > *, .bento > .w-5, .bento > .w-7, .bento > .w-8 { grid-column: span 6; } }
@media (max-width: 680px) { .bento > *, .bento > .w-5, .bento > .w-6, .bento > .w-7, .bento > .w-8 { grid-column: 1 / -1; min-height: 0; } }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.card--accent .tag { color: var(--orange-ink); }

/* USSD phone */
.ussd { width: 220px; margin-inline: auto; border-radius: 28px; padding: 14px; background: #0B0B0D; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); }
.ussd__screen { border-radius: 14px; background: #9BB59A; color: #1A2A18; font: 600 .78rem/1.5 var(--f-mono); padding: 14px; min-height: 160px; }
.ussd__screen .cursor { display: inline-block; width: 7px; height: 13px; background: currentColor; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ussd__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.ussd__keys span { height: 20px; border-radius: 6px; background: #1F1F24; display: grid; place-items: center; font: 600 .62rem var(--f-mono); color: #8C8C96; }

/* Savings circle */
.circle-viz { position: relative; width: 210px; height: 210px; margin-inline: auto; }
.circle-viz svg { width: 100%; height: 100%; }
.circle-viz .ring-prog { transition: stroke-dashoffset 1.6s var(--ease); }
.circle-viz__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.circle-viz__mid b { font: 600 1.5rem/1 var(--f-display); }
.circle-viz__mid span { font-size: .78rem; color: var(--muted); }

/* Diaspora route */
.route { position: relative; height: 170px; }
.route svg { width: 100%; height: 100%; overflow: visible; }
.route__dash { stroke-dasharray: 4 7; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.route__fee { display: flex; gap: 10px; flex-wrap: wrap; }

/* Salary split slider */
.split { display: grid; gap: 12px; }
.split__bar { display: flex; height: 54px; border-radius: 14px; overflow: hidden; font: 700 .8rem/1 var(--f-mono); }
.split__bar > div { display: grid; place-items: center; transition: flex-basis .3s var(--ease); white-space: nowrap; overflow: hidden; }
.split__a { background: var(--surface-2); color: var(--ink); }
.split__b { background: var(--orange); color: var(--orange-ink); }
.range { width: 100%; accent-color: var(--orange); }

/* ---------- Countries (flags) ---------- */
.flags { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.flag-card { display: grid; gap: 14px; padding: 18px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--m-out) var(--ease), border-color var(--m-out); }
.flag-card:hover { transform: translateY(-2px); border-color: var(--orange); }
.flag-card[aria-pressed="true"] { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.flag-card__flag { aspect-ratio: 3/2; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.flag-card__flag img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--m-image) var(--ease); }
.flag-card:hover .flag-card__flag img { transform: scale(1.03); }
.flag-card b { font-size: 1rem; display: block; }
.flag-card span { font: 500 .8rem/1.3 var(--f-mono); color: var(--muted); }
@media (max-width: 1024px) { .flags { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .flags { grid-template-columns: repeat(2, 1fr); } }
.country-detail { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; }
.country-detail img { width: 72px; height: 48px; border-radius: 8px; object-fit: cover; }
.country-detail dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.country-detail dt { font: 600 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.country-detail dd { margin: 0; font-weight: 700; font-size: .95rem; }
@media (max-width: 860px) { .country-detail { grid-template-columns: 1fr; } .country-detail dl { grid-template-columns: 1fr 1fr; } }

/* ---------- Infographics ---------- */
.info-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.info-grid > * { grid-column: span 4; }
.info-grid > .w-8 { grid-column: span 8; } .info-grid > .w-6 { grid-column: span 6; }
@media (max-width: 960px) { .info-grid > *, .info-grid > .w-8, .info-grid > .w-6 { grid-column: 1 / -1; } }
.stat b { display: block; font: 600 clamp(2.4rem, 4.6vw, 3.8rem)/1 var(--f-display); letter-spacing: -.03em; margin: 18px 0 10px; }
.stat sup { font-size: .5em; vertical-align: super; color: var(--muted); }
.bars { display: grid; gap: 16px; margin-top: 18px; }
.bar { display: grid; gap: 8px; }
.bar__top { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; }
.bar__track { height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: inherit; background: var(--line-2); transition: width 1.4s var(--ease); }
.bar__fill--brand { background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.is-in .bar__fill { width: var(--w); }
.donut { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; margin-top: 14px; }
.donut svg { width: 180px; height: 180px; transform: rotate(-90deg); }
.donut svg circle { transition: stroke-dasharray 1.2s var(--ease); }
.legend { display: grid; gap: 8px; font-size: .9rem; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.legend { list-style: none; margin: 0; padding: 0; }
@media (max-width: 520px) { .donut { grid-template-columns: 1fr; justify-items: center; } }
.reg-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.reg-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: .92rem; }
.reg-list img { width: 28px; height: 19px; border-radius: 3px; object-fit: cover; }
.reg-list .mono { color: var(--accent-text); font-size: .82rem; }
.footnote { font-size: .8rem; color: var(--muted); margin-top: 16px; }
.footnote a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- How it works: the walking mouse ---------- */
.walk { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 70px; }
.walk__path { position: absolute; left: 0; right: 0; top: 0; height: 60px; }
.walk__path svg { width: 100%; height: 100%; overflow: visible; }
.walk__mouse { position: absolute; top: 4px; left: 0; width: 56px; height: 56px; translate: -50% 0; will-change: transform; }
.walk__mouse svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.step__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); font: 600 .9rem var(--f-mono); color: var(--accent-text); margin-bottom: 18px; transition: background-color .3s, color .3s, border-color .3s; }
.step.is-reached .step__n { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
@media (max-width: 900px) { .walk { grid-template-columns: 1fr 1fr; padding-top: 0; } .walk__path, .walk__mouse { display: none; } }
@media (max-width: 560px) { .walk { grid-template-columns: 1fr; } }

/* ---------- App frame (wallet / exchange UI) ---------- */
.app-frame { border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.app-frame__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 600 .78rem var(--f-mono); color: var(--muted); }
.app-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.app-frame__bar span { margin-left: auto; }
.app-body { padding: 22px; display: grid; gap: 16px; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-2--wide { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 960px) { .split-2, .split-2--wide { grid-template-columns: 1fr; } }
.bal { display: grid; gap: 6px; padding: 20px; border-radius: 18px; background: var(--orange); color: var(--orange-ink); position: relative; overflow: hidden; }
.bal small { font-weight: 700; font-size: .78rem; opacity: .8; }
.bal b { font: 600 2rem/1 var(--f-display); letter-spacing: -.02em; }
.bal .mascot { position: absolute; right: -16px; bottom: -22px; width: 120px; opacity: .22; }
.bal__actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.bal__actions span { display: grid; justify-items: center; gap: 4px; font-size: .74rem; font-weight: 700; }
.bal__actions i { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-ink); color: var(--orange); display: grid; place-items: center; }
.bal__actions svg { width: 16px; }
.asset-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.asset-row:last-child { border-bottom: 0; }
.asset-row img { width: 36px; height: 36px; border-radius: 50%; }
.asset-row b { display: block; font-size: .95rem; }
.asset-row span { font-size: .8rem; color: var(--muted); }
.asset-row .r { text-align: right; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.check-list svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--accent-text); }
.check-list b { display: block; }
.check-list span { color: var(--muted); font-size: .95rem; }

/* P2P book */
.p2p-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.p2p-row + .p2p-row { margin-top: 8px; }
.p2p-row .who { display: flex; gap: 10px; align-items: center; }
.p2p-row .ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem var(--f-display); background: var(--surface-2); color: var(--accent-text); }
.p2p-row small { display: block; color: var(--muted); font-size: .76rem; }
.pill-btn { height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-weight: 700; font-size: .82rem; background: var(--up); color: #04170E; transition: transform var(--m-out) var(--ease); }
.pill-btn:active { transform: scale(.96); }
.pill-btn--sell { background: var(--down); color: #1C0505; }
@media (max-width: 640px) { .p2p-row { grid-template-columns: 1fr auto; } .p2p-row .hide-sm { display: none; } }

/* ---------- Rewards ---------- */
.rewards { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.rewards > .card { display: grid; align-content: start; gap: 12px; min-height: 300px; }
.rewards .big { font: 600 clamp(2.6rem, 5vw, 4.2rem)/1 var(--f-display); letter-spacing: -.03em; }
@media (max-width: 960px) { .rewards { grid-template-columns: 1fr; } }
.cheese { position: relative; width: 100%; height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.cheese i { position: absolute; inset: 0 auto 0 0; width: var(--w, 40%); background: repeating-linear-gradient(-45deg, var(--orange) 0 10px, var(--orange-2) 10px 20px); border-radius: inherit; animation: slide 1.2s linear infinite; background-size: 28px 28px; }
@keyframes slide { to { background-position: 28px 0; } }

/* ---------- Lead / signup ---------- */
.lead { position: relative; overflow: visible; border-radius: 34px; background: var(--orange); color: var(--orange-ink); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lead h2 { color: var(--orange-ink); }
.lead p { color: color-mix(in srgb, var(--orange-ink) 78%, transparent); }
.lead .mascot-peek { position: absolute; right: 9%; top: -78px; width: 110px; pointer-events: none; transform: translateY(-24px); opacity: 0; transition: transform .8s var(--ease), opacity .5s var(--ease); }
.lead.is-in .mascot-peek { transform: none; opacity: 1; }
@media (max-width: 960px) { .lead { grid-template-columns: 1fr; } .lead .mascot-peek { display: none; } }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 16px;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); outline: 0;
  transition: border-color var(--m-in), box-shadow var(--m-in);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 30%, transparent); }
.field .err { font-size: .82rem; color: var(--down); min-height: 0; }
.field.has-error input, .field.has-error select { border-color: var(--down); }
.lead .field input, .lead .field select { background: #FFF8EC; color: #1B1A1E; border-color: rgba(26,18,0,.2); }
.lead .field label { color: var(--orange-ink); }
.lead .field .err { color: #7A0F0F; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .84rem; align-items: start; }
.consent input { width: 20px; height: 20px; accent-color: var(--orange-ink); margin: 2px 0 0; }
.form-success { display: none; gap: 14px; justify-items: start; }
.form.is-sent > :not(.form-success) { display: none; }
.form.is-sent .form-success { display: grid; animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.perk-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.perk-list li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.perk-list i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-ink); color: var(--orange); flex: none; font-style: normal; font: 600 .8rem var(--f-mono); }

/* ---------- FAQ (answers always open) ---------- */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.faq__item { padding: 24px 0; border-top: 1px solid var(--line); }
.faq__item h3 { font-size: 1.05rem; margin-bottom: 10px; }
.faq__item p { color: var(--muted); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Close ---------- */
.close { text-align: center; display: grid; justify-items: center; gap: 24px; }
.close h2 { max-width: 16ch; font-size: clamp(2.2rem, 5vw, 4.4rem); }
.close .mascot-big { width: clamp(130px, 16vw, 200px); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 72px 0 36px; background: var(--bg-2); position: relative; }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.foot h4 { font: 600 .74rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { font-size: .95rem; color: var(--ink); opacity: .86; transition: opacity var(--m-out); }
.foot ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot__about p { color: var(--muted); font-size: .95rem; margin: 16px 0 20px; max-width: 340px; }
.foot__flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.foot__flags img { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.foot__risk { font-size: .8rem; color: var(--muted); margin-top: 28px; max-width: 980px; line-height: 1.55; }
@media (max-width: 960px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__about { grid-column: 1 / -1; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 150px 0 64px; }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.page-hero p { color: var(--muted); font-size: 1.15rem; margin-top: 20px; max-width: 620px; }
.crumbs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font: 500 .8rem var(--f-mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: var(--ink); }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* Legal */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal nav { position: sticky; top: 110px; display: grid; gap: 2px; }
.legal nav a { padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.legal nav a:hover { color: var(--ink); background: var(--surface); }
.legal nav a[aria-current="page"] { color: var(--orange-ink); background: var(--orange); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.08rem; margin: 26px 0 10px; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; margin: 14px 0; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font: 500 .85rem var(--f-mono); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.callout { padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--orange) 12%, transparent); border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent); margin: 20px 0; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; display: flex; overflow-x: auto; } .legal nav a { white-space: nowrap; } }

/* Exchange page */
.ex { display: grid; grid-template-columns: 1fr 360px; gap: 16px; }
.ex__chart { padding: 18px; display: grid; gap: 14px; }
.ex__chart canvas { width: 100%; height: 360px; }
.ex__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.ex__price b { font: 600 2rem/1 var(--f-mono); }
.ex__book { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book { font: 500 .82rem/1 var(--f-mono); }
.book div { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 6px 10px; position: relative; }
.book div span:not(:first-child) { text-align: right; }
.book div i { position: absolute; inset: 1px 0 1px auto; opacity: .14; border-radius: 3px; }
.book .ask span:first-child { color: var(--down); } .book .ask i { background: var(--down); }
.book .bid span:first-child { color: var(--up); } .book .bid i { background: var(--up); }
.book header { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 8px 10px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.book header span:not(:first-child) { text-align: right; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.tabs2 button { height: 42px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.tabs2 button[aria-pressed="true"] { background: var(--up); color: #04170E; }
.tabs2 button[data-side="sell"][aria-pressed="true"] { background: var(--down); color: #1C0505; }
@media (max-width: 1024px) { .ex { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ex__book { grid-template-columns: 1fr; } }

.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .guide-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guide-list { grid-template-columns: 1fr; } }
.guide-list .card { display: grid; gap: 12px; align-content: start; min-height: 230px; }
.read-time { font: 500 .78rem var(--f-mono); color: var(--muted); }
.article { scroll-margin-top: 110px; padding: 36px 0; border-top: 1px solid var(--line); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 12px; }
.contact-list a, .contact-list div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.contact-list i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--accent-text); }
.contact-list svg { width: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }

.auth { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__side { position: relative; overflow: hidden; background: var(--orange); color: var(--orange-ink); padding: 48px clamp(28px, 5vw, 64px); display: grid; align-content: space-between; gap: 32px; }
.auth__side h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.auth__main { display: grid; place-items: center; padding: 120px var(--pad) 56px; }
.auth__box { width: 100%; max-width: 460px; display: grid; gap: 22px; }
.steps-dots { display: flex; gap: 6px; }
.steps-dots i { height: 6px; flex: 1; border-radius: 9px; background: var(--line-2); }
.steps-dots i.on { background: var(--orange); }
.auth__side .mascot { width: min(300px, 60%); justify-self: center; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__side { order: 2; } }

/* ---------- Mascot ---------- */
.mascot { display: block; overflow: visible; }
.mascot .m-tail { transform-origin: 70px 40px; animation: tail 2.8s ease-in-out infinite; }
.mascot .m-ear-l, .mascot .m-ear-r { transform-box: fill-box; transform-origin: center; animation: ear 4.2s ease-in-out infinite; }
.mascot .m-ear-r { animation-delay: .15s; }
.mascot .m-whisk { transform-box: fill-box; transform-origin: 50% 0; animation: whisk 1.6s ease-in-out infinite; }
@keyframes tail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
@keyframes ear { 0%, 88%, 100% { transform: scale(1); } 92% { transform: scale(1.12); } 96% { transform: scale(.96); } }
@keyframes whisk { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.06); } }

/* Page loader */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader); display: grid; place-items: center; background: var(--bg);
  transition: clip-path .8s var(--ease-io), visibility 0s linear .8s;
  clip-path: circle(150% at 50% 50%);
}
.loader.is-done { clip-path: circle(0 at 50% 50%); visibility: hidden; }
.loader__ring { position: relative; width: 168px; height: 168px; }
.loader__ring svg.track { position: absolute; inset: 0; animation: spin 1.4s linear infinite; }
.loader__ring .mascot { position: absolute; inset: 26px; width: auto; }
.loader__txt { margin-top: 22px; font: 600 .78rem var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--accent-text); text-align: center; }
.loader__pct { display: block; margin-top: 6px; color: var(--muted); letter-spacing: .1em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll companion: the mouse rides the progress rail */
.rail { position: fixed; z-index: var(--z-dock); right: 14px; top: 110px; bottom: 110px; width: 4px; border-radius: 9px; background: var(--line); }
.rail__fill { position: absolute; inset: 0 0 auto; height: 0; border-radius: inherit; background: var(--orange); }
.rail__mouse { position: absolute; left: 50%; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; transition: rotate .3s var(--ease); cursor: pointer; }
.rail__mouse svg { width: 100%; height: 100%; }
.rail__mouse.is-up { rotate: 180deg; }
@media (max-width: 760px) { .rail { display: none; } }

/* Chat mascot */
.chat-fab {
  position: fixed; z-index: var(--z-chat); right: 22px; bottom: 22px; width: 68px; height: 68px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--orange) 75%, transparent);
  display: grid; place-items: center; transition: transform .3s var(--ease);
}
.chat-fab:hover { transform: translateY(-3px) rotate(-6deg); }
.chat-fab:active { transform: scale(.95); }
.chat-fab .mascot { width: 54px; }
.chat-fab__hint {
  position: absolute; right: 78px; bottom: 14px; white-space: nowrap; padding: 10px 14px; border-radius: 16px 16px 4px 16px;
  background: var(--ink); color: var(--bg); font-size: .84rem; font-weight: 700; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(8px); transition: all .4s var(--ease); pointer-events: none;
}
.chat-fab.show-hint .chat-fab__hint { opacity: 1; transform: none; }
@media (max-width: 760px) { .chat-fab { bottom: calc(92px + env(safe-area-inset-bottom)); right: 16px; width: 58px; height: 58px; } .chat-fab .mascot { width: 46px; } }

.chat {
  position: fixed; z-index: var(--z-chat); right: 22px; bottom: 104px; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100svh - 140px));
  display: grid; grid-template-rows: auto 1fr auto auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden;
  transform-origin: 100% 100%; transform: scale(.9) translateY(10px); opacity: 0; visibility: hidden;
  transition: transform .35s var(--ease), opacity .25s var(--ease), visibility 0s linear .35s;
}
.chat.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
@media (max-width: 760px) { .chat { right: 12px; bottom: calc(160px + env(safe-area-inset-bottom)); height: min(560px, calc(100svh - 190px)); } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--orange); color: var(--orange-ink); }
.chat__head .mascot { width: 42px; }
.chat__head b { display: block; font-family: var(--f-display); font-size: .98rem; }
.chat__head small { font-size: .76rem; font-weight: 600; }
.chat__head button { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(26,18,0,.12); }
.chat__head button svg { width: 16px; }
.chat__log { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.45; animation: pop .3s var(--ease); }
.msg a { text-decoration: underline; font-weight: 700; }
.msg--bot { background: var(--surface-2); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg--me { background: var(--orange); color: var(--orange-ink); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg--typing { display: inline-flex; gap: 4px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat__quick { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.chat__quick button { flex: none; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 700; }
.chat__quick button:hover { border-color: var(--orange); }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg); outline: 0; }
.chat__form input:focus { border-color: var(--orange); }
.chat__form button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--orange-ink); }
.chat__form button svg { width: 18px; }

/* Cookie bar */
.cookie {
  position: fixed; z-index: var(--z-chat); left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px));
  padding: 18px; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow);
  font-size: .9rem; transform: translateY(140%); transition: transform .5s var(--ease);
}
.cookie.is-open { transform: none; }
.cookie div { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .cookie { bottom: calc(90px + env(safe-area-inset-bottom)); } }

/* ---------- Scroll reveal (user-requested) ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.hero h1 .line > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 150ms); }
.is-ready .hero h1 .line > span { transform: none; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--pad) 60px; }
.nf__hole { position: relative; width: 260px; height: 200px; margin: 0 auto 28px; }
.nf__hole::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 8px; height: 40px; border-radius: 50%; background: radial-gradient(#000 40%, transparent 72%); opacity: .7; }
.nf__hole .mascot { position: absolute; left: 50%; bottom: 20px; width: 120px; translate: -50% 0; animation: peek 3.2s var(--ease) infinite; }
@keyframes peek { 0%, 100% { transform: translateY(40px); } 35%, 70% { transform: translateY(0); } }
.nf h1 { font-size: clamp(4rem, 14vw, 9rem); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .ticker__track { animation: none; }
}
html.paused .ticker__track, html.paused .mascot * { animation-play-state: paused !important; }

/* Print */
@media print { .nav, .dock, .chat, .chat-fab, .rail, .bg-weave, .bg-glow, .cookie, .loader { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Fixes after first render ---------- */
[hidden] { display: none !important; }
.tag svg, .chip svg { width: 14px; height: 14px; flex: none; }
.mk .coin > span > span { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.mk .coin span { font-family: inherit; font-size: inherit; color: inherit; }
.mk .coin > span > span { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.flag-card span { font: inherit; color: inherit; }
.flag-card > span:last-child > span { display: block; font: 500 .8rem/1.3 var(--f-mono); color: var(--muted); margin-top: 2px; }
.flag-card b { font-family: var(--f-body); font-weight: 700; }
.donut { grid-template-columns: 132px 1fr; gap: 18px; }
.donut svg { width: 132px; height: 132px; }
.legend { font-size: .84rem; min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 4.15rem); }
@media (min-width: 961px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }
.hero__visual { aspect-ratio: .92; max-width: 600px; }
.hero__quote { left: -2%; bottom: 0; width: min(300px, 62%); }
.hero__quote .quote { padding: 14px; gap: 10px; }
.hero__quote .quote__row { padding: 10px 12px; }
.hero__quote .quote__row input { font-size: 1.15rem; }
.hero__quote .rails { display: none; }
.hero h1 { font-size: clamp(2.2rem, 3.9vw, 3.75rem); }
.hero__visual { aspect-ratio: .84; }
.hero__quote { left: -4%; bottom: 0; width: min(270px, 58%); }
.hero__quote .quote__meta { font-size: .72rem; }
.bal .mascot { opacity: .14; right: -30px; bottom: -40px; }
@media (max-width: 960px) { .hero__visual { aspect-ratio: .95; } .hero__quote { left: 0; width: min(290px, 70%); } }
@media (max-width: 520px) { .hero__route { display: none; } }
@media (max-width: 760px) {
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg button { flex: none; }
  .mk-tools { flex-direction: column; align-items: stretch; }
  .mk td:last-child, .mk th:last-child { display: none; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
}
.book > [data-asks], .book > [data-bids] { display: block; padding: 0; }
.auth__side { padding-top: 110px; }
/* Sora headings: slightly tighter tracking */
h1, h2, h3, h4 { letter-spacing: -.035em; font-weight: 600; }
.brand { letter-spacing: -.01em; }
.lead { margin-top: 60px; }

/* ---------- Language, account, auth, checkout ---------- */
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.lang svg { width: 16px; height: 16px; flex: none; color: var(--accent-text); }
.lang select { appearance: none; border: 0; background: none; font-weight: 700; font-size: .86rem; color: var(--ink); cursor: pointer; padding-right: 2px; max-width: 108px; outline: 0; }
.lang select option { color: #1B1A1E; }
.lang--wide { width: 100%; height: 50px; justify-content: flex-start; }
.lang--wide span { font-weight: 700; margin-right: auto; }
@media (max-width: 1080px) { .nav .lang { display: none; } }
.nav__acct { display: inline-flex; align-items: center; gap: 12px; }
.nav__acct[hidden], [data-guest][hidden] { display: none !important; }
.acct { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.acct img, .acct i { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--orange); color: var(--orange-ink); font-style: normal; }
@media (max-width: 1080px) { .nav .nav__acct { display: none !important; } }
.menu .nav__acct { justify-content: space-between; padding: 10px 4px; }
.gbtn { min-height: 44px; display: flex; justify-content: center; }
.or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; color: var(--muted); font-size: .84rem; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line-2); }
.form-error { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--ink); font-size: .9rem; }
.lead .form-error { background: rgba(122,15,15,.12); color: #2a0606; }

.checkout { width: min(520px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
.checkout::backdrop { background: rgba(10, 8, 6, .62); backdrop-filter: blur(4px); }
.checkout[open] { animation: pop .3s var(--ease); }
.checkout__box { display: grid; }
.checkout__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.checkout__head h2 { font-size: 1.3rem; }
.checkout__body { display: grid; gap: 14px; padding: 22px; }
.checkout__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.checkout__sum b { font-size: 1.25rem; }
.checkout__msg { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--down) 14%, transparent); font-size: .9rem; }
.checkout__done { display: grid; gap: 10px; justify-items: start; }
.checkout__addr { word-break: break-all; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .85rem; }

/* Google Translate: keep its UI out of the design */
.goog-te-banner-frame, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
[dir="rtl"] .hero__copy, [dir="rtl"] .head, [dir="rtl"] .prose { text-align: right; }
.nav__links a, .nav__links button { white-space: nowrap; padding: 0 12px; }
@media (max-width: 1240px) { .nav .lang select { max-width: 0; padding: 0; } .nav .lang { padding: 0 12px; } }
